From e17755fd326691a7bb52a89d3cfad711d80ed8dc Mon Sep 17 00:00:00 2001 From: yanglbme Date: Thu, 25 Nov 2021 14:11:05 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20doocs/md?= =?UTF-8?q?@9af9319d39bbff1eada7f7a260a04dc45fca1ba1=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 2 +- js/app.1c3e923e.js | 4 - js/app.1c3e923e.js.map | 1 - js/app.e586c166.js | 4 + js/app.e586c166.js.map | 1 + ....37bae3e5.js => chunk-vendors.4ec50ad6.js} | 116 +++--------------- ...5.js.map => chunk-vendors.4ec50ad6.js.map} | 2 +- 7 files changed, 26 insertions(+), 104 deletions(-) delete mode 100644 js/app.1c3e923e.js delete mode 100644 js/app.1c3e923e.js.map create mode 100644 js/app.e586c166.js create mode 100644 js/app.e586c166.js.map rename js/{chunk-vendors.37bae3e5.js => chunk-vendors.4ec50ad6.js} (51%) rename js/{chunk-vendors.37bae3e5.js.map => chunk-vendors.4ec50ad6.js.map} (58%) diff --git a/index.html b/index.html index 684bcc5..cc6ee0a 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -微信 Markdown 编辑器 | Doocs 开源社区
\ No newline at end of file +微信 Markdown 编辑器 | Doocs 开源社区
\ No newline at end of file diff --git a/js/app.1c3e923e.js b/js/app.1c3e923e.js deleted file mode 100644 index 5922424..0000000 --- a/js/app.1c3e923e.js +++ /dev/null @@ -1,4 +0,0 @@ -(function(e){function t(t){for(var r,a,s=t[0],c=t[1],l=t[2],d=0,_=[];d=1&&n<=127?t+=e.charAt(o):n>2047?(t+=String.fromCharCode(224|n>>12&15),t+=String.fromCharCode(128|n>>6&63),t+=String.fromCharCode(128|n>>0&63)):(t+=String.fromCharCode(192|n>>6&31),t+=String.fromCharCode(128|n>>0&63));return t}function n(e){var t,o,r,n,i,a;t="",r=e.length,o=0;while(o>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:t+=e.charAt(o-1);break;case 12:case 13:i=e.charCodeAt(o++),t+=String.fromCharCode((31&n)<<6|63&i);break;case 14:i=e.charCodeAt(o++),a=e.charCodeAt(o++),t+=String.fromCharCode((15&n)<<12|(63&i)<<6|(63&a)<<0);break}return t}var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",a=new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1);function s(e){var t,o,r,n,a,s;r=e.length,o=0,t="";while(o>2),t+=i.charAt((3&n)<<4),t+="==";break}if(a=e.charCodeAt(o++),o==r){t+=i.charAt(n>>2),t+=i.charAt((3&n)<<4|(240&a)>>4),t+=i.charAt((15&a)<<2),t+="=";break}s=e.charCodeAt(o++),t+=i.charAt(n>>2),t+=i.charAt((3&n)<<4|(240&a)>>4),t+=i.charAt((15&a)<<2|(192&s)>>6),t+=i.charAt(63&s)}return t}function c(e){var t,o,r,n,i,s,c;s=e.length,i=0,c="";while(i>4);do{if(r=255&e.charCodeAt(i++),61==r)return c;r=a[r]}while(i>2);do{if(n=255&e.charCodeAt(i++),61==n)return c;n=a[n]}while(i['.concat(e[0],"]: ").concat(e[1],"
"):'['.concat(e[0],"] ").concat(e[1],": ").concat(e[2],"
")}));return"

引用链接

").concat(e.join("\n"),"

")},this.buildAddition=function(){return"\n \n "},this.setOptions=function(e){o.opts=c(o.opts,e)},this.hasFootnotes=function(){return 0!==n.length},this.getRenderer=function(e){n=[],i=0,a=o.buildTheme(o.opts.theme);var t=new p.a.Renderer;return t.heading=function(e,t){switch(t){case 1:return"

").concat(e,"

");case 2:return"

").concat(e,"

");case 3:return"

").concat(e,"

");default:return"

").concat(e,"

")}},t.paragraph=function(e){return-1!=e.indexOf("").concat(e,"

")},t.blockquote=function(e){return e=e.replace(//g,"

")),"

").concat(e,"
")},t.code=function(e,t){e=e.replace(//g,">");var o=e.split("\n").map((function(e){return''.concat(e||" ","")})),r="github";return'\n
\n
\n                        ').concat(o.join(""),"\n                    
\n
\n ")},t.codespan=function(e,t){return"").concat(e,"")},t.listitem=function(e){return"<%s/>').concat(e,"")},t.list=function(e,t,o){e=e.replace(/<\/*p.*?>/g,"");var r=e.split("<%s/>");if(!t)return e=r.join("•"),"

").concat(e,"

");e=r[0];for(var n=1;n").concat(e,"

")},t.image=function(e,t,o){var n="";o&&(n="
").concat(o,"
"));var i=l("figure"),a=l(r?"image":"image_org");return"
').concat(o,'').concat(n,"
")},t.link=function(t,o,r){if(t.startsWith("https://mp.weixin.qq.com"))return'").concat(r,"");if(t===r)return r;if(e){var n=u(o||r,t);return"").concat(r,"[").concat(n,"]")}return"").concat(r,"")},t.strong=function(e){return"").concat(e,"")},t.em=function(e){return''.concat(e,"")},t.table=function(e,t){return'
").concat(e,"").concat(t,"
")},t.tablecell=function(e,t){return"").concat(e,"")},t.hr=function(){return'
'},t}},h=g,b=o("56b3"),C=o.n(b),v='# 示例文章:Google 搜索的即时自动补全功能究竟是如何“工作”的?\r\n\r\n> Google 搜索**自动补全功能**的强大,相信不少朋友都能感受到,它帮助我们更快地“补全”我们所要输入的搜索关键字。那么,它怎么知道我们要输入什么内容?它又是如何工作的?在这篇文章里,我们一起来看看。\r\n\r\n## 使用自动补全\r\n\r\nGoogle 搜索的自动补全功能可以在 Google 搜索应用的大多数位置使用,包括 [Google](https://www.google.com/) 主页、适用于 IOS 和 Android 的 Google 应用,我们只需要在 Google 搜索框上开始键入关键字,就可以看到联想词了。\r\n\r\n![](https://gitee.com/yanglbme/resource/raw/master/doocs-md/juejin.gif)\r\n\r\n在上图示例中,我们可以看到,输入关键字 `juej`,Google 搜索会联想到“掘金”、“掘金小册”、“绝句”等等,好处就是,我们无须输入完整的关键字即可轻松完成针对这些 topics 的搜索。\r\n\r\n谷歌搜索的自动补全功能对于使用移动设备的用户来说特别有用,用户可以轻松在难以键入的小屏幕上完成搜索。当然,对于移动设备用户和台式机用户而言,这都节省了大量的时间。根据 Google 官方报告,自动补全功能可以减少大约 25% 的打字,累积起来,预计每天可以节省 200 多年的打字时间。是的,每天!\r\n\r\n> 注意,本文所提到的“**联想词**”与“**预测**”,是同一个意思。\r\n\r\n## 基于“预测”而非“建议”\r\n\r\nGoogle 官方将自动补全功能称之为“预测”,而不是“建议”,为什么呢?其实是有充分理由的。自动补全功能是为了**帮助用户完成他们打算进行的搜索**,而不是建议用户要执行什么搜索。\r\n\r\n那么,Google 是如何确定这些“预测”的?其实,Google 会根据趋势搜索 [trends](https://trends.google.com/trends/?geo=US) 给到我们这些“预测”。简单来说,哪个热门、哪个搜索频率高,就更可能推给我们。当然,这也与我们当前所处的位置以及我们的搜索历史相关。\r\n\r\n另外,这些“预测”也会随着我们键入的关键字的变更而更改。例如,当我们把键入的关键字从 `juej` 更改为 `juex` 时,与“掘金”相关的预测会“消失”,同时,与“觉醒”、“决心”相关联的词会出现。\r\n\r\n![](https://gitee.com/yanglbme/resource/raw/master/doocs-md/juex.gif)\r\n\r\n## 为什么看不到某些联想词?\r\n\r\n如果我们在输入某个关键字时看不到联想词,那么表明 Google 的算法可能检测到:\r\n\r\n- 这个关键字不是热门字词;\r\n- 搜索的字词太新了,我们可能需要等待几天或几周才能看到联想词;\r\n- 这是一个侮辱性或敏感字词,这个搜索字词违反了 Google 的相关政策。更加详细的情况,可以了解 [Google 搜索自动补全政策](https://support.google.com/websearch/answer/7368877)。\r\n\r\n## 为什么会看到某些不当的联想词?\r\n\r\nGoogle 拥有专门设计的系统,可以自动捕获不适当的预测结果而不显示出来。然而,Google 每天需要处理数十亿次搜索,这意味着 Google 每天会显示数十亿甚至上百亿条预测。再好的系统,也可能存在缺陷,不正确的预测也可能随时会出现。\r\n\r\n我们作为 Google 搜索的用户,如果认定某条预测违反了相关的搜索自动补全政策,可以进行举报反馈,点击右下角“**举报不当的联想查询**”并勾选相关选项即可。\r\n\r\n![](https://gitee.com/yanglbme/resource/raw/master/doocs-md/report.gif)\r\n\r\n## 如何实现自动补全算法?\r\n\r\n目前,Google 官方似乎并没有公开搜索自动补全的算法实现,但是业界在这方面已经有了不少研究。\r\n\r\n一个好的自动补全器必须是快速的,并且在用户键入下一个字符后立即更新联想词列表。**自动补全器的核心是一个函数,它接受输入的前缀,并搜索以给定前缀开头的词汇或语句列表**。通常来说,只需要返回少量的数目即可。\r\n\r\n接下来,我们先从一个简单且低效的实现开始,并在此基础上逐步构建更高效的方法。\r\n\r\n### 词汇表实现\r\n\r\n一个**简单粗暴的实现方式**是:顺序查找词汇表,依次检查每个词汇,看它是否以给定的前缀开头。\r\n\r\n但是,此方法需要将前缀与每个词汇进行匹配检查,若词汇量较少,这种方式可能勉强行得通。但是,如果词汇量规模较大,效率就太低了。\r\n\r\n一个**更好的实现方式是**:让词汇按字典顺序排序。借助二分搜索算法,可以快速搜索有序词汇表中的前缀。由于二分搜索的每一步都会将搜索的范围减半,因此,总的搜索时间与词汇表中单词数量的对数成正比,即时间复杂度是 `O(log N)`。二分搜索的性能很好,但有没有更好的实现呢?当然有,往下看。\r\n\r\n### 前缀树实现\r\n\r\n通常来说,许多词汇都以相同的前缀开头,比如 `need`、`nested` 都以 `ne` 开头,`seed`、`speed` 都以 `s` 开头。要是为每个单词分别存储公共前缀似乎很浪费。\r\n\r\n![](https://gitee.com/yanglbme/resource/raw/master/doocs-md/pretree.png)\r\n\r\n前缀树是一种利用公共前缀来加速补全速度的数据结构。前缀树在节点树中排列一组单词,单词沿着从根节点到叶子节点的路径存储,树的层次对应于前缀的字母位置。\r\n\r\n前缀的补全是顺着前缀定义的路径来查找的。例如,在上图的前缀树中,前缀 `ne` 对应于从子节点取左边缘 `N` 和唯一边缘 `E` 的路径。然后可以通过继续遍历从 `E` 节点可以达到的所有叶节点来生成补全列表。在图中,`ne` 的补全可以是两个分支:`-ed` 和 `-sted`。如果在数中找不到由前缀定义的路径,则说明词汇表中不包含以该前缀开头的单词。\r\n\r\n### 有限状态自动机(DFA)实现\r\n\r\n前缀树可以有效处理公共前缀,但是,对于其他共享词部分,仍会分别存储在每个分支中。比如,后缀 `ed`、`ing`、`tion` 在英文单词中特别常见。在上一个例子中,`e`、`d` 分别存放在了每一个分支上。\r\n\r\n有没有一种方法可以更加节省存储空间呢?有的,那就是 DFA。\r\n\r\n
\r\n
\r\n\r\n在上面的例子中,单词 `need`、`nested`、`seed` 和 `speed` 仅由 9 个节点组成,而上一张图中的前缀树包含了 17 个节点。\r\n\r\n可以看出,最小化前缀树 DFA 可以在很大程度上减少数据结构的大小。即使词汇量很大,最小化 DFA 通常也适合在内存中存储,避免昂贵的磁盘访问是实现快速自动补全的关键。\r\n\r\n### 一些扩展\r\n\r\n上面介绍了如何利用合理的数据结构实现基本的自动补全功能。这些数据结构可以通过多种方式进行扩展,从而改善用户体验。\r\n\r\n通常,满足特定前缀的词汇可能很多,而用户界面上能够显示的却不多,我们更希望能显示最常搜索或者最有价值的词汇。这通常可以通过为词汇表中的每个单词增加一个代表单词值的**权重** `weight`,并且按照权重高低来排序自动补全列表。\r\n\r\n- 对于排序后的词汇表来说,在词汇表每个元素上增加 `weight` 属性并不难;\r\n- 对于前缀树来说,将 `weight` 存储在叶子节点中,也是很简单的一个实现;\r\n- 对于 `DFA` 来说,则较为复杂。因为一个叶子节点可以通过多条路径到达。一种解决方案是将权重关联到路径而不是叶子节点。\r\n\r\n目前有不少开源库都提供了这个功能,比如主流的搜索引擎框架 [Elasticsearch](https://www.elastic.co/products/elasticsearch)、[Solr](https://lucene.apache.org/solr/) 等,基于此,我们可以实现高效而强大的自动补全功能。\r\n\r\n#### 推荐阅读\r\n\r\n- [阿里又一个 20k+ stars 开源项目诞生,恭喜 fastjson!](https://mp.weixin.qq.com/s/RNKDCK2KoyeuMeEs6GUrow)\r\n- [刷掉 90% 候选人的互联网大厂海量数据面试题(附题解 + 方法总结)](https://mp.weixin.qq.com/s/rjGqxUvrEqJNlo09GrT1Dw)\r\n- [好用!期待已久的文本块功能究竟如何在 Java 13 中发挥作用?](https://mp.weixin.qq.com/s/kalGv5T8AZGxTnLHr2wDsA)\r\n- [2019 GitHub 开源贡献排行榜新鲜出炉!微软谷歌领头,阿里跻身前 12!](https://mp.weixin.qq.com/s/_q812aGD1b9QvZ2WFI0Qgw)\r\n\r\n---\r\n\r\n欢迎关注我的公众号“**Doocs 开源社区**”,原创技术文章第一时间推送。\r\n\r\n
\r\n \r\n
\r\n',k="/*\r\n 按Ctrl+F可格式化\r\n*/\r\n/* 一级标题样式 */\r\nh1 {\r\n}\r\n/* 二级标题样式 */\r\nh2 {\r\n}\r\n/* 三级标题样式 */\r\nh3 {\r\n}\r\n/* 四级标题样式 */\r\nh4 {\r\n}\r\n/* 图片样式 */\r\nimage {\r\n}\r\n/* 引用样式 */\r\nblockquote {\r\n}\r\n/* 引用段落样式 */\r\nblockquote_p {\r\n}\r\n/* 段落样式 */\r\np {\r\n}\r\n/* 行内代码样式 */\r\ncodespan {\r\n}\r\n/* 粗体样式 */\r\nstrong {\r\n}\r\n/* 链接样式 */\r\nlink {\r\n}\r\n/* 微信链接样式 */\r\nwx_link {\r\n}\r\n/* 有序列表样式 */\r\nol {\r\n}\r\n/* 无序列表样式 */\r\nul {\r\n}\r\n/* 列表项样式 */\r\nli {\r\n}",O=o("3835"),E=(o("e9c4"),o("4160"),o("d3b7"),o("159b"),o("498a"),o("4de4"),o("b64b"),o("fb6a"),o("3ca3"),o("ddb0"),o("2b3d"),o("9861"),o("a630"),o("caad"),o("2532"),o("00b4"),o("4fad"),o("4e82"),o("466d"),{BASE:{"text-align":"left",color:"#3f3f3f","line-height":"1.75"},BASE_BLOCK:{margin:"1em 8px"},block:{h1:{"font-size":"1.2em","text-align":"center","font-weight":"bold",display:"table",margin:"2em auto 1em",padding:"0 1em","border-bottom":"2px solid rgba(0, 152, 116, 0.9)"},h2:{"font-size":"1.2em","text-align":"center","font-weight":"bold",display:"table",margin:"4em auto 2em",padding:"0 0.2em",background:"rgba(0, 152, 116, 0.9)",color:"#fff"},h3:{"font-weight":"bold","font-size":"1.1em",margin:"2em 8px 0.75em 0","line-height":"1.2","padding-left":"8px","border-left":"3px solid rgba(0, 152, 116, 0.9)"},h4:{"font-weight":"bold","font-size":"1em",margin:"2em 8px 0.5em",color:"rgba(66, 185, 131, 0.9)"},p:{margin:"1.5em 8px","letter-spacing":"0.1em"},blockquote:{"font-style":"normal","border-left":"none",padding:"1em","border-radius":"8px",color:"rgba(0,0,0,0.5)",background:"#f7f7f7",margin:"2em 8px"},blockquote_p:{"letter-spacing":"0.1em",color:"rgb(80, 80, 80)","font-size":"1em",display:"block"},code:{"font-size":"80%",overflow:"auto",color:"#333","white-space":"pre",background:"rgb(247, 247, 247)","border-radius":"8px",padding:"10px","line-height":"1.5",border:"1px solid rgb(236,236,236)",margin:"20px 0"},image:{"border-radius":"4px",display:"block",margin:"0.1em auto 0.5em",width:"100% !important"},image_org:{"border-radius":"4px",display:"block"},ol:{"margin-left":"0","padding-left":"1em"},ul:{"margin-left":"0","padding-left":"1em","list-style":"circle"},footnotes:{margin:"0.5em 8px","font-size":"80%"},figure:{margin:"1.5em 8px"}},inline:{listitem:{"text-indent":"-1em",display:"block",margin:"0.2em 8px"},codespan:{"font-size":"90%","white-space":"pre",color:"#d14",background:"rgba(27,31,35,.05)",padding:"3px 5px","border-radius":"4px"},link:{color:"#576b95"},wx_link:{color:"#576b95","text-decoration":"none"},strong:{color:"rgba(15, 76, 129, 0.9)","font-weight":"bold"},table:{"border-collapse":"collapse","text-align":"center",margin:"1em 8px"},thead:{background:"rgba(0, 0, 0, 0.05)","font-weight":"bold"},td:{border:"1px solid #dfdfdf",padding:"0.25em 0.5em"},footnote:{"font-size":"12px"},figcaption:{"text-align":"center",color:"#888","font-size":"0.8em"}}}),S=o("325b"),y=o.n(S),w=o("4fc3"),x=o.n(w),M=o("d238"),T=o.n(M);function D(e){return function(t){var o=JSON.parse(JSON.stringify(e));return o.block.h1["border-bottom"]="2px solid ".concat(t),o.block.h2["background"]=t,o.block.h3["border-left"]="3px solid ".concat(t),o.block.h4["color"]=t,o.inline.strong["color"]=t,o}}var I=function(e,t){var o=JSON.parse(JSON.stringify(e));return o.block.h1["border-bottom"]="2px solid ".concat(t),o.block.h2["background"]=t,o.block.h3["border-left"]="3px solid ".concat(t),o.block.h4["color"]=t,o.inline.strong["color"]=t,o};function P(e){return function(t){var o=JSON.parse(JSON.stringify(e));return o.block.h1["font-size"]="".concat(1.14*t,"px"),o.block.h2["font-size"]="".concat(1.1*t,"px"),o.block.h3["font-size"]="".concat(t,"px"),o.block.h4["font-size"]="".concat(t,"px"),o}}var j=D(E),A=P(E);function R(e,t,o){var r=JSON.parse(JSON.stringify(o));return r.block.h1["border-bottom"]="2px solid ".concat(t),r.block.h2["background"]=t,r.block.h3["border-left"]="3px solid ".concat(t),r.block.h4["color"]=t,r.inline.strong["color"]=t,r.block.h1=Object.assign(r.block.h1,e.h1),r.block.h2=Object.assign(r.block.h2,e.h2),r.block.h3=Object.assign(r.block.h3,e.h3),r.block.h4=Object.assign(r.block.h4,e.h4),r.block.p=Object.assign(r.block.p,e.p),r.block.blockquote=Object.assign(r.block.blockquote,e.blockquote),r.block.blockquote_p=Object.assign(r.block.blockquote_p,e.blockquote_p),r.block.image=Object.assign(r.block.image,e.image),r.inline.strong=Object.assign(r.inline.strong,e.strong),r.inline.codespan=Object.assign(r.inline.codespan,e.codespan),r.inline.link=Object.assign(r.inline.link,e.link),r.inline.wx_link=Object.assign(r.inline.wx_link,e.wx_link),r.block.ul=Object.assign(r.block.ul,e.ul),r.block.ol=Object.assign(r.block.ol,e.ol),r.inline.listitem=Object.assign(r.inline.listitem,e.li),r}function U(e){var t,o;while(-1!==(t=e.indexOf("/*"))&&-1!==(o=e.indexOf("*/")))e=e.substring(0,t)+e.substring(o+2);var r={},n=function(){var t=e.indexOf("{"),o=e.indexOf("}");function n(e){var t={};return e.forEach((function(e){var o=e.indexOf(":"),r=e.substring(0,o).trim(),n=e.substring(o+1).trim();t[r]=n})),t}var i=e.substring(t+1,o).split(";").map((function(e){return e.trim()})).filter((function(e){return e.length>0}));i=n(i);var a=e.substring(0,t).split(",").map((function(e){return e.trim()}));a.forEach((function(e){r[e]||(r[e]={}),Object.keys(i).forEach((function(t){r[e][t]=i[t]}))})),e=e.slice(o+1).trim()};while(e.length>0&&-1!==e.indexOf("{")&&-1!==e.indexOf("}"))n();return r}function K(e,t){var o=e.getValue(0);o?localStorage.setItem(t,o):localStorage.removeItem(t)}function L(e){var t=y.a.format(e,{parser:"markdown",plugins:[x.a]});return t}function B(e){var t=y.a.format(e,{parser:"css",plugins:[T.a]});return t}function $(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pre",t=document.getElementsByClassName("code__pre");t.length>0&&t.forEach((function(t){t.style.whiteSpace=e}))}function q(e){var t=document.createElement("a");t.download="content.md",t.style.display="none";var o=new Blob([e]);t.href=URL.createObjectURL(o),document.body.appendChild(t),t.click(),document.body.removeChild(t)}function G(){var e=document.querySelector("#output");n(e);var t=e.innerHTML,o=document.createElement("a");o.download="content.html",o.style.display="none";var r=new Blob(['
'.concat(t,"
")]);function n(e){switch(!0){case t(e):case o(e):case r(e):case i(e):e.setAttribute("style",z(e));default:}function t(e){return"SECTION"===e.tagName&&Array.from(e.classList).includes("code-snippet__github")}function o(e){return"PRE"===e.tagName&&Array.from(e.classList).includes("code__pre")}function r(e){return"CODE"===e.tagName&&Array.from(e.classList).includes("prettyprint")}function i(e){return"SPAN"===e.tagName&&(r(e.parentElement)||r(e.parentElement.parentElement))}e.children.length&&Array.from(e.children).forEach((function(e){return n(e)}))}o.href=URL.createObjectURL(r),document.body.appendChild(o),o.click(),document.body.removeChild(o)}function W(e){for(var t=e.data,o=e.rows,r=e.cols,n="",i=[],a=0;a1?a-1:a;1===a?i.push("---\t"):i.push(t["k_".concat(c,"_").concat(s)]||"")}n+=i.join("\t|\t"),n+="\t|\n"}return n}var F=function(e){return new Promise((function(t,o){var r=new FileReader;r.readAsDataURL(e),r.onload=function(){return t(r.result.split(",").pop())},r.onerror=function(e){return o(e)}}))};function H(e){var t=/\.(gif|jpg|jpeg|png|GIF|JPG|PNG)$/.test(e.name);if(!t)return{ok:!1,msg:"请上传 JPG/PNG/GIF 格式的图片"};var o=5,r=e.size/1024/1024<=o;return r?{ok:!0}:{ok:!1,msg:"由于公众号限制,图片大小不能超过 ".concat(o,"M")}}function z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["width","height"],o=getComputedStyle(e,null);return Object.entries(o).filter((function(e){var r=Object(O["a"])(e,1),n=r[0];return o.getPropertyValue(n)&&!t.includes(n)})).map((function(e){var t=Object(O["a"])(e,2),o=t[0],r=t[1];return"".concat(o,":").concat(r,";")})).join("")}function N(e){var t=e.split("\n"),o=t.filter((function(e){return e.trim()})).map((function(e){return e.match(/(^\s+)?/)[0].length})).sort((function(e,t){return e-t}))[0],r=t.map((function(e){return e.slice(o)})).join("\n");return r}n["default"].use(d["a"]);var V={wxRenderer:null,output:"",html:"",editor:null,cssEditor:null,currentFont:"",currentSize:"",currentColor:"",citeStatus:0,nightMode:!1,codeTheme:"github",rightClickMenuVisible:!1},Q={setEditorValue:function(e,t){e.editor.setValue(t)},setCssEditorValue:function(e,t){e.cssEditor.setValue(t)},setWxRendererOptions:function(e,t){e.wxRenderer.setOptions(t)},setCiteStatus:function(e,t){e.citeStatus=t,localStorage.setItem("citeStatus",t)},setCurrentFont:function(e,t){e.currentFont=t,localStorage.setItem("fonts",t)},setCurrentSize:function(e,t){e.currentSize=t,localStorage.setItem("size",t)},setCurrentColor:function(e,t){e.currentColor=t,localStorage.setItem("color",t)},setCurrentCodeTheme:function(e,t){e.codeTheme=t,localStorage.setItem("codeTheme",t)},setRightClickMenuVisible:function(e,t){e.rightClickMenuVisible=t},themeChanged:function(e){e.nightMode=!e.nightMode,localStorage.setItem("nightMode",e.nightMode)},initEditorState:function(e){e.currentFont=localStorage.getItem("fonts")||_.builtinFonts[0].value,e.currentColor=localStorage.getItem("color")||_.colorOption[0].value,e.currentSize=localStorage.getItem("size")||_.sizeOption[2].value,e.codeTheme=localStorage.getItem("codeTheme")||_.codeThemeOption[0].value,e.citeStatus="true"===localStorage.getItem("citeStatus"),e.nightMode="true"===localStorage.getItem("nightMode"),e.wxRenderer=new h({theme:j(e.currentColor),fonts:e.currentFont,size:e.currentSize,status:e.citeStatus})},initEditorEntity:function(e){var t=document.getElementById("editor");t.value||(t.value=localStorage.getItem("__editor_content")||L(v)),e.editor=C.a.fromTextArea(t,{mode:"text/x-markdown",theme:"xq-light",lineNumbers:!1,lineWrapping:!0,styleActiveLine:!0,autoCloseBrackets:!0,extraKeys:{"Ctrl-F":function(e){var t=L(e.getValue(0));localStorage.setItem("__editor_content",t),e.setValue(t)},"Ctrl-S":function(e){},"Ctrl-B":function(e){var t=e.getSelection();e.replaceSelection("**".concat(t,"**"))},"Ctrl-D":function(e){var t=e.getSelection();e.replaceSelection("~~".concat(t,"~~"))},"Ctrl-I":function(e){var t=e.getSelection();e.replaceSelection("*".concat(t,"*"))}}})},initCssEditorEntity:function(e){var t=document.getElementById("cssEditor");t.value||(t.value=localStorage.getItem("__css_content")||k),e.cssEditor=C.a.fromTextArea(t,{mode:"css",theme:"style-mirror",lineNumbers:!1,lineWrapping:!0,matchBrackets:!0,autofocus:!0,extraKeys:{"Ctrl-F":function(e){var t=B(e.getValue(0));localStorage.setItem("__css_content",t),e.setValue(t)},"Ctrl-S":function(e){}}})},editorRefresh:function(e){var t=p()(e.editor.getValue(0),{renderer:e.wxRenderer.getRenderer(e.citeStatus)});t=t.replace(/(style=".*?)"/,'$1;margin-top: 0"'),e.citeStatus&&(t+=e.wxRenderer.buildFootnotes(),t+=e.wxRenderer.buildAddition()),e.output=t},clearEditorToDefault:function(e){var t=L(v);e.editor.setValue(t),e.cssEditor.setValue(k)}},J=new d["a"].Store({state:V,mutations:Q,actions:{}}),Y=o("5c96"),Z=o.n(Y);o("0fae");n["default"].component(Y["Message"].name,Y["Message"]),n["default"].prototype.$loading=Y["Loading"].service,n["default"].prototype.$message=Y["Message"];o("a7be"),o("8d7e"),o("7b00"),o("959b"),o("10b2"),o("8c33"),o("31c5"),o("9b74"),o("111b");var X=o("8c4f"),ee=function(){var e=this,t=e.$createElement,o=e._self._c||t;return e.loading?o("transition",{attrs:{name:"fade"}},[o("loading")],1):o("codemirror-editor")},te=[],oe=o("3a5e"),re=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"container",class:{container_night:e.nightMode}},[o("el-container",[o("el-header",{staticClass:"editor__header"},[o("editor-header",{ref:"header",on:{refresh:e.onEditorRefresh,cssChanged:e.cssChanged,download:e.downloadEditorContent,export:e.exportEditorContent,showCssEditor:function(t){e.showCssEditor=!e.showCssEditor},"show-about-dialog":function(t){e.aboutDialogVisible=!0},"show-dialog-form":function(t){e.dialogFormVisible=!0},"show-dialog-upload-img":function(t){e.dialogUploadImgVisible=!0},startCopy:function(t){e.isCoping=!0,e.backLight=!0},endCopy:e.endCopy}})],1),o("el-main",{staticClass:"main-body"},[o("el-row",{staticClass:"main-section"},[o("el-col",{staticClass:"codeMirror-wrapper",attrs:{span:12},nativeOn:{contextmenu:function(t){return t.preventDefault(),e.openMenu(t)}}},[o("textarea",{directives:[{name:"model",rawName:"v-model",value:e.source,expression:"source"}],attrs:{id:"editor",type:"textarea",placeholder:"Your markdown text here."},domProps:{value:e.source},on:{input:function(t){t.target.composing||(e.source=t.target.value)}}})]),o("el-col",{ref:"preview",staticClass:"preview-wrapper",class:{"preview-wrapper_night":e.nightMode&&e.isCoping},attrs:{span:12,id:"preview"}},[o("section",{class:{output_night:e.nightMode&&!e.backLight},attrs:{id:"output-wrapper"}},[o("div",{staticClass:"preview"},[o("section",{attrs:{id:"output"},domProps:{innerHTML:e._s(e.output)}}),e.nightMode&&e.isCoping?o("div",{staticClass:"loading-mask"},[o("div",{staticClass:"loading__img"}),o("span",[e._v("正在生成")])]):e._e()])])]),o("transition",{attrs:{name:"custom-classes-transition","enter-active-class":"bounceInRight"}},[o("el-col",{directives:[{name:"show",rawName:"v-show",value:e.showCssEditor,expression:"showCssEditor"}],staticClass:"cssEditor-wrapper",attrs:{id:"cssBox",span:12}},[o("textarea",{attrs:{id:"cssEditor",type:"textarea",placeholder:"Your custom css here."}})])],1)],1)],1)],1),o("upload-img-dialog",{on:{close:function(t){e.dialogUploadImgVisible=!1},beforeUpload:e.beforeUpload,uploadImage:e.uploadImage,uploaded:e.uploaded},model:{value:e.dialogUploadImgVisible,callback:function(t){e.dialogUploadImgVisible=t},expression:"dialogUploadImgVisible"}}),o("about-dialog",{model:{value:e.aboutDialogVisible,callback:function(t){e.aboutDialogVisible=t},expression:"aboutDialogVisible"}}),o("insert-form-dialog",{model:{value:e.dialogFormVisible,callback:function(t){e.dialogFormVisible=t},expression:"dialogFormVisible"}}),o("right-click-menu",{attrs:{left:e.mouseLeft,top:e.mouseTop},on:{menuTick:e.onMenuEvent,closeMenu:e.closeRightClickMenu},model:{value:e.rightClickMenuVisible,callback:function(t){e.rightClickMenuVisible=t},expression:"rightClickMenuVisible"}})],1)},ne=[],ie=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-container",{staticClass:"top is-dark"},[o("div",{staticClass:"left-side"},[o("el-tooltip",{attrs:{effect:e.effect,content:"上传图片",placement:"bottom-start"}},[o("i",{staticClass:"el-icon-upload",attrs:{size:"medium"},on:{click:function(t){return e.$emit("show-dialog-upload-img")}}})]),o("el-tooltip",{staticClass:"header__item",attrs:{effect:e.effect,content:"导出 Markdown 文档",placement:"bottom-start"}},[o("i",{staticClass:"el-icon-download",attrs:{size:"medium"},on:{click:function(t){return e.$emit("download")}}})]),o("el-tooltip",{staticClass:"header__item",attrs:{effect:e.effect,content:"导出 HTML 页面",placement:"bottom-start"}},[o("i",{staticClass:"el-icon-document",attrs:{size:"medium"},on:{click:function(t){return e.$emit("export")}}})]),o("el-tooltip",{staticClass:"header__item",attrs:{effect:e.effect,content:"重置页面",placement:"bottom-start"}},[o("i",{staticClass:"el-icon-refresh",attrs:{size:"medium"},on:{click:function(t){e.showResetConfirm=!0}}})]),o("el-tooltip",{staticClass:"header__item header__item_last",attrs:{effect:e.effect,content:"插入表格",placement:"bottom-start"}},[o("i",{staticClass:"el-icon-s-grid",attrs:{size:"medium"},on:{click:function(t){return e.$emit("show-dialog-form")}}})]),o("el-select",{attrs:{size:"mini",placeholder:"选择字体",clearable:""},on:{change:e.fontChanged},model:{value:e.selectFont,callback:function(t){e.selectFont=t},expression:"selectFont"}},e._l(e.config.builtinFonts,(function(t){return o("el-option",{key:t.value,style:{fontFamily:t.value},attrs:{label:t.label,value:t.value}},[o("span",{staticClass:"select-item-left"},[e._v(e._s(t.label))]),o("span",{staticClass:"select-item-right"},[e._v("Abc")])])})),1),o("el-select",{attrs:{size:"mini",placeholder:"选择段落字号",clearable:""},on:{change:e.sizeChanged},model:{value:e.selectSize,callback:function(t){e.selectSize=t},expression:"selectSize"}},e._l(e.config.sizeOption,(function(t){return o("el-option",{key:t.value,attrs:{label:t.label,value:t.value}},[o("span",{staticClass:"select-item-left"},[e._v(e._s(t.label))]),o("span",{staticClass:"select-item-right"},[e._v(e._s(t.desc))])])})),1),o("el-select",{attrs:{size:"mini",placeholder:"选择颜色",clearable:""},on:{change:e.colorChanged},model:{value:e.selectColor,callback:function(t){e.selectColor=t},expression:"selectColor"}},e._l(e.config.colorOption,(function(t){return o("el-option",{key:t.value,attrs:{label:t.label,value:t.value}},[o("span",{staticClass:"select-item-left"},[e._v(e._s(t.label))]),o("span",{staticClass:"select-item-right"},[e._v(e._s(t.desc))])])})),1),o("el-tooltip",{attrs:{content:"自定义颜色",effect:e.effect,placement:"top"}},[o("el-color-picker",{attrs:{size:"mini","show-alpha":""},on:{change:e.colorChanged},model:{value:e.selectColor,callback:function(t){e.selectColor=t},expression:"selectColor"}})],1),o("el-tooltip",{attrs:{content:"微信外链自动转为文末引用",effect:e.effect,placement:"top"}},[o("el-switch",{staticClass:"header__switch",attrs:{"active-color":"#67c23a","inactive-color":"#dcdfe6"},on:{change:e.statusChanged},model:{value:e.citeStatus,callback:function(t){e.citeStatus=t},expression:"citeStatus"}})],1)],1),o("div",{staticClass:"right-side"},[o("el-tooltip",{staticClass:"item",attrs:{effect:e.effect,content:"自定义CSS样式",placement:"left"}},[o("el-button",{attrs:{type:e.btnType,plain:"",size:"medium",icon:"el-icon-setting"},on:{click:e.customStyle}})],1),o("el-button",{attrs:{type:e.btnType,plain:"",size:"medium",placement:"bottom-start"},on:{click:e.copy}},[e._v("复制")]),o("el-button",{staticClass:"about",attrs:{type:e.btnType,plain:"",size:"medium"},on:{click:function(t){return e.$emit("show-about-dialog")}}},[e._v("关于")]),o("el-tooltip",{attrs:{content:e.btnContent,effect:e.effect,placement:"bottom-start"}},[e.nightMode?o("div",{staticClass:"mode__switch mode__switch_black",on:{click:e.themeChanged}}):o("div",{staticClass:"mode__switch",on:{click:e.themeChanged}})])],1),o("resetDialog",{attrs:{showResetConfirm:e.showResetConfirm},on:{confirm:e.confirmReset,close:e.cancelReset}})],1)},ae=[],se=o("1da1"),ce=(o("96cf"),o("466b")),le=o.n(ce);function ue(){for(var e=document.getElementById("output"),t=e.getElementsByTagName("img"),o=0;o安全设置->私人令牌」中生成")])],1),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:e.saveGiteeConfiguration}},[e._v("保存配置")])],1)],1)],1),o("el-tab-pane",{staticClass:"github-panel",attrs:{label:"GitHub 图床",name:"github"}},[o("el-form",{staticClass:"setting-form",attrs:{model:e.formGitHub,"label-position":"right","label-width":"140px"}},[o("el-form-item",{attrs:{label:"GitHub 仓库",required:!0}},[o("el-input",{attrs:{placeholder:"如:github.com/yanglbme/resource"},model:{value:e.formGitHub.repo,callback:function(t){e.$set(e.formGitHub,"repo","string"===typeof t?t.trim():t)},expression:"formGitHub.repo"}})],1),o("el-form-item",{attrs:{label:"分支"}},[o("el-input",{attrs:{placeholder:"如:release,可不填,默认 master"},model:{value:e.formGitHub.branch,callback:function(t){e.$set(e.formGitHub,"branch","string"===typeof t?t.trim():t)},expression:"formGitHub.branch"}})],1),o("el-form-item",{attrs:{label:"Token",required:!0}},[o("el-input",{attrs:{"show-password":"",placeholder:"如:cc1d0c1426d0fd0902bd2d7184b14da61b8abc46"},model:{value:e.formGitHub.accessToken,callback:function(t){e.$set(e.formGitHub,"accessToken","string"===typeof t?t.trim():t)},expression:"formGitHub.accessToken"}}),o("el-link",{attrs:{type:"primary",href:"https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token",target:"_blank"}},[e._v("如何获取 GitHub Token?")])],1),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:e.saveGitHubConfiguration}},[e._v("保存配置")])],1)],1)],1),o("el-tab-pane",{staticClass:"github-panel",attrs:{label:"阿里云 OSS",name:"aliOSS"}},[o("el-form",{staticClass:"setting-form",attrs:{model:e.formAliOSS,"label-position":"right","label-width":"140px"}},[o("el-form-item",{attrs:{label:"AccessKey ID",required:!0}},[o("el-input",{attrs:{placeholder:"如:LTAI4GdoocsmdoxUf13ylbaNHk"},model:{value:e.formAliOSS.accessKeyId,callback:function(t){e.$set(e.formAliOSS,"accessKeyId","string"===typeof t?t.trim():t)},expression:"formAliOSS.accessKeyId"}})],1),o("el-form-item",{attrs:{label:"AccessKey Secret",required:!0}},[o("el-input",{attrs:{"show-password":"",placeholder:"如:cc1d0c142doocs0902bd2d7md4b14da6ylbabc46"},model:{value:e.formAliOSS.accessKeySecret,callback:function(t){e.$set(e.formAliOSS,"accessKeySecret","string"===typeof t?t.trim():t)},expression:"formAliOSS.accessKeySecret"}})],1),o("el-form-item",{attrs:{label:"Bucket",required:!0}},[o("el-input",{attrs:{placeholder:"如:doocs"},model:{value:e.formAliOSS.bucket,callback:function(t){e.$set(e.formAliOSS,"bucket","string"===typeof t?t.trim():t)},expression:"formAliOSS.bucket"}})],1),o("el-form-item",{attrs:{label:"Bucket 所在区域",required:!0}},[o("el-input",{attrs:{placeholder:"如:oss-cn-shenzhen"},model:{value:e.formAliOSS.region,callback:function(t){e.$set(e.formAliOSS,"region","string"===typeof t?t.trim():t)},expression:"formAliOSS.region"}})],1),o("el-form-item",{attrs:{label:"自定义 CDN 域名",required:!1}},[o("el-input",{attrs:{placeholder:"如:https://imagecdn.alidaodao.com,可不填"},model:{value:e.formAliOSS.cdnHost,callback:function(t){e.$set(e.formAliOSS,"cdnHost","string"===typeof t?t.trim():t)},expression:"formAliOSS.cdnHost"}})],1),o("el-form-item",{attrs:{label:"存储路径"}},[o("el-input",{attrs:{placeholder:"如:img,可不填,默认为根目录"},model:{value:e.formAliOSS.path,callback:function(t){e.$set(e.formAliOSS,"path","string"===typeof t?t.trim():t)},expression:"formAliOSS.path"}}),o("el-link",{attrs:{type:"primary",href:"https://help.aliyun.com/document_detail/31883.html",target:"_blank"}},[e._v("如何使用阿里云 OSS?")])],1),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:e.saveAliOSSConfiguration}},[e._v("保存配置")])],1)],1)],1),o("el-tab-pane",{staticClass:"github-panel",attrs:{label:"腾讯云 COS",name:"txCOS"}},[o("el-form",{staticClass:"setting-form",attrs:{model:e.formTxCOS,"label-position":"right","label-width":"140px"}},[o("el-form-item",{attrs:{label:"SecretId",required:!0}},[o("el-input",{attrs:{placeholder:"如:AKIDnQp1w3DOOCSs8F5MDp9tdoocsmdUPonW3"},model:{value:e.formTxCOS.secretId,callback:function(t){e.$set(e.formTxCOS,"secretId","string"===typeof t?t.trim():t)},expression:"formTxCOS.secretId"}})],1),o("el-form-item",{attrs:{label:"SecretKey",required:!0}},[o("el-input",{attrs:{"show-password":"",placeholder:"如:ukLmdtEJ9271f3DOocsMDsCXdS3YlbW0"},model:{value:e.formTxCOS.secretKey,callback:function(t){e.$set(e.formTxCOS,"secretKey","string"===typeof t?t.trim():t)},expression:"formTxCOS.secretKey"}})],1),o("el-form-item",{attrs:{label:"Bucket",required:!0}},[o("el-input",{attrs:{placeholder:"如:doocs-3212520134"},model:{value:e.formTxCOS.bucket,callback:function(t){e.$set(e.formTxCOS,"bucket","string"===typeof t?t.trim():t)},expression:"formTxCOS.bucket"}})],1),o("el-form-item",{attrs:{label:"Bucket 所在区域",required:!0}},[o("el-input",{attrs:{placeholder:"如:ap-guangzhou"},model:{value:e.formTxCOS.region,callback:function(t){e.$set(e.formTxCOS,"region","string"===typeof t?t.trim():t)},expression:"formTxCOS.region"}})],1),o("el-form-item",{attrs:{label:"自定义 CDN 域名",required:!1}},[o("el-input",{attrs:{placeholder:"如:https://imagecdn.alidaodao.com,可不填"},model:{value:e.formTxCOS.cdnHost,callback:function(t){e.$set(e.formTxCOS,"cdnHost","string"===typeof t?t.trim():t)},expression:"formTxCOS.cdnHost"}})],1),o("el-form-item",{attrs:{label:"存储路径"}},[o("el-input",{attrs:{placeholder:"如:img,可不填,默认根目录"},model:{value:e.formTxCOS.path,callback:function(t){e.$set(e.formTxCOS,"path","string"===typeof t?t.trim():t)},expression:"formTxCOS.path"}}),o("el-link",{attrs:{type:"primary",href:"https://cloud.tencent.com/document/product/436/38484",target:"_blank"}},[e._v("如何使用腾讯云 COS?")])],1),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:e.saveTxCOSConfiguration}},[e._v("保存配置")])],1)],1)],1),o("el-tab-pane",{staticClass:"github-panel",attrs:{label:"七牛云 Kodo",name:"qiniu"}},[o("el-form",{staticClass:"setting-form",attrs:{model:e.formQiniu,"label-position":"right","label-width":"140px"}},[o("el-form-item",{attrs:{label:"AccessKey",required:!0}},[o("el-input",{attrs:{placeholder:"如:6DD3VaLJ_SQgOdoocsyTV_YWaDmdnL2n8EGx7kG"},model:{value:e.formQiniu.accessKey,callback:function(t){e.$set(e.formQiniu,"accessKey","string"===typeof t?t.trim():t)},expression:"formQiniu.accessKey"}})],1),o("el-form-item",{attrs:{label:"SecretKey",required:!0}},[o("el-input",{attrs:{"show-password":"",placeholder:"如:qgZa5qrvDOOcsmdKStD1oCjZ9nB7MDvJUs_34SIm"},model:{value:e.formQiniu.secretKey,callback:function(t){e.$set(e.formQiniu,"secretKey","string"===typeof t?t.trim():t)},expression:"formQiniu.secretKey"}})],1),o("el-form-item",{attrs:{label:"Bucket",required:!0}},[o("el-input",{attrs:{placeholder:"如:md"},model:{value:e.formQiniu.bucket,callback:function(t){e.$set(e.formQiniu,"bucket","string"===typeof t?t.trim():t)},expression:"formQiniu.bucket"}})],1),o("el-form-item",{attrs:{label:"Bucket 对应域名",required:!0}},[o("el-input",{attrs:{placeholder:"如:https://images.123ylb.cn"},model:{value:e.formQiniu.domain,callback:function(t){e.$set(e.formQiniu,"domain","string"===typeof t?t.trim():t)},expression:"formQiniu.domain"}})],1),o("el-form-item",{attrs:{label:"存储区域",required:!0}},[o("el-input",{attrs:{placeholder:"如:z2"},model:{value:e.formQiniu.region,callback:function(t){e.$set(e.formQiniu,"region","string"===typeof t?t.trim():t)},expression:"formQiniu.region"}})],1),o("el-form-item",{attrs:{label:"存储路径",required:!1}},[o("el-input",{attrs:{placeholder:"如:img,可不填,默认为根目录"},model:{value:e.formQiniu.path,callback:function(t){e.$set(e.formQiniu,"path","string"===typeof t?t.trim():t)},expression:"formQiniu.path"}}),o("el-link",{attrs:{type:"primary",href:"https://developer.qiniu.com/kodo",target:"_blank"}},[e._v("如何使用七牛云 Kodo?")])],1),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:e.saveQiniuConfiguration}},[e._v("保存配置")])],1)],1)],1),o("el-tab-pane",{staticClass:"github-panel formCustom",attrs:{label:"自定义代码",name:"formCustom"}},[o("el-form",{staticClass:"setting-form",attrs:{model:e.formCustom,"label-position":"right"}},[o("el-form-item",{attrs:{label:"",required:!0}},[o("el-input",{ref:"formCustomElInput",staticClass:"formCustomElInput",attrs:{type:"textarea",resize:"none",placeholder:"Your custom code here."},model:{value:e.formCustom.code,callback:function(t){e.$set(e.formCustom,"code",t)},expression:"formCustom.code"}}),o("el-link",{attrs:{type:"primary",href:"https://github.com/doocs/md#自定义上传逻辑",target:"_blank"}},[e._v("参数详情?")])],1),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:e.formCustomSave}},[e._v("保存配置")])],1)],1)],1)],1)],1)},qe=[],Ge={props:{value:{type:Boolean,default:!1}},data:function(){return{activeName:"upload",formGitHub:{repo:"",branch:"",accessToken:""},formGitee:{repo:"",branch:"",accessToken:""},formAliOSS:{accessKeyId:"",accessKeySecret:"",bucket:"",region:"",path:"",cdnHost:""},formTxCOS:{secretId:"",secretKey:"",bucket:"",region:"",path:"",cdnHost:""},formQiniu:{accessKey:"",secretKey:"",bucket:"",domain:"",region:""},formCustom:{code:localStorage.getItem("formCustomConfig")||N("\n const {file, util, okCb, errCb} = CUSTOM_ARG\n const param = new FormData()\n param.append('file', file)\n util.axios.post('http://127.0.0.1:9000/upload', param, {\n headers: { 'Content-Type': 'multipart/form-data' }\n }).then(res => {\n okCb(res.url)\n }).catch(err => {\n errCb(err)\n })\n ").trim(),editor:void 0},options:[{value:"default",label:"默认"},{value:"gitee",label:"Gitee"},{value:"github",label:"GitHub"},{value:"aliOSS",label:"阿里云"},{value:"txCOS",label:"腾讯云"},{value:"qiniu",label:"七牛云"},{value:"formCustom",label:"自定义代码"}],imgHost:"default"}},created:function(){localStorage.getItem("githubConfig")&&(this.formGitHub=JSON.parse(localStorage.getItem("githubConfig"))),localStorage.getItem("giteeConfig")&&(this.formGitee=JSON.parse(localStorage.getItem("giteeConfig"))),localStorage.getItem("aliOSSConfig")&&(this.formAliOSS=JSON.parse(localStorage.getItem("aliOSSConfig"))),localStorage.getItem("txCOSConfig")&&(this.formTxCOS=JSON.parse(localStorage.getItem("txCOSConfig"))),localStorage.getItem("imgHost")&&(this.imgHost=localStorage.getItem("imgHost"))},methods:{changeImgHost:function(){localStorage.setItem("imgHost",this.imgHost),this.$message.success("已成功切换图床")},saveGitHubConfiguration:function(){if(this.formGitHub.repo&&this.formGitHub.accessToken)localStorage.setItem("githubConfig",JSON.stringify(this.formGitHub)),this.$message.success("保存成功");else{var e=this.formGitHub.repo?"token":"GitHub 仓库";this.$message.error("参数「​".concat(e,"」不能为空"))}},saveGiteeConfiguration:function(){if(this.formGitee.repo&&this.formGitee.accessToken)localStorage.setItem("giteeConfig",JSON.stringify(this.formGitee)),this.$message.success("保存成功");else{var e=this.formGitee.repo?"私人令牌":"Gitee 仓库";this.$message.error("参数「​".concat(e,"」不能为空"))}},saveAliOSSConfiguration:function(){this.formAliOSS.accessKeyId&&this.formAliOSS.accessKeySecret&&this.formAliOSS.bucket&&this.formAliOSS.region?(localStorage.setItem("aliOSSConfig",JSON.stringify(this.formAliOSS)),this.$message.success("保存成功")):this.$message.error("阿里云 OSS 参数配置不全")},saveTxCOSConfiguration:function(){this.formTxCOS.secretId&&this.formTxCOS.secretKey&&this.formTxCOS.bucket&&this.formTxCOS.region?(localStorage.setItem("txCOSConfig",JSON.stringify(this.formTxCOS)),this.$message.success("保存成功")):this.$message.error("腾讯云 COS 参数配置不全")},saveQiniuConfiguration:function(){this.formQiniu.accessKey&&this.formQiniu.secretKey&&this.formQiniu.bucket&&this.formQiniu.domain&&this.formQiniu.region?(localStorage.setItem("qiniuConfig",JSON.stringify(this.formQiniu)),this.$message.success("保存成功")):this.$message.error("七牛云 Kodo 参数配置不全")},formCustomSave:function(){var e=this.formCustom.editor.getValue();localStorage.setItem("formCustomConfig",e),this.$message.success("保存成功")},beforeImageUpload:function(e){var t=H(e);if(!t.ok)return this.$message.error(t.msg),!1;var o=localStorage.getItem("imgHost");o=o||"default",localStorage.setItem("imgHost",o);var r=localStorage.getItem("".concat(o,"Config")),n="default"==o||r;return!!n||(this.$message.error("请先配置 ".concat(o," 图床参数")),!1)},uploadImage:function(e){this.$emit("uploadImage",e.file)}},watch:{activeName:{immediate:!0,handler:function(e){var t=this;"formCustom"===e&&this.$nextTick((function(){var e=t.$refs.formCustomElInput.$el.querySelector("textarea");t.formCustom.editor=t.formCustom.editor||C.a.fromTextArea(e,{mode:"javascript"}),t.formCustom.editor.setValue(t.formCustom.code)}))}}},mounted:function(){}},We=Ge,Fe=(o("aaca"),Object(s["a"])(We,$e,qe,!1,null,"6b7f927f",null)),He=Fe.exports,ze=o("3f5e");o("f9d4");var Ne={data:function(){return{showCssEditor:!1,aboutDialogVisible:!1,dialogUploadImgVisible:!1,dialogFormVisible:!1,isCoping:!1,isImgLoading:!1,backLight:!1,timeout:null,changeTimer:null,source:"",mouseLeft:0,mouseTop:0}},components:{editorHeader:ke,aboutDialog:xe,insertFormDialog:je,rightClickMenu:Be,uploadImgDialog:He},computed:Object(r["a"])({},Object(d["c"])({wxRenderer:function(e){return e.wxRenderer},output:function(e){return e.output},editor:function(e){return e.editor},cssEditor:function(e){return e.cssEditor},currentSize:function(e){return e.currentSize},currentColor:function(e){return e.currentColor},nightMode:function(e){return e.nightMode},rightClickMenuVisible:function(e){return e.rightClickMenuVisible}})),created:function(){var e=this;this.initEditorState(),this.$nextTick((function(){e.initEditor(),e.initCssEditor(),e.onEditorRefresh()}))},methods:Object(r["a"])({initEditor:function(){var e=this;this.initEditorEntity(),this.editor.on("change",(function(t,o){e.changeTimer&&clearTimeout(e.changeTimer),e.changeTimer=setTimeout((function(){e.onEditorRefresh(),K(e.editor,"__editor_content")}),300)})),this.editor.on("paste",(function(t,o){if(o.clipboardData&&o.clipboardData.items&&!e.isImgLoading)for(var r=0,n=o.clipboardData.items.length;r=65&&t.keyCode<=90||189===t.keyCode)&&e.showHint(t)})),this.cssEditor.on("update",(function(t){e.cssChanged(),K(e.cssEditor,"__css_content")}))},cssChanged:function(){var e=U(this.cssEditor.getValue(0)),t=A(this.currentSize.replace("px",""));t=R(e,this.currentColor,t),this.setWxRendererOptions({theme:t}),this.onEditorRefresh()},beforeUpload:function(e){var t=H(e);if(!t.ok)return this.$message.error(t.msg),!1;var o=localStorage.getItem("imgHost");o=o||"default",localStorage.setItem("imgHost",o);var r=localStorage.getItem("".concat(o,"Config")),n="default"==o||r;return!!n||(this.$message.error("请先配置 ".concat(o," 图床参数")),!1)},uploadImage:function(e){var t=this;this.isImgLoading=!0,F(e).then((function(o){ze["a"].fileUpload(o,e).then((function(e){t.uploaded(e)})).catch((function(e){t.$message.error(e.message)}))})).catch((function(e){t.$message.error(e.message)})),this.isImgLoading=!1},uploaded:function(e){if(e){this.dialogUploadImgVisible=!1;var t=this.editor.getCursor(),o=e,r="![](".concat(o,")");this.editor.replaceSelection("\n".concat(r,"\n"),t),this.$message.success("图片上传成功"),this.onEditorRefresh()}else this.$message.error("上传图片未知异常")},leftAndRightScroll:function(){var e=this,t=function(t){var n,i;clearTimeout(e.timeout),"preview"===t?(n=e.$refs.preview.$el,i=document.getElementsByClassName("CodeMirror-scroll")[0],e.editor.off("scroll",o),e.timeout=setTimeout((function(){e.editor.on("scroll",o)}),300)):"editor"===t&&(n=document.getElementsByClassName("CodeMirror-scroll")[0],i=e.$refs.preview.$el,i.removeEventListener("scroll",r,!1),e.timeout=setTimeout((function(){i.addEventListener("scroll",r,!1)}),300));var a=n.scrollTop/(n.scrollHeight-n.offsetHeight),s=a*(i.scrollHeight-i.offsetHeight);i.scrollTo(0,s)},o=function(){t("editor")},r=function(){t("preview")};this.$refs.preview.$el.addEventListener("scroll",r,!1),this.editor.on("scroll",o)},onEditorRefresh:function(){this.editorRefresh(),setTimeout((function(){return PR.prettyPrint()}),0)},endCopy:function(){var e=this;this.backLight=!1,setTimeout((function(){e.isCoping=!1}),800)},downloadEditorContent:function(){q(this.editor.getValue(0))},exportEditorContent:function(){this.$nextTick((function(){G()}))},importMarkdownContent:function(){var e=this,t=document.getElementById("menu"),o=document.createElement("input");o.type="file",o.name="filename",o.accept=".txt,.md",t.appendChild(o),o.onchange=function(){if(o.files){var t=o.files[0];if(/\.(txt|TXT|MD|md)$/.test(t.name)){var r=new FileReader;r.readAsText(t),r.onload=function(t){var o=t.target.result;o=L(o),o&&(localStorage.setItem("__editor_content",o),e.editor.setValue(o),e.$message.success("文档导入成功"))}}else e.$message.error("不支持的文档格式")}},o.click(),t.removeChild(o)},formatContent:function(){var e=L(this.editor.getValue(0));localStorage.setItem("__editor_content",e),this.editor.setValue(e)},openMenu:function(e){var t=105,o=this.$el.getBoundingClientRect().left,r=this.$el.offsetWidth,n=r-t,i=e.clientX-o;this.mouseLeft=Math.min(n,i),this.mouseTop=e.clientY+10,this.$store.commit("setRightClickMenuVisible",!0)},closeRightClickMenu:function(){this.$store.commit("setRightClickMenuVisible",!1)},onMenuEvent:function(e){switch(e){case"pageReset":this.$refs.header.showResetConfirm=!0;break;case"insertPic":this.dialogUploadImgVisible=!0;break;case"download":this.downloadEditorContent();break;case"export":this.exportEditorContent();break;case"insertTable":this.dialogFormVisible=!0;break;case"importMarkdown":this.importMarkdownContent();break;case"formatMarkdown":this.formatContent();break;default:break}}},Object(d["b"])(["initEditorState","initEditorEntity","setWxRendererOptions","editorRefresh","initCssEditorEntity"])),mounted:function(){var e=this;setTimeout((function(){e.leftAndRightScroll(),PR.prettyPrint()}),300)}},Ve=Ne,Qe=(o("9332"),o("792d"),o("a903"),Object(s["a"])(Ve,re,ne,!1,null,"7acf9643",null)),Je=Qe.exports,Ye={name:"App",components:{Loading:oe["default"],CodemirrorEditor:Je},data:function(){return{loading:!0}},mounted:function(){var e=this;setTimeout((function(){e.loading=!1}),100)}},Ze=Ye,Xe=(o("537d"),Object(s["a"])(Ze,ee,te,!1,null,"8e90ad4c",null)),et=Xe.exports;n["default"].use(X["a"]);var tt=[{path:"/",name:"index",component:et}],ot=new X["a"]({mode:"history",base:"/md/",routes:tt}),rt=ot;n["default"].use(Z.a),n["default"].config.productionTip=!1,u.mpType="app";var nt=new n["default"](Object(r["a"])({router:rt,store:J},u));nt.$mount("#app")},"64e1":function(e,t,o){"use strict";o("7321")},7321:function(e,t,o){},"792d":function(e,t,o){"use strict";o("08bb")},"7c55":function(e,t,o){"use strict";o("2395")},"7d39":function(e,t,o){},"856c":function(e,t,o){"use strict";o("bb13")},"8c0a":function(e,t,o){},9332:function(e,t,o){"use strict";o("fd0a")},"94fb":function(e,t,o){"use strict";o("3ea0")},"991e":function(e,t,o){},"9ae8":function(e,t,o){},a903:function(e,t,o){"use strict";o("7d39")},aaca:function(e,t,o){"use strict";o("9ae8")},aae9:function(e,t,o){"use strict";o.d(t,"a",(function(){return r})),o.d(t,"b",(function(){return n}));var r=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},n=[function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"loading",attrs:{id:"loading"}},[o("div",{staticClass:"loading-wrapper"},[o("div",{staticClass:"loading-anim"}),o("div",{staticClass:"loading-text"},[e._v("致力于让 Markdown 编辑更简单")])])])}]},b2fc:function(e,t,o){"use strict";o("f574")},b43f:function(e,t,o){},bb13:function(e,t,o){},c081:function(e,t,o){"use strict";o("4549")},cb57:function(e,t,o){"use strict";var r=o("eff7"),n=o.n(r);t["default"]=n.a},da71:function(e,t,o){"use strict";o.d(t,"b",(function(){return r})),o.d(t,"a",(function(){return n}));o("a630"),o("3ca3");var r={username:"filess",repoList:Array.from([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],(function(e){return"img".concat(e)})),branch:"main",accessTokenList:["7715d7ca67b5d3837cfdoocsmde8c38421815aa423510af","c411415bf95dbe39625doocsmd5047ba9b7a2a6c9642abe","2821cd8819fa345c053doocsmdca86ac653f8bc20db1f1b","445f0dae46ef1f2a4d6doocsmdc797301e94797b4750a4c","cc1d0c1426d0fd0902bdoocsmdd2d7184b14da61b86ec46","b67e9d15cb6f910492fdoocsmdac6b44d379c953bb19eff","618c4dc2244ccbbc088doocsmd125d17fd31b7d06a50cf3","a4b581732e1c1507458doocsmdc5b223b27dae5e2e16a55","77904db41aee57ad79bdoocsmd760f848201dac9c96fd5e","02f251cb14ac62ab100doocsmdddbfc8527d773f1f04ce1","eb321079a95ba7028d9doocsmde2e84c502dac70de7cf08","22f74fcfb071a961fa2doocsmde28dabc746f0503a15e5d","85124c2bfe7abba0938doocsmd0af7f67918b99d085a5fd","0a561b4d4bbecb2de7edoocsmdd9ba3833d11dbc5e430f5","e8a01491188d8d5a097doocsmd03ede0aad1fe9e3af24e9","36e1f420d7e5bdebd67doocsmd65463562f5f25b20b8377"]},n={username:"filesss",repoList:Array.from([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],(function(e){return"img".concat(e)})),branch:"main",accessTokenList:["ed5fc9866bd6c2fdoocsmddd433f806fd2f399c","5448ffebbbf1151doocsmdc4e337cf814fc8a62","25b05efd2557ca2doocsmd75b5c0835e3395911","11628c7a5aef015doocsmd2eeff9fb9566f0458","cb2f5145ed938dedoocsmdbd063b4ed244eecf8","d8c0b57500672c1doocsmd55f48b866b5ebcd98","78c56eadb88e453doocsmd43ddd95753351771a","03e1a688003948fdoocsmda16fcf41e6f03f1f0","c49121cf4d191fbdoocsmdd6a7877ed537e474a","adfeb2fadcdc4aadoocsmdfe1ee869ac9c968ff","116c94549ca4a0ddoocsmd192653af5c0694616","ecf30ed7f2eb184doocsmd51ea4ec8300371d9e","5837cf2bd5afd93doocsmd73904bed31934949e","b5b7e1c7d57e01fdoocsmd5266f552574297d78","684d55564ffbd0bdoocsmd7d747e5cc23aed6d6","3fc04a9d272ab71doocsmd010c56cb57d88d2ba"]}},e1d2:function(e,t,o){"use strict";o("ac1f"),o("00b4"),o("d3b7");var r=o("bc3a"),n=o.n(r),i=n.a.create({baseURL:"",timeout:1e4});i.interceptors.request.use((function(e){return/^(post)|(put)|(delete)$/i.test(e.method)&&e.data&&e.data.upload&&(e.headers["Content-Type"]="multipart/form-data"),e}),(function(e){Promise.reject(e)})),i.interceptors.response.use((function(e){return e.data?e.data:Promise.reject(e)}),(function(e){return Promise.reject(e)})),t["a"]=i},eff7:function(e,t){},f574:function(e,t,o){},fd0a:function(e,t,o){}}); -//# sourceMappingURL=app.1c3e923e.js.map \ No newline at end of file diff --git a/js/app.1c3e923e.js.map b/js/app.1c3e923e.js.map deleted file mode 100644 index c62216e..0000000 --- a/js/app.1c3e923e.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/components/CodemirrorEditor/resetDialog.vue?94ef","webpack:///./src/components/Loading.vue?0913","webpack:///./src/components/Loading.vue?2551","webpack:///./src/api/file.js","webpack:///./src/assets/scripts/tokenTools.js","webpack:///./src/pages/index/index.vue?ee46","webpack:///./src/App.vue?e0f5","webpack:///./src/App.vue?3746","webpack:///./src/assets/scripts/config.js","webpack:///./src/assets/scripts/renderers/wx-renderer.js","webpack:///./src/assets/example/markdown.md","webpack:///./src/assets/example/theme-css.txt","webpack:///./src/assets/scripts/themes/default-theme.js","webpack:///./src/assets/scripts/util.js","webpack:///./src/store/index.js","webpack:///./src/plugins/element/index.js","webpack:///./src/pages/index/index.vue?208c","webpack:///./src/pages/index/view/CodemirrorEditor.vue?ea00","webpack:///./src/components/CodemirrorEditor/header.vue?951c","webpack:///./src/assets/scripts/converter.js","webpack:///./src/components/CodemirrorEditor/resetDialog.vue?efee","webpack:///src/components/CodemirrorEditor/resetDialog.vue","webpack:///./src/components/CodemirrorEditor/resetDialog.vue?0219","webpack:///./src/components/CodemirrorEditor/resetDialog.vue?6e21","webpack:///src/components/CodemirrorEditor/header.vue","webpack:///./src/components/CodemirrorEditor/header.vue?83e2","webpack:///./src/components/CodemirrorEditor/header.vue?6ddc","webpack:///./src/components/CodemirrorEditor/aboutDialog.vue?f8dc","webpack:///src/components/CodemirrorEditor/aboutDialog.vue","webpack:///./src/components/CodemirrorEditor/aboutDialog.vue?7264","webpack:///./src/components/CodemirrorEditor/aboutDialog.vue?7dab","webpack:///./src/components/CodemirrorEditor/insertForm.vue?f028","webpack:///src/components/CodemirrorEditor/insertForm.vue","webpack:///./src/components/CodemirrorEditor/insertForm.vue?e68a","webpack:///./src/components/CodemirrorEditor/insertForm.vue?c5f2","webpack:///./src/components/CodemirrorEditor/rightClickMenu.vue?4ddf","webpack:///src/components/CodemirrorEditor/rightClickMenu.vue","webpack:///./src/components/CodemirrorEditor/rightClickMenu.vue?2c4f","webpack:///./src/components/CodemirrorEditor/rightClickMenu.vue?5080","webpack:///./src/components/CodemirrorEditor/uploadImgDialog.vue?c267","webpack:///src/components/CodemirrorEditor/uploadImgDialog.vue","webpack:///./src/components/CodemirrorEditor/uploadImgDialog.vue?4a87","webpack:///./src/components/CodemirrorEditor/uploadImgDialog.vue?aaa9","webpack:///src/pages/index/view/CodemirrorEditor.vue","webpack:///./src/pages/index/view/CodemirrorEditor.vue?c7ca","webpack:///./src/pages/index/view/CodemirrorEditor.vue?2e04","webpack:///src/pages/index/index.vue","webpack:///./src/pages/index/index.vue?58f0","webpack:///./src/pages/index/index.vue","webpack:///./src/router/index.js","webpack:///./src/main.js","webpack:///./src/components/CodemirrorEditor/insertForm.vue?cc49","webpack:///./src/pages/index/view/CodemirrorEditor.vue?0d1b","webpack:///./src/App.vue?3c62","webpack:///./src/components/CodemirrorEditor/rightClickMenu.vue?ed2a","webpack:///./src/pages/index/view/CodemirrorEditor.vue?aa9a","webpack:///./src/App.vue?c018","webpack:///./src/pages/index/view/CodemirrorEditor.vue?3975","webpack:///./src/components/CodemirrorEditor/uploadImgDialog.vue?c6de","webpack:///./src/components/Loading.vue?d570","webpack:///./src/components/CodemirrorEditor/header.vue?f3ef","webpack:///./src/components/CodemirrorEditor/aboutDialog.vue?6534","webpack:///./src/components/Loading.vue?969b","webpack:///./src/api/config.js","webpack:///./src/api/fetch.js"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","window","oldJsonpFunction","slice","component","getConfig","useDefault","platform","config","githubConfig","giteeConfig","username","repoList","branch","accessTokenList","tokenIndex","Math","floor","random","accessToken","replace","repoIndex","repo","customConfig","JSON","parse","localStorage","getItem","repoUrl","split","getDir","date","Date","year","getFullYear","month","getMonth","toString","padStart","day","getDate","getDateFilename","filename","currentTimestamp","getTime","fileSuffix","uuidv4","ghFileUpload","content","dir","url","dateFilename","fetch","method","headers","Authorization","message","location","href","res","githubResourceUrl","cdnResourceUrl","download_url","giteeUpload","access_token","encodeURI","getQiniuToken","accessKey","secretKey","putPolicy","policy","stringify","encoded","base64encode","utf16to8","hash","CryptoJS","HmacSHA1","encodedSigned","enc","Base64","safe64","qiniuUpload","file","bucket","region","path","domain","token","scope","deadline","trunc","observable","qiniu","Promise","resolve","reject","subscribe","next","console","log","error","err","complete","aliOSSFileUpload","accessKeyId","accessKeySecret","cdnHost","buffer","Buffer","client","OSS","put","txCOSFileUpload","secretId","cos","COS","SecretId","SecretKey","putObject","Bucket","Region","Key","Body","Location","formCustomUpload","str","exportObj","util","axios","tokenTools","okCb","errCb","eval","catch","fileUpload","imgHost","setItem","out","len","charCodeAt","charAt","String","fromCharCode","utf8to16","char2","char3","base64EncodeChars","base64DecodeChars","Array","c1","c2","c3","base64decode","c4","base64","render","_vm","this","_h","$createElement","_c","_self","attrs","staticRenderFns","script","builtinFonts","label","sizeOption","desc","colorOption","codeThemeOption","form","rows","cols","WxRenderer","opts","ENV_STRETCH_IMAGE","footnotes","footnoteIndex","styleMapping","CODE_FONT_FAMILY","merge","base","extend","assign","buildTheme","themeTpl","mapping","BASE","fonts","size","ele","inline","style","base_block","block","getStyles","tokenName","addition","arr","dict","join","addFootnote","title","link","buildFootnotes","footnoteArray","map","x","buildAddition","setOptions","newOpts","hasFootnotes","getRenderer","status","theme","renderer","marked","Renderer","heading","text","level","paragraph","indexOf","blockquote","code","lang","codeLines","line","codeTheme","codespan","listitem","list","ordered","start","segments","image","subText","figureStyles","imgStyles","startsWith","ref","strong","em","table","header","body","tablecell","flags","hr","color","BASE_BLOCK","margin","h1","display","padding","h2","background","h3","h4","blockquote_p","overflow","border","width","image_org","ol","ul","figure","wx_link","thead","td","footnote","figcaption","setColorWithTemplate","template","custom_theme","setColorWithCustomTemplate","setFontSizeWithTemplate","fontSize","setColor","default_theme","setFontSize","customCssWithTemplate","jsonString","li","css2json","css","open","close","substring","json","lbracket","rbracket","toObject","array","ret","forEach","e","index","trim","declarations","filter","selectors","selector","keys","saveEditorContent","editor","getValue","removeItem","formatDoc","doc","prettier","format","parser","plugins","prettierMarkdown","formatCss","prettierCss","fixCodeWhiteSpace","preDomList","document","getElementsByClassName","pre","whiteSpace","downloadMD","downLink","createElement","download","blob","Blob","URL","createObjectURL","appendChild","click","removeChild","exportHTML","element","querySelector","setStyles","htmlStr","innerHTML","isSection","isPre","isCode","isSpan","setAttribute","getElementStyles","tagName","from","classList","includes","parentElement","children","child","createTable","currRow","rowIdx","toBase64","reader","FileReader","readAsDataURL","onload","pop","onerror","checkImage","isValidSuffix","test","ok","msg","maxSize","isLt5M","excludes","styles","getComputedStyle","entries","getPropertyValue","removeLeft","lines","minSpaceNum","item","match","sort","a","b","newStr","Vue","use","Vuex","state","wxRenderer","output","html","cssEditor","currentFont","currentSize","currentColor","citeStatus","nightMode","rightClickMenuVisible","mutations","setEditorValue","setValue","setCssEditorValue","setWxRendererOptions","setCiteStatus","setCurrentFont","setCurrentSize","setCurrentColor","setCurrentCodeTheme","setRightClickMenuVisible","themeChanged","initEditorState","initEditorEntity","editorDom","getElementById","DEFAULT_CONTENT","CodeMirror","fromTextArea","lineNumbers","lineWrapping","styleActiveLine","autoCloseBrackets","extraKeys","selected","getSelection","replaceSelection","initCssEditorEntity","cssEditorDom","DEFAULT_CSS_CONTENT","matchBrackets","autofocus","editorRefresh","clearEditorToDefault","Store","actions","Message","$loading","Loading","service","$message","staticClass","class","container_night","on","onEditorRefresh","cssChanged","downloadEditorContent","exportEditorContent","$event","showCssEditor","aboutDialogVisible","dialogFormVisible","dialogUploadImgVisible","isCoping","backLight","endCopy","nativeOn","preventDefault","openMenu","directives","rawName","expression","domProps","target","composing","source","output_night","_s","_v","_e","beforeUpload","uploadImage","uploaded","model","callback","$$v","mouseLeft","mouseTop","onMenuEvent","closeRightClickMenu","effect","$emit","showResetConfirm","fontChanged","selectFont","_l","font","fontFamily","sizeChanged","selectSize","colorChanged","selectColor","statusChanged","btnType","customStyle","copy","btnContent","confirmReset","cancelReset","solveWeChatImage","clipboardDiv","images","getElementsByTagName","getAttribute","height","removeAttribute","solveHtml","juice","inlineContent","inlinePseudoElements","preserveImportant","slot","props","type","Boolean","default","computed","selectCodeTheme","components","resetDialog","methods","codeThemeChanged","val","setTimeout","focus","removeAllRanges","range","setStartBefore","firstChild","setEndAfter","lastChild","addRange","execCommand","showClose","offset","duration","clear","mounted","staticStyle","onRedirect","rowNum","colNum","row","col","tableData","$set","insertTable","left","top","menuItem","onMouseDown","Number","menu","closeCB","activeName","changeImgHost","beforeImageUpload","formGitee","saveGiteeConfiguration","formGitHub","saveGitHubConfiguration","formAliOSS","saveAliOSSConfiguration","formTxCOS","saveTxCOSConfiguration","formQiniu","saveQiniuConfiguration","formCustom","formCustomSave","undefined","options","created","success","checkResult","isValidHost","params","watch","immediate","handler","$nextTick","isImgLoading","timeout","changeTimer","editorHeader","aboutDialog","insertFormDialog","rightClickMenu","uploadImgDialog","initEditor","clipboardData","items","kind","isValid","initCssEditor","cm","showHint","response","leftAndRightScroll","clearTimeout","removeEventListener","previewScrollCB","addEventListener","scrollTo","scrollCB","$refs","preview","$el","editorScrollCB","importMarkdownContent","input","accept","onchange","files","readAsText","txt","formatContent","min","maxLeft","clientY","$store","commit","PR","prettyPrint","CodemirrorEditor","loading","VueRouter","routes","router","process","ElementUI","productionTip","App","mpType","app","store","$mount","_m","baseURL","interceptors","request","upload"],"mappings":"aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,OAAQF,IACzBJ,EAAUC,EAASG,GAChBG,OAAOC,UAAUC,eAAeC,KAAKC,EAAiBX,IAAYW,EAAgBX,IACpFK,EAASO,KAAKD,EAAgBX,GAAS,IAExCW,EAAgBX,GAAW,EAE5B,IAAID,KAAYG,EACZK,OAAOC,UAAUC,eAAeC,KAAKR,EAAaH,KACpDc,EAAQd,GAAYG,EAAYH,IAG/Be,GAAqBA,EAAoBhB,GAE5C,MAAMO,EAASC,OACdD,EAASU,OAATV,GAOD,OAHAW,EAAgBJ,KAAKK,MAAMD,EAAiBb,GAAkB,IAGvDe,IAER,SAASA,IAER,IADA,IAAIC,EACIf,EAAI,EAAGA,EAAIY,EAAgBV,OAAQF,IAAK,CAG/C,IAFA,IAAIgB,EAAiBJ,EAAgBZ,GACjCiB,GAAY,EACRC,EAAI,EAAGA,EAAIF,EAAed,OAAQgB,IAAK,CAC9C,IAAIC,EAAQH,EAAeE,GACG,IAA3BX,EAAgBY,KAAcF,GAAY,GAE3CA,IACFL,EAAgBQ,OAAOpB,IAAK,GAC5Be,EAASM,EAAoBA,EAAoBC,EAAIN,EAAe,KAItE,OAAOD,EAIR,IAAIQ,EAAmB,GAKnBhB,EAAkB,CACrB,IAAO,GAGJK,EAAkB,GAGtB,SAASS,EAAoB1B,GAG5B,GAAG4B,EAAiB5B,GACnB,OAAO4B,EAAiB5B,GAAU6B,QAGnC,IAAIC,EAASF,EAAiB5B,GAAY,CACzCK,EAAGL,EACH+B,GAAG,EACHF,QAAS,IAUV,OANAf,EAAQd,GAAUW,KAAKmB,EAAOD,QAASC,EAAQA,EAA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8L,EAAKlK,EACbwK,EAAOC,EACXR,EAAM,GACNC,EAAMb,EAAI/K,OACVF,EAAI,EACJ,MAAOA,EAAI8L,EAET,OADAlK,EAAIqJ,EAAIc,WAAW/L,KACX4B,GAAK,GACX,KAAK,EACL,KAAK,EACL,KAAK,EACL,KAAK,EACL,KAAK,EACL,KAAK,EACL,KAAK,EACL,KAAK,EAEHiK,GAAOZ,EAAIe,OAAOhM,EAAI,GACtB,MACF,KAAK,GACL,KAAK,GAEHoM,EAAQnB,EAAIc,WAAW/L,KACvB6L,GAAOI,OAAOC,cAAmB,GAAJtK,IAAa,EAAc,GAARwK,GAChD,MACF,KAAK,GAEHA,EAAQnB,EAAIc,WAAW/L,KACvBqM,EAAQpB,EAAIc,WAAW/L,KACvB6L,GAAOI,OAAOC,cACN,GAAJtK,IAAa,IAAgB,GAARwK,IAAiB,GAAe,GAARC,IAAiB,GAElE,MAGN,OAAOR,EAGT,IAAMS,EACJ,mEACIC,EAAoB,IAAIC,OAC3B,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,EACD,IACC,GACA,GACA,EACD,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,IACC,GACA,GACA,GACA,GACA,GACA,GACA,EACD,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,IACC,GACA,GACA,GACA,GACA,GACA,EACD,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,IACC,GACA,GACA,GACA,GACA,GA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,W,kCCAA,yBAAiV,eAAG,G,8HCA9U5c,EAAe,CACnBE,SAAU,SACVC,SAAUyI,MAAMwM,KACd,CAAC,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,KACnE,SAACnD,GAAD,mBAAaA,MAEf7R,OAAQ,OACRC,gBAAiB,CACf,kDACA,kDACA,kDACA,kDACA,kDACA,kDACA,kDACA,kDACA,kDACA,kDACA,kDACA,kDACA,kDACA,kDACA,kDACA,oDAIEJ,EAAc,CAClBC,SAAU,UACVC,SAAUyI,MAAMwM,KACd,CAAC,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,KACnE,SAACnD,GAAD,mBAAaA,MAEf7R,OAAQ,OACRC,gBAAiB,CACf,0CACA,0CACA,0CACA,0CACA,0CACA,0CACA,0CACA,0CACA,0CACA,0CACA,0CACA,0CACA,0CACA,0CACA,0CACA,6C,yFC/CEya,EAAUtT,IAAMxI,OAAO,CAC3BqoB,QAAS,GACTxD,QAAS,MAGX/I,EAAQwM,aAAaC,QAAQ7P,KAC3B,SAAC3X,GAMC,MALI,2BAA2BuW,KAAKvW,EAAO6C,SACrC7C,EAAOjE,MAAQiE,EAAOjE,KAAK0rB,SAC7BznB,EAAO8C,QAAQ,gBAAkB,uBAG9B9C,KAET,SAAC6F,GACCP,QAAQE,OAAOK,MAInBkV,EAAQwM,aAAa1C,SAASlN,KAC5B,SAACxU,GACC,OAAOA,EAAIpH,KAAOoH,EAAIpH,KAAOuJ,QAAQE,OAAOrC,MAE9C,SAAC0C,GAAD,OAAWP,QAAQE,OAAOK,MAGbkV,U","file":"js/app.1c3e923e.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t\"app\": 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/md/\";\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([0,\"chunk-vendors\"]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./resetDialog.vue?vue&type=style&index=0&id=68392714&lang=less&scoped=true&\"","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Loading.vue?vue&type=style&index=0&id=a205efe8&lang=less&scoped=true&\"","import { render, staticRenderFns } from \"./Loading.vue?vue&type=template&id=a205efe8&scoped=true&\"\nimport script from \"./Loading.vue?vue&type=script&lang=js&\"\nexport * from \"./Loading.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Loading.vue?vue&type=style&index=0&id=a205efe8&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"a205efe8\",\n null\n \n)\n\nexport default component.exports","import fetch from \"./fetch\";\nimport { githubConfig, giteeConfig } from \"./config\";\nimport CryptoJS from \"crypto-js\";\nimport OSS from \"ali-oss\";\nimport COS from \"cos-js-sdk-v5\";\nimport Buffer from \"buffer-from\";\nimport { v4 as uuidv4 } from \"uuid\";\nimport * as qiniu from \"qiniu-js\";\nimport { utf16to8, base64encode, safe64 } from \"../assets/scripts/tokenTools\";\nimport * as tokenTools from \"../assets/scripts/tokenTools\";\n\nfunction getConfig(useDefault, platform) {\n if (useDefault) {\n // load default config file\n const config = platform === \"github\" ? githubConfig : giteeConfig;\n const { username, repoList, branch, accessTokenList } = config;\n\n // choose random token from access_token list\n const tokenIndex = Math.floor(Math.random() * accessTokenList.length);\n const accessToken = accessTokenList[tokenIndex].replace(\"doocsmd\", \"\");\n\n // choose random repo from repo list\n const repoIndex = Math.floor(Math.random() * repoList.length);\n const repo = repoList[repoIndex];\n\n return { username, repo, branch, accessToken };\n }\n\n // load configuration from localStorage\n const customConfig = JSON.parse(localStorage.getItem(`${platform}Config`));\n\n // split username/repo\n const repoUrl = customConfig.repo\n .replace(`https://${platform}.com/`, \"\")\n .replace(`http://${platform}.com/`, \"\")\n .replace(`${platform}.com/`, \"\")\n .split(\"/\");\n return {\n username: repoUrl[0],\n repo: repoUrl[1],\n branch: customConfig.branch || \"master\",\n accessToken: customConfig.accessToken,\n };\n}\n\n/**\n * 获取 `年/月/日` 形式的目录\n * @returns string\n */\nfunction getDir() {\n const date = new Date();\n const year = date.getFullYear();\n const month = (date.getMonth() + 1).toString().padStart(2, \"0\");\n const day = date.getDate().toString().padStart(2, \"0\");\n return `${year}/${month}/${day}`;\n}\n\n/**\n * 根据文件名获取它以 `时间戳+uuid` 的形式\n * @param {string} filename 文件名\n * @returns \n */\nfunction getDateFilename(filename) {\n const currentTimestamp = new Date().getTime();\n const fileSuffix = filename.split(\".\")[1];\n return `${currentTimestamp}-${uuidv4()}.${fileSuffix}`;\n}\n\n//-----------------------------------------------------------------------\n// GitHub File Upload\n//-----------------------------------------------------------------------\n\nasync function ghFileUpload(content, filename) {\n const useDefault = localStorage.getItem(\"imgHost\") === \"default\";\n const { username, repo, branch, accessToken } = getConfig(\n useDefault,\n \"github\"\n );\n const dir = getDir();\n const url = `https://api.github.com/repos/${username}/${repo}/contents/${dir}/`;\n const dateFilename = getDateFilename(filename);\n const res = await fetch({\n url: url + dateFilename,\n method: \"put\",\n headers: {\n Authorization: `token ${accessToken}`,\n },\n data: {\n content,\n branch,\n message: `Upload by ${window.location.href}`,\n },\n });\n\n const githubResourceUrl = `raw.githubusercontent.com/${username}/${repo}/${branch}/`;\n const cdnResourceUrl = `cdn.jsdelivr.net/gh/${username}/${repo}@${branch}/`;\n return useDefault\n ? res.data.content.download_url.replace(githubResourceUrl, cdnResourceUrl)\n : res.data.content.download_url;\n}\n\n//-----------------------------------------------------------------------\n// Gitee File Upload\n//-----------------------------------------------------------------------\n\nasync function giteeUpload(content, filename) {\n const useDefault = localStorage.getItem(\"imgHost\") === \"default\";\n const { username, repo, branch, accessToken } = getConfig(\n useDefault,\n \"gitee\"\n );\n const dir = getDir();\n const dateFilename = getDateFilename(filename);\n const url = `https://gitee.com/api/v5/repos/${username}/${repo}/contents/${dir}/${dateFilename}`;\n const res = await fetch({\n url,\n method: \"POST\",\n data: {\n content,\n branch,\n access_token: accessToken,\n message: `Upload by ${window.location.href}`,\n },\n });\n return encodeURI(res.data.content.download_url);\n}\n\n//-----------------------------------------------------------------------\n// Qiniu File Upload\n//-----------------------------------------------------------------------\n\nfunction getQiniuToken(accessKey, secretKey, putPolicy) {\n const policy = JSON.stringify(putPolicy);\n const encoded = base64encode(utf16to8(policy));\n const hash = CryptoJS.HmacSHA1(encoded, secretKey);\n const encodedSigned = hash.toString(CryptoJS.enc.Base64);\n return `${accessKey}:${safe64(encodedSigned)}:${encoded}`;\n}\n\nasync function qiniuUpload(file) {\n const { accessKey, secretKey, bucket, region, path, domain } = JSON.parse(\n localStorage.getItem(\"qiniuConfig\")\n );\n const token = getQiniuToken(accessKey, secretKey, {\n scope: bucket,\n deadline: Math.trunc(new Date().getTime() / 1000) + 3600,\n });\n const dir = path ? `${path}/` : \"\";\n const dateFilename = dir + getDateFilename(file.name);\n const observable = qiniu.upload(file, dateFilename, token, {}, { region });\n return new Promise((resolve, reject) => {\n observable.subscribe({\n next: (result) => {\n console.log(result);\n },\n error: (err) => {\n reject(err.message);\n },\n complete: (result) => {\n resolve(`${domain}/${result.key}`);\n },\n });\n });\n}\n\n//-----------------------------------------------------------------------\n// AliOSS File Upload\n//-----------------------------------------------------------------------\n\nasync function aliOSSFileUpload(content, filename) {\n const dateFilename = getDateFilename(filename);\n const { region, bucket, accessKeyId, accessKeySecret, cdnHost, path } =\n JSON.parse(localStorage.getItem(\"aliOSSConfig\"));\n const buffer = Buffer(content, \"base64\");\n const dir = `${path}/${dateFilename}`;\n const client = new OSS({\n region,\n bucket,\n accessKeyId,\n accessKeySecret,\n });\n try {\n const res = await client.put(dir, buffer);\n if (cdnHost == \"\") return res.url;\n return `${cdnHost}/${path == \"\" ? dateFilename : dir}`;\n } catch (e) {\n return Promise.reject(e);\n }\n}\n\n//-----------------------------------------------------------------------\n// TxCOS File Upload\n//-----------------------------------------------------------------------\n\nasync function txCOSFileUpload(file) {\n const dateFilename = getDateFilename(file.name);\n const { secretId, secretKey, bucket, region, path, cdnHost } = JSON.parse(\n localStorage.getItem(\"txCOSConfig\")\n );\n const cos = new COS({\n SecretId: secretId,\n SecretKey: secretKey,\n });\n return new Promise((resolve, reject) => {\n cos.putObject(\n {\n Bucket: bucket,\n Region: region,\n Key: `${path}/${dateFilename}`,\n Body: file,\n },\n function (err, data) {\n if (err) {\n reject(err);\n } else if (cdnHost) {\n resolve(\n path == \"\"\n ? `${cdnHost}/${dateFilename}`\n : `${cdnHost}/${path}/${dateFilename}`\n );\n } else {\n resolve(`https://${data.Location}`);\n }\n }\n );\n });\n}\n\n//-----------------------------------------------------------------------\n// formCustom File Upload\n//-----------------------------------------------------------------------\n\nasync function formCustomUpload(content, file) {\n const str = `\n async (CUSTOM_ARG) => {\n ${localStorage.getItem(`formCustomConfig`)}\n }\n `\n return new Promise((resolve, reject) => {\n const exportObj = {\n content, // 待上传图片的 base64\n file, // 待上传图片的 file 对象\n util: {\n axios: fetch, // axios 实例\n CryptoJS, // 加密库\n OSS, // ali-oss\n COS, // cos-js-sdk-v5\n Buffer, // buffer-from\n uuidv4, // uuid\n qiniu, // qiniu-js\n tokenTools, // 一些编码转换函数\n getDir, // 获取 年/月/日 形式的目录\n getDateFilename, // 根据文件名获取它以 时间戳+uuid 的形式\n },\n okCb: resolve, // 重要: 上传成功后给此回调传 url 即可\n errCb: reject, // 上传失败调用的函数\n }\n eval(str)(exportObj).catch(err => {\n console.error(err)\n reject(err)\n })\n });\n}\n\nfunction fileUpload(content, file) {\n const imgHost = localStorage.getItem(\"imgHost\");\n !imgHost && localStorage.setItem(\"imgHost\", \"default\");\n switch (imgHost) {\n case \"aliOSS\":\n return aliOSSFileUpload(content, file.name);\n case \"txCOS\":\n return txCOSFileUpload(file);\n case \"qiniu\":\n return qiniuUpload(file);\n case \"gitee\":\n return giteeUpload(content, file.name);\n case \"github\":\n return ghFileUpload(content, file.name);\n case \"formCustom\":\n return formCustomUpload(content, file);\n default:\n // return file.size / 1024 < 1024\n // ? giteeUpload(content, file.name)\n // : ghFileUpload(content, file.name);\n return ghFileUpload(content, file.name);\n }\n}\n\nexport default {\n fileUpload,\n};\n","export function utf16to8(str) {\n var out, i, len, c;\n out = \"\";\n len = str.length;\n for (i = 0; i < len; i++) {\n c = str.charCodeAt(i);\n if (c >= 0x0001 && c <= 0x007f) {\n out += str.charAt(i);\n } else if (c > 0x07ff) {\n out += String.fromCharCode(0xe0 | ((c >> 12) & 0x0f));\n out += String.fromCharCode(0x80 | ((c >> 6) & 0x3f));\n out += String.fromCharCode(0x80 | ((c >> 0) & 0x3f));\n } else {\n out += String.fromCharCode(0xc0 | ((c >> 6) & 0x1f));\n out += String.fromCharCode(0x80 | ((c >> 0) & 0x3f));\n }\n }\n return out;\n}\n\nexport function utf8to16(str) {\n var out, i, len, c;\n var char2, char3;\n out = \"\";\n len = str.length;\n i = 0;\n while (i < len) {\n c = str.charCodeAt(i++);\n switch (c >> 4) {\n case 0:\n case 1:\n case 2:\n case 3:\n case 4:\n case 5:\n case 6:\n case 7:\n // 0xxxxxxx\n out += str.charAt(i - 1);\n break;\n case 12:\n case 13:\n // 110x xxxx 10xx xxxx\n char2 = str.charCodeAt(i++);\n out += String.fromCharCode(((c & 0x1f) << 6) | (char2 & 0x3f));\n break;\n case 14:\n // 1110 xxxx 10xx xxxx 10xx xxxx\n char2 = str.charCodeAt(i++);\n char3 = str.charCodeAt(i++);\n out += String.fromCharCode(\n ((c & 0x0f) << 12) | ((char2 & 0x3f) << 6) | ((char3 & 0x3f) << 0)\n );\n break;\n }\n }\n return out;\n}\n\nconst base64EncodeChars =\n \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_\";\nconst base64DecodeChars = new Array(\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n 62,\n -1,\n -1,\n -1,\n 63,\n 52,\n 53,\n 54,\n 55,\n 56,\n 57,\n 58,\n 59,\n 60,\n 61,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n 0,\n 1,\n 2,\n 3,\n 4,\n 5,\n 6,\n 7,\n 8,\n 9,\n 10,\n 11,\n 12,\n 13,\n 14,\n 15,\n 16,\n 17,\n 18,\n 19,\n 20,\n 21,\n 22,\n 23,\n 24,\n 25,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n 26,\n 27,\n 28,\n 29,\n 30,\n 31,\n 32,\n 33,\n 34,\n 35,\n 36,\n 37,\n 38,\n 39,\n 40,\n 41,\n 42,\n 43,\n 44,\n 45,\n 46,\n 47,\n 48,\n 49,\n 50,\n 51,\n -1,\n -1,\n -1,\n -1,\n -1\n);\nexport function base64encode(str) {\n var out, i, len;\n var c1, c2, c3;\n len = str.length;\n i = 0;\n out = \"\";\n while (i < len) {\n c1 = str.charCodeAt(i++) & 0xff;\n if (i == len) {\n out += base64EncodeChars.charAt(c1 >> 2);\n out += base64EncodeChars.charAt((c1 & 0x3) << 4);\n out += \"==\";\n break;\n }\n c2 = str.charCodeAt(i++);\n if (i == len) {\n out += base64EncodeChars.charAt(c1 >> 2);\n out += base64EncodeChars.charAt(((c1 & 0x3) << 4) | ((c2 & 0xf0) >> 4));\n out += base64EncodeChars.charAt((c2 & 0xf) << 2);\n out += \"=\";\n break;\n }\n c3 = str.charCodeAt(i++);\n out += base64EncodeChars.charAt(c1 >> 2);\n out += base64EncodeChars.charAt(((c1 & 0x3) << 4) | ((c2 & 0xf0) >> 4));\n out += base64EncodeChars.charAt(((c2 & 0xf) << 2) | ((c3 & 0xc0) >> 6));\n out += base64EncodeChars.charAt(c3 & 0x3f);\n }\n return out;\n}\n\nexport function base64decode(str) {\n var c1, c2, c3, c4;\n var i, len, out;\n len = str.length;\n i = 0;\n out = \"\";\n while (i < len) {\n /* c1 */\n do {\n c1 = base64DecodeChars[str.charCodeAt(i++) & 0xff];\n } while (i < len && c1 == -1);\n if (c1 == -1) break;\n /* c2 */\n do {\n c2 = base64DecodeChars[str.charCodeAt(i++) & 0xff];\n } while (i < len && c2 == -1);\n if (c2 == -1) break;\n out += String.fromCharCode((c1 << 2) | ((c2 & 0x30) >> 4));\n /* c3 */\n do {\n c3 = str.charCodeAt(i++) & 0xff;\n if (c3 == 61) return out;\n c3 = base64DecodeChars[c3];\n } while (i < len && c3 == -1);\n if (c3 == -1) break;\n out += String.fromCharCode(((c2 & 0xf) << 4) | ((c3 & 0x3c) >> 2));\n /* c4 */\n do {\n c4 = str.charCodeAt(i++) & 0xff;\n if (c4 == 61) return out;\n c4 = base64DecodeChars[c4];\n } while (i < len && c4 == -1);\n if (c4 == -1) break;\n out += String.fromCharCode(((c3 & 0x03) << 6) | c4);\n }\n return out;\n}\n\nexport function safe64(base64) {\n base64 = base64.replace(/\\+/g, \"-\");\n base64 = base64.replace(/\\//g, \"_\");\n return base64;\n}\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=8e90ad4c&scoped=true&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app\"}},[_c('router-view')],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=41a4af61&\"\nvar script = {}\nimport style0 from \"./App.vue?vue&type=style&index=0&lang=less&\"\nimport style1 from \"./App.vue?vue&type=style&index=1&lang=less&\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","export default {\n builtinFonts: [\n {\n label: \"无衬线\",\n value:\n \"-apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif\",\n },\n {\n label: \"衬线\",\n value:\n \"Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif\",\n },\n ],\n sizeOption: [\n {\n label: \"12px\",\n value: \"12px\",\n desc: \"更小\",\n },\n {\n label: \"13px\",\n value: \"13px\",\n desc: \"稍小\",\n },\n {\n label: \"14px\",\n value: \"14px\",\n desc: \"推荐\",\n },\n {\n label: \"15px\",\n value: \"15px\",\n desc: \"稍大\",\n },\n {\n label: \"16px\",\n value: \"16px\",\n desc: \"更大\",\n },\n ],\n colorOption: [\n {\n label: \"经典蓝\",\n value: \"rgba(15, 76, 129, 1)\",\n desc: \"最新流行\",\n },\n {\n label: \"翡翠绿\",\n value: \"rgba(0, 152, 116, 1)\",\n desc: \"优雅清新\",\n },\n {\n label: \"活力橘\",\n value: \"rgba(250, 81, 81, 1)\",\n desc: \"热情活泼\",\n },\n ],\n codeThemeOption: [\n {\n label: \"微信\",\n value: \"wechat\",\n desc: \"默认样式\",\n },\n {\n label: \"GitHub\",\n value: \"github\",\n desc: \"精简风格\",\n },\n ],\n form: {\n rows: 1,\n cols: 1,\n },\n};\n","import marked from \"marked\";\nclass WxRenderer {\n constructor(opts) {\n this.opts = opts;\n let ENV_STRETCH_IMAGE = true;\n\n let footnotes = [];\n let footnoteIndex = 0;\n let styleMapping = null;\n\n const CODE_FONT_FAMILY =\n \"Menlo, Operator Mono, Consolas, Monaco, monospace\";\n\n let merge = (base, extend) => Object.assign({}, base, extend);\n\n this.buildTheme = (themeTpl) => {\n let mapping = {};\n let base = merge(themeTpl.BASE, {\n \"font-family\": this.opts.fonts,\n \"font-size\": this.opts.size,\n });\n for (let ele in themeTpl.inline) {\n if (themeTpl.inline.hasOwnProperty(ele)) {\n let style = themeTpl.inline[ele];\n mapping[ele] = merge(themeTpl.BASE, style);\n }\n }\n\n let base_block = merge(base, {});\n for (let ele in themeTpl.block) {\n if (themeTpl.block.hasOwnProperty(ele)) {\n let style = themeTpl.block[ele];\n if (ele === \"code\") {\n style[\"font-family\"] = CODE_FONT_FAMILY;\n }\n mapping[ele] = merge(base_block, style);\n }\n }\n return mapping;\n };\n\n let getStyles = (tokenName, addition) => {\n let arr = [];\n let dict = styleMapping[tokenName];\n if (!dict) return \"\";\n for (const key in dict) {\n arr.push(key + \":\" + dict[key]);\n }\n return `style=\"${arr.join(\";\") + (addition || \"\")}\"`;\n };\n\n let addFootnote = (title, link) => {\n footnotes.push([++footnoteIndex, title, link]);\n return footnoteIndex;\n };\n\n this.buildFootnotes = () => {\n let footnoteArray = footnotes.map((x) => {\n if (x[1] === x[2]) {\n return `[${x[0]}]: ${x[1]}
`;\n }\n return `[${x[0]}] ${x[1]}: ${x[2]}
`;\n });\n return `

引用链接

${footnoteArray.join(\"\\n\")}

`;\n };\n\n this.buildAddition = () => {\n return `\n \n `;\n };\n\n this.setOptions = (newOpts) => {\n this.opts = merge(this.opts, newOpts);\n };\n\n this.hasFootnotes = () => footnotes.length !== 0;\n\n this.getRenderer = (status) => {\n footnotes = [];\n footnoteIndex = 0;\n\n styleMapping = this.buildTheme(this.opts.theme);\n let renderer = new marked.Renderer();\n\n renderer.heading = (text, level) => {\n switch (level) {\n case 1:\n return `

${text}

`;\n case 2:\n return `

${text}

`;\n case 3:\n return `

${text}

`;\n default:\n return `

${text}

`;\n }\n };\n renderer.paragraph = (text) => {\n if (text.indexOf(\"${text}

`;\n };\n\n renderer.blockquote = (text) => {\n text = text.replace(//g, `

`);\n return `

${text}
`;\n };\n renderer.code = (text, lang) => {\n text = text.replace(//g, \">\");\n const codeLines = text\n .split(\"\\n\")\n .map(\n (line) =>\n `${\n line || \" \"\n }`\n );\n const codeTheme = \"github\";\n return `\n
\n
\n                        ${codeLines.join(\"\")}\n                    
\n
\n `;\n };\n renderer.codespan = (text, lang) =>\n `${text}`;\n renderer.listitem = (text) =>\n `<%s/>${text}`;\n\n renderer.list = (text, ordered, start) => {\n text = text.replace(/<\\/*p.*?>/g, \"\");\n let segments = text.split(`<%s/>`);\n if (!ordered) {\n text = segments.join(\"•\");\n return `

${text}

`;\n }\n text = segments[0];\n for (let i = 1; i < segments.length; i++) {\n text = text + i + \".\" + segments[i];\n }\n return `

${text}

`;\n };\n renderer.image = (href, title, text) => {\n let subText = \"\";\n if (text) {\n subText = `
${text}
`;\n }\n let figureStyles = getStyles(\"figure\");\n let imgStyles = getStyles(ENV_STRETCH_IMAGE ? \"image\" : \"image_org\");\n return `
\"${text}\"/${subText}
`;\n };\n renderer.link = (href, title, text) => {\n if (href.startsWith(\"https://mp.weixin.qq.com\")) {\n return `${text}`;\n }\n if (href === text) {\n return text;\n }\n if (status) {\n let ref = addFootnote(title || text, href);\n return `${text}[${ref}]`;\n }\n return `${text}`;\n };\n renderer.strong = (text) =>\n `${text}`;\n renderer.em = (text) =>\n `${text}`;\n renderer.table = (header, body) =>\n `
${header}${body}
`;\n renderer.tablecell = (text, flags) =>\n `${text}`;\n renderer.hr = () =>\n `
`;\n return renderer;\n };\n }\n}\nexport default WxRenderer;\n","export default \"# 示例文章:Google 搜索的即时自动补全功能究竟是如何“工作”的?\\r\\n\\r\\n> Google 搜索**自动补全功能**的强大,相信不少朋友都能感受到,它帮助我们更快地“补全”我们所要输入的搜索关键字。那么,它怎么知道我们要输入什么内容?它又是如何工作的?在这篇文章里,我们一起来看看。\\r\\n\\r\\n## 使用自动补全\\r\\n\\r\\nGoogle 搜索的自动补全功能可以在 Google 搜索应用的大多数位置使用,包括 [Google](https://www.google.com/) 主页、适用于 IOS 和 Android 的 Google 应用,我们只需要在 Google 搜索框上开始键入关键字,就可以看到联想词了。\\r\\n\\r\\n![](https://gitee.com/yanglbme/resource/raw/master/doocs-md/juejin.gif)\\r\\n\\r\\n在上图示例中,我们可以看到,输入关键字 `juej`,Google 搜索会联想到“掘金”、“掘金小册”、“绝句”等等,好处就是,我们无须输入完整的关键字即可轻松完成针对这些 topics 的搜索。\\r\\n\\r\\n谷歌搜索的自动补全功能对于使用移动设备的用户来说特别有用,用户可以轻松在难以键入的小屏幕上完成搜索。当然,对于移动设备用户和台式机用户而言,这都节省了大量的时间。根据 Google 官方报告,自动补全功能可以减少大约 25% 的打字,累积起来,预计每天可以节省 200 多年的打字时间。是的,每天!\\r\\n\\r\\n> 注意,本文所提到的“**联想词**”与“**预测**”,是同一个意思。\\r\\n\\r\\n## 基于“预测”而非“建议”\\r\\n\\r\\nGoogle 官方将自动补全功能称之为“预测”,而不是“建议”,为什么呢?其实是有充分理由的。自动补全功能是为了**帮助用户完成他们打算进行的搜索**,而不是建议用户要执行什么搜索。\\r\\n\\r\\n那么,Google 是如何确定这些“预测”的?其实,Google 会根据趋势搜索 [trends](https://trends.google.com/trends/?geo=US) 给到我们这些“预测”。简单来说,哪个热门、哪个搜索频率高,就更可能推给我们。当然,这也与我们当前所处的位置以及我们的搜索历史相关。\\r\\n\\r\\n另外,这些“预测”也会随着我们键入的关键字的变更而更改。例如,当我们把键入的关键字从 `juej` 更改为 `juex` 时,与“掘金”相关的预测会“消失”,同时,与“觉醒”、“决心”相关联的词会出现。\\r\\n\\r\\n![](https://gitee.com/yanglbme/resource/raw/master/doocs-md/juex.gif)\\r\\n\\r\\n## 为什么看不到某些联想词?\\r\\n\\r\\n如果我们在输入某个关键字时看不到联想词,那么表明 Google 的算法可能检测到:\\r\\n\\r\\n- 这个关键字不是热门字词;\\r\\n- 搜索的字词太新了,我们可能需要等待几天或几周才能看到联想词;\\r\\n- 这是一个侮辱性或敏感字词,这个搜索字词违反了 Google 的相关政策。更加详细的情况,可以了解 [Google 搜索自动补全政策](https://support.google.com/websearch/answer/7368877)。\\r\\n\\r\\n## 为什么会看到某些不当的联想词?\\r\\n\\r\\nGoogle 拥有专门设计的系统,可以自动捕获不适当的预测结果而不显示出来。然而,Google 每天需要处理数十亿次搜索,这意味着 Google 每天会显示数十亿甚至上百亿条预测。再好的系统,也可能存在缺陷,不正确的预测也可能随时会出现。\\r\\n\\r\\n我们作为 Google 搜索的用户,如果认定某条预测违反了相关的搜索自动补全政策,可以进行举报反馈,点击右下角“**举报不当的联想查询**”并勾选相关选项即可。\\r\\n\\r\\n![](https://gitee.com/yanglbme/resource/raw/master/doocs-md/report.gif)\\r\\n\\r\\n## 如何实现自动补全算法?\\r\\n\\r\\n目前,Google 官方似乎并没有公开搜索自动补全的算法实现,但是业界在这方面已经有了不少研究。\\r\\n\\r\\n一个好的自动补全器必须是快速的,并且在用户键入下一个字符后立即更新联想词列表。**自动补全器的核心是一个函数,它接受输入的前缀,并搜索以给定前缀开头的词汇或语句列表**。通常来说,只需要返回少量的数目即可。\\r\\n\\r\\n接下来,我们先从一个简单且低效的实现开始,并在此基础上逐步构建更高效的方法。\\r\\n\\r\\n### 词汇表实现\\r\\n\\r\\n一个**简单粗暴的实现方式**是:顺序查找词汇表,依次检查每个词汇,看它是否以给定的前缀开头。\\r\\n\\r\\n但是,此方法需要将前缀与每个词汇进行匹配检查,若词汇量较少,这种方式可能勉强行得通。但是,如果词汇量规模较大,效率就太低了。\\r\\n\\r\\n一个**更好的实现方式是**:让词汇按字典顺序排序。借助二分搜索算法,可以快速搜索有序词汇表中的前缀。由于二分搜索的每一步都会将搜索的范围减半,因此,总的搜索时间与词汇表中单词数量的对数成正比,即时间复杂度是 `O(log N)`。二分搜索的性能很好,但有没有更好的实现呢?当然有,往下看。\\r\\n\\r\\n### 前缀树实现\\r\\n\\r\\n通常来说,许多词汇都以相同的前缀开头,比如 `need`、`nested` 都以 `ne` 开头,`seed`、`speed` 都以 `s` 开头。要是为每个单词分别存储公共前缀似乎很浪费。\\r\\n\\r\\n![](https://gitee.com/yanglbme/resource/raw/master/doocs-md/pretree.png)\\r\\n\\r\\n前缀树是一种利用公共前缀来加速补全速度的数据结构。前缀树在节点树中排列一组单词,单词沿着从根节点到叶子节点的路径存储,树的层次对应于前缀的字母位置。\\r\\n\\r\\n前缀的补全是顺着前缀定义的路径来查找的。例如,在上图的前缀树中,前缀 `ne` 对应于从子节点取左边缘 `N` 和唯一边缘 `E` 的路径。然后可以通过继续遍历从 `E` 节点可以达到的所有叶节点来生成补全列表。在图中,`ne` 的补全可以是两个分支:`-ed` 和 `-sted`。如果在数中找不到由前缀定义的路径,则说明词汇表中不包含以该前缀开头的单词。\\r\\n\\r\\n### 有限状态自动机(DFA)实现\\r\\n\\r\\n前缀树可以有效处理公共前缀,但是,对于其他共享词部分,仍会分别存储在每个分支中。比如,后缀 `ed`、`ing`、`tion` 在英文单词中特别常见。在上一个例子中,`e`、`d` 分别存放在了每一个分支上。\\r\\n\\r\\n有没有一种方法可以更加节省存储空间呢?有的,那就是 DFA。\\r\\n\\r\\n
\\r\\n
\\r\\n\\r\\n在上面的例子中,单词 `need`、`nested`、`seed` 和 `speed` 仅由 9 个节点组成,而上一张图中的前缀树包含了 17 个节点。\\r\\n\\r\\n可以看出,最小化前缀树 DFA 可以在很大程度上减少数据结构的大小。即使词汇量很大,最小化 DFA 通常也适合在内存中存储,避免昂贵的磁盘访问是实现快速自动补全的关键。\\r\\n\\r\\n### 一些扩展\\r\\n\\r\\n上面介绍了如何利用合理的数据结构实现基本的自动补全功能。这些数据结构可以通过多种方式进行扩展,从而改善用户体验。\\r\\n\\r\\n通常,满足特定前缀的词汇可能很多,而用户界面上能够显示的却不多,我们更希望能显示最常搜索或者最有价值的词汇。这通常可以通过为词汇表中的每个单词增加一个代表单词值的**权重** `weight`,并且按照权重高低来排序自动补全列表。\\r\\n\\r\\n- 对于排序后的词汇表来说,在词汇表每个元素上增加 `weight` 属性并不难;\\r\\n- 对于前缀树来说,将 `weight` 存储在叶子节点中,也是很简单的一个实现;\\r\\n- 对于 `DFA` 来说,则较为复杂。因为一个叶子节点可以通过多条路径到达。一种解决方案是将权重关联到路径而不是叶子节点。\\r\\n\\r\\n目前有不少开源库都提供了这个功能,比如主流的搜索引擎框架 [Elasticsearch](https://www.elastic.co/products/elasticsearch)、[Solr](https://lucene.apache.org/solr/) 等,基于此,我们可以实现高效而强大的自动补全功能。\\r\\n\\r\\n#### 推荐阅读\\r\\n\\r\\n- [阿里又一个 20k+ stars 开源项目诞生,恭喜 fastjson!](https://mp.weixin.qq.com/s/RNKDCK2KoyeuMeEs6GUrow)\\r\\n- [刷掉 90% 候选人的互联网大厂海量数据面试题(附题解 + 方法总结)](https://mp.weixin.qq.com/s/rjGqxUvrEqJNlo09GrT1Dw)\\r\\n- [好用!期待已久的文本块功能究竟如何在 Java 13 中发挥作用?](https://mp.weixin.qq.com/s/kalGv5T8AZGxTnLHr2wDsA)\\r\\n- [2019 GitHub 开源贡献排行榜新鲜出炉!微软谷歌领头,阿里跻身前 12!](https://mp.weixin.qq.com/s/_q812aGD1b9QvZ2WFI0Qgw)\\r\\n\\r\\n---\\r\\n\\r\\n欢迎关注我的公众号“**Doocs 开源社区**”,原创技术文章第一时间推送。\\r\\n\\r\\n
\\r\\n \\r\\n
\\r\\n\";","export default \"/*\\r\\n 按Ctrl+F可格式化\\r\\n*/\\r\\n/* 一级标题样式 */\\r\\nh1 {\\r\\n}\\r\\n/* 二级标题样式 */\\r\\nh2 {\\r\\n}\\r\\n/* 三级标题样式 */\\r\\nh3 {\\r\\n}\\r\\n/* 四级标题样式 */\\r\\nh4 {\\r\\n}\\r\\n/* 图片样式 */\\r\\nimage {\\r\\n}\\r\\n/* 引用样式 */\\r\\nblockquote {\\r\\n}\\r\\n/* 引用段落样式 */\\r\\nblockquote_p {\\r\\n}\\r\\n/* 段落样式 */\\r\\np {\\r\\n}\\r\\n/* 行内代码样式 */\\r\\ncodespan {\\r\\n}\\r\\n/* 粗体样式 */\\r\\nstrong {\\r\\n}\\r\\n/* 链接样式 */\\r\\nlink {\\r\\n}\\r\\n/* 微信链接样式 */\\r\\nwx_link {\\r\\n}\\r\\n/* 有序列表样式 */\\r\\nol {\\r\\n}\\r\\n/* 无序列表样式 */\\r\\nul {\\r\\n}\\r\\n/* 列表项样式 */\\r\\nli {\\r\\n}\";","export default {\n BASE: {\n \"text-align\": \"left\",\n color: \"#3f3f3f\",\n \"line-height\": \"1.75\",\n },\n BASE_BLOCK: {\n margin: \"1em 8px\",\n },\n block: {\n // 一级标题样式\n h1: {\n \"font-size\": \"1.2em\",\n \"text-align\": \"center\",\n \"font-weight\": \"bold\",\n display: \"table\",\n margin: \"2em auto 1em\",\n padding: \"0 1em\",\n \"border-bottom\": \"2px solid rgba(0, 152, 116, 0.9)\",\n },\n\n // 二级标题样式\n h2: {\n \"font-size\": \"1.2em\",\n \"text-align\": \"center\",\n \"font-weight\": \"bold\",\n display: \"table\",\n margin: \"4em auto 2em\",\n padding: \"0 0.2em\",\n background: \"rgba(0, 152, 116, 0.9)\",\n color: \"#fff\",\n },\n\n // 三级标题样式\n h3: {\n \"font-weight\": \"bold\",\n \"font-size\": \"1.1em\",\n margin: \"2em 8px 0.75em 0\",\n \"line-height\": \"1.2\",\n \"padding-left\": \"8px\",\n \"border-left\": \"3px solid rgba(0, 152, 116, 0.9)\",\n },\n\n // 四级标题样式\n h4: {\n \"font-weight\": \"bold\",\n \"font-size\": \"1em\",\n margin: \"2em 8px 0.5em\",\n color: \"rgba(66, 185, 131, 0.9)\",\n },\n\n // 段落样式\n p: {\n margin: \"1.5em 8px\",\n \"letter-spacing\": \"0.1em\",\n },\n\n // 引用样式\n blockquote: {\n \"font-style\": \"normal\",\n \"border-left\": \"none\",\n padding: \"1em\",\n \"border-radius\": \"8px\",\n color: \"rgba(0,0,0,0.5)\",\n background: \"#f7f7f7\",\n margin: \"2em 8px\",\n },\n\n blockquote_p: {\n \"letter-spacing\": \"0.1em\",\n color: \"rgb(80, 80, 80)\",\n \"font-size\": \"1em\",\n display: \"block\",\n },\n\n code: {\n \"font-size\": \"80%\",\n overflow: \"auto\",\n color: \"#333\",\n \"white-space\": \"pre\",\n background: \"rgb(247, 247, 247)\",\n \"border-radius\": \"8px\",\n padding: \"10px\",\n \"line-height\": \"1.5\",\n border: \"1px solid rgb(236,236,236)\",\n margin: \"20px 0\",\n },\n\n image: {\n \"border-radius\": \"4px\",\n display: \"block\",\n margin: \"0.1em auto 0.5em\",\n width: \"100% !important\",\n },\n\n image_org: {\n \"border-radius\": \"4px\",\n display: \"block\",\n },\n\n ol: {\n \"margin-left\": \"0\",\n \"padding-left\": \"1em\",\n },\n\n ul: {\n \"margin-left\": \"0\",\n \"padding-left\": \"1em\",\n \"list-style\": \"circle\",\n },\n\n footnotes: {\n margin: \"0.5em 8px\",\n \"font-size\": \"80%\",\n },\n\n figure: {\n margin: \"1.5em 8px\",\n },\n },\n inline: {\n listitem: {\n \"text-indent\": \"-1em\",\n display: \"block\",\n margin: \"0.2em 8px\",\n },\n\n codespan: {\n \"font-size\": \"90%\",\n \"white-space\": \"pre\",\n color: \"#d14\",\n background: \"rgba(27,31,35,.05)\",\n padding: \"3px 5px\",\n \"border-radius\": \"4px\",\n },\n\n link: {\n color: \"#576b95\",\n },\n\n wx_link: {\n color: \"#576b95\",\n \"text-decoration\": \"none\",\n },\n\n // 字体加粗样式\n strong: {\n color: \"rgba(15, 76, 129, 0.9)\",\n \"font-weight\": \"bold\",\n },\n\n table: {\n \"border-collapse\": \"collapse\",\n \"text-align\": \"center\",\n margin: \"1em 8px\",\n },\n\n thead: {\n background: \"rgba(0, 0, 0, 0.05)\",\n \"font-weight\": \"bold\",\n },\n\n td: {\n border: \"1px solid #dfdfdf\",\n padding: \"0.25em 0.5em\",\n },\n\n footnote: {\n \"font-size\": \"12px\",\n },\n\n figcaption: {\n \"text-align\": \"center\",\n color: \"#888\",\n \"font-size\": \"0.8em\",\n },\n },\n};\n","import default_theme from \"./themes/default-theme\";\nimport prettier from \"prettier/standalone\";\nimport prettierMarkdown from \"prettier/parser-markdown\";\nimport prettierCss from \"prettier/parser-postcss\";\n\n// 设置自定义颜色\nexport function setColorWithTemplate(template) {\n return function (color) {\n let custom_theme = JSON.parse(JSON.stringify(template));\n custom_theme.block.h1[\"border-bottom\"] = `2px solid ${color}`;\n custom_theme.block.h2[\"background\"] = color;\n custom_theme.block.h3[\"border-left\"] = `3px solid ${color}`;\n custom_theme.block.h4[\"color\"] = color;\n custom_theme.inline.strong[\"color\"] = color;\n return custom_theme;\n };\n}\n\nexport const setColorWithCustomTemplate = function setColorWithCustomTemplate(\n template,\n color\n) {\n let custom_theme = JSON.parse(JSON.stringify(template));\n custom_theme.block.h1[\"border-bottom\"] = `2px solid ${color}`;\n custom_theme.block.h2[\"background\"] = color;\n custom_theme.block.h3[\"border-left\"] = `3px solid ${color}`;\n custom_theme.block.h4[\"color\"] = color;\n custom_theme.inline.strong[\"color\"] = color;\n return custom_theme;\n};\n\n// 设置自定义字体大小\nexport function setFontSizeWithTemplate(template) {\n return function (fontSize) {\n let custom_theme = JSON.parse(JSON.stringify(template));\n custom_theme.block.h1[\"font-size\"] = `${fontSize * 1.14}px`;\n custom_theme.block.h2[\"font-size\"] = `${fontSize * 1.1}px`;\n custom_theme.block.h3[\"font-size\"] = `${fontSize}px`;\n custom_theme.block.h4[\"font-size\"] = `${fontSize}px`;\n return custom_theme;\n };\n}\n\nexport const setColor = setColorWithTemplate(default_theme);\nexport const setFontSize = setFontSizeWithTemplate(default_theme);\n\nexport function customCssWithTemplate(jsonString, color, theme) {\n let custom_theme = JSON.parse(JSON.stringify(theme));\n // block\n custom_theme.block.h1[\"border-bottom\"] = `2px solid ${color}`;\n custom_theme.block.h2[\"background\"] = color;\n custom_theme.block.h3[\"border-left\"] = `3px solid ${color}`;\n custom_theme.block.h4[\"color\"] = color;\n custom_theme.inline.strong[\"color\"] = color;\n\n custom_theme.block.h1 = Object.assign(custom_theme.block.h1, jsonString.h1);\n custom_theme.block.h2 = Object.assign(custom_theme.block.h2, jsonString.h2);\n custom_theme.block.h3 = Object.assign(custom_theme.block.h3, jsonString.h3);\n custom_theme.block.h4 = Object.assign(custom_theme.block.h4, jsonString.h4);\n custom_theme.block.p = Object.assign(custom_theme.block.p, jsonString.p);\n custom_theme.block.blockquote = Object.assign(\n custom_theme.block.blockquote,\n jsonString.blockquote\n );\n custom_theme.block.blockquote_p = Object.assign(\n custom_theme.block.blockquote_p,\n jsonString.blockquote_p\n );\n custom_theme.block.image = Object.assign(\n custom_theme.block.image,\n jsonString.image\n );\n\n // inline\n custom_theme.inline.strong = Object.assign(\n custom_theme.inline.strong,\n jsonString.strong\n );\n custom_theme.inline.codespan = Object.assign(\n custom_theme.inline.codespan,\n jsonString.codespan\n );\n custom_theme.inline.link = Object.assign(\n custom_theme.inline.link,\n jsonString.link\n );\n custom_theme.inline.wx_link = Object.assign(\n custom_theme.inline.wx_link,\n jsonString.wx_link\n );\n custom_theme.block.ul = Object.assign(custom_theme.block.ul, jsonString.ul);\n custom_theme.block.ol = Object.assign(custom_theme.block.ol, jsonString.ol);\n custom_theme.inline.listitem = Object.assign(\n custom_theme.inline.listitem,\n jsonString.li\n );\n return custom_theme;\n}\n\n/**\n * 将CSS形式的字符串转换为JSON\n *\n * @param {css字符串} css\n */\nexport function css2json(css) {\n // 移除CSS所有注释\n let open, close;\n while (\n (open = css.indexOf(\"/*\")) !== -1 &&\n (close = css.indexOf(\"*/\")) !== -1\n ) {\n css = css.substring(0, open) + css.substring(close + 2);\n }\n\n // 初始化返回值\n let json = {};\n\n while (css.length > 0 && css.indexOf(\"{\") !== -1 && css.indexOf(\"}\") !== -1) {\n // 存储第一个左/右花括号的下标\n const lbracket = css.indexOf(\"{\");\n const rbracket = css.indexOf(\"}\");\n\n // 第一步:将声明转换为Object,如:\n // `font: 'Times New Roman' 1em; color: #ff0000; margin-top: 1em;`\n // ==>\n // `{\"font\": \"'Times New Roman' 1em\", \"color\": \"#ff0000\", \"margin-top\": \"1em\"}`\n\n // 辅助方法:将array转为object\n function toObject(array) {\n let ret = {};\n array.forEach((e) => {\n const index = e.indexOf(\":\");\n const property = e.substring(0, index).trim();\n const value = e.substring(index + 1).trim();\n ret[property] = value;\n });\n return ret;\n }\n\n // 切割声明块并移除空白符,然后放入数组中\n let declarations = css\n .substring(lbracket + 1, rbracket)\n .split(\";\")\n .map((e) => e.trim())\n .filter((e) => e.length > 0); // 移除所有\"\"空值\n\n // 转为Object对象\n declarations = toObject(declarations);\n\n // 第二步:选择器处理,每个选择器会与它对应的声明相关联,如:\n // `h1, p#bar {color: red}`\n // ==>\n // {\"h1\": {color: red}, \"p#bar\": {color: red}}\n\n let selectors = css\n .substring(0, lbracket)\n // 以,切割,并移除空格:`\"h1, p#bar, span.foo\"` => [\"h1\", \"p#bar\", \"span.foo\"]\n .split(\",\")\n .map((selector) => selector.trim());\n\n // 迭代赋值\n selectors.forEach((selector) => {\n // 若不存在,则先初始化\n if (!json[selector]) json[selector] = {};\n // 赋值到JSON\n Object.keys(declarations).forEach((key) => {\n json[selector][key] = declarations[key];\n });\n });\n\n // 继续下个声明块\n css = css.slice(rbracket + 1).trim();\n }\n\n // 返回JSON形式的结果串\n return json;\n}\n\n/**\n * 将编辑器内容保存到 LocalStorage\n * @param {*} editor\n * @param {*} name\n */\nexport function saveEditorContent(editor, name) {\n const content = editor.getValue(0);\n if (content) {\n localStorage.setItem(name, content);\n } else {\n localStorage.removeItem(name);\n }\n}\n\n/**\n * 格式化文档\n * @param {文档内容} content\n */\nexport function formatDoc(content) {\n const doc = prettier.format(content, {\n parser: \"markdown\",\n plugins: [prettierMarkdown],\n });\n return doc;\n}\n\n/**\n * 格式化css\n * @param {css内容}} content\n */\nexport function formatCss(content) {\n const doc = prettier.format(content, {\n parser: \"css\",\n plugins: [prettierCss],\n });\n return doc;\n}\n\nexport function fixCodeWhiteSpace(value = \"pre\") {\n const preDomList = document.getElementsByClassName(\"code__pre\");\n if (preDomList.length > 0) {\n preDomList.forEach((pre) => {\n pre.style.whiteSpace = value;\n });\n }\n}\n\n/**\n * 导出原始 Markdown 文档\n * @param {文档内容} doc\n */\nexport function downloadMD(doc) {\n let downLink = document.createElement(\"a\");\n\n downLink.download = \"content.md\";\n downLink.style.display = \"none\";\n let blob = new Blob([doc]);\n\n downLink.href = URL.createObjectURL(blob);\n document.body.appendChild(downLink);\n downLink.click();\n document.body.removeChild(downLink);\n}\n\n/**\n * 导出 HTML 生成内容\n */\nexport function exportHTML() {\n const element = document.querySelector(\"#output\");\n setStyles(element);\n const htmlStr = element.innerHTML;\n\n const downLink = document.createElement(\"a\");\n\n downLink.download = \"content.html\";\n downLink.style.display = \"none\";\n let blob = new Blob([\n `
${htmlStr}
`,\n ]);\n\n downLink.href = URL.createObjectURL(blob);\n document.body.appendChild(downLink);\n downLink.click();\n document.body.removeChild(downLink);\n\n function setStyles(element) {\n switch (true) {\n case isSection(element):\n case isPre(element):\n case isCode(element):\n case isSpan(element):\n element.setAttribute(\"style\", getElementStyles(element));\n default:\n }\n if (element.children.length) {\n Array.from(element.children).forEach((child) => setStyles(child));\n }\n\n // 判断是否是包裹代码块的 section 元素\n function isSection(element) {\n return (\n element.tagName === \"SECTION\" &&\n Array.from(element.classList).includes(\"code-snippet__github\")\n );\n }\n // 判断是否是包裹代码块的 pre 元素\n function isPre(element) {\n return (\n element.tagName === \"PRE\" &&\n Array.from(element.classList).includes(\"code__pre\")\n );\n }\n // 判断是否是包裹代码块的 code 元素\n function isCode(element) {\n return (\n element.tagName === \"CODE\" &&\n Array.from(element.classList).includes(\"prettyprint\")\n );\n }\n // 判断是否是包裹代码字符的 span 元素\n function isSpan(element) {\n return (\n element.tagName === \"SPAN\" &&\n (isCode(element.parentElement) ||\n isCode(element.parentElement.parentElement))\n );\n }\n }\n}\n\n/**\n * 生成列表字符串\n * @param {*} data 对应内容集合\n * @param {*} rows 行\n * @param {*} cols 列\n */\nexport function createTable({ data, rows, cols }) {\n let table = \"\";\n let currRow = [];\n for (let i = 0; i < rows + 2; ++i) {\n table += \"|\\t\";\n currRow = [];\n for (let j = 0; j < cols; ++j) {\n const rowIdx = i > 1 ? i - 1 : i;\n i === 1\n ? currRow.push(\"---\\t\")\n : currRow.push(data[`k_${rowIdx}_${j}`] || \"\");\n }\n table += currRow.join(\"\\t|\\t\");\n table += \"\\t|\\n\";\n }\n\n return table;\n}\n\nexport const toBase64 = (file) =>\n new Promise((resolve, reject) => {\n const reader = new FileReader();\n reader.readAsDataURL(file);\n reader.onload = () => resolve(reader.result.split(\",\").pop());\n reader.onerror = (error) => reject(error);\n });\n\nexport function checkImage(file) {\n // check filename suffix\n const isValidSuffix = /\\.(gif|jpg|jpeg|png|GIF|JPG|PNG)$/.test(file.name);\n if (!isValidSuffix) {\n return {\n ok: false,\n msg: \"请上传 JPG/PNG/GIF 格式的图片\",\n };\n }\n\n // check file size\n const maxSize = 5;\n const isLt5M = file.size / 1024 / 1024 <= maxSize;\n if (!isLt5M) {\n return {\n ok: false,\n msg: `由于公众号限制,图片大小不能超过 ${maxSize}M`,\n };\n }\n return { ok: true };\n}\n\n/**\n * 获取一个 DOM 元素的所有样式,\n * @param {DOM 元素} element DOM 元素\n * @param {排除的属性} excludes 如果某些属性对结果有不良影响,可以使用这个参数来排除\n * @returns 行内样式拼接结果\n */\nfunction getElementStyles(element, excludes = [\"width\", \"height\"]) {\n const styles = getComputedStyle(element, null);\n return Object.entries(styles)\n .filter(([key]) => styles.getPropertyValue(key) && !excludes.includes(key))\n .map(([key, value]) => `${key}:${value};`)\n .join(\"\");\n}\n\n/**\n * 移除左边多余空格\n * @param {*} str \n * @returns \n */\nexport function removeLeft(str) {\n const lines = str.split('\\n')\n // 获取应该删除的空白符数量\n const minSpaceNum = lines.filter(item => item.trim())\n .map(item => item.match(/(^\\s+)?/)[0].length)\n .sort((a, b) => a - b)[0]\n // 删除空白符\n const newStr = lines\n .map(item => item.slice(minSpaceNum))\n .join('\\n')\n return newStr\n}","import Vue from \"vue\";\nimport Vuex from \"vuex\";\nimport config from \"../assets/scripts/config\";\nimport WxRenderer from \"../assets/scripts/renderers/wx-renderer\";\nimport marked from \"marked\";\nimport CodeMirror from \"codemirror/lib/codemirror\";\nimport DEFAULT_CONTENT from \"@/assets/example/markdown.md\";\nimport DEFAULT_CSS_CONTENT from \"@/assets/example/theme-css.txt\";\nimport { setColor, formatDoc, formatCss } from \"../assets/scripts/util\";\n\nVue.use(Vuex);\n\nconst state = {\n wxRenderer: null,\n output: \"\",\n html: \"\",\n editor: null,\n cssEditor: null,\n currentFont: \"\",\n currentSize: \"\",\n currentColor: \"\",\n citeStatus: 0,\n nightMode: false,\n codeTheme: \"github\",\n rightClickMenuVisible: false,\n};\nconst mutations = {\n setEditorValue(state, data) {\n state.editor.setValue(data);\n },\n setCssEditorValue(state, data) {\n state.cssEditor.setValue(data);\n },\n setWxRendererOptions(state, data) {\n state.wxRenderer.setOptions(data);\n },\n setCiteStatus(state, data) {\n state.citeStatus = data;\n localStorage.setItem(\"citeStatus\", data);\n },\n setCurrentFont(state, data) {\n state.currentFont = data;\n localStorage.setItem(\"fonts\", data);\n },\n setCurrentSize(state, data) {\n state.currentSize = data;\n localStorage.setItem(\"size\", data);\n },\n setCurrentColor(state, data) {\n state.currentColor = data;\n localStorage.setItem(\"color\", data);\n },\n setCurrentCodeTheme(state, data) {\n state.codeTheme = data;\n localStorage.setItem(\"codeTheme\", data);\n },\n setRightClickMenuVisible(state, data) {\n state.rightClickMenuVisible = data;\n },\n themeChanged(state) {\n state.nightMode = !state.nightMode;\n localStorage.setItem(\"nightMode\", state.nightMode);\n },\n initEditorState(state) {\n state.currentFont =\n localStorage.getItem(\"fonts\") || config.builtinFonts[0].value;\n state.currentColor =\n localStorage.getItem(\"color\") || config.colorOption[0].value;\n state.currentSize =\n localStorage.getItem(\"size\") || config.sizeOption[2].value;\n state.codeTheme =\n localStorage.getItem(\"codeTheme\") || config.codeThemeOption[0].value;\n state.citeStatus = localStorage.getItem(\"citeStatus\") === \"true\";\n state.nightMode = localStorage.getItem(\"nightMode\") === \"true\";\n state.wxRenderer = new WxRenderer({\n theme: setColor(state.currentColor),\n fonts: state.currentFont,\n size: state.currentSize,\n status: state.citeStatus,\n });\n },\n initEditorEntity(state) {\n const editorDom = document.getElementById(\"editor\");\n\n if (!editorDom.value) {\n editorDom.value =\n localStorage.getItem(\"__editor_content\") || formatDoc(DEFAULT_CONTENT);\n }\n state.editor = CodeMirror.fromTextArea(editorDom, {\n mode: \"text/x-markdown\",\n theme: \"xq-light\",\n lineNumbers: false,\n lineWrapping: true,\n styleActiveLine: true,\n autoCloseBrackets: true,\n extraKeys: {\n \"Ctrl-F\": function autoFormat(editor) {\n const doc = formatDoc(editor.getValue(0));\n localStorage.setItem(\"__editor_content\", doc);\n editor.setValue(doc);\n },\n \"Ctrl-S\": function save(editor) {},\n \"Ctrl-B\": function bold(editor) {\n const selected = editor.getSelection();\n editor.replaceSelection(`**${selected}**`);\n },\n \"Ctrl-D\": function del(editor) {\n const selected = editor.getSelection();\n editor.replaceSelection(`~~${selected}~~`);\n },\n \"Ctrl-I\": function italic(editor) {\n const selected = editor.getSelection();\n editor.replaceSelection(`*${selected}*`);\n }\n },\n });\n },\n initCssEditorEntity(state) {\n const cssEditorDom = document.getElementById(\"cssEditor\");\n\n if (!cssEditorDom.value) {\n cssEditorDom.value =\n localStorage.getItem(\"__css_content\") || DEFAULT_CSS_CONTENT;\n }\n state.cssEditor = CodeMirror.fromTextArea(cssEditorDom, {\n mode: \"css\",\n theme: \"style-mirror\",\n lineNumbers: false,\n lineWrapping: true,\n matchBrackets: true,\n autofocus: true,\n extraKeys: {\n \"Ctrl-F\": function autoFormat(editor) {\n const doc = formatCss(editor.getValue(0));\n localStorage.setItem(\"__css_content\", doc);\n editor.setValue(doc);\n },\n \"Ctrl-S\": function save(editor) {},\n },\n });\n },\n editorRefresh(state) {\n let output = marked(state.editor.getValue(0), {\n renderer: state.wxRenderer.getRenderer(state.citeStatus),\n });\n\n // 去除第一行的 margin-top\n output = output.replace(/(style=\".*?)\"/, '$1;margin-top: 0\"');\n if (state.citeStatus) {\n // 引用脚注\n output += state.wxRenderer.buildFootnotes();\n // 附加的一些 style\n output += state.wxRenderer.buildAddition();\n }\n state.output = output;\n },\n clearEditorToDefault(state) {\n const doc = formatDoc(DEFAULT_CONTENT);\n\n state.editor.setValue(doc);\n state.cssEditor.setValue(DEFAULT_CSS_CONTENT);\n },\n};\n\nexport default new Vuex.Store({\n state,\n mutations,\n actions: {},\n});\n","import Vue from \"vue\";\nimport {\n Loading,\n Message,\n} from \"element-ui\";\n\nVue.component(Message.name, Message);\n\nVue.prototype.$loading = Loading.service;\nVue.prototype.$message = Message;\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.loading)?_c('transition',{attrs:{\"name\":\"fade\"}},[_c('loading')],1):_c('codemirror-editor')}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container\",class:{ container_night: _vm.nightMode }},[_c('el-container',[_c('el-header',{staticClass:\"editor__header\"},[_c('editor-header',{ref:\"header\",on:{\"refresh\":_vm.onEditorRefresh,\"cssChanged\":_vm.cssChanged,\"download\":_vm.downloadEditorContent,\"export\":_vm.exportEditorContent,\"showCssEditor\":function($event){_vm.showCssEditor = !_vm.showCssEditor},\"show-about-dialog\":function($event){_vm.aboutDialogVisible = true},\"show-dialog-form\":function($event){_vm.dialogFormVisible = true},\"show-dialog-upload-img\":function($event){_vm.dialogUploadImgVisible = true},\"startCopy\":function($event){(_vm.isCoping = true), (_vm.backLight = true)},\"endCopy\":_vm.endCopy}})],1),_c('el-main',{staticClass:\"main-body\"},[_c('el-row',{staticClass:\"main-section\"},[_c('el-col',{staticClass:\"codeMirror-wrapper\",attrs:{\"span\":12},nativeOn:{\"contextmenu\":function($event){$event.preventDefault();return _vm.openMenu($event)}}},[_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.source),expression:\"source\"}],attrs:{\"id\":\"editor\",\"type\":\"textarea\",\"placeholder\":\"Your markdown text here.\"},domProps:{\"value\":(_vm.source)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.source=$event.target.value}}})]),_c('el-col',{ref:\"preview\",staticClass:\"preview-wrapper\",class:{\n 'preview-wrapper_night': _vm.nightMode && _vm.isCoping,\n },attrs:{\"span\":12,\"id\":\"preview\"}},[_c('section',{class:{ output_night: _vm.nightMode && !_vm.backLight },attrs:{\"id\":\"output-wrapper\"}},[_c('div',{staticClass:\"preview\"},[_c('section',{attrs:{\"id\":\"output\"},domProps:{\"innerHTML\":_vm._s(_vm.output)}}),(_vm.nightMode && _vm.isCoping)?_c('div',{staticClass:\"loading-mask\"},[_c('div',{staticClass:\"loading__img\"}),_c('span',[_vm._v(\"正在生成\")])]):_vm._e()])])]),_c('transition',{attrs:{\"name\":\"custom-classes-transition\",\"enter-active-class\":\"bounceInRight\"}},[_c('el-col',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showCssEditor),expression:\"showCssEditor\"}],staticClass:\"cssEditor-wrapper\",attrs:{\"id\":\"cssBox\",\"span\":12}},[_c('textarea',{attrs:{\"id\":\"cssEditor\",\"type\":\"textarea\",\"placeholder\":\"Your custom css here.\"}})])],1)],1)],1)],1),_c('upload-img-dialog',{on:{\"close\":function($event){_vm.dialogUploadImgVisible = false},\"beforeUpload\":_vm.beforeUpload,\"uploadImage\":_vm.uploadImage,\"uploaded\":_vm.uploaded},model:{value:(_vm.dialogUploadImgVisible),callback:function ($$v) {_vm.dialogUploadImgVisible=$$v},expression:\"dialogUploadImgVisible\"}}),_c('about-dialog',{model:{value:(_vm.aboutDialogVisible),callback:function ($$v) {_vm.aboutDialogVisible=$$v},expression:\"aboutDialogVisible\"}}),_c('insert-form-dialog',{model:{value:(_vm.dialogFormVisible),callback:function ($$v) {_vm.dialogFormVisible=$$v},expression:\"dialogFormVisible\"}}),_c('right-click-menu',{attrs:{\"left\":_vm.mouseLeft,\"top\":_vm.mouseTop},on:{\"menuTick\":_vm.onMenuEvent,\"closeMenu\":_vm.closeRightClickMenu},model:{value:(_vm.rightClickMenuVisible),callback:function ($$v) {_vm.rightClickMenuVisible=$$v},expression:\"rightClickMenuVisible\"}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-container',{staticClass:\"top is-dark\"},[_c('div',{staticClass:\"left-side\"},[_c('el-tooltip',{attrs:{\"effect\":_vm.effect,\"content\":\"上传图片\",\"placement\":\"bottom-start\"}},[_c('i',{staticClass:\"el-icon-upload\",attrs:{\"size\":\"medium\"},on:{\"click\":function($event){return _vm.$emit('show-dialog-upload-img')}}})]),_c('el-tooltip',{staticClass:\"header__item\",attrs:{\"effect\":_vm.effect,\"content\":\"导出 Markdown 文档\",\"placement\":\"bottom-start\"}},[_c('i',{staticClass:\"el-icon-download\",attrs:{\"size\":\"medium\"},on:{\"click\":function($event){return _vm.$emit('download')}}})]),_c('el-tooltip',{staticClass:\"header__item\",attrs:{\"effect\":_vm.effect,\"content\":\"导出 HTML 页面\",\"placement\":\"bottom-start\"}},[_c('i',{staticClass:\"el-icon-document\",attrs:{\"size\":\"medium\"},on:{\"click\":function($event){return _vm.$emit('export')}}})]),_c('el-tooltip',{staticClass:\"header__item\",attrs:{\"effect\":_vm.effect,\"content\":\"重置页面\",\"placement\":\"bottom-start\"}},[_c('i',{staticClass:\"el-icon-refresh\",attrs:{\"size\":\"medium\"},on:{\"click\":function($event){_vm.showResetConfirm = true}}})]),_c('el-tooltip',{staticClass:\"header__item header__item_last\",attrs:{\"effect\":_vm.effect,\"content\":\"插入表格\",\"placement\":\"bottom-start\"}},[_c('i',{staticClass:\"el-icon-s-grid\",attrs:{\"size\":\"medium\"},on:{\"click\":function($event){return _vm.$emit('show-dialog-form')}}})]),_c('el-select',{attrs:{\"size\":\"mini\",\"placeholder\":\"选择字体\",\"clearable\":\"\"},on:{\"change\":_vm.fontChanged},model:{value:(_vm.selectFont),callback:function ($$v) {_vm.selectFont=$$v},expression:\"selectFont\"}},_vm._l((_vm.config.builtinFonts),function(font){return _c('el-option',{key:font.value,style:({ fontFamily: font.value }),attrs:{\"label\":font.label,\"value\":font.value}},[_c('span',{staticClass:\"select-item-left\"},[_vm._v(_vm._s(font.label))]),_c('span',{staticClass:\"select-item-right\"},[_vm._v(\"Abc\")])])}),1),_c('el-select',{attrs:{\"size\":\"mini\",\"placeholder\":\"选择段落字号\",\"clearable\":\"\"},on:{\"change\":_vm.sizeChanged},model:{value:(_vm.selectSize),callback:function ($$v) {_vm.selectSize=$$v},expression:\"selectSize\"}},_vm._l((_vm.config.sizeOption),function(size){return _c('el-option',{key:size.value,attrs:{\"label\":size.label,\"value\":size.value}},[_c('span',{staticClass:\"select-item-left\"},[_vm._v(_vm._s(size.label))]),_c('span',{staticClass:\"select-item-right\"},[_vm._v(_vm._s(size.desc))])])}),1),_c('el-select',{attrs:{\"size\":\"mini\",\"placeholder\":\"选择颜色\",\"clearable\":\"\"},on:{\"change\":_vm.colorChanged},model:{value:(_vm.selectColor),callback:function ($$v) {_vm.selectColor=$$v},expression:\"selectColor\"}},_vm._l((_vm.config.colorOption),function(color){return _c('el-option',{key:color.value,attrs:{\"label\":color.label,\"value\":color.value}},[_c('span',{staticClass:\"select-item-left\"},[_vm._v(_vm._s(color.label))]),_c('span',{staticClass:\"select-item-right\"},[_vm._v(_vm._s(color.desc))])])}),1),_c('el-tooltip',{attrs:{\"content\":\"自定义颜色\",\"effect\":_vm.effect,\"placement\":\"top\"}},[_c('el-color-picker',{attrs:{\"size\":\"mini\",\"show-alpha\":\"\"},on:{\"change\":_vm.colorChanged},model:{value:(_vm.selectColor),callback:function ($$v) {_vm.selectColor=$$v},expression:\"selectColor\"}})],1),_c('el-tooltip',{attrs:{\"content\":\"微信外链自动转为文末引用\",\"effect\":_vm.effect,\"placement\":\"top\"}},[_c('el-switch',{staticClass:\"header__switch\",attrs:{\"active-color\":\"#67c23a\",\"inactive-color\":\"#dcdfe6\"},on:{\"change\":_vm.statusChanged},model:{value:(_vm.citeStatus),callback:function ($$v) {_vm.citeStatus=$$v},expression:\"citeStatus\"}})],1)],1),_c('div',{staticClass:\"right-side\"},[_c('el-tooltip',{staticClass:\"item\",attrs:{\"effect\":_vm.effect,\"content\":\"自定义CSS样式\",\"placement\":\"left\"}},[_c('el-button',{attrs:{\"type\":_vm.btnType,\"plain\":\"\",\"size\":\"medium\",\"icon\":\"el-icon-setting\"},on:{\"click\":_vm.customStyle}})],1),_c('el-button',{attrs:{\"type\":_vm.btnType,\"plain\":\"\",\"size\":\"medium\",\"placement\":\"bottom-start\"},on:{\"click\":_vm.copy}},[_vm._v(\"复制\")]),_c('el-button',{staticClass:\"about\",attrs:{\"type\":_vm.btnType,\"plain\":\"\",\"size\":\"medium\"},on:{\"click\":function($event){return _vm.$emit('show-about-dialog')}}},[_vm._v(\"关于\")]),_c('el-tooltip',{attrs:{\"content\":_vm.btnContent,\"effect\":_vm.effect,\"placement\":\"bottom-start\"}},[(_vm.nightMode)?_c('div',{staticClass:\"mode__switch mode__switch_black\",on:{\"click\":_vm.themeChanged}}):_c('div',{staticClass:\"mode__switch\",on:{\"click\":_vm.themeChanged}})])],1),_c('resetDialog',{attrs:{\"showResetConfirm\":_vm.showResetConfirm},on:{\"confirm\":_vm.confirmReset,\"close\":_vm.cancelReset}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import juice from \"juice\";\n\nexport function solveWeChatImage() {\n const clipboardDiv = document.getElementById(\"output\");\n const images = clipboardDiv.getElementsByTagName(\"img\");\n for (let i = 0; i < images.length; i++) {\n const image = images[i];\n const width = image.getAttribute(\"width\");\n const height = image.getAttribute(\"height\");\n image.removeAttribute(\"width\");\n image.removeAttribute(\"height\");\n image.style.width = width;\n image.style.height = height;\n }\n}\nexport function solveHtml() {\n const element = document.getElementById(\"output-wrapper\");\n let html = element.innerHTML;\n let res = \"\";\n res = juice.inlineContent(html, {\n inlinePseudoElements: true,\n preserveImportant: true,\n });\n return res;\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{staticClass:\"reset__dialog\",attrs:{\"title\":\"提示\",\"visible\":_vm.showResetConfirm},on:{\"close\":function($event){return _vm.$emit('close')}}},[_c('div',{staticClass:\"text\"},[_vm._v(\"此操作将丢失本地缓存的文本和自定义样式,是否继续?\")]),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{attrs:{\"type\":_vm.btnType,\"plain\":\"\"},on:{\"click\":function($event){return _vm.$emit('close')}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":_vm.btnType,\"plain\":\"\"},on:{\"click\":function($event){return _vm.$emit('confirm')}}},[_vm._v(\"确 定\")])],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./resetDialog.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./resetDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./resetDialog.vue?vue&type=template&id=68392714&scoped=true&\"\nimport script from \"./resetDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./resetDialog.vue?vue&type=script&lang=js&\"\nimport style0 from \"./resetDialog.vue?vue&type=style&index=0&id=68392714&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"68392714\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./header.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./header.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./header.vue?vue&type=template&id=1d12595a&scoped=true&\"\nimport script from \"./header.vue?vue&type=script&lang=js&\"\nexport * from \"./header.vue?vue&type=script&lang=js&\"\nimport style0 from \"./header.vue?vue&type=style&index=0&id=1d12595a&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"1d12595a\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{staticClass:\"about__dialog\",attrs:{\"title\":\"关于\",\"visible\":_vm.value,\"width\":\"30%\",\"center\":\"\"},on:{\"close\":function($event){return _vm.$emit('input', false)}}},[_c('div',{staticStyle:{\"text-align\":\"center\"}},[_c('h3',[_vm._v(\"一款高度简洁的微信 Markdown 编辑器\")])]),_c('div',{staticStyle:{\"text-align\":\"center\",\"margin-top\":\"10px\"}},[_c('p',[_vm._v(\"扫码关注我的公众号,原创技术文章第一时间推送!\")]),_c('img',{staticStyle:{\"width\":\"40%\",\"display\":\"block\",\"margin\":\"20px auto 10px\"},attrs:{\"src\":\"https://gitee.com/yanglbme/resource/raw/master/doocs-md/qrcode.png\"}})]),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{attrs:{\"type\":\"primary\",\"plain\":\"\"},on:{\"click\":function($event){return _vm.onRedirect('https://github.com/doocs/md')}}},[_vm._v(\"GitHub 仓库\")]),_c('el-button',{attrs:{\"type\":\"primary\",\"plain\":\"\"},on:{\"click\":function($event){return _vm.onRedirect('https://gitee.com/doocs/md')}}},[_vm._v(\"Gitee 仓库\")])],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./aboutDialog.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./aboutDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./aboutDialog.vue?vue&type=template&id=70c50907&scoped=true&\"\nimport script from \"./aboutDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./aboutDialog.vue?vue&type=script&lang=js&\"\nimport style0 from \"./aboutDialog.vue?vue&type=style&index=0&id=70c50907&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"70c50907\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{staticClass:\"insert__dialog\",attrs:{\"title\":\"插入表格\",\"visible\":_vm.value,\"border\":\"\"},on:{\"close\":function($event){return _vm.$emit('input', false)}}},[_c('el-row',{staticClass:\"tb-options\",attrs:{\"type\":\"flex\",\"align\":\"middle\",\"gutter\":10}},[_c('el-col',[_vm._v(\" 行数: \"),_c('el-input-number',{attrs:{\"controls-position\":\"right\",\"min\":1,\"max\":100,\"size\":\"small\"},model:{value:(_vm.rowNum),callback:function ($$v) {_vm.rowNum=$$v},expression:\"rowNum\"}})],1),_c('el-col',[_vm._v(\" 列数: \"),_c('el-input-number',{attrs:{\"controls-position\":\"right\",\"min\":1,\"max\":100,\"size\":\"small\"},model:{value:(_vm.colNum),callback:function ($$v) {_vm.colNum=$$v},expression:\"colNum\"}})],1)],1),_c('table',{staticClass:\"input-table\",staticStyle:{\"border-collapse\":\"collapse\"}},_vm._l((_vm.rowNum + 1),function(row){return _c('tr',{key:row,class:{ 'head-style': row === 1 }},_vm._l((_vm.colNum),function(col){return _c('td',{key:col},[_c('el-input',{attrs:{\"align\":\"center\",\"placeholder\":row === 1 ? '表头' : ''},model:{value:(_vm.tableData[(\"k_\" + (row - 1) + \"_\" + (col - 1))]),callback:function ($$v) {_vm.$set(_vm.tableData, (\"k_\" + (row - 1) + \"_\" + (col - 1)), $$v)},expression:\"tableData[`k_${row - 1}_${col - 1}`]\"}})],1)}),0)}),0),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{attrs:{\"type\":_vm.btnType,\"plain\":\"\"},on:{\"click\":function($event){return _vm.$emit('input', false)}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":_vm.btnType,\"plain\":\"\"},on:{\"click\":_vm.insertTable}},[_vm._v(\"确 定\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./insertForm.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./insertForm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./insertForm.vue?vue&type=template&id=4dd4e7e2&scoped=true&\"\nimport script from \"./insertForm.vue?vue&type=script&lang=js&\"\nexport * from \"./insertForm.vue?vue&type=script&lang=js&\"\nimport style0 from \"./insertForm.vue?vue&type=style&index=0&id=4dd4e7e2&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4dd4e7e2\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('ul',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.value),expression:\"value\"}],staticClass:\"menu\",style:((\"left: \" + _vm.left + \"px;top: \" + _vm.top + \"px;\")),attrs:{\"id\":\"menu\"}},_vm._l((_vm.menu),function(menuItem,index){return _c('div',{key:index,staticClass:\"menu__group\"},_vm._l((menuItem),function(item){return _c('li',{key:item.key,staticClass:\"menu_item\",on:{\"mousedown\":function($event){return _vm.onMouseDown(item.key)}}},[_c('span',[_vm._v(_vm._s(item.text))])])}),0)}),0)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./rightClickMenu.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./rightClickMenu.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./rightClickMenu.vue?vue&type=template&id=a704a2f8&scoped=true&\"\nimport script from \"./rightClickMenu.vue?vue&type=script&lang=js&\"\nexport * from \"./rightClickMenu.vue?vue&type=script&lang=js&\"\nimport style0 from \"./rightClickMenu.vue?vue&type=style&index=0&id=a704a2f8&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"a704a2f8\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{staticClass:\"upload__dialog\",attrs:{\"title\":\"本地上传\",\"visible\":_vm.value},on:{\"close\":function($event){return _vm.$emit('close')}}},[_c('el-tabs',{attrs:{\"type\":\"activeName\"},model:{value:(_vm.activeName),callback:function ($$v) {_vm.activeName=$$v},expression:\"activeName\"}},[_c('el-tab-pane',{staticClass:\"upload-panel\",attrs:{\"label\":\"选择上传\",\"name\":\"upload\"}},[_c('el-select',{attrs:{\"placeholder\":\"请选择\",\"size\":\"small\"},on:{\"change\":_vm.changeImgHost},model:{value:(_vm.imgHost),callback:function ($$v) {_vm.imgHost=$$v},expression:\"imgHost\"}},_vm._l((_vm.options),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}),1),_c('el-upload',{attrs:{\"drag\":\"\",\"action\":\"\",\"headers\":{ 'Content-Type': 'multipart/form-data' },\"show-file-list\":false,\"multiple\":true,\"accept\":\".jpg, .jpeg, .png, .gif\",\"name\":\"file\",\"before-upload\":_vm.beforeImageUpload,\"http-request\":_vm.uploadImage}},[_c('i',{staticClass:\"el-icon-upload\"}),_c('div',{staticClass:\"el-upload__text\"},[_vm._v(\" 将图片拖到此处,或 \"),_c('em',[_vm._v(\"点击上传\")])])])],1),_c('el-tab-pane',{staticClass:\"github-panel\",attrs:{\"label\":\"Gitee 图床\",\"name\":\"gitee\"}},[_c('el-form',{staticClass:\"setting-form\",attrs:{\"model\":_vm.formGitee,\"label-position\":\"right\",\"label-width\":\"140px\"}},[_c('el-form-item',{attrs:{\"label\":\"Gitee 仓库\",\"required\":true}},[_c('el-input',{attrs:{\"placeholder\":\"如:gitee.com/yanglbme/resource\"},model:{value:(_vm.formGitee.repo),callback:function ($$v) {_vm.$set(_vm.formGitee, \"repo\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formGitee.repo\"}})],1),_c('el-form-item',{attrs:{\"label\":\"分支\"}},[_c('el-input',{attrs:{\"placeholder\":\"如:release,可不填,默认 master\"},model:{value:(_vm.formGitee.branch),callback:function ($$v) {_vm.$set(_vm.formGitee, \"branch\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formGitee.branch\"}})],1),_c('el-form-item',{attrs:{\"label\":\"私人令牌\",\"required\":true}},[_c('el-input',{attrs:{\"show-password\":\"\",\"placeholder\":\"如:cc1d0c1426d0fd0902bd2d7184b14da61b8abc46\"},model:{value:(_vm.formGitee.accessToken),callback:function ($$v) {_vm.$set(_vm.formGitee, \"accessToken\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formGitee.accessToken\"}}),_c('el-link',{attrs:{\"type\":\"primary\",\"href\":\"https://gitee.com/profile/personal_access_tokens\",\"target\":\"_blank\"}},[_vm._v(\"请在 Gitee「设置->安全设置->私人令牌」中生成\")])],1),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.saveGiteeConfiguration}},[_vm._v(\"保存配置\")])],1)],1)],1),_c('el-tab-pane',{staticClass:\"github-panel\",attrs:{\"label\":\"GitHub 图床\",\"name\":\"github\"}},[_c('el-form',{staticClass:\"setting-form\",attrs:{\"model\":_vm.formGitHub,\"label-position\":\"right\",\"label-width\":\"140px\"}},[_c('el-form-item',{attrs:{\"label\":\"GitHub 仓库\",\"required\":true}},[_c('el-input',{attrs:{\"placeholder\":\"如:github.com/yanglbme/resource\"},model:{value:(_vm.formGitHub.repo),callback:function ($$v) {_vm.$set(_vm.formGitHub, \"repo\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formGitHub.repo\"}})],1),_c('el-form-item',{attrs:{\"label\":\"分支\"}},[_c('el-input',{attrs:{\"placeholder\":\"如:release,可不填,默认 master\"},model:{value:(_vm.formGitHub.branch),callback:function ($$v) {_vm.$set(_vm.formGitHub, \"branch\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formGitHub.branch\"}})],1),_c('el-form-item',{attrs:{\"label\":\"Token\",\"required\":true}},[_c('el-input',{attrs:{\"show-password\":\"\",\"placeholder\":\"如:cc1d0c1426d0fd0902bd2d7184b14da61b8abc46\"},model:{value:(_vm.formGitHub.accessToken),callback:function ($$v) {_vm.$set(_vm.formGitHub, \"accessToken\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formGitHub.accessToken\"}}),_c('el-link',{attrs:{\"type\":\"primary\",\"href\":\"https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token\",\"target\":\"_blank\"}},[_vm._v(\"如何获取 GitHub Token?\")])],1),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.saveGitHubConfiguration}},[_vm._v(\"保存配置\")])],1)],1)],1),_c('el-tab-pane',{staticClass:\"github-panel\",attrs:{\"label\":\"阿里云 OSS\",\"name\":\"aliOSS\"}},[_c('el-form',{staticClass:\"setting-form\",attrs:{\"model\":_vm.formAliOSS,\"label-position\":\"right\",\"label-width\":\"140px\"}},[_c('el-form-item',{attrs:{\"label\":\"AccessKey ID\",\"required\":true}},[_c('el-input',{attrs:{\"placeholder\":\"如:LTAI4GdoocsmdoxUf13ylbaNHk\"},model:{value:(_vm.formAliOSS.accessKeyId),callback:function ($$v) {_vm.$set(_vm.formAliOSS, \"accessKeyId\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formAliOSS.accessKeyId\"}})],1),_c('el-form-item',{attrs:{\"label\":\"AccessKey Secret\",\"required\":true}},[_c('el-input',{attrs:{\"show-password\":\"\",\"placeholder\":\"如:cc1d0c142doocs0902bd2d7md4b14da6ylbabc46\"},model:{value:(_vm.formAliOSS.accessKeySecret),callback:function ($$v) {_vm.$set(_vm.formAliOSS, \"accessKeySecret\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formAliOSS.accessKeySecret\"}})],1),_c('el-form-item',{attrs:{\"label\":\"Bucket\",\"required\":true}},[_c('el-input',{attrs:{\"placeholder\":\"如:doocs\"},model:{value:(_vm.formAliOSS.bucket),callback:function ($$v) {_vm.$set(_vm.formAliOSS, \"bucket\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formAliOSS.bucket\"}})],1),_c('el-form-item',{attrs:{\"label\":\"Bucket 所在区域\",\"required\":true}},[_c('el-input',{attrs:{\"placeholder\":\"如:oss-cn-shenzhen\"},model:{value:(_vm.formAliOSS.region),callback:function ($$v) {_vm.$set(_vm.formAliOSS, \"region\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formAliOSS.region\"}})],1),_c('el-form-item',{attrs:{\"label\":\"自定义 CDN 域名\",\"required\":false}},[_c('el-input',{attrs:{\"placeholder\":\"如:https://imagecdn.alidaodao.com,可不填\"},model:{value:(_vm.formAliOSS.cdnHost),callback:function ($$v) {_vm.$set(_vm.formAliOSS, \"cdnHost\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formAliOSS.cdnHost\"}})],1),_c('el-form-item',{attrs:{\"label\":\"存储路径\"}},[_c('el-input',{attrs:{\"placeholder\":\"如:img,可不填,默认为根目录\"},model:{value:(_vm.formAliOSS.path),callback:function ($$v) {_vm.$set(_vm.formAliOSS, \"path\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formAliOSS.path\"}}),_c('el-link',{attrs:{\"type\":\"primary\",\"href\":\"https://help.aliyun.com/document_detail/31883.html\",\"target\":\"_blank\"}},[_vm._v(\"如何使用阿里云 OSS?\")])],1),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.saveAliOSSConfiguration}},[_vm._v(\"保存配置\")])],1)],1)],1),_c('el-tab-pane',{staticClass:\"github-panel\",attrs:{\"label\":\"腾讯云 COS\",\"name\":\"txCOS\"}},[_c('el-form',{staticClass:\"setting-form\",attrs:{\"model\":_vm.formTxCOS,\"label-position\":\"right\",\"label-width\":\"140px\"}},[_c('el-form-item',{attrs:{\"label\":\"SecretId\",\"required\":true}},[_c('el-input',{attrs:{\"placeholder\":\"如:AKIDnQp1w3DOOCSs8F5MDp9tdoocsmdUPonW3\"},model:{value:(_vm.formTxCOS.secretId),callback:function ($$v) {_vm.$set(_vm.formTxCOS, \"secretId\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formTxCOS.secretId\"}})],1),_c('el-form-item',{attrs:{\"label\":\"SecretKey\",\"required\":true}},[_c('el-input',{attrs:{\"show-password\":\"\",\"placeholder\":\"如:ukLmdtEJ9271f3DOocsMDsCXdS3YlbW0\"},model:{value:(_vm.formTxCOS.secretKey),callback:function ($$v) {_vm.$set(_vm.formTxCOS, \"secretKey\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formTxCOS.secretKey\"}})],1),_c('el-form-item',{attrs:{\"label\":\"Bucket\",\"required\":true}},[_c('el-input',{attrs:{\"placeholder\":\"如:doocs-3212520134\"},model:{value:(_vm.formTxCOS.bucket),callback:function ($$v) {_vm.$set(_vm.formTxCOS, \"bucket\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formTxCOS.bucket\"}})],1),_c('el-form-item',{attrs:{\"label\":\"Bucket 所在区域\",\"required\":true}},[_c('el-input',{attrs:{\"placeholder\":\"如:ap-guangzhou\"},model:{value:(_vm.formTxCOS.region),callback:function ($$v) {_vm.$set(_vm.formTxCOS, \"region\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formTxCOS.region\"}})],1),_c('el-form-item',{attrs:{\"label\":\"自定义 CDN 域名\",\"required\":false}},[_c('el-input',{attrs:{\"placeholder\":\"如:https://imagecdn.alidaodao.com,可不填\"},model:{value:(_vm.formTxCOS.cdnHost),callback:function ($$v) {_vm.$set(_vm.formTxCOS, \"cdnHost\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formTxCOS.cdnHost\"}})],1),_c('el-form-item',{attrs:{\"label\":\"存储路径\"}},[_c('el-input',{attrs:{\"placeholder\":\"如:img,可不填,默认根目录\"},model:{value:(_vm.formTxCOS.path),callback:function ($$v) {_vm.$set(_vm.formTxCOS, \"path\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formTxCOS.path\"}}),_c('el-link',{attrs:{\"type\":\"primary\",\"href\":\"https://cloud.tencent.com/document/product/436/38484\",\"target\":\"_blank\"}},[_vm._v(\"如何使用腾讯云 COS?\")])],1),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.saveTxCOSConfiguration}},[_vm._v(\"保存配置\")])],1)],1)],1),_c('el-tab-pane',{staticClass:\"github-panel\",attrs:{\"label\":\"七牛云 Kodo\",\"name\":\"qiniu\"}},[_c('el-form',{staticClass:\"setting-form\",attrs:{\"model\":_vm.formQiniu,\"label-position\":\"right\",\"label-width\":\"140px\"}},[_c('el-form-item',{attrs:{\"label\":\"AccessKey\",\"required\":true}},[_c('el-input',{attrs:{\"placeholder\":\"如:6DD3VaLJ_SQgOdoocsyTV_YWaDmdnL2n8EGx7kG\"},model:{value:(_vm.formQiniu.accessKey),callback:function ($$v) {_vm.$set(_vm.formQiniu, \"accessKey\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formQiniu.accessKey\"}})],1),_c('el-form-item',{attrs:{\"label\":\"SecretKey\",\"required\":true}},[_c('el-input',{attrs:{\"show-password\":\"\",\"placeholder\":\"如:qgZa5qrvDOOcsmdKStD1oCjZ9nB7MDvJUs_34SIm\"},model:{value:(_vm.formQiniu.secretKey),callback:function ($$v) {_vm.$set(_vm.formQiniu, \"secretKey\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formQiniu.secretKey\"}})],1),_c('el-form-item',{attrs:{\"label\":\"Bucket\",\"required\":true}},[_c('el-input',{attrs:{\"placeholder\":\"如:md\"},model:{value:(_vm.formQiniu.bucket),callback:function ($$v) {_vm.$set(_vm.formQiniu, \"bucket\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formQiniu.bucket\"}})],1),_c('el-form-item',{attrs:{\"label\":\"Bucket 对应域名\",\"required\":true}},[_c('el-input',{attrs:{\"placeholder\":\"如:https://images.123ylb.cn\"},model:{value:(_vm.formQiniu.domain),callback:function ($$v) {_vm.$set(_vm.formQiniu, \"domain\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formQiniu.domain\"}})],1),_c('el-form-item',{attrs:{\"label\":\"存储区域\",\"required\":true}},[_c('el-input',{attrs:{\"placeholder\":\"如:z2\"},model:{value:(_vm.formQiniu.region),callback:function ($$v) {_vm.$set(_vm.formQiniu, \"region\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formQiniu.region\"}})],1),_c('el-form-item',{attrs:{\"label\":\"存储路径\",\"required\":false}},[_c('el-input',{attrs:{\"placeholder\":\"如:img,可不填,默认为根目录\"},model:{value:(_vm.formQiniu.path),callback:function ($$v) {_vm.$set(_vm.formQiniu, \"path\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formQiniu.path\"}}),_c('el-link',{attrs:{\"type\":\"primary\",\"href\":\"https://developer.qiniu.com/kodo\",\"target\":\"_blank\"}},[_vm._v(\"如何使用七牛云 Kodo?\")])],1),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.saveQiniuConfiguration}},[_vm._v(\"保存配置\")])],1)],1)],1),_c('el-tab-pane',{staticClass:\"github-panel formCustom\",attrs:{\"label\":\"自定义代码\",\"name\":\"formCustom\"}},[_c('el-form',{staticClass:\"setting-form\",attrs:{\"model\":_vm.formCustom,\"label-position\":\"right\"}},[_c('el-form-item',{attrs:{\"label\":\"\",\"required\":true}},[_c('el-input',{ref:\"formCustomElInput\",staticClass:\"formCustomElInput\",attrs:{\"type\":\"textarea\",\"resize\":\"none\",\"placeholder\":\"Your custom code here.\"},model:{value:(_vm.formCustom.code),callback:function ($$v) {_vm.$set(_vm.formCustom, \"code\", $$v)},expression:\"formCustom.code\"}}),_c('el-link',{attrs:{\"type\":\"primary\",\"href\":\"https://github.com/doocs/md#自定义上传逻辑\",\"target\":\"_blank\"}},[_vm._v(\"参数详情?\")])],1),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.formCustomSave}},[_vm._v(\"保存配置\")])],1)],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./uploadImgDialog.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./uploadImgDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./uploadImgDialog.vue?vue&type=template&id=6b7f927f&scoped=true&\"\nimport script from \"./uploadImgDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./uploadImgDialog.vue?vue&type=script&lang=js&\"\nimport style0 from \"./uploadImgDialog.vue?vue&type=style&index=0&id=6b7f927f&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"6b7f927f\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CodemirrorEditor.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CodemirrorEditor.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./CodemirrorEditor.vue?vue&type=template&id=7acf9643&scoped=true&\"\nimport script from \"./CodemirrorEditor.vue?vue&type=script&lang=js&\"\nexport * from \"./CodemirrorEditor.vue?vue&type=script&lang=js&\"\nimport style0 from \"./CodemirrorEditor.vue?vue&type=style&index=0&id=7acf9643&lang=less&scoped=true&\"\nimport style1 from \"./CodemirrorEditor.vue?vue&type=style&index=1&id=7acf9643&lang=less&scoped=true&\"\nimport style2 from \"./CodemirrorEditor.vue?vue&type=style&index=2&id=7acf9643&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7acf9643\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=8e90ad4c&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=8e90ad4c&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"8e90ad4c\",\n null\n \n)\n\nexport default component.exports","import Vue from 'vue'\nimport VueRouter from 'vue-router'\nimport index from '@/pages/index/index'\n\nVue.use(VueRouter)\n\nconst routes = [\n {\n path: `/`,\n name: `index`,\n component: index,\n }\n]\n\nconst router = new VueRouter({\n mode: `history`,\n base: process.env.BASE_URL,\n routes,\n})\n\nexport default router\n","import Vue from \"vue\";\nimport App from \"./App\";\nimport store from \"./store\";\nimport ElementUI from \"element-ui\";\nimport \"element-ui/lib/theme-chalk/index.css\";\nimport \"./plugins/element\";\nimport \"codemirror/lib/codemirror.css\";\nimport \"codemirror/theme/xq-light.css\";\nimport \"codemirror/mode/css/css\";\nimport \"codemirror/mode/markdown/markdown\";\nimport \"codemirror/addon/edit/closebrackets\";\nimport \"codemirror/addon/edit/matchbrackets\";\nimport \"codemirror/addon/selection/active-line\";\nimport \"codemirror/addon/hint/show-hint.js\";\nimport \"codemirror/addon/hint/css-hint.js\";\nimport router from './router';\n\nVue.use(ElementUI);\n\nVue.config.productionTip = false;\n\nApp.mpType = \"app\";\n\nconst app = new Vue({\n router,\n store,\n ...App,\n});\napp.$mount(\"#app\");\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./insertForm.vue?vue&type=style&index=0&id=4dd4e7e2&lang=less&scoped=true&\"","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CodemirrorEditor.vue?vue&type=style&index=1&id=7acf9643&lang=less&scoped=true&\"","export * from \"-!../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=style&index=0&lang=less&\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./rightClickMenu.vue?vue&type=style&index=0&id=a704a2f8&lang=less&scoped=true&\"","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CodemirrorEditor.vue?vue&type=style&index=0&id=7acf9643&lang=less&scoped=true&\"","export * from \"-!../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=style&index=1&lang=less&\"","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CodemirrorEditor.vue?vue&type=style&index=2&id=7acf9643&lang=less&scoped=true&\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./uploadImgDialog.vue?vue&type=style&index=0&id=6b7f927f&lang=less&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _vm._m(0)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"loading\",attrs:{\"id\":\"loading\"}},[_c('div',{staticClass:\"loading-wrapper\"},[_c('div',{staticClass:\"loading-anim\"}),_c('div',{staticClass:\"loading-text\"},[_vm._v(\"致力于让 Markdown 编辑更简单\")])])])}]\n\nexport { render, staticRenderFns }","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./header.vue?vue&type=style&index=0&id=1d12595a&lang=less&scoped=true&\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./aboutDialog.vue?vue&type=style&index=0&id=70c50907&lang=less&scoped=true&\"","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Loading.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Loading.vue?vue&type=script&lang=js&\"","const githubConfig = {\n username: \"filess\",\n repoList: Array.from(\n [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19],\n (e) => `img${e}`\n ),\n branch: \"main\",\n accessTokenList: [\n \"7715d7ca67b5d3837cfdoocsmde8c38421815aa423510af\",\n \"c411415bf95dbe39625doocsmd5047ba9b7a2a6c9642abe\",\n \"2821cd8819fa345c053doocsmdca86ac653f8bc20db1f1b\",\n \"445f0dae46ef1f2a4d6doocsmdc797301e94797b4750a4c\",\n \"cc1d0c1426d0fd0902bdoocsmdd2d7184b14da61b86ec46\",\n \"b67e9d15cb6f910492fdoocsmdac6b44d379c953bb19eff\",\n \"618c4dc2244ccbbc088doocsmd125d17fd31b7d06a50cf3\",\n \"a4b581732e1c1507458doocsmdc5b223b27dae5e2e16a55\",\n \"77904db41aee57ad79bdoocsmd760f848201dac9c96fd5e\",\n \"02f251cb14ac62ab100doocsmdddbfc8527d773f1f04ce1\",\n \"eb321079a95ba7028d9doocsmde2e84c502dac70de7cf08\",\n \"22f74fcfb071a961fa2doocsmde28dabc746f0503a15e5d\",\n \"85124c2bfe7abba0938doocsmd0af7f67918b99d085a5fd\",\n \"0a561b4d4bbecb2de7edoocsmdd9ba3833d11dbc5e430f5\",\n \"e8a01491188d8d5a097doocsmd03ede0aad1fe9e3af24e9\",\n \"36e1f420d7e5bdebd67doocsmd65463562f5f25b20b8377\",\n ],\n};\n\nconst giteeConfig = {\n username: \"filesss\",\n repoList: Array.from(\n [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19],\n (e) => `img${e}`\n ),\n branch: \"main\",\n accessTokenList: [\n \"ed5fc9866bd6c2fdoocsmddd433f806fd2f399c\",\n \"5448ffebbbf1151doocsmdc4e337cf814fc8a62\",\n \"25b05efd2557ca2doocsmd75b5c0835e3395911\",\n \"11628c7a5aef015doocsmd2eeff9fb9566f0458\",\n \"cb2f5145ed938dedoocsmdbd063b4ed244eecf8\",\n \"d8c0b57500672c1doocsmd55f48b866b5ebcd98\",\n \"78c56eadb88e453doocsmd43ddd95753351771a\",\n \"03e1a688003948fdoocsmda16fcf41e6f03f1f0\",\n \"c49121cf4d191fbdoocsmdd6a7877ed537e474a\",\n \"adfeb2fadcdc4aadoocsmdfe1ee869ac9c968ff\",\n \"116c94549ca4a0ddoocsmd192653af5c0694616\",\n \"ecf30ed7f2eb184doocsmd51ea4ec8300371d9e\",\n \"5837cf2bd5afd93doocsmd73904bed31934949e\",\n \"b5b7e1c7d57e01fdoocsmd5266f552574297d78\",\n \"684d55564ffbd0bdoocsmd7d747e5cc23aed6d6\",\n \"3fc04a9d272ab71doocsmd010c56cb57d88d2ba\",\n ],\n};\n\nexport { githubConfig, giteeConfig };\n","import axios from \"axios\";\n\n// 创建axios实例\nconst service = axios.create({\n baseURL: \"\",\n timeout: 10 * 1000, // 请求超时时间\n});\n\nservice.interceptors.request.use(\n (config) => {\n if (/^(post)|(put)|(delete)$/i.test(config.method)) {\n if (config.data && config.data.upload) {\n config.headers[\"Content-Type\"] = \"multipart/form-data\";\n }\n }\n return config;\n },\n (error) => {\n Promise.reject(error);\n }\n);\n\nservice.interceptors.response.use(\n (res) => {\n return res.data ? res.data : Promise.reject(res);\n },\n (error) => Promise.reject(error)\n);\n\nexport default service;\n"],"sourceRoot":""} \ No newline at end of file diff --git a/js/app.e586c166.js b/js/app.e586c166.js new file mode 100644 index 0000000..46db856 --- /dev/null +++ b/js/app.e586c166.js @@ -0,0 +1,4 @@ +(function(e){function t(t){for(var n,a,s=t[0],c=t[1],l=t[2],d=0,_=[];d=1&&r<=127?t+=e.charAt(o):r>2047?(t+=String.fromCharCode(224|r>>12&15),t+=String.fromCharCode(128|r>>6&63),t+=String.fromCharCode(128|r>>0&63)):(t+=String.fromCharCode(192|r>>6&31),t+=String.fromCharCode(128|r>>0&63));return t}function r(e){var t,o,n,r,i,a;t="",n=e.length,o=0;while(o>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:t+=e.charAt(o-1);break;case 12:case 13:i=e.charCodeAt(o++),t+=String.fromCharCode((31&r)<<6|63&i);break;case 14:i=e.charCodeAt(o++),a=e.charCodeAt(o++),t+=String.fromCharCode((15&r)<<12|(63&i)<<6|(63&a)<<0);break}return t}var i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",a=new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1);function s(e){var t,o,n,r,a,s;n=e.length,o=0,t="";while(o>2),t+=i.charAt((3&r)<<4),t+="==";break}if(a=e.charCodeAt(o++),o==n){t+=i.charAt(r>>2),t+=i.charAt((3&r)<<4|(240&a)>>4),t+=i.charAt((15&a)<<2),t+="=";break}s=e.charCodeAt(o++),t+=i.charAt(r>>2),t+=i.charAt((3&r)<<4|(240&a)>>4),t+=i.charAt((15&a)<<2|(192&s)>>6),t+=i.charAt(63&s)}return t}function c(e){var t,o,n,r,i,s,c;s=e.length,i=0,c="";while(i>4);do{if(n=255&e.charCodeAt(i++),61==n)return c;n=a[n]}while(i>2);do{if(r=255&e.charCodeAt(i++),61==r)return c;r=a[r]}while(i['.concat(e[0],"]: ").concat(e[1],"
"):'['.concat(e[0],"] ").concat(e[1],": ").concat(e[2],"
")}));return"

引用链接

").concat(e.join("\n"),"

")},this.buildAddition=function(){return"\n \n "},this.setOptions=function(e){o.opts=c(o.opts,e)},this.hasFootnotes=function(){return 0!==r.length},this.getRenderer=function(e){r=[],i=0,a=o.buildTheme(o.opts.theme);var t=new p.a.Renderer;return t.heading=function(e,t){switch(t){case 1:return"

").concat(e,"

");case 2:return"

").concat(e,"

");case 3:return"

").concat(e,"

");default:return"

").concat(e,"

")}},t.paragraph=function(e){return-1!=e.indexOf("").concat(e,"

")},t.blockquote=function(e){return e=e.replace(//g,"

")),"

").concat(e,"
")},t.code=function(e,t){e=e.replace(//g,">");var o=e.split("\n").map((function(e){return''.concat(e||" ","")})),n="github";return'\n
\n
\n                        ').concat(o.join(""),"\n                    
\n
\n ")},t.codespan=function(e,t){return"").concat(e,"")},t.listitem=function(e){return"<%s/>').concat(e,"")},t.list=function(e,t,o){e=e.replace(/<\/*p.*?>/g,"");var n=e.split("<%s/>");if(!t)return e=n.join("•"),"

").concat(e,"

");e=n[0];for(var r=1;r").concat(e,"

")},t.image=function(e,t,o){var r="";o&&(r="
").concat(o,"
"));var i=l("figure"),a=l(n?"image":"image_org");return"
').concat(o,'').concat(r,"
")},t.link=function(t,o,n){if(t.startsWith("https://mp.weixin.qq.com"))return'").concat(n,"");if(t===n)return n;if(e){var r=u(o||n,t);return"").concat(n,"[").concat(r,"]")}return"").concat(n,"")},t.strong=function(e){return"").concat(e,"")},t.em=function(e){return''.concat(e,"")},t.table=function(e,t){return'
").concat(e,"").concat(t,"
")},t.tablecell=function(e,t){return"").concat(e,"")},t.hr=function(){return'
'},t}},h=g,b=o("56b3"),C=o.n(b),v='# 示例文章:Google 搜索的即时自动补全功能究竟是如何“工作”的?\r\n\r\n> Google 搜索**自动补全功能**的强大,相信不少朋友都能感受到,它帮助我们更快地“补全”我们所要输入的搜索关键字。那么,它怎么知道我们要输入什么内容?它又是如何工作的?在这篇文章里,我们一起来看看。\r\n\r\n## 使用自动补全\r\n\r\nGoogle 搜索的自动补全功能可以在 Google 搜索应用的大多数位置使用,包括 [Google](https://www.google.com/) 主页、适用于 IOS 和 Android 的 Google 应用,我们只需要在 Google 搜索框上开始键入关键字,就可以看到联想词了。\r\n\r\n![](https://gitee.com/yanglbme/resource/raw/master/doocs-md/juejin.gif)\r\n\r\n在上图示例中,我们可以看到,输入关键字 `juej`,Google 搜索会联想到“掘金”、“掘金小册”、“绝句”等等,好处就是,我们无须输入完整的关键字即可轻松完成针对这些 topics 的搜索。\r\n\r\n谷歌搜索的自动补全功能对于使用移动设备的用户来说特别有用,用户可以轻松在难以键入的小屏幕上完成搜索。当然,对于移动设备用户和台式机用户而言,这都节省了大量的时间。根据 Google 官方报告,自动补全功能可以减少大约 25% 的打字,累积起来,预计每天可以节省 200 多年的打字时间。是的,每天!\r\n\r\n> 注意,本文所提到的“**联想词**”与“**预测**”,是同一个意思。\r\n\r\n## 基于“预测”而非“建议”\r\n\r\nGoogle 官方将自动补全功能称之为“预测”,而不是“建议”,为什么呢?其实是有充分理由的。自动补全功能是为了**帮助用户完成他们打算进行的搜索**,而不是建议用户要执行什么搜索。\r\n\r\n那么,Google 是如何确定这些“预测”的?其实,Google 会根据趋势搜索 [trends](https://trends.google.com/trends/?geo=US) 给到我们这些“预测”。简单来说,哪个热门、哪个搜索频率高,就更可能推给我们。当然,这也与我们当前所处的位置以及我们的搜索历史相关。\r\n\r\n另外,这些“预测”也会随着我们键入的关键字的变更而更改。例如,当我们把键入的关键字从 `juej` 更改为 `juex` 时,与“掘金”相关的预测会“消失”,同时,与“觉醒”、“决心”相关联的词会出现。\r\n\r\n![](https://gitee.com/yanglbme/resource/raw/master/doocs-md/juex.gif)\r\n\r\n## 为什么看不到某些联想词?\r\n\r\n如果我们在输入某个关键字时看不到联想词,那么表明 Google 的算法可能检测到:\r\n\r\n- 这个关键字不是热门字词;\r\n- 搜索的字词太新了,我们可能需要等待几天或几周才能看到联想词;\r\n- 这是一个侮辱性或敏感字词,这个搜索字词违反了 Google 的相关政策。更加详细的情况,可以了解 [Google 搜索自动补全政策](https://support.google.com/websearch/answer/7368877)。\r\n\r\n## 为什么会看到某些不当的联想词?\r\n\r\nGoogle 拥有专门设计的系统,可以自动捕获不适当的预测结果而不显示出来。然而,Google 每天需要处理数十亿次搜索,这意味着 Google 每天会显示数十亿甚至上百亿条预测。再好的系统,也可能存在缺陷,不正确的预测也可能随时会出现。\r\n\r\n我们作为 Google 搜索的用户,如果认定某条预测违反了相关的搜索自动补全政策,可以进行举报反馈,点击右下角“**举报不当的联想查询**”并勾选相关选项即可。\r\n\r\n![](https://gitee.com/yanglbme/resource/raw/master/doocs-md/report.gif)\r\n\r\n## 如何实现自动补全算法?\r\n\r\n目前,Google 官方似乎并没有公开搜索自动补全的算法实现,但是业界在这方面已经有了不少研究。\r\n\r\n一个好的自动补全器必须是快速的,并且在用户键入下一个字符后立即更新联想词列表。**自动补全器的核心是一个函数,它接受输入的前缀,并搜索以给定前缀开头的词汇或语句列表**。通常来说,只需要返回少量的数目即可。\r\n\r\n接下来,我们先从一个简单且低效的实现开始,并在此基础上逐步构建更高效的方法。\r\n\r\n### 词汇表实现\r\n\r\n一个**简单粗暴的实现方式**是:顺序查找词汇表,依次检查每个词汇,看它是否以给定的前缀开头。\r\n\r\n但是,此方法需要将前缀与每个词汇进行匹配检查,若词汇量较少,这种方式可能勉强行得通。但是,如果词汇量规模较大,效率就太低了。\r\n\r\n一个**更好的实现方式是**:让词汇按字典顺序排序。借助二分搜索算法,可以快速搜索有序词汇表中的前缀。由于二分搜索的每一步都会将搜索的范围减半,因此,总的搜索时间与词汇表中单词数量的对数成正比,即时间复杂度是 `O(log N)`。二分搜索的性能很好,但有没有更好的实现呢?当然有,往下看。\r\n\r\n### 前缀树实现\r\n\r\n通常来说,许多词汇都以相同的前缀开头,比如 `need`、`nested` 都以 `ne` 开头,`seed`、`speed` 都以 `s` 开头。要是为每个单词分别存储公共前缀似乎很浪费。\r\n\r\n![](https://gitee.com/yanglbme/resource/raw/master/doocs-md/pretree.png)\r\n\r\n前缀树是一种利用公共前缀来加速补全速度的数据结构。前缀树在节点树中排列一组单词,单词沿着从根节点到叶子节点的路径存储,树的层次对应于前缀的字母位置。\r\n\r\n前缀的补全是顺着前缀定义的路径来查找的。例如,在上图的前缀树中,前缀 `ne` 对应于从子节点取左边缘 `N` 和唯一边缘 `E` 的路径。然后可以通过继续遍历从 `E` 节点可以达到的所有叶节点来生成补全列表。在图中,`ne` 的补全可以是两个分支:`-ed` 和 `-sted`。如果在数中找不到由前缀定义的路径,则说明词汇表中不包含以该前缀开头的单词。\r\n\r\n### 有限状态自动机(DFA)实现\r\n\r\n前缀树可以有效处理公共前缀,但是,对于其他共享词部分,仍会分别存储在每个分支中。比如,后缀 `ed`、`ing`、`tion` 在英文单词中特别常见。在上一个例子中,`e`、`d` 分别存放在了每一个分支上。\r\n\r\n有没有一种方法可以更加节省存储空间呢?有的,那就是 DFA。\r\n\r\n
\r\n
\r\n\r\n在上面的例子中,单词 `need`、`nested`、`seed` 和 `speed` 仅由 9 个节点组成,而上一张图中的前缀树包含了 17 个节点。\r\n\r\n可以看出,最小化前缀树 DFA 可以在很大程度上减少数据结构的大小。即使词汇量很大,最小化 DFA 通常也适合在内存中存储,避免昂贵的磁盘访问是实现快速自动补全的关键。\r\n\r\n### 一些扩展\r\n\r\n上面介绍了如何利用合理的数据结构实现基本的自动补全功能。这些数据结构可以通过多种方式进行扩展,从而改善用户体验。\r\n\r\n通常,满足特定前缀的词汇可能很多,而用户界面上能够显示的却不多,我们更希望能显示最常搜索或者最有价值的词汇。这通常可以通过为词汇表中的每个单词增加一个代表单词值的**权重** `weight`,并且按照权重高低来排序自动补全列表。\r\n\r\n- 对于排序后的词汇表来说,在词汇表每个元素上增加 `weight` 属性并不难;\r\n- 对于前缀树来说,将 `weight` 存储在叶子节点中,也是很简单的一个实现;\r\n- 对于 `DFA` 来说,则较为复杂。因为一个叶子节点可以通过多条路径到达。一种解决方案是将权重关联到路径而不是叶子节点。\r\n\r\n目前有不少开源库都提供了这个功能,比如主流的搜索引擎框架 [Elasticsearch](https://www.elastic.co/products/elasticsearch)、[Solr](https://lucene.apache.org/solr/) 等,基于此,我们可以实现高效而强大的自动补全功能。\r\n\r\n#### 推荐阅读\r\n\r\n- [阿里又一个 20k+ stars 开源项目诞生,恭喜 fastjson!](https://mp.weixin.qq.com/s/RNKDCK2KoyeuMeEs6GUrow)\r\n- [刷掉 90% 候选人的互联网大厂海量数据面试题(附题解 + 方法总结)](https://mp.weixin.qq.com/s/rjGqxUvrEqJNlo09GrT1Dw)\r\n- [好用!期待已久的文本块功能究竟如何在 Java 13 中发挥作用?](https://mp.weixin.qq.com/s/kalGv5T8AZGxTnLHr2wDsA)\r\n- [2019 GitHub 开源贡献排行榜新鲜出炉!微软谷歌领头,阿里跻身前 12!](https://mp.weixin.qq.com/s/_q812aGD1b9QvZ2WFI0Qgw)\r\n\r\n---\r\n\r\n欢迎关注我的公众号“**Doocs 开源社区**”,原创技术文章第一时间推送。\r\n\r\n
\r\n \r\n
\r\n',k="/*\r\n 按Ctrl+F可格式化\r\n*/\r\n/* 一级标题样式 */\r\nh1 {\r\n}\r\n/* 二级标题样式 */\r\nh2 {\r\n}\r\n/* 三级标题样式 */\r\nh3 {\r\n}\r\n/* 四级标题样式 */\r\nh4 {\r\n}\r\n/* 图片样式 */\r\nimage {\r\n}\r\n/* 引用样式 */\r\nblockquote {\r\n}\r\n/* 引用段落样式 */\r\nblockquote_p {\r\n}\r\n/* 段落样式 */\r\np {\r\n}\r\n/* 行内代码样式 */\r\ncodespan {\r\n}\r\n/* 粗体样式 */\r\nstrong {\r\n}\r\n/* 链接样式 */\r\nlink {\r\n}\r\n/* 微信链接样式 */\r\nwx_link {\r\n}\r\n/* 有序列表样式 */\r\nol {\r\n}\r\n/* 无序列表样式 */\r\nul {\r\n}\r\n/* 列表项样式 */\r\nli {\r\n}",O=o("3835"),E=(o("e9c4"),o("4160"),o("d3b7"),o("159b"),o("498a"),o("4de4"),o("b64b"),o("fb6a"),o("3ca3"),o("ddb0"),o("2b3d"),o("9861"),o("a630"),o("caad"),o("2532"),o("00b4"),o("4fad"),o("4e82"),o("466d"),{BASE:{"text-align":"left",color:"#3f3f3f","line-height":"1.75"},BASE_BLOCK:{margin:"1em 8px"},block:{h1:{"font-size":"1.2em","text-align":"center","font-weight":"bold",display:"table",margin:"2em auto 1em",padding:"0 1em","border-bottom":"2px solid rgba(0, 152, 116, 0.9)"},h2:{"font-size":"1.2em","text-align":"center","font-weight":"bold",display:"table",margin:"4em auto 2em",padding:"0 0.2em",background:"rgba(0, 152, 116, 0.9)",color:"#fff"},h3:{"font-weight":"bold","font-size":"1.1em",margin:"2em 8px 0.75em 0","line-height":"1.2","padding-left":"8px","border-left":"3px solid rgba(0, 152, 116, 0.9)"},h4:{"font-weight":"bold","font-size":"1em",margin:"2em 8px 0.5em",color:"rgba(66, 185, 131, 0.9)"},p:{margin:"1.5em 8px","letter-spacing":"0.1em"},blockquote:{"font-style":"normal","border-left":"none",padding:"1em","border-radius":"8px",color:"rgba(0,0,0,0.5)",background:"#f7f7f7",margin:"2em 8px"},blockquote_p:{"letter-spacing":"0.1em",color:"rgb(80, 80, 80)","font-size":"1em",display:"block"},code:{"font-size":"80%",overflow:"auto",color:"#333","white-space":"pre",background:"rgb(247, 247, 247)","border-radius":"8px",padding:"10px","line-height":"1.5",border:"1px solid rgb(236,236,236)",margin:"20px 0"},image:{"border-radius":"4px",display:"block",margin:"0.1em auto 0.5em",width:"100% !important"},image_org:{"border-radius":"4px",display:"block"},ol:{"margin-left":"0","padding-left":"1em"},ul:{"margin-left":"0","padding-left":"1em","list-style":"circle"},footnotes:{margin:"0.5em 8px","font-size":"80%"},figure:{margin:"1.5em 8px"}},inline:{listitem:{"text-indent":"-1em",display:"block",margin:"0.2em 8px"},codespan:{"font-size":"90%","white-space":"pre",color:"#d14",background:"rgba(27,31,35,.05)",padding:"3px 5px","border-radius":"4px"},link:{color:"#576b95"},wx_link:{color:"#576b95","text-decoration":"none"},strong:{color:"rgba(15, 76, 129, 0.9)","font-weight":"bold"},table:{"border-collapse":"collapse","text-align":"center",margin:"1em 8px"},thead:{background:"rgba(0, 0, 0, 0.05)","font-weight":"bold"},td:{border:"1px solid #dfdfdf",padding:"0.25em 0.5em"},footnote:{"font-size":"12px"},figcaption:{"text-align":"center",color:"#888","font-size":"0.8em"}}}),S=o("325b"),y=o.n(S),w=o("4fc3"),x=o.n(w),M=o("d238"),T=o.n(M);function D(e){return function(t){var o=JSON.parse(JSON.stringify(e));return o.block.h1["border-bottom"]="2px solid ".concat(t),o.block.h2["background"]=t,o.block.h3["border-left"]="3px solid ".concat(t),o.block.h4["color"]=t,o.inline.strong["color"]=t,o}}var I=function(e,t){var o=JSON.parse(JSON.stringify(e));return o.block.h1["border-bottom"]="2px solid ".concat(t),o.block.h2["background"]=t,o.block.h3["border-left"]="3px solid ".concat(t),o.block.h4["color"]=t,o.inline.strong["color"]=t,o};function P(e){return function(t){var o=JSON.parse(JSON.stringify(e));return o.block.h1["font-size"]="".concat(1.14*t,"px"),o.block.h2["font-size"]="".concat(1.1*t,"px"),o.block.h3["font-size"]="".concat(t,"px"),o.block.h4["font-size"]="".concat(t,"px"),o}}var j=D(E),A=P(E);function R(e,t,o){var n=JSON.parse(JSON.stringify(o));return n.block.h1["border-bottom"]="2px solid ".concat(t),n.block.h2["background"]=t,n.block.h3["border-left"]="3px solid ".concat(t),n.block.h4["color"]=t,n.inline.strong["color"]=t,n.block.h1=Object.assign(n.block.h1,e.h1),n.block.h2=Object.assign(n.block.h2,e.h2),n.block.h3=Object.assign(n.block.h3,e.h3),n.block.h4=Object.assign(n.block.h4,e.h4),n.block.p=Object.assign(n.block.p,e.p),n.block.blockquote=Object.assign(n.block.blockquote,e.blockquote),n.block.blockquote_p=Object.assign(n.block.blockquote_p,e.blockquote_p),n.block.image=Object.assign(n.block.image,e.image),n.inline.strong=Object.assign(n.inline.strong,e.strong),n.inline.codespan=Object.assign(n.inline.codespan,e.codespan),n.inline.link=Object.assign(n.inline.link,e.link),n.inline.wx_link=Object.assign(n.inline.wx_link,e.wx_link),n.block.ul=Object.assign(n.block.ul,e.ul),n.block.ol=Object.assign(n.block.ol,e.ol),n.inline.listitem=Object.assign(n.inline.listitem,e.li),n}function U(e){var t,o;while(-1!==(t=e.indexOf("/*"))&&-1!==(o=e.indexOf("*/")))e=e.substring(0,t)+e.substring(o+2);var n={},r=function(){var t=e.indexOf("{"),o=e.indexOf("}");function r(e){var t={};return e.forEach((function(e){var o=e.indexOf(":"),n=e.substring(0,o).trim(),r=e.substring(o+1).trim();t[n]=r})),t}var i=e.substring(t+1,o).split(";").map((function(e){return e.trim()})).filter((function(e){return e.length>0}));i=r(i);var a=e.substring(0,t).split(",").map((function(e){return e.trim()}));a.forEach((function(e){n[e]||(n[e]={}),Object.keys(i).forEach((function(t){n[e][t]=i[t]}))})),e=e.slice(o+1).trim()};while(e.length>0&&-1!==e.indexOf("{")&&-1!==e.indexOf("}"))r();return n}function K(e,t){var o=e.getValue(0);o?localStorage.setItem(t,o):localStorage.removeItem(t)}function L(e){var t=y.a.format(e,{parser:"markdown",plugins:[x.a]});return t}function B(e){var t=y.a.format(e,{parser:"css",plugins:[T.a]});return t}function $(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"pre",t=document.getElementsByClassName("code__pre");t.length>0&&t.forEach((function(t){t.style.whiteSpace=e}))}function q(e){var t=document.createElement("a");t.download="content.md",t.style.display="none";var o=new Blob([e]);t.href=URL.createObjectURL(o),document.body.appendChild(t),t.click(),document.body.removeChild(t)}function G(){var e=document.querySelector("#output");r(e);var t=e.innerHTML,o=document.createElement("a");o.download="content.html",o.style.display="none";var n=new Blob(['
'.concat(t,"
")]);function r(e){switch(!0){case t(e):case o(e):case n(e):case i(e):e.setAttribute("style",z(e));default:}function t(e){return"SECTION"===e.tagName&&Array.from(e.classList).includes("code-snippet__github")}function o(e){return"PRE"===e.tagName&&Array.from(e.classList).includes("code__pre")}function n(e){return"CODE"===e.tagName&&Array.from(e.classList).includes("prettyprint")}function i(e){return"SPAN"===e.tagName&&(n(e.parentElement)||n(e.parentElement.parentElement))}e.children.length&&Array.from(e.children).forEach((function(e){return r(e)}))}o.href=URL.createObjectURL(n),document.body.appendChild(o),o.click(),document.body.removeChild(o)}function W(e){for(var t=e.data,o=e.rows,n=e.cols,r="",i=[],a=0;a1?a-1:a;1===a?i.push("---\t"):i.push(t["k_".concat(c,"_").concat(s)]||"")}r+=i.join("\t|\t"),r+="\t|\n"}return r}var F=function(e){return new Promise((function(t,o){var n=new FileReader;n.readAsDataURL(e),n.onload=function(){return t(n.result.split(",").pop())},n.onerror=function(e){return o(e)}}))};function H(e){var t=/\.(gif|jpg|jpeg|png|GIF|JPG|PNG)$/.test(e.name);if(!t)return{ok:!1,msg:"请上传 JPG/PNG/GIF 格式的图片"};var o=5,n=e.size/1024/1024<=o;return n?{ok:!0}:{ok:!1,msg:"由于公众号限制,图片大小不能超过 ".concat(o,"M")}}function z(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["width","height"],o=getComputedStyle(e,null);return Object.entries(o).filter((function(e){var n=Object(O["a"])(e,1),r=n[0];return o.getPropertyValue(r)&&!t.includes(r)})).map((function(e){var t=Object(O["a"])(e,2),o=t[0],n=t[1];return"".concat(o,":").concat(n,";")})).join("")}function N(e){var t=e.split("\n"),o=t.filter((function(e){return e.trim()})).map((function(e){return e.match(/(^\s+)?/)[0].length})).sort((function(e,t){return e-t}))[0],n=t.map((function(e){return e.slice(o)})).join("\n");return n}r["default"].use(d["a"]);var V={wxRenderer:null,output:"",html:"",editor:null,cssEditor:null,currentFont:"",currentSize:"",currentColor:"",citeStatus:0,nightMode:!1,codeTheme:"github",rightClickMenuVisible:!1},Q={setEditorValue:function(e,t){e.editor.setValue(t)},setCssEditorValue:function(e,t){e.cssEditor.setValue(t)},setWxRendererOptions:function(e,t){e.wxRenderer.setOptions(t)},setCiteStatus:function(e,t){e.citeStatus=t,localStorage.setItem("citeStatus",t)},setCurrentFont:function(e,t){e.currentFont=t,localStorage.setItem("fonts",t)},setCurrentSize:function(e,t){e.currentSize=t,localStorage.setItem("size",t)},setCurrentColor:function(e,t){e.currentColor=t,localStorage.setItem("color",t)},setCurrentCodeTheme:function(e,t){e.codeTheme=t,localStorage.setItem("codeTheme",t)},setRightClickMenuVisible:function(e,t){e.rightClickMenuVisible=t},themeChanged:function(e){e.nightMode=!e.nightMode,localStorage.setItem("nightMode",e.nightMode)},initEditorState:function(e){e.currentFont=localStorage.getItem("fonts")||_.builtinFonts[0].value,e.currentColor=localStorage.getItem("color")||_.colorOption[0].value,e.currentSize=localStorage.getItem("size")||_.sizeOption[2].value,e.codeTheme=localStorage.getItem("codeTheme")||_.codeThemeOption[0].value,e.citeStatus="true"===localStorage.getItem("citeStatus"),e.nightMode="true"===localStorage.getItem("nightMode"),e.wxRenderer=new h({theme:j(e.currentColor),fonts:e.currentFont,size:e.currentSize,status:e.citeStatus})},initEditorEntity:function(e){var t=document.getElementById("editor");t.value||(t.value=localStorage.getItem("__editor_content")||L(v)),e.editor=C.a.fromTextArea(t,{mode:"text/x-markdown",theme:"xq-light",lineNumbers:!1,lineWrapping:!0,styleActiveLine:!0,autoCloseBrackets:!0,extraKeys:{"Ctrl-F":function(e){var t=L(e.getValue(0));localStorage.setItem("__editor_content",t),e.setValue(t)},"Ctrl-S":function(e){},"Ctrl-B":function(e){var t=e.getSelection();e.replaceSelection("**".concat(t,"**"))},"Ctrl-D":function(e){var t=e.getSelection();e.replaceSelection("~~".concat(t,"~~"))},"Ctrl-I":function(e){var t=e.getSelection();e.replaceSelection("*".concat(t,"*"))}}})},initCssEditorEntity:function(e){var t=document.getElementById("cssEditor");t.value||(t.value=localStorage.getItem("__css_content")||k),e.cssEditor=C.a.fromTextArea(t,{mode:"css",theme:"style-mirror",lineNumbers:!1,lineWrapping:!0,matchBrackets:!0,autofocus:!0,extraKeys:{"Ctrl-F":function(e){var t=B(e.getValue(0));localStorage.setItem("__css_content",t),e.setValue(t)},"Ctrl-S":function(e){}}})},editorRefresh:function(e){var t=p()(e.editor.getValue(0),{renderer:e.wxRenderer.getRenderer(e.citeStatus)});t=t.replace(/(style=".*?)"/,'$1;margin-top: 0"'),e.citeStatus&&(t+=e.wxRenderer.buildFootnotes(),t+=e.wxRenderer.buildAddition()),e.output=t},clearEditorToDefault:function(e){var t=L(v);e.editor.setValue(t),e.cssEditor.setValue(k)}},J=new d["a"].Store({state:V,mutations:Q,actions:{}}),Y=o("5c96"),Z=o.n(Y);o("0fae");r["default"].component(Y["Message"].name,Y["Message"]),r["default"].prototype.$loading=Y["Loading"].service,r["default"].prototype.$message=Y["Message"];o("a7be"),o("8d7e"),o("7b00"),o("959b"),o("10b2"),o("8c33"),o("31c5"),o("9b74"),o("111b");var X=o("8c4f"),ee=function(){var e=this,t=e.$createElement,o=e._self._c||t;return e.loading?o("transition",{attrs:{name:"fade"}},[o("loading")],1):o("codemirror-editor")},te=[],oe=o("3a5e"),ne=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"container",class:{container_night:e.nightMode}},[o("el-container",[o("el-header",{staticClass:"editor__header"},[o("editor-header",{ref:"header",on:{refresh:e.onEditorRefresh,cssChanged:e.cssChanged,download:e.downloadEditorContent,export:e.exportEditorContent,showCssEditor:function(t){e.showCssEditor=!e.showCssEditor},"show-about-dialog":function(t){e.aboutDialogVisible=!0},"show-dialog-form":function(t){e.dialogFormVisible=!0},"show-dialog-upload-img":function(t){e.dialogUploadImgVisible=!0},startCopy:function(t){e.isCoping=!0,e.backLight=!0},endCopy:e.endCopy}})],1),o("el-main",{staticClass:"main-body"},[o("el-row",{staticClass:"main-section"},[o("el-col",{staticClass:"codeMirror-wrapper",attrs:{span:12},nativeOn:{contextmenu:function(t){return t.preventDefault(),e.openMenu(t)}}},[o("textarea",{directives:[{name:"model",rawName:"v-model",value:e.source,expression:"source"}],attrs:{id:"editor",type:"textarea",placeholder:"Your markdown text here."},domProps:{value:e.source},on:{input:function(t){t.target.composing||(e.source=t.target.value)}}})]),o("el-col",{ref:"preview",staticClass:"preview-wrapper",class:{"preview-wrapper_night":e.nightMode&&e.isCoping},attrs:{span:12,id:"preview"}},[o("section",{class:{output_night:e.nightMode&&!e.backLight},attrs:{id:"output-wrapper"}},[o("div",{staticClass:"preview"},[o("section",{attrs:{id:"output"},domProps:{innerHTML:e._s(e.output)}}),e.nightMode&&e.isCoping?o("div",{staticClass:"loading-mask"},[o("div",{staticClass:"loading__img"}),o("span",[e._v("正在生成")])]):e._e()])])]),o("transition",{attrs:{name:"custom-classes-transition","enter-active-class":"bounceInRight"}},[o("el-col",{directives:[{name:"show",rawName:"v-show",value:e.showCssEditor,expression:"showCssEditor"}],staticClass:"cssEditor-wrapper",attrs:{id:"cssBox",span:12}},[o("textarea",{attrs:{id:"cssEditor",type:"textarea",placeholder:"Your custom css here."}})])],1)],1)],1)],1),o("upload-img-dialog",{on:{close:function(t){e.dialogUploadImgVisible=!1},beforeUpload:e.beforeUpload,uploadImage:e.uploadImage,uploaded:e.uploaded},model:{value:e.dialogUploadImgVisible,callback:function(t){e.dialogUploadImgVisible=t},expression:"dialogUploadImgVisible"}}),o("about-dialog",{model:{value:e.aboutDialogVisible,callback:function(t){e.aboutDialogVisible=t},expression:"aboutDialogVisible"}}),o("insert-form-dialog",{model:{value:e.dialogFormVisible,callback:function(t){e.dialogFormVisible=t},expression:"dialogFormVisible"}}),o("right-click-menu",{attrs:{left:e.mouseLeft,top:e.mouseTop},on:{menuTick:e.onMenuEvent,closeMenu:e.closeRightClickMenu},model:{value:e.rightClickMenuVisible,callback:function(t){e.rightClickMenuVisible=t},expression:"rightClickMenuVisible"}})],1)},re=[],ie=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("el-container",{staticClass:"top is-dark"},[o("div",{staticClass:"left-side"},[o("el-tooltip",{attrs:{effect:e.effect,content:"上传图片",placement:"bottom-start"}},[o("i",{staticClass:"el-icon-upload",attrs:{size:"medium"},on:{click:function(t){return e.$emit("show-dialog-upload-img")}}})]),o("el-tooltip",{staticClass:"header__item",attrs:{effect:e.effect,content:"导出 Markdown 文档",placement:"bottom-start"}},[o("i",{staticClass:"el-icon-download",attrs:{size:"medium"},on:{click:function(t){return e.$emit("download")}}})]),o("el-tooltip",{staticClass:"header__item",attrs:{effect:e.effect,content:"导出 HTML 页面",placement:"bottom-start"}},[o("i",{staticClass:"el-icon-document",attrs:{size:"medium"},on:{click:function(t){return e.$emit("export")}}})]),o("el-tooltip",{staticClass:"header__item",attrs:{effect:e.effect,content:"重置页面",placement:"bottom-start"}},[o("i",{staticClass:"el-icon-refresh",attrs:{size:"medium"},on:{click:function(t){e.showResetConfirm=!0}}})]),o("el-tooltip",{staticClass:"header__item header__item_last",attrs:{effect:e.effect,content:"插入表格",placement:"bottom-start"}},[o("i",{staticClass:"el-icon-s-grid",attrs:{size:"medium"},on:{click:function(t){return e.$emit("show-dialog-form")}}})]),o("el-select",{attrs:{size:"mini",placeholder:"选择字体",clearable:""},on:{change:e.fontChanged},model:{value:e.selectFont,callback:function(t){e.selectFont=t},expression:"selectFont"}},e._l(e.config.builtinFonts,(function(t){return o("el-option",{key:t.value,style:{fontFamily:t.value},attrs:{label:t.label,value:t.value}},[o("span",{staticClass:"select-item-left"},[e._v(e._s(t.label))]),o("span",{staticClass:"select-item-right"},[e._v("Abc")])])})),1),o("el-select",{attrs:{size:"mini",placeholder:"选择段落字号",clearable:""},on:{change:e.sizeChanged},model:{value:e.selectSize,callback:function(t){e.selectSize=t},expression:"selectSize"}},e._l(e.config.sizeOption,(function(t){return o("el-option",{key:t.value,attrs:{label:t.label,value:t.value}},[o("span",{staticClass:"select-item-left"},[e._v(e._s(t.label))]),o("span",{staticClass:"select-item-right"},[e._v(e._s(t.desc))])])})),1),o("el-select",{attrs:{size:"mini",placeholder:"选择颜色",clearable:""},on:{change:e.colorChanged},model:{value:e.selectColor,callback:function(t){e.selectColor=t},expression:"selectColor"}},e._l(e.config.colorOption,(function(t){return o("el-option",{key:t.value,attrs:{label:t.label,value:t.value}},[o("span",{staticClass:"select-item-left"},[e._v(e._s(t.label))]),o("span",{staticClass:"select-item-right"},[e._v(e._s(t.desc))])])})),1),o("el-tooltip",{attrs:{content:"自定义颜色",effect:e.effect,placement:"top"}},[o("el-color-picker",{attrs:{size:"mini","show-alpha":""},on:{change:e.colorChanged},model:{value:e.selectColor,callback:function(t){e.selectColor=t},expression:"selectColor"}})],1),o("el-tooltip",{attrs:{content:"微信外链自动转为文末引用",effect:e.effect,placement:"top"}},[o("el-switch",{staticClass:"header__switch",attrs:{"active-color":"#67c23a","inactive-color":"#dcdfe6"},on:{change:e.statusChanged},model:{value:e.citeStatus,callback:function(t){e.citeStatus=t},expression:"citeStatus"}})],1)],1),o("div",{staticClass:"right-side"},[o("el-tooltip",{staticClass:"item",attrs:{effect:e.effect,content:"自定义CSS样式",placement:"left"}},[o("el-button",{attrs:{type:e.btnType,plain:"",size:"medium",icon:"el-icon-setting"},on:{click:e.customStyle}})],1),o("el-button",{attrs:{type:e.btnType,plain:"",size:"medium",placement:"bottom-start"},on:{click:e.copy}},[e._v("复制")]),o("el-button",{staticClass:"about",attrs:{type:e.btnType,plain:"",size:"medium"},on:{click:function(t){return e.$emit("show-about-dialog")}}},[e._v("关于")]),o("el-tooltip",{attrs:{content:e.btnContent,effect:e.effect,placement:"bottom-start"}},[e.nightMode?o("div",{staticClass:"mode__switch mode__switch_black",on:{click:e.themeChanged}}):o("div",{staticClass:"mode__switch",on:{click:e.themeChanged}})])],1),o("resetDialog",{attrs:{showResetConfirm:e.showResetConfirm},on:{confirm:e.confirmReset,close:e.cancelReset}})],1)},ae=[],se=o("1da1"),ce=(o("96cf"),o("466b")),le=o.n(ce);function ue(){for(var e=document.getElementById("output"),t=e.getElementsByTagName("img"),o=0;o安全设置->私人令牌」中生成")])],1),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:e.saveGiteeConfiguration}},[e._v("保存配置")])],1)],1)],1),o("el-tab-pane",{staticClass:"github-panel",attrs:{label:"GitHub 图床",name:"github"}},[o("el-form",{staticClass:"setting-form",attrs:{model:e.formGitHub,"label-position":"right","label-width":"140px"}},[o("el-form-item",{attrs:{label:"GitHub 仓库",required:!0}},[o("el-input",{attrs:{placeholder:"如:github.com/yanglbme/resource"},model:{value:e.formGitHub.repo,callback:function(t){e.$set(e.formGitHub,"repo","string"===typeof t?t.trim():t)},expression:"formGitHub.repo"}})],1),o("el-form-item",{attrs:{label:"分支"}},[o("el-input",{attrs:{placeholder:"如:release,可不填,默认 master"},model:{value:e.formGitHub.branch,callback:function(t){e.$set(e.formGitHub,"branch","string"===typeof t?t.trim():t)},expression:"formGitHub.branch"}})],1),o("el-form-item",{attrs:{label:"Token",required:!0}},[o("el-input",{attrs:{"show-password":"",placeholder:"如:cc1d0c1426d0fd0902bd2d7184b14da61b8abc46"},model:{value:e.formGitHub.accessToken,callback:function(t){e.$set(e.formGitHub,"accessToken","string"===typeof t?t.trim():t)},expression:"formGitHub.accessToken"}}),o("el-link",{attrs:{type:"primary",href:"https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token",target:"_blank"}},[e._v("如何获取 GitHub Token?")])],1),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:e.saveGitHubConfiguration}},[e._v("保存配置")])],1)],1)],1),o("el-tab-pane",{staticClass:"github-panel",attrs:{label:"阿里云 OSS",name:"aliOSS"}},[o("el-form",{staticClass:"setting-form",attrs:{model:e.formAliOSS,"label-position":"right","label-width":"140px"}},[o("el-form-item",{attrs:{label:"AccessKey ID",required:!0}},[o("el-input",{attrs:{placeholder:"如:LTAI4GdoocsmdoxUf13ylbaNHk"},model:{value:e.formAliOSS.accessKeyId,callback:function(t){e.$set(e.formAliOSS,"accessKeyId","string"===typeof t?t.trim():t)},expression:"formAliOSS.accessKeyId"}})],1),o("el-form-item",{attrs:{label:"AccessKey Secret",required:!0}},[o("el-input",{attrs:{"show-password":"",placeholder:"如:cc1d0c142doocs0902bd2d7md4b14da6ylbabc46"},model:{value:e.formAliOSS.accessKeySecret,callback:function(t){e.$set(e.formAliOSS,"accessKeySecret","string"===typeof t?t.trim():t)},expression:"formAliOSS.accessKeySecret"}})],1),o("el-form-item",{attrs:{label:"Bucket",required:!0}},[o("el-input",{attrs:{placeholder:"如:doocs"},model:{value:e.formAliOSS.bucket,callback:function(t){e.$set(e.formAliOSS,"bucket","string"===typeof t?t.trim():t)},expression:"formAliOSS.bucket"}})],1),o("el-form-item",{attrs:{label:"Bucket 所在区域",required:!0}},[o("el-input",{attrs:{placeholder:"如:oss-cn-shenzhen"},model:{value:e.formAliOSS.region,callback:function(t){e.$set(e.formAliOSS,"region","string"===typeof t?t.trim():t)},expression:"formAliOSS.region"}})],1),o("el-form-item",{attrs:{label:"自定义 CDN 域名",required:!1}},[o("el-input",{attrs:{placeholder:"如:https://imagecdn.alidaodao.com,可不填"},model:{value:e.formAliOSS.cdnHost,callback:function(t){e.$set(e.formAliOSS,"cdnHost","string"===typeof t?t.trim():t)},expression:"formAliOSS.cdnHost"}})],1),o("el-form-item",{attrs:{label:"存储路径"}},[o("el-input",{attrs:{placeholder:"如:img,可不填,默认为根目录"},model:{value:e.formAliOSS.path,callback:function(t){e.$set(e.formAliOSS,"path","string"===typeof t?t.trim():t)},expression:"formAliOSS.path"}}),o("el-link",{attrs:{type:"primary",href:"https://help.aliyun.com/document_detail/31883.html",target:"_blank"}},[e._v("如何使用阿里云 OSS?")])],1),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:e.saveAliOSSConfiguration}},[e._v("保存配置")])],1)],1)],1),o("el-tab-pane",{staticClass:"github-panel",attrs:{label:"腾讯云 COS",name:"txCOS"}},[o("el-form",{staticClass:"setting-form",attrs:{model:e.formTxCOS,"label-position":"right","label-width":"140px"}},[o("el-form-item",{attrs:{label:"SecretId",required:!0}},[o("el-input",{attrs:{placeholder:"如:AKIDnQp1w3DOOCSs8F5MDp9tdoocsmdUPonW3"},model:{value:e.formTxCOS.secretId,callback:function(t){e.$set(e.formTxCOS,"secretId","string"===typeof t?t.trim():t)},expression:"formTxCOS.secretId"}})],1),o("el-form-item",{attrs:{label:"SecretKey",required:!0}},[o("el-input",{attrs:{"show-password":"",placeholder:"如:ukLmdtEJ9271f3DOocsMDsCXdS3YlbW0"},model:{value:e.formTxCOS.secretKey,callback:function(t){e.$set(e.formTxCOS,"secretKey","string"===typeof t?t.trim():t)},expression:"formTxCOS.secretKey"}})],1),o("el-form-item",{attrs:{label:"Bucket",required:!0}},[o("el-input",{attrs:{placeholder:"如:doocs-3212520134"},model:{value:e.formTxCOS.bucket,callback:function(t){e.$set(e.formTxCOS,"bucket","string"===typeof t?t.trim():t)},expression:"formTxCOS.bucket"}})],1),o("el-form-item",{attrs:{label:"Bucket 所在区域",required:!0}},[o("el-input",{attrs:{placeholder:"如:ap-guangzhou"},model:{value:e.formTxCOS.region,callback:function(t){e.$set(e.formTxCOS,"region","string"===typeof t?t.trim():t)},expression:"formTxCOS.region"}})],1),o("el-form-item",{attrs:{label:"自定义 CDN 域名",required:!1}},[o("el-input",{attrs:{placeholder:"如:https://imagecdn.alidaodao.com,可不填"},model:{value:e.formTxCOS.cdnHost,callback:function(t){e.$set(e.formTxCOS,"cdnHost","string"===typeof t?t.trim():t)},expression:"formTxCOS.cdnHost"}})],1),o("el-form-item",{attrs:{label:"存储路径"}},[o("el-input",{attrs:{placeholder:"如:img,可不填,默认根目录"},model:{value:e.formTxCOS.path,callback:function(t){e.$set(e.formTxCOS,"path","string"===typeof t?t.trim():t)},expression:"formTxCOS.path"}}),o("el-link",{attrs:{type:"primary",href:"https://cloud.tencent.com/document/product/436/38484",target:"_blank"}},[e._v("如何使用腾讯云 COS?")])],1),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:e.saveTxCOSConfiguration}},[e._v("保存配置")])],1)],1)],1),o("el-tab-pane",{staticClass:"github-panel",attrs:{label:"七牛云 Kodo",name:"qiniu"}},[o("el-form",{staticClass:"setting-form",attrs:{model:e.formQiniu,"label-position":"right","label-width":"140px"}},[o("el-form-item",{attrs:{label:"AccessKey",required:!0}},[o("el-input",{attrs:{placeholder:"如:6DD3VaLJ_SQgOdoocsyTV_YWaDmdnL2n8EGx7kG"},model:{value:e.formQiniu.accessKey,callback:function(t){e.$set(e.formQiniu,"accessKey","string"===typeof t?t.trim():t)},expression:"formQiniu.accessKey"}})],1),o("el-form-item",{attrs:{label:"SecretKey",required:!0}},[o("el-input",{attrs:{"show-password":"",placeholder:"如:qgZa5qrvDOOcsmdKStD1oCjZ9nB7MDvJUs_34SIm"},model:{value:e.formQiniu.secretKey,callback:function(t){e.$set(e.formQiniu,"secretKey","string"===typeof t?t.trim():t)},expression:"formQiniu.secretKey"}})],1),o("el-form-item",{attrs:{label:"Bucket",required:!0}},[o("el-input",{attrs:{placeholder:"如:md"},model:{value:e.formQiniu.bucket,callback:function(t){e.$set(e.formQiniu,"bucket","string"===typeof t?t.trim():t)},expression:"formQiniu.bucket"}})],1),o("el-form-item",{attrs:{label:"Bucket 对应域名",required:!0}},[o("el-input",{attrs:{placeholder:"如:https://images.123ylb.cn"},model:{value:e.formQiniu.domain,callback:function(t){e.$set(e.formQiniu,"domain","string"===typeof t?t.trim():t)},expression:"formQiniu.domain"}})],1),o("el-form-item",{attrs:{label:"存储区域",required:!0}},[o("el-input",{attrs:{placeholder:"如:z2"},model:{value:e.formQiniu.region,callback:function(t){e.$set(e.formQiniu,"region","string"===typeof t?t.trim():t)},expression:"formQiniu.region"}})],1),o("el-form-item",{attrs:{label:"存储路径",required:!1}},[o("el-input",{attrs:{placeholder:"如:img,可不填,默认为根目录"},model:{value:e.formQiniu.path,callback:function(t){e.$set(e.formQiniu,"path","string"===typeof t?t.trim():t)},expression:"formQiniu.path"}}),o("el-link",{attrs:{type:"primary",href:"https://developer.qiniu.com/kodo",target:"_blank"}},[e._v("如何使用七牛云 Kodo?")])],1),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:e.saveQiniuConfiguration}},[e._v("保存配置")])],1)],1)],1),o("el-tab-pane",{staticClass:"github-panel formCustom",attrs:{label:"自定义代码",name:"formCustom"}},[o("el-form",{staticClass:"setting-form",attrs:{model:e.formCustom,"label-position":"right"}},[o("el-form-item",{attrs:{label:"",required:!0}},[o("el-input",{ref:"formCustomElInput",staticClass:"formCustomElInput",attrs:{type:"textarea",resize:"none",placeholder:"Your custom code here."},model:{value:e.formCustom.code,callback:function(t){e.$set(e.formCustom,"code",t)},expression:"formCustom.code"}}),o("el-link",{attrs:{type:"primary",href:"https://github.com/doocs/md#自定义上传逻辑",target:"_blank"}},[e._v("参数详情?")])],1),o("el-form-item",[o("el-button",{attrs:{type:"primary"},on:{click:e.formCustomSave}},[e._v("保存配置")])],1)],1)],1)],1)],1)},qe=[],Ge={props:{value:{type:Boolean,default:!1}},data:function(){return{activeName:"upload",formGitHub:{repo:"",branch:"",accessToken:""},formGitee:{repo:"",branch:"",accessToken:""},formAliOSS:{accessKeyId:"",accessKeySecret:"",bucket:"",region:"",path:"",cdnHost:""},formTxCOS:{secretId:"",secretKey:"",bucket:"",region:"",path:"",cdnHost:""},formQiniu:{accessKey:"",secretKey:"",bucket:"",domain:"",region:""},formCustom:{code:localStorage.getItem("formCustomConfig")||N("\n const {file, util, okCb, errCb} = CUSTOM_ARG\n const param = new FormData()\n param.append('file', file)\n util.axios.post('http://127.0.0.1:9000/upload', param, {\n headers: { 'Content-Type': 'multipart/form-data' }\n }).then(res => {\n okCb(res.url)\n }).catch(err => {\n errCb(err)\n })\n ").trim(),editor:void 0},options:[{value:"default",label:"默认"},{value:"gitee",label:"Gitee"},{value:"github",label:"GitHub"},{value:"aliOSS",label:"阿里云"},{value:"txCOS",label:"腾讯云"},{value:"qiniu",label:"七牛云"},{value:"formCustom",label:"自定义代码"}],imgHost:"default"}},created:function(){localStorage.getItem("githubConfig")&&(this.formGitHub=JSON.parse(localStorage.getItem("githubConfig"))),localStorage.getItem("giteeConfig")&&(this.formGitee=JSON.parse(localStorage.getItem("giteeConfig"))),localStorage.getItem("aliOSSConfig")&&(this.formAliOSS=JSON.parse(localStorage.getItem("aliOSSConfig"))),localStorage.getItem("txCOSConfig")&&(this.formTxCOS=JSON.parse(localStorage.getItem("txCOSConfig"))),localStorage.getItem("imgHost")&&(this.imgHost=localStorage.getItem("imgHost"))},methods:{changeImgHost:function(){localStorage.setItem("imgHost",this.imgHost),this.$message.success("已成功切换图床")},saveGitHubConfiguration:function(){if(this.formGitHub.repo&&this.formGitHub.accessToken)localStorage.setItem("githubConfig",JSON.stringify(this.formGitHub)),this.$message.success("保存成功");else{var e=this.formGitHub.repo?"token":"GitHub 仓库";this.$message.error("参数「​".concat(e,"」不能为空"))}},saveGiteeConfiguration:function(){if(this.formGitee.repo&&this.formGitee.accessToken)localStorage.setItem("giteeConfig",JSON.stringify(this.formGitee)),this.$message.success("保存成功");else{var e=this.formGitee.repo?"私人令牌":"Gitee 仓库";this.$message.error("参数「​".concat(e,"」不能为空"))}},saveAliOSSConfiguration:function(){this.formAliOSS.accessKeyId&&this.formAliOSS.accessKeySecret&&this.formAliOSS.bucket&&this.formAliOSS.region?(localStorage.setItem("aliOSSConfig",JSON.stringify(this.formAliOSS)),this.$message.success("保存成功")):this.$message.error("阿里云 OSS 参数配置不全")},saveTxCOSConfiguration:function(){this.formTxCOS.secretId&&this.formTxCOS.secretKey&&this.formTxCOS.bucket&&this.formTxCOS.region?(localStorage.setItem("txCOSConfig",JSON.stringify(this.formTxCOS)),this.$message.success("保存成功")):this.$message.error("腾讯云 COS 参数配置不全")},saveQiniuConfiguration:function(){this.formQiniu.accessKey&&this.formQiniu.secretKey&&this.formQiniu.bucket&&this.formQiniu.domain&&this.formQiniu.region?(localStorage.setItem("qiniuConfig",JSON.stringify(this.formQiniu)),this.$message.success("保存成功")):this.$message.error("七牛云 Kodo 参数配置不全")},formCustomSave:function(){var e=this.formCustom.editor.getValue();localStorage.setItem("formCustomConfig",e),this.$message.success("保存成功")},beforeImageUpload:function(e){var t=H(e);if(!t.ok)return this.$message.error(t.msg),!1;var o=localStorage.getItem("imgHost");o=o||"default",localStorage.setItem("imgHost",o);var n=localStorage.getItem("".concat(o,"Config")),r="default"==o||n;return!!r||(this.$message.error("请先配置 ".concat(o," 图床参数")),!1)},uploadImage:function(e){this.$emit("uploadImage",e.file)}},watch:{activeName:{immediate:!0,handler:function(e){var t=this;"formCustom"===e&&this.$nextTick((function(){var e=t.$refs.formCustomElInput.$el.querySelector("textarea");t.formCustom.editor=t.formCustom.editor||C.a.fromTextArea(e,{mode:"javascript"}),t.formCustom.editor.setValue(t.formCustom.code)}))}}},mounted:function(){}},We=Ge,Fe=(o("aaca"),Object(s["a"])(We,$e,qe,!1,null,"6b7f927f",null)),He=Fe.exports,ze=o("3f5e");o("f9d4");var Ne={data:function(){return{showCssEditor:!1,aboutDialogVisible:!1,dialogUploadImgVisible:!1,dialogFormVisible:!1,isCoping:!1,isImgLoading:!1,backLight:!1,timeout:null,changeTimer:null,source:"",mouseLeft:0,mouseTop:0}},components:{editorHeader:ke,aboutDialog:xe,insertFormDialog:je,rightClickMenu:Be,uploadImgDialog:He},computed:Object(n["a"])({},Object(d["c"])({wxRenderer:function(e){return e.wxRenderer},output:function(e){return e.output},editor:function(e){return e.editor},cssEditor:function(e){return e.cssEditor},currentSize:function(e){return e.currentSize},currentColor:function(e){return e.currentColor},nightMode:function(e){return e.nightMode},rightClickMenuVisible:function(e){return e.rightClickMenuVisible}})),created:function(){var e=this;this.initEditorState(),this.$nextTick((function(){e.initEditor(),e.initCssEditor(),e.onEditorRefresh()}))},methods:Object(n["a"])({initEditor:function(){var e=this;this.initEditorEntity(),this.editor.on("change",(function(t,o){e.changeTimer&&clearTimeout(e.changeTimer),e.changeTimer=setTimeout((function(){e.onEditorRefresh(),K(e.editor,"__editor_content")}),300)})),this.editor.on("paste",(function(t,o){if(o.clipboardData&&o.clipboardData.items&&!e.isImgLoading)for(var n=0,r=o.clipboardData.items.length;n=65&&t.keyCode<=90||189===t.keyCode)&&e.showHint(t)})),this.cssEditor.on("update",(function(t){e.cssChanged(),K(e.cssEditor,"__css_content")}))},cssChanged:function(){var e=U(this.cssEditor.getValue(0)),t=A(this.currentSize.replace("px",""));t=R(e,this.currentColor,t),this.setWxRendererOptions({theme:t}),this.onEditorRefresh()},beforeUpload:function(e){var t=H(e);if(!t.ok)return this.$message.error(t.msg),!1;var o=localStorage.getItem("imgHost");o=o||"default",localStorage.setItem("imgHost",o);var n=localStorage.getItem("".concat(o,"Config")),r="default"==o||n;return!!r||(this.$message.error("请先配置 ".concat(o," 图床参数")),!1)},uploadImage:function(e){var t=this;this.isImgLoading=!0,F(e).then((function(o){ze["a"].fileUpload(o,e).then((function(e){t.uploaded(e)})).catch((function(e){t.$message.error(e.message)}))})).catch((function(e){t.$message.error(e.message)})),this.isImgLoading=!1},uploaded:function(e){if(e){this.dialogUploadImgVisible=!1;var t=this.editor.getCursor(),o=e,n="![](".concat(o,")");this.editor.replaceSelection("\n".concat(n,"\n"),t),this.$message.success("图片上传成功"),this.onEditorRefresh()}else this.$message.error("上传图片未知异常")},leftAndRightScroll:function(){var e=this,t=function(t){var r,i;clearTimeout(e.timeout),"preview"===t?(r=e.$refs.preview.$el,i=document.getElementsByClassName("CodeMirror-scroll")[0],e.editor.off("scroll",o),e.timeout=setTimeout((function(){e.editor.on("scroll",o)}),300)):"editor"===t&&(r=document.getElementsByClassName("CodeMirror-scroll")[0],i=e.$refs.preview.$el,i.removeEventListener("scroll",n,!1),e.timeout=setTimeout((function(){i.addEventListener("scroll",n,!1)}),300));var a=r.scrollTop/(r.scrollHeight-r.offsetHeight),s=a*(i.scrollHeight-i.offsetHeight);i.scrollTo(0,s)},o=function(){t("editor")},n=function(){t("preview")};this.$refs.preview.$el.addEventListener("scroll",n,!1),this.editor.on("scroll",o)},onEditorRefresh:function(){this.editorRefresh(),setTimeout((function(){return PR.prettyPrint()}),0)},endCopy:function(){var e=this;this.backLight=!1,setTimeout((function(){e.isCoping=!1}),800)},downloadEditorContent:function(){q(this.editor.getValue(0))},exportEditorContent:function(){this.$nextTick((function(){G()}))},importMarkdownContent:function(){var e=this,t=document.getElementById("menu"),o=document.createElement("input");o.type="file",o.name="filename",o.accept=".txt,.md",t.appendChild(o),o.onchange=function(){if(o.files){var t=o.files[0];if(/\.(txt|TXT|MD|md)$/.test(t.name)){var n=new FileReader;n.readAsText(t),n.onload=function(t){var o=t.target.result;o=L(o),o&&(localStorage.setItem("__editor_content",o),e.editor.setValue(o),e.$message.success("文档导入成功"))}}else e.$message.error("不支持的文档格式")}},o.click(),t.removeChild(o)},formatContent:function(){var e=L(this.editor.getValue(0));localStorage.setItem("__editor_content",e),this.editor.setValue(e)},openMenu:function(e){var t=105,o=this.$el.getBoundingClientRect().left,n=this.$el.offsetWidth,r=n-t,i=e.clientX-o;this.mouseLeft=Math.min(r,i),this.mouseTop=e.clientY+10,this.$store.commit("setRightClickMenuVisible",!0)},closeRightClickMenu:function(){this.$store.commit("setRightClickMenuVisible",!1)},onMenuEvent:function(e){switch(e){case"pageReset":this.$refs.header.showResetConfirm=!0;break;case"insertPic":this.dialogUploadImgVisible=!0;break;case"download":this.downloadEditorContent();break;case"export":this.exportEditorContent();break;case"insertTable":this.dialogFormVisible=!0;break;case"importMarkdown":this.importMarkdownContent();break;case"formatMarkdown":this.formatContent();break;default:break}}},Object(d["b"])(["initEditorState","initEditorEntity","setWxRendererOptions","editorRefresh","initCssEditorEntity"])),mounted:function(){var e=this;setTimeout((function(){e.leftAndRightScroll(),PR.prettyPrint()}),300)}},Ve=Ne,Qe=(o("9332"),o("792d"),o("a903"),Object(s["a"])(Ve,ne,re,!1,null,"7acf9643",null)),Je=Qe.exports,Ye={name:"App",components:{Loading:oe["default"],CodemirrorEditor:Je},data:function(){return{loading:!0}},mounted:function(){var e=this;setTimeout((function(){e.loading=!1}),100)}},Ze=Ye,Xe=(o("537d"),Object(s["a"])(Ze,ee,te,!1,null,"8e90ad4c",null)),et=Xe.exports;r["default"].use(X["a"]);var tt=[{path:"/",name:"index",component:et}],ot=new X["a"]({mode:"history",base:"/md/",routes:tt}),nt=ot;r["default"].use(Z.a),r["default"].config.productionTip=!1,u.mpType="app";var rt=new r["default"](Object(n["a"])({router:nt,store:J},u));rt.$mount("#app")},"64e1":function(e,t,o){"use strict";o("7321")},7321:function(e,t,o){},"792d":function(e,t,o){"use strict";o("08bb")},"7c55":function(e,t,o){"use strict";o("2395")},"7d39":function(e,t,o){},"856c":function(e,t,o){"use strict";o("bb13")},"8c0a":function(e,t,o){},9332:function(e,t,o){"use strict";o("fd0a")},"94fb":function(e,t,o){"use strict";o("3ea0")},"991e":function(e,t,o){},"9ae8":function(e,t,o){},a903:function(e,t,o){"use strict";o("7d39")},aaca:function(e,t,o){"use strict";o("9ae8")},aae9:function(e,t,o){"use strict";o.d(t,"a",(function(){return n})),o.d(t,"b",(function(){return r}));var n=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},r=[function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"loading",attrs:{id:"loading"}},[o("div",{staticClass:"loading-wrapper"},[o("div",{staticClass:"loading-anim"}),o("div",{staticClass:"loading-text"},[e._v("致力于让 Markdown 编辑更简单")])])])}]},b2fc:function(e,t,o){"use strict";o("f574")},b43f:function(e,t,o){},bb13:function(e,t,o){},c081:function(e,t,o){"use strict";o("4549")},cb57:function(e,t,o){"use strict";var n=o("eff7"),r=o.n(n);t["default"]=r.a},da71:function(e,t,o){"use strict";o.d(t,"b",(function(){return n})),o.d(t,"a",(function(){return r}));o("a630"),o("3ca3");var n={username:"filess",repoList:Array.from([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],(function(e){return"img".concat(e)})),branch:"main",accessTokenList:["7715d7ca67b5d3837cfdoocsmde8c38421815aa423510af","c411415bf95dbe39625doocsmd5047ba9b7a2a6c9642abe","2821cd8819fa345c053doocsmdca86ac653f8bc20db1f1b","445f0dae46ef1f2a4d6doocsmdc797301e94797b4750a4c","cc1d0c1426d0fd0902bdoocsmdd2d7184b14da61b86ec46","b67e9d15cb6f910492fdoocsmdac6b44d379c953bb19eff","618c4dc2244ccbbc088doocsmd125d17fd31b7d06a50cf3","a4b581732e1c1507458doocsmdc5b223b27dae5e2e16a55","77904db41aee57ad79bdoocsmd760f848201dac9c96fd5e","02f251cb14ac62ab100doocsmdddbfc8527d773f1f04ce1","eb321079a95ba7028d9doocsmde2e84c502dac70de7cf08","22f74fcfb071a961fa2doocsmde28dabc746f0503a15e5d","85124c2bfe7abba0938doocsmd0af7f67918b99d085a5fd","0a561b4d4bbecb2de7edoocsmdd9ba3833d11dbc5e430f5","e8a01491188d8d5a097doocsmd03ede0aad1fe9e3af24e9","36e1f420d7e5bdebd67doocsmd65463562f5f25b20b8377"]},r={username:"filesss",repoList:Array.from([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19],(function(e){return"img".concat(e)})),branch:"main",accessTokenList:["ed5fc9866bd6c2fdoocsmddd433f806fd2f399c","5448ffebbbf1151doocsmdc4e337cf814fc8a62","25b05efd2557ca2doocsmd75b5c0835e3395911","11628c7a5aef015doocsmd2eeff9fb9566f0458","cb2f5145ed938dedoocsmdbd063b4ed244eecf8","d8c0b57500672c1doocsmd55f48b866b5ebcd98","78c56eadb88e453doocsmd43ddd95753351771a","03e1a688003948fdoocsmda16fcf41e6f03f1f0","c49121cf4d191fbdoocsmdd6a7877ed537e474a","adfeb2fadcdc4aadoocsmdfe1ee869ac9c968ff","116c94549ca4a0ddoocsmd192653af5c0694616","ecf30ed7f2eb184doocsmd51ea4ec8300371d9e","5837cf2bd5afd93doocsmd73904bed31934949e","b5b7e1c7d57e01fdoocsmd5266f552574297d78","684d55564ffbd0bdoocsmd7d747e5cc23aed6d6","3fc04a9d272ab71doocsmd010c56cb57d88d2ba"]}},e1d2:function(e,t,o){"use strict";o("ac1f"),o("00b4"),o("d3b7");var n=o("bc3a"),r=o.n(n),i=r.a.create({baseURL:"",timeout:1e4});i.interceptors.request.use((function(e){return/^(post)|(put)|(delete)$/i.test(e.method)&&e.data&&e.data.upload&&(e.headers["Content-Type"]="multipart/form-data"),e}),(function(e){Promise.reject(e)})),i.interceptors.response.use((function(e){return e.data?e.data:Promise.reject(e)}),(function(e){return Promise.reject(e)})),t["a"]=i},eff7:function(e,t){},f574:function(e,t,o){},fd0a:function(e,t,o){}}); +//# sourceMappingURL=app.e586c166.js.map \ No newline at end of file diff --git a/js/app.e586c166.js.map b/js/app.e586c166.js.map new file mode 100644 index 0000000..86d92dc --- /dev/null +++ b/js/app.e586c166.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/components/CodemirrorEditor/resetDialog.vue?94ef","webpack:///./src/components/Loading.vue?0913","webpack:///./src/components/Loading.vue?2551","webpack:///./src/api/file.js","webpack:///./src/assets/scripts/tokenTools.js","webpack:///./src/pages/index/index.vue?ee46","webpack:///./src/App.vue?277e","webpack:///./src/App.vue?3746","webpack:///./src/assets/scripts/config.js","webpack:///./src/assets/scripts/renderers/wx-renderer.js","webpack:///./src/assets/example/markdown.md","webpack:///./src/assets/example/theme-css.txt","webpack:///./src/assets/scripts/themes/default-theme.js","webpack:///./src/assets/scripts/util.js","webpack:///./src/store/index.js","webpack:///./src/plugins/element/index.js","webpack:///./src/pages/index/index.vue?f2c3","webpack:///./src/pages/index/view/CodemirrorEditor.vue?878d","webpack:///./src/components/CodemirrorEditor/header.vue?a86c","webpack:///./src/assets/scripts/converter.js","webpack:///./src/components/CodemirrorEditor/resetDialog.vue?8c47","webpack:///src/components/CodemirrorEditor/resetDialog.vue","webpack:///./src/components/CodemirrorEditor/resetDialog.vue?0219","webpack:///./src/components/CodemirrorEditor/resetDialog.vue?6e21","webpack:///src/components/CodemirrorEditor/header.vue","webpack:///./src/components/CodemirrorEditor/header.vue?83e2","webpack:///./src/components/CodemirrorEditor/header.vue?6ddc","webpack:///./src/components/CodemirrorEditor/aboutDialog.vue?c7a4","webpack:///src/components/CodemirrorEditor/aboutDialog.vue","webpack:///./src/components/CodemirrorEditor/aboutDialog.vue?7264","webpack:///./src/components/CodemirrorEditor/aboutDialog.vue?7dab","webpack:///./src/components/CodemirrorEditor/insertForm.vue?ed83","webpack:///src/components/CodemirrorEditor/insertForm.vue","webpack:///./src/components/CodemirrorEditor/insertForm.vue?e68a","webpack:///./src/components/CodemirrorEditor/insertForm.vue?c5f2","webpack:///./src/components/CodemirrorEditor/rightClickMenu.vue?6e24","webpack:///src/components/CodemirrorEditor/rightClickMenu.vue","webpack:///./src/components/CodemirrorEditor/rightClickMenu.vue?2c4f","webpack:///./src/components/CodemirrorEditor/rightClickMenu.vue?5080","webpack:///./src/components/CodemirrorEditor/uploadImgDialog.vue?5ca7","webpack:///src/components/CodemirrorEditor/uploadImgDialog.vue","webpack:///./src/components/CodemirrorEditor/uploadImgDialog.vue?4a87","webpack:///./src/components/CodemirrorEditor/uploadImgDialog.vue?aaa9","webpack:///src/pages/index/view/CodemirrorEditor.vue","webpack:///./src/pages/index/view/CodemirrorEditor.vue?c7ca","webpack:///./src/pages/index/view/CodemirrorEditor.vue?2e04","webpack:///src/pages/index/index.vue","webpack:///./src/pages/index/index.vue?58f0","webpack:///./src/pages/index/index.vue","webpack:///./src/router/index.js","webpack:///./src/main.js","webpack:///./src/components/CodemirrorEditor/insertForm.vue?cc49","webpack:///./src/pages/index/view/CodemirrorEditor.vue?0d1b","webpack:///./src/App.vue?3c62","webpack:///./src/components/CodemirrorEditor/rightClickMenu.vue?ed2a","webpack:///./src/pages/index/view/CodemirrorEditor.vue?aa9a","webpack:///./src/App.vue?c018","webpack:///./src/pages/index/view/CodemirrorEditor.vue?3975","webpack:///./src/components/CodemirrorEditor/uploadImgDialog.vue?c6de","webpack:///./src/components/Loading.vue?f342","webpack:///./src/components/CodemirrorEditor/header.vue?f3ef","webpack:///./src/components/CodemirrorEditor/aboutDialog.vue?6534","webpack:///./src/components/Loading.vue?969b","webpack:///./src/api/config.js","webpack:///./src/api/fetch.js"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","window","oldJsonpFunction","slice","component","getConfig","useDefault","platform","config","githubConfig","giteeConfig","username","repoList","branch","accessTokenList","tokenIndex","Math","floor","random","accessToken","replace","repoIndex","repo","customConfig","JSON","parse","localStorage","getItem","repoUrl","split","getDir","date","Date","year","getFullYear","month","getMonth","toString","padStart","day","getDate","getDateFilename","filename","currentTimestamp","getTime","fileSuffix","uuidv4","ghFileUpload","content","dir","url","dateFilename","fetch","method","headers","Authorization","message","location","href","res","githubResourceUrl","cdnResourceUrl","download_url","giteeUpload","access_token","encodeURI","getQiniuToken","accessKey","secretKey","putPolicy","policy","stringify","encoded","base64encode","utf16to8","hash","CryptoJS","HmacSHA1","encodedSigned","enc","Base64","safe64","qiniuUpload","file","bucket","region","path","domain","token","scope","deadline","trunc","observable","qiniu","Promise","resolve","reject","subscribe","next","console","log","error","err","complete","aliOSSFileUpload","accessKeyId","accessKeySecret","cdnHost","buffer","Buffer","client","OSS","put","txCOSFileUpload","secretId","cos","COS","SecretId","SecretKey","putObject","Bucket","Region","Key","Body","Location","formCustomUpload","str","exportObj","util","axios","tokenTools","okCb","errCb","eval","catch","fileUpload","imgHost","setItem","out","len","charCodeAt","charAt","String","fromCharCode","utf8to16","char2","char3","base64EncodeChars","base64DecodeChars","Array","c1","c2","c3","base64decode","c4","base64","render","_vm","this","_h","$createElement","_c","_self","attrs","staticRenderFns","script","builtinFonts","label","sizeOption","desc","colorOption","codeThemeOption","form","rows","cols","WxRenderer","opts","ENV_STRETCH_IMAGE","footnotes","footnoteIndex","styleMapping","CODE_FONT_FAMILY","merge","base","extend","assign","buildTheme","themeTpl","mapping","BASE","fonts","size","ele","inline","style","base_block","block","getStyles","tokenName","addition","arr","dict","join","addFootnote","title","link","buildFootnotes","footnoteArray","map","x","buildAddition","setOptions","newOpts","hasFootnotes","getRenderer","status","theme","renderer","marked","Renderer","heading","text","level","paragraph","indexOf","blockquote","code","lang","codeLines","line","codeTheme","codespan","listitem","list","ordered","start","segments","image","subText","figureStyles","imgStyles","startsWith","ref","strong","em","table","header","body","tablecell","flags","hr","color","BASE_BLOCK","margin","h1","display","padding","h2","background","h3","h4","blockquote_p","overflow","border","width","image_org","ol","ul","figure","wx_link","thead","td","footnote","figcaption","setColorWithTemplate","template","custom_theme","setColorWithCustomTemplate","setFontSizeWithTemplate","fontSize","setColor","default_theme","setFontSize","customCssWithTemplate","jsonString","li","css2json","css","open","close","substring","json","lbracket","rbracket","toObject","array","ret","forEach","e","index","trim","declarations","filter","selectors","selector","keys","saveEditorContent","editor","getValue","removeItem","formatDoc","doc","prettier","format","parser","plugins","prettierMarkdown","formatCss","prettierCss","fixCodeWhiteSpace","preDomList","document","getElementsByClassName","pre","whiteSpace","downloadMD","downLink","createElement","download","blob","Blob","URL","createObjectURL","appendChild","click","removeChild","exportHTML","element","querySelector","setStyles","htmlStr","innerHTML","isSection","isPre","isCode","isSpan","setAttribute","getElementStyles","tagName","from","classList","includes","parentElement","children","child","createTable","currRow","rowIdx","toBase64","reader","FileReader","readAsDataURL","onload","pop","onerror","checkImage","isValidSuffix","test","ok","msg","maxSize","isLt5M","excludes","styles","getComputedStyle","entries","getPropertyValue","removeLeft","lines","minSpaceNum","item","match","sort","a","b","newStr","Vue","use","Vuex","state","wxRenderer","output","html","cssEditor","currentFont","currentSize","currentColor","citeStatus","nightMode","rightClickMenuVisible","mutations","setEditorValue","setValue","setCssEditorValue","setWxRendererOptions","setCiteStatus","setCurrentFont","setCurrentSize","setCurrentColor","setCurrentCodeTheme","setRightClickMenuVisible","themeChanged","initEditorState","initEditorEntity","editorDom","getElementById","DEFAULT_CONTENT","CodeMirror","fromTextArea","lineNumbers","lineWrapping","styleActiveLine","autoCloseBrackets","extraKeys","selected","getSelection","replaceSelection","initCssEditorEntity","cssEditorDom","DEFAULT_CSS_CONTENT","matchBrackets","autofocus","editorRefresh","clearEditorToDefault","Store","actions","Message","$loading","Loading","service","$message","staticClass","class","container_night","on","onEditorRefresh","cssChanged","downloadEditorContent","exportEditorContent","$event","showCssEditor","aboutDialogVisible","dialogFormVisible","dialogUploadImgVisible","isCoping","backLight","endCopy","nativeOn","preventDefault","openMenu","directives","rawName","expression","domProps","target","composing","source","output_night","_s","_v","_e","beforeUpload","uploadImage","uploaded","model","callback","$$v","mouseLeft","mouseTop","onMenuEvent","closeRightClickMenu","effect","$emit","showResetConfirm","fontChanged","selectFont","_l","font","fontFamily","sizeChanged","selectSize","colorChanged","selectColor","statusChanged","btnType","customStyle","copy","btnContent","confirmReset","cancelReset","solveWeChatImage","clipboardDiv","images","getElementsByTagName","getAttribute","height","removeAttribute","solveHtml","juice","inlineContent","inlinePseudoElements","preserveImportant","slot","props","type","Boolean","default","computed","selectCodeTheme","components","resetDialog","methods","codeThemeChanged","val","setTimeout","focus","removeAllRanges","range","setStartBefore","firstChild","setEndAfter","lastChild","addRange","execCommand","showClose","offset","duration","clear","mounted","staticStyle","onRedirect","rowNum","colNum","row","col","tableData","$set","insertTable","left","top","menuItem","onMouseDown","Number","menu","closeCB","activeName","changeImgHost","beforeImageUpload","formGitee","saveGiteeConfiguration","formGitHub","saveGitHubConfiguration","formAliOSS","saveAliOSSConfiguration","formTxCOS","saveTxCOSConfiguration","formQiniu","saveQiniuConfiguration","formCustom","formCustomSave","undefined","options","created","success","checkResult","isValidHost","params","watch","immediate","handler","$nextTick","isImgLoading","timeout","changeTimer","editorHeader","aboutDialog","insertFormDialog","rightClickMenu","uploadImgDialog","initEditor","clipboardData","items","kind","isValid","initCssEditor","cm","showHint","response","leftAndRightScroll","clearTimeout","removeEventListener","previewScrollCB","addEventListener","scrollTo","scrollCB","$refs","preview","$el","editorScrollCB","importMarkdownContent","input","accept","onchange","files","readAsText","txt","formatContent","min","maxLeft","clientY","$store","commit","PR","prettyPrint","CodemirrorEditor","loading","VueRouter","routes","router","process","ElementUI","productionTip","App","mpType","app","store","$mount","_m","baseURL","interceptors","request","upload"],"mappings":"aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,OAAQF,IACzBJ,EAAUC,EAASG,GAChBG,OAAOC,UAAUC,eAAeC,KAAKC,EAAiBX,IAAYW,EAAgBX,IACpFK,EAASO,KAAKD,EAAgBX,GAAS,IAExCW,EAAgBX,GAAW,EAE5B,IAAID,KAAYG,EACZK,OAAOC,UAAUC,eAAeC,KAAKR,EAAaH,KACpDc,EAAQd,GAAYG,EAAYH,IAG/Be,GAAqBA,EAAoBhB,GAE5C,MAAMO,EAASC,OACdD,EAASU,OAATV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/L,KACvBqM,EAAQpB,EAAIc,WAAW/L,KACvB6L,GAAOI,OAAOC,cACN,GAAJtK,IAAa,IAAgB,GAARwK,IAAiB,GAAe,GAARC,IAAiB,GAElE,MAGN,OAAOR,EAGT,IAAMS,EACJ,mEACIC,EAAoB,IAAIC,OAC3B,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,EACD,IACC,GACA,GACA,EACD,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,IACC,GACA,GACA,GACA,GACA,GACA,GACA,EACD,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,IACC,GACA,GACA,GACA,GACA,GACA,EACD,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,IACC,GACA,GACA,GACA,GACA,GAEI,SAAS5E,EAAaqD,GAC3B,IAAIY,EAAK7L,EAAG8L,EACRW,EAAIC,EAAIC,EACZb,EAAMb,EAAI/K,OACVF,EAAI,EACJ6L,EAAM,GACN,MAAO7L,EAAI8L,EAAK,CAEd,GADAW,EAA2B,IAAtBxB,EAAIc,WAAW/L,KAChBA,GAAK8L,EAAK,CACZD,GAAOS,EAAkBN,OAAOS,GAAM,GACtCZ,GAAOS,EAAkBN,QAAa,EAALS,IAAa,GAC9CZ,GAAO,KACP,MAGF,GADAa,EAAKzB,EAAIc,WAAW/L,KAChBA,GAAK8L,EAAK,CACZD,GAAOS,EAAkBN,OAAOS,GAAM,GACtCZ,GAAOS,EAAkBN,QAA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,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,EAAG,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,GAAI,KACnE,SAACnD,GAAD,mBAAaA,MAEf7R,OAAQ,OACRC,gBAAiB,CACf,0CACA,0CACA,0CACA,0CACA,0CACA,0CACA,0CACA,0CACA,0CACA,0CACA,0CACA,0CACA,0CACA,0CACA,0CACA,6C,yFC/CEya,EAAUtT,IAAMxI,OAAO,CAC3BqoB,QAAS,GACTxD,QAAS,MAGX/I,EAAQwM,aAAaC,QAAQ7P,KAC3B,SAAC3X,GAMC,MALI,2BAA2BuW,KAAKvW,EAAO6C,SACrC7C,EAAOjE,MAAQiE,EAAOjE,KAAK0rB,SAC7BznB,EAAO8C,QAAQ,gBAAkB,uBAG9B9C,KAET,SAAC6F,GACCP,QAAQE,OAAOK,MAInBkV,EAAQwM,aAAa1C,SAASlN,KAC5B,SAACxU,GACC,OAAOA,EAAIpH,KAAOoH,EAAIpH,KAAOuJ,QAAQE,OAAOrC,MAE9C,SAAC0C,GAAD,OAAWP,QAAQE,OAAOK,MAGbkV,U","file":"js/app.e586c166.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t\"app\": 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/md/\";\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([0,\"chunk-vendors\"]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./resetDialog.vue?vue&type=style&index=0&id=68392714&lang=less&scoped=true&\"","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Loading.vue?vue&type=style&index=0&id=a205efe8&lang=less&scoped=true&\"","import { render, staticRenderFns } from \"./Loading.vue?vue&type=template&id=a205efe8&scoped=true&\"\nimport script from \"./Loading.vue?vue&type=script&lang=js&\"\nexport * from \"./Loading.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Loading.vue?vue&type=style&index=0&id=a205efe8&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"a205efe8\",\n null\n \n)\n\nexport default component.exports","import fetch from \"./fetch\";\nimport { githubConfig, giteeConfig } from \"./config\";\nimport CryptoJS from \"crypto-js\";\nimport OSS from \"ali-oss\";\nimport COS from \"cos-js-sdk-v5\";\nimport Buffer from \"buffer-from\";\nimport { v4 as uuidv4 } from \"uuid\";\nimport * as qiniu from \"qiniu-js\";\nimport { utf16to8, base64encode, safe64 } from \"../assets/scripts/tokenTools\";\nimport * as tokenTools from \"../assets/scripts/tokenTools\";\n\nfunction getConfig(useDefault, platform) {\n if (useDefault) {\n // load default config file\n const config = platform === \"github\" ? githubConfig : giteeConfig;\n const { username, repoList, branch, accessTokenList } = config;\n\n // choose random token from access_token list\n const tokenIndex = Math.floor(Math.random() * accessTokenList.length);\n const accessToken = accessTokenList[tokenIndex].replace(\"doocsmd\", \"\");\n\n // choose random repo from repo list\n const repoIndex = Math.floor(Math.random() * repoList.length);\n const repo = repoList[repoIndex];\n\n return { username, repo, branch, accessToken };\n }\n\n // load configuration from localStorage\n const customConfig = JSON.parse(localStorage.getItem(`${platform}Config`));\n\n // split username/repo\n const repoUrl = customConfig.repo\n .replace(`https://${platform}.com/`, \"\")\n .replace(`http://${platform}.com/`, \"\")\n .replace(`${platform}.com/`, \"\")\n .split(\"/\");\n return {\n username: repoUrl[0],\n repo: repoUrl[1],\n branch: customConfig.branch || \"master\",\n accessToken: customConfig.accessToken,\n };\n}\n\n/**\n * 获取 `年/月/日` 形式的目录\n * @returns string\n */\nfunction getDir() {\n const date = new Date();\n const year = date.getFullYear();\n const month = (date.getMonth() + 1).toString().padStart(2, \"0\");\n const day = date.getDate().toString().padStart(2, \"0\");\n return `${year}/${month}/${day}`;\n}\n\n/**\n * 根据文件名获取它以 `时间戳+uuid` 的形式\n * @param {string} filename 文件名\n * @returns\n */\nfunction getDateFilename(filename) {\n const currentTimestamp = new Date().getTime();\n const fileSuffix = filename.split(\".\")[1];\n return `${currentTimestamp}-${uuidv4()}.${fileSuffix}`;\n}\n\n//-----------------------------------------------------------------------\n// GitHub File Upload\n//-----------------------------------------------------------------------\n\nasync function ghFileUpload(content, filename) {\n const useDefault = localStorage.getItem(\"imgHost\") === \"default\";\n const { username, repo, branch, accessToken } = getConfig(\n useDefault,\n \"github\"\n );\n const dir = getDir();\n const url = `https://api.github.com/repos/${username}/${repo}/contents/${dir}/`;\n const dateFilename = getDateFilename(filename);\n const res = await fetch({\n url: url + dateFilename,\n method: \"put\",\n headers: {\n Authorization: `token ${accessToken}`,\n },\n data: {\n content,\n branch,\n message: `Upload by ${window.location.href}`,\n },\n });\n const githubResourceUrl = `raw.githubusercontent.com/${username}/${repo}/${branch}/`;\n const cdnResourceUrl = `cdn.jsdelivr.net/gh/${username}/${repo}@${branch}/`;\n res.content = res.data?.content || res.content;\n return useDefault\n ? res.content.download_url.replace(githubResourceUrl, cdnResourceUrl)\n : res.content.download_url;\n}\n\n//-----------------------------------------------------------------------\n// Gitee File Upload\n//-----------------------------------------------------------------------\n\nasync function giteeUpload(content, filename) {\n const useDefault = localStorage.getItem(\"imgHost\") === \"default\";\n const { username, repo, branch, accessToken } = getConfig(\n useDefault,\n \"gitee\"\n );\n const dir = getDir();\n const dateFilename = getDateFilename(filename);\n const url = `https://gitee.com/api/v5/repos/${username}/${repo}/contents/${dir}/${dateFilename}`;\n const res = await fetch({\n url,\n method: \"POST\",\n data: {\n content,\n branch,\n access_token: accessToken,\n message: `Upload by ${window.location.href}`,\n },\n });\n res.content = res.data?.content || res.content;\n return encodeURI(res.content.download_url);\n}\n\n//-----------------------------------------------------------------------\n// Qiniu File Upload\n//-----------------------------------------------------------------------\n\nfunction getQiniuToken(accessKey, secretKey, putPolicy) {\n const policy = JSON.stringify(putPolicy);\n const encoded = base64encode(utf16to8(policy));\n const hash = CryptoJS.HmacSHA1(encoded, secretKey);\n const encodedSigned = hash.toString(CryptoJS.enc.Base64);\n return `${accessKey}:${safe64(encodedSigned)}:${encoded}`;\n}\n\nasync function qiniuUpload(file) {\n const { accessKey, secretKey, bucket, region, path, domain } = JSON.parse(\n localStorage.getItem(\"qiniuConfig\")\n );\n const token = getQiniuToken(accessKey, secretKey, {\n scope: bucket,\n deadline: Math.trunc(new Date().getTime() / 1000) + 3600,\n });\n const dir = path ? `${path}/` : \"\";\n const dateFilename = dir + getDateFilename(file.name);\n const observable = qiniu.upload(file, dateFilename, token, {}, { region });\n return new Promise((resolve, reject) => {\n observable.subscribe({\n next: (result) => {\n console.log(result);\n },\n error: (err) => {\n reject(err.message);\n },\n complete: (result) => {\n resolve(`${domain}/${result.key}`);\n },\n });\n });\n}\n\n//-----------------------------------------------------------------------\n// AliOSS File Upload\n//-----------------------------------------------------------------------\n\nasync function aliOSSFileUpload(content, filename) {\n const dateFilename = getDateFilename(filename);\n const { region, bucket, accessKeyId, accessKeySecret, cdnHost, path } =\n JSON.parse(localStorage.getItem(\"aliOSSConfig\"));\n const buffer = Buffer(content, \"base64\");\n const dir = `${path}/${dateFilename}`;\n const client = new OSS({\n region,\n bucket,\n accessKeyId,\n accessKeySecret,\n });\n try {\n const res = await client.put(dir, buffer);\n if (cdnHost == \"\") return res.url;\n return `${cdnHost}/${path == \"\" ? dateFilename : dir}`;\n } catch (e) {\n return Promise.reject(e);\n }\n}\n\n//-----------------------------------------------------------------------\n// TxCOS File Upload\n//-----------------------------------------------------------------------\n\nasync function txCOSFileUpload(file) {\n const dateFilename = getDateFilename(file.name);\n const { secretId, secretKey, bucket, region, path, cdnHost } = JSON.parse(\n localStorage.getItem(\"txCOSConfig\")\n );\n const cos = new COS({\n SecretId: secretId,\n SecretKey: secretKey,\n });\n return new Promise((resolve, reject) => {\n cos.putObject(\n {\n Bucket: bucket,\n Region: region,\n Key: `${path}/${dateFilename}`,\n Body: file,\n },\n function (err, data) {\n if (err) {\n reject(err);\n } else if (cdnHost) {\n resolve(\n path == \"\"\n ? `${cdnHost}/${dateFilename}`\n : `${cdnHost}/${path}/${dateFilename}`\n );\n } else {\n resolve(`https://${data.Location}`);\n }\n }\n );\n });\n}\n\n//-----------------------------------------------------------------------\n// formCustom File Upload\n//-----------------------------------------------------------------------\n\nasync function formCustomUpload(content, file) {\n const str = `\n async (CUSTOM_ARG) => {\n ${localStorage.getItem(`formCustomConfig`)}\n }\n `;\n return new Promise((resolve, reject) => {\n const exportObj = {\n content, // 待上传图片的 base64\n file, // 待上传图片的 file 对象\n util: {\n axios: fetch, // axios 实例\n CryptoJS, // 加密库\n OSS, // ali-oss\n COS, // cos-js-sdk-v5\n Buffer, // buffer-from\n uuidv4, // uuid\n qiniu, // qiniu-js\n tokenTools, // 一些编码转换函数\n getDir, // 获取 年/月/日 形式的目录\n getDateFilename, // 根据文件名获取它以 时间戳+uuid 的形式\n },\n okCb: resolve, // 重要: 上传成功后给此回调传 url 即可\n errCb: reject, // 上传失败调用的函数\n };\n eval(str)(exportObj).catch((err) => {\n console.error(err);\n reject(err);\n });\n });\n}\n\nfunction fileUpload(content, file) {\n const imgHost = localStorage.getItem(\"imgHost\");\n !imgHost && localStorage.setItem(\"imgHost\", \"default\");\n switch (imgHost) {\n case \"aliOSS\":\n return aliOSSFileUpload(content, file.name);\n case \"txCOS\":\n return txCOSFileUpload(file);\n case \"qiniu\":\n return qiniuUpload(file);\n case \"gitee\":\n return giteeUpload(content, file.name);\n case \"github\":\n return ghFileUpload(content, file.name);\n case \"formCustom\":\n return formCustomUpload(content, file);\n default:\n // return file.size / 1024 < 1024\n // ? giteeUpload(content, file.name)\n // : ghFileUpload(content, file.name);\n return ghFileUpload(content, file.name);\n }\n}\n\nexport default {\n fileUpload,\n};\n","export function utf16to8(str) {\n var out, i, len, c;\n out = \"\";\n len = str.length;\n for (i = 0; i < len; i++) {\n c = str.charCodeAt(i);\n if (c >= 0x0001 && c <= 0x007f) {\n out += str.charAt(i);\n } else if (c > 0x07ff) {\n out += String.fromCharCode(0xe0 | ((c >> 12) & 0x0f));\n out += String.fromCharCode(0x80 | ((c >> 6) & 0x3f));\n out += String.fromCharCode(0x80 | ((c >> 0) & 0x3f));\n } else {\n out += String.fromCharCode(0xc0 | ((c >> 6) & 0x1f));\n out += String.fromCharCode(0x80 | ((c >> 0) & 0x3f));\n }\n }\n return out;\n}\n\nexport function utf8to16(str) {\n var out, i, len, c;\n var char2, char3;\n out = \"\";\n len = str.length;\n i = 0;\n while (i < len) {\n c = str.charCodeAt(i++);\n switch (c >> 4) {\n case 0:\n case 1:\n case 2:\n case 3:\n case 4:\n case 5:\n case 6:\n case 7:\n // 0xxxxxxx\n out += str.charAt(i - 1);\n break;\n case 12:\n case 13:\n // 110x xxxx 10xx xxxx\n char2 = str.charCodeAt(i++);\n out += String.fromCharCode(((c & 0x1f) << 6) | (char2 & 0x3f));\n break;\n case 14:\n // 1110 xxxx 10xx xxxx 10xx xxxx\n char2 = str.charCodeAt(i++);\n char3 = str.charCodeAt(i++);\n out += String.fromCharCode(\n ((c & 0x0f) << 12) | ((char2 & 0x3f) << 6) | ((char3 & 0x3f) << 0)\n );\n break;\n }\n }\n return out;\n}\n\nconst base64EncodeChars =\n \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_\";\nconst base64DecodeChars = new Array(\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n 62,\n -1,\n -1,\n -1,\n 63,\n 52,\n 53,\n 54,\n 55,\n 56,\n 57,\n 58,\n 59,\n 60,\n 61,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n 0,\n 1,\n 2,\n 3,\n 4,\n 5,\n 6,\n 7,\n 8,\n 9,\n 10,\n 11,\n 12,\n 13,\n 14,\n 15,\n 16,\n 17,\n 18,\n 19,\n 20,\n 21,\n 22,\n 23,\n 24,\n 25,\n -1,\n -1,\n -1,\n -1,\n -1,\n -1,\n 26,\n 27,\n 28,\n 29,\n 30,\n 31,\n 32,\n 33,\n 34,\n 35,\n 36,\n 37,\n 38,\n 39,\n 40,\n 41,\n 42,\n 43,\n 44,\n 45,\n 46,\n 47,\n 48,\n 49,\n 50,\n 51,\n -1,\n -1,\n -1,\n -1,\n -1\n);\nexport function base64encode(str) {\n var out, i, len;\n var c1, c2, c3;\n len = str.length;\n i = 0;\n out = \"\";\n while (i < len) {\n c1 = str.charCodeAt(i++) & 0xff;\n if (i == len) {\n out += base64EncodeChars.charAt(c1 >> 2);\n out += base64EncodeChars.charAt((c1 & 0x3) << 4);\n out += \"==\";\n break;\n }\n c2 = str.charCodeAt(i++);\n if (i == len) {\n out += base64EncodeChars.charAt(c1 >> 2);\n out += base64EncodeChars.charAt(((c1 & 0x3) << 4) | ((c2 & 0xf0) >> 4));\n out += base64EncodeChars.charAt((c2 & 0xf) << 2);\n out += \"=\";\n break;\n }\n c3 = str.charCodeAt(i++);\n out += base64EncodeChars.charAt(c1 >> 2);\n out += base64EncodeChars.charAt(((c1 & 0x3) << 4) | ((c2 & 0xf0) >> 4));\n out += base64EncodeChars.charAt(((c2 & 0xf) << 2) | ((c3 & 0xc0) >> 6));\n out += base64EncodeChars.charAt(c3 & 0x3f);\n }\n return out;\n}\n\nexport function base64decode(str) {\n var c1, c2, c3, c4;\n var i, len, out;\n len = str.length;\n i = 0;\n out = \"\";\n while (i < len) {\n /* c1 */\n do {\n c1 = base64DecodeChars[str.charCodeAt(i++) & 0xff];\n } while (i < len && c1 == -1);\n if (c1 == -1) break;\n /* c2 */\n do {\n c2 = base64DecodeChars[str.charCodeAt(i++) & 0xff];\n } while (i < len && c2 == -1);\n if (c2 == -1) break;\n out += String.fromCharCode((c1 << 2) | ((c2 & 0x30) >> 4));\n /* c3 */\n do {\n c3 = str.charCodeAt(i++) & 0xff;\n if (c3 == 61) return out;\n c3 = base64DecodeChars[c3];\n } while (i < len && c3 == -1);\n if (c3 == -1) break;\n out += String.fromCharCode(((c2 & 0xf) << 4) | ((c3 & 0x3c) >> 2));\n /* c4 */\n do {\n c4 = str.charCodeAt(i++) & 0xff;\n if (c4 == 61) return out;\n c4 = base64DecodeChars[c4];\n } while (i < len && c4 == -1);\n if (c4 == -1) break;\n out += String.fromCharCode(((c3 & 0x03) << 6) | c4);\n }\n return out;\n}\n\nexport function safe64(base64) {\n base64 = base64.replace(/\\+/g, \"-\");\n base64 = base64.replace(/\\//g, \"_\");\n return base64;\n}\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=8e90ad4c&scoped=true&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{\"id\":\"app\"}},[_c('router-view')],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=41a4af61&\"\nvar script = {}\nimport style0 from \"./App.vue?vue&type=style&index=0&lang=less&\"\nimport style1 from \"./App.vue?vue&type=style&index=1&lang=less&\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","export default {\n builtinFonts: [\n {\n label: \"无衬线\",\n value:\n \"-apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif\",\n },\n {\n label: \"衬线\",\n value:\n \"Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, 'PingFang SC', Cambria, Cochin, Georgia, Times, 'Times New Roman', serif\",\n },\n ],\n sizeOption: [\n {\n label: \"12px\",\n value: \"12px\",\n desc: \"更小\",\n },\n {\n label: \"13px\",\n value: \"13px\",\n desc: \"稍小\",\n },\n {\n label: \"14px\",\n value: \"14px\",\n desc: \"推荐\",\n },\n {\n label: \"15px\",\n value: \"15px\",\n desc: \"稍大\",\n },\n {\n label: \"16px\",\n value: \"16px\",\n desc: \"更大\",\n },\n ],\n colorOption: [\n {\n label: \"经典蓝\",\n value: \"rgba(15, 76, 129, 1)\",\n desc: \"最新流行\",\n },\n {\n label: \"翡翠绿\",\n value: \"rgba(0, 152, 116, 1)\",\n desc: \"优雅清新\",\n },\n {\n label: \"活力橘\",\n value: \"rgba(250, 81, 81, 1)\",\n desc: \"热情活泼\",\n },\n ],\n codeThemeOption: [\n {\n label: \"微信\",\n value: \"wechat\",\n desc: \"默认样式\",\n },\n {\n label: \"GitHub\",\n value: \"github\",\n desc: \"精简风格\",\n },\n ],\n form: {\n rows: 1,\n cols: 1,\n },\n};\n","import marked from \"marked\";\nclass WxRenderer {\n constructor(opts) {\n this.opts = opts;\n let ENV_STRETCH_IMAGE = true;\n\n let footnotes = [];\n let footnoteIndex = 0;\n let styleMapping = null;\n\n const CODE_FONT_FAMILY =\n \"Menlo, Operator Mono, Consolas, Monaco, monospace\";\n\n let merge = (base, extend) => Object.assign({}, base, extend);\n\n this.buildTheme = (themeTpl) => {\n let mapping = {};\n let base = merge(themeTpl.BASE, {\n \"font-family\": this.opts.fonts,\n \"font-size\": this.opts.size,\n });\n for (let ele in themeTpl.inline) {\n if (themeTpl.inline.hasOwnProperty(ele)) {\n let style = themeTpl.inline[ele];\n mapping[ele] = merge(themeTpl.BASE, style);\n }\n }\n\n let base_block = merge(base, {});\n for (let ele in themeTpl.block) {\n if (themeTpl.block.hasOwnProperty(ele)) {\n let style = themeTpl.block[ele];\n if (ele === \"code\") {\n style[\"font-family\"] = CODE_FONT_FAMILY;\n }\n mapping[ele] = merge(base_block, style);\n }\n }\n return mapping;\n };\n\n let getStyles = (tokenName, addition) => {\n let arr = [];\n let dict = styleMapping[tokenName];\n if (!dict) return \"\";\n for (const key in dict) {\n arr.push(key + \":\" + dict[key]);\n }\n return `style=\"${arr.join(\";\") + (addition || \"\")}\"`;\n };\n\n let addFootnote = (title, link) => {\n footnotes.push([++footnoteIndex, title, link]);\n return footnoteIndex;\n };\n\n this.buildFootnotes = () => {\n let footnoteArray = footnotes.map((x) => {\n if (x[1] === x[2]) {\n return `[${x[0]}]: ${x[1]}
`;\n }\n return `[${x[0]}] ${x[1]}: ${x[2]}
`;\n });\n return `

引用链接

${footnoteArray.join(\"\\n\")}

`;\n };\n\n this.buildAddition = () => {\n return `\n \n `;\n };\n\n this.setOptions = (newOpts) => {\n this.opts = merge(this.opts, newOpts);\n };\n\n this.hasFootnotes = () => footnotes.length !== 0;\n\n this.getRenderer = (status) => {\n footnotes = [];\n footnoteIndex = 0;\n\n styleMapping = this.buildTheme(this.opts.theme);\n let renderer = new marked.Renderer();\n\n renderer.heading = (text, level) => {\n switch (level) {\n case 1:\n return `

${text}

`;\n case 2:\n return `

${text}

`;\n case 3:\n return `

${text}

`;\n default:\n return `

${text}

`;\n }\n };\n renderer.paragraph = (text) => {\n if (text.indexOf(\"${text}

`;\n };\n\n renderer.blockquote = (text) => {\n text = text.replace(//g, `

`);\n return `

${text}
`;\n };\n renderer.code = (text, lang) => {\n text = text.replace(//g, \">\");\n const codeLines = text\n .split(\"\\n\")\n .map(\n (line) =>\n `${\n line || \" \"\n }`\n );\n const codeTheme = \"github\";\n return `\n
\n
\n                        ${codeLines.join(\"\")}\n                    
\n
\n `;\n };\n renderer.codespan = (text, lang) =>\n `${text}`;\n renderer.listitem = (text) =>\n `<%s/>${text}`;\n\n renderer.list = (text, ordered, start) => {\n text = text.replace(/<\\/*p.*?>/g, \"\");\n let segments = text.split(`<%s/>`);\n if (!ordered) {\n text = segments.join(\"•\");\n return `

${text}

`;\n }\n text = segments[0];\n for (let i = 1; i < segments.length; i++) {\n text = text + i + \".\" + segments[i];\n }\n return `

${text}

`;\n };\n renderer.image = (href, title, text) => {\n let subText = \"\";\n if (text) {\n subText = `
${text}
`;\n }\n let figureStyles = getStyles(\"figure\");\n let imgStyles = getStyles(ENV_STRETCH_IMAGE ? \"image\" : \"image_org\");\n return `
\"${text}\"/${subText}
`;\n };\n renderer.link = (href, title, text) => {\n if (href.startsWith(\"https://mp.weixin.qq.com\")) {\n return `${text}`;\n }\n if (href === text) {\n return text;\n }\n if (status) {\n let ref = addFootnote(title || text, href);\n return `${text}[${ref}]`;\n }\n return `${text}`;\n };\n renderer.strong = (text) =>\n `${text}`;\n renderer.em = (text) =>\n `${text}`;\n renderer.table = (header, body) =>\n `
${header}${body}
`;\n renderer.tablecell = (text, flags) =>\n `${text}`;\n renderer.hr = () =>\n `
`;\n return renderer;\n };\n }\n}\nexport default WxRenderer;\n","export default \"# 示例文章:Google 搜索的即时自动补全功能究竟是如何“工作”的?\\r\\n\\r\\n> Google 搜索**自动补全功能**的强大,相信不少朋友都能感受到,它帮助我们更快地“补全”我们所要输入的搜索关键字。那么,它怎么知道我们要输入什么内容?它又是如何工作的?在这篇文章里,我们一起来看看。\\r\\n\\r\\n## 使用自动补全\\r\\n\\r\\nGoogle 搜索的自动补全功能可以在 Google 搜索应用的大多数位置使用,包括 [Google](https://www.google.com/) 主页、适用于 IOS 和 Android 的 Google 应用,我们只需要在 Google 搜索框上开始键入关键字,就可以看到联想词了。\\r\\n\\r\\n![](https://gitee.com/yanglbme/resource/raw/master/doocs-md/juejin.gif)\\r\\n\\r\\n在上图示例中,我们可以看到,输入关键字 `juej`,Google 搜索会联想到“掘金”、“掘金小册”、“绝句”等等,好处就是,我们无须输入完整的关键字即可轻松完成针对这些 topics 的搜索。\\r\\n\\r\\n谷歌搜索的自动补全功能对于使用移动设备的用户来说特别有用,用户可以轻松在难以键入的小屏幕上完成搜索。当然,对于移动设备用户和台式机用户而言,这都节省了大量的时间。根据 Google 官方报告,自动补全功能可以减少大约 25% 的打字,累积起来,预计每天可以节省 200 多年的打字时间。是的,每天!\\r\\n\\r\\n> 注意,本文所提到的“**联想词**”与“**预测**”,是同一个意思。\\r\\n\\r\\n## 基于“预测”而非“建议”\\r\\n\\r\\nGoogle 官方将自动补全功能称之为“预测”,而不是“建议”,为什么呢?其实是有充分理由的。自动补全功能是为了**帮助用户完成他们打算进行的搜索**,而不是建议用户要执行什么搜索。\\r\\n\\r\\n那么,Google 是如何确定这些“预测”的?其实,Google 会根据趋势搜索 [trends](https://trends.google.com/trends/?geo=US) 给到我们这些“预测”。简单来说,哪个热门、哪个搜索频率高,就更可能推给我们。当然,这也与我们当前所处的位置以及我们的搜索历史相关。\\r\\n\\r\\n另外,这些“预测”也会随着我们键入的关键字的变更而更改。例如,当我们把键入的关键字从 `juej` 更改为 `juex` 时,与“掘金”相关的预测会“消失”,同时,与“觉醒”、“决心”相关联的词会出现。\\r\\n\\r\\n![](https://gitee.com/yanglbme/resource/raw/master/doocs-md/juex.gif)\\r\\n\\r\\n## 为什么看不到某些联想词?\\r\\n\\r\\n如果我们在输入某个关键字时看不到联想词,那么表明 Google 的算法可能检测到:\\r\\n\\r\\n- 这个关键字不是热门字词;\\r\\n- 搜索的字词太新了,我们可能需要等待几天或几周才能看到联想词;\\r\\n- 这是一个侮辱性或敏感字词,这个搜索字词违反了 Google 的相关政策。更加详细的情况,可以了解 [Google 搜索自动补全政策](https://support.google.com/websearch/answer/7368877)。\\r\\n\\r\\n## 为什么会看到某些不当的联想词?\\r\\n\\r\\nGoogle 拥有专门设计的系统,可以自动捕获不适当的预测结果而不显示出来。然而,Google 每天需要处理数十亿次搜索,这意味着 Google 每天会显示数十亿甚至上百亿条预测。再好的系统,也可能存在缺陷,不正确的预测也可能随时会出现。\\r\\n\\r\\n我们作为 Google 搜索的用户,如果认定某条预测违反了相关的搜索自动补全政策,可以进行举报反馈,点击右下角“**举报不当的联想查询**”并勾选相关选项即可。\\r\\n\\r\\n![](https://gitee.com/yanglbme/resource/raw/master/doocs-md/report.gif)\\r\\n\\r\\n## 如何实现自动补全算法?\\r\\n\\r\\n目前,Google 官方似乎并没有公开搜索自动补全的算法实现,但是业界在这方面已经有了不少研究。\\r\\n\\r\\n一个好的自动补全器必须是快速的,并且在用户键入下一个字符后立即更新联想词列表。**自动补全器的核心是一个函数,它接受输入的前缀,并搜索以给定前缀开头的词汇或语句列表**。通常来说,只需要返回少量的数目即可。\\r\\n\\r\\n接下来,我们先从一个简单且低效的实现开始,并在此基础上逐步构建更高效的方法。\\r\\n\\r\\n### 词汇表实现\\r\\n\\r\\n一个**简单粗暴的实现方式**是:顺序查找词汇表,依次检查每个词汇,看它是否以给定的前缀开头。\\r\\n\\r\\n但是,此方法需要将前缀与每个词汇进行匹配检查,若词汇量较少,这种方式可能勉强行得通。但是,如果词汇量规模较大,效率就太低了。\\r\\n\\r\\n一个**更好的实现方式是**:让词汇按字典顺序排序。借助二分搜索算法,可以快速搜索有序词汇表中的前缀。由于二分搜索的每一步都会将搜索的范围减半,因此,总的搜索时间与词汇表中单词数量的对数成正比,即时间复杂度是 `O(log N)`。二分搜索的性能很好,但有没有更好的实现呢?当然有,往下看。\\r\\n\\r\\n### 前缀树实现\\r\\n\\r\\n通常来说,许多词汇都以相同的前缀开头,比如 `need`、`nested` 都以 `ne` 开头,`seed`、`speed` 都以 `s` 开头。要是为每个单词分别存储公共前缀似乎很浪费。\\r\\n\\r\\n![](https://gitee.com/yanglbme/resource/raw/master/doocs-md/pretree.png)\\r\\n\\r\\n前缀树是一种利用公共前缀来加速补全速度的数据结构。前缀树在节点树中排列一组单词,单词沿着从根节点到叶子节点的路径存储,树的层次对应于前缀的字母位置。\\r\\n\\r\\n前缀的补全是顺着前缀定义的路径来查找的。例如,在上图的前缀树中,前缀 `ne` 对应于从子节点取左边缘 `N` 和唯一边缘 `E` 的路径。然后可以通过继续遍历从 `E` 节点可以达到的所有叶节点来生成补全列表。在图中,`ne` 的补全可以是两个分支:`-ed` 和 `-sted`。如果在数中找不到由前缀定义的路径,则说明词汇表中不包含以该前缀开头的单词。\\r\\n\\r\\n### 有限状态自动机(DFA)实现\\r\\n\\r\\n前缀树可以有效处理公共前缀,但是,对于其他共享词部分,仍会分别存储在每个分支中。比如,后缀 `ed`、`ing`、`tion` 在英文单词中特别常见。在上一个例子中,`e`、`d` 分别存放在了每一个分支上。\\r\\n\\r\\n有没有一种方法可以更加节省存储空间呢?有的,那就是 DFA。\\r\\n\\r\\n
\\r\\n
\\r\\n\\r\\n在上面的例子中,单词 `need`、`nested`、`seed` 和 `speed` 仅由 9 个节点组成,而上一张图中的前缀树包含了 17 个节点。\\r\\n\\r\\n可以看出,最小化前缀树 DFA 可以在很大程度上减少数据结构的大小。即使词汇量很大,最小化 DFA 通常也适合在内存中存储,避免昂贵的磁盘访问是实现快速自动补全的关键。\\r\\n\\r\\n### 一些扩展\\r\\n\\r\\n上面介绍了如何利用合理的数据结构实现基本的自动补全功能。这些数据结构可以通过多种方式进行扩展,从而改善用户体验。\\r\\n\\r\\n通常,满足特定前缀的词汇可能很多,而用户界面上能够显示的却不多,我们更希望能显示最常搜索或者最有价值的词汇。这通常可以通过为词汇表中的每个单词增加一个代表单词值的**权重** `weight`,并且按照权重高低来排序自动补全列表。\\r\\n\\r\\n- 对于排序后的词汇表来说,在词汇表每个元素上增加 `weight` 属性并不难;\\r\\n- 对于前缀树来说,将 `weight` 存储在叶子节点中,也是很简单的一个实现;\\r\\n- 对于 `DFA` 来说,则较为复杂。因为一个叶子节点可以通过多条路径到达。一种解决方案是将权重关联到路径而不是叶子节点。\\r\\n\\r\\n目前有不少开源库都提供了这个功能,比如主流的搜索引擎框架 [Elasticsearch](https://www.elastic.co/products/elasticsearch)、[Solr](https://lucene.apache.org/solr/) 等,基于此,我们可以实现高效而强大的自动补全功能。\\r\\n\\r\\n#### 推荐阅读\\r\\n\\r\\n- [阿里又一个 20k+ stars 开源项目诞生,恭喜 fastjson!](https://mp.weixin.qq.com/s/RNKDCK2KoyeuMeEs6GUrow)\\r\\n- [刷掉 90% 候选人的互联网大厂海量数据面试题(附题解 + 方法总结)](https://mp.weixin.qq.com/s/rjGqxUvrEqJNlo09GrT1Dw)\\r\\n- [好用!期待已久的文本块功能究竟如何在 Java 13 中发挥作用?](https://mp.weixin.qq.com/s/kalGv5T8AZGxTnLHr2wDsA)\\r\\n- [2019 GitHub 开源贡献排行榜新鲜出炉!微软谷歌领头,阿里跻身前 12!](https://mp.weixin.qq.com/s/_q812aGD1b9QvZ2WFI0Qgw)\\r\\n\\r\\n---\\r\\n\\r\\n欢迎关注我的公众号“**Doocs 开源社区**”,原创技术文章第一时间推送。\\r\\n\\r\\n
\\r\\n \\r\\n
\\r\\n\";","export default \"/*\\r\\n 按Ctrl+F可格式化\\r\\n*/\\r\\n/* 一级标题样式 */\\r\\nh1 {\\r\\n}\\r\\n/* 二级标题样式 */\\r\\nh2 {\\r\\n}\\r\\n/* 三级标题样式 */\\r\\nh3 {\\r\\n}\\r\\n/* 四级标题样式 */\\r\\nh4 {\\r\\n}\\r\\n/* 图片样式 */\\r\\nimage {\\r\\n}\\r\\n/* 引用样式 */\\r\\nblockquote {\\r\\n}\\r\\n/* 引用段落样式 */\\r\\nblockquote_p {\\r\\n}\\r\\n/* 段落样式 */\\r\\np {\\r\\n}\\r\\n/* 行内代码样式 */\\r\\ncodespan {\\r\\n}\\r\\n/* 粗体样式 */\\r\\nstrong {\\r\\n}\\r\\n/* 链接样式 */\\r\\nlink {\\r\\n}\\r\\n/* 微信链接样式 */\\r\\nwx_link {\\r\\n}\\r\\n/* 有序列表样式 */\\r\\nol {\\r\\n}\\r\\n/* 无序列表样式 */\\r\\nul {\\r\\n}\\r\\n/* 列表项样式 */\\r\\nli {\\r\\n}\";","export default {\n BASE: {\n \"text-align\": \"left\",\n color: \"#3f3f3f\",\n \"line-height\": \"1.75\",\n },\n BASE_BLOCK: {\n margin: \"1em 8px\",\n },\n block: {\n // 一级标题样式\n h1: {\n \"font-size\": \"1.2em\",\n \"text-align\": \"center\",\n \"font-weight\": \"bold\",\n display: \"table\",\n margin: \"2em auto 1em\",\n padding: \"0 1em\",\n \"border-bottom\": \"2px solid rgba(0, 152, 116, 0.9)\",\n },\n\n // 二级标题样式\n h2: {\n \"font-size\": \"1.2em\",\n \"text-align\": \"center\",\n \"font-weight\": \"bold\",\n display: \"table\",\n margin: \"4em auto 2em\",\n padding: \"0 0.2em\",\n background: \"rgba(0, 152, 116, 0.9)\",\n color: \"#fff\",\n },\n\n // 三级标题样式\n h3: {\n \"font-weight\": \"bold\",\n \"font-size\": \"1.1em\",\n margin: \"2em 8px 0.75em 0\",\n \"line-height\": \"1.2\",\n \"padding-left\": \"8px\",\n \"border-left\": \"3px solid rgba(0, 152, 116, 0.9)\",\n },\n\n // 四级标题样式\n h4: {\n \"font-weight\": \"bold\",\n \"font-size\": \"1em\",\n margin: \"2em 8px 0.5em\",\n color: \"rgba(66, 185, 131, 0.9)\",\n },\n\n // 段落样式\n p: {\n margin: \"1.5em 8px\",\n \"letter-spacing\": \"0.1em\",\n },\n\n // 引用样式\n blockquote: {\n \"font-style\": \"normal\",\n \"border-left\": \"none\",\n padding: \"1em\",\n \"border-radius\": \"8px\",\n color: \"rgba(0,0,0,0.5)\",\n background: \"#f7f7f7\",\n margin: \"2em 8px\",\n },\n\n blockquote_p: {\n \"letter-spacing\": \"0.1em\",\n color: \"rgb(80, 80, 80)\",\n \"font-size\": \"1em\",\n display: \"block\",\n },\n\n code: {\n \"font-size\": \"80%\",\n overflow: \"auto\",\n color: \"#333\",\n \"white-space\": \"pre\",\n background: \"rgb(247, 247, 247)\",\n \"border-radius\": \"8px\",\n padding: \"10px\",\n \"line-height\": \"1.5\",\n border: \"1px solid rgb(236,236,236)\",\n margin: \"20px 0\",\n },\n\n image: {\n \"border-radius\": \"4px\",\n display: \"block\",\n margin: \"0.1em auto 0.5em\",\n width: \"100% !important\",\n },\n\n image_org: {\n \"border-radius\": \"4px\",\n display: \"block\",\n },\n\n ol: {\n \"margin-left\": \"0\",\n \"padding-left\": \"1em\",\n },\n\n ul: {\n \"margin-left\": \"0\",\n \"padding-left\": \"1em\",\n \"list-style\": \"circle\",\n },\n\n footnotes: {\n margin: \"0.5em 8px\",\n \"font-size\": \"80%\",\n },\n\n figure: {\n margin: \"1.5em 8px\",\n },\n },\n inline: {\n listitem: {\n \"text-indent\": \"-1em\",\n display: \"block\",\n margin: \"0.2em 8px\",\n },\n\n codespan: {\n \"font-size\": \"90%\",\n \"white-space\": \"pre\",\n color: \"#d14\",\n background: \"rgba(27,31,35,.05)\",\n padding: \"3px 5px\",\n \"border-radius\": \"4px\",\n },\n\n link: {\n color: \"#576b95\",\n },\n\n wx_link: {\n color: \"#576b95\",\n \"text-decoration\": \"none\",\n },\n\n // 字体加粗样式\n strong: {\n color: \"rgba(15, 76, 129, 0.9)\",\n \"font-weight\": \"bold\",\n },\n\n table: {\n \"border-collapse\": \"collapse\",\n \"text-align\": \"center\",\n margin: \"1em 8px\",\n },\n\n thead: {\n background: \"rgba(0, 0, 0, 0.05)\",\n \"font-weight\": \"bold\",\n },\n\n td: {\n border: \"1px solid #dfdfdf\",\n padding: \"0.25em 0.5em\",\n },\n\n footnote: {\n \"font-size\": \"12px\",\n },\n\n figcaption: {\n \"text-align\": \"center\",\n color: \"#888\",\n \"font-size\": \"0.8em\",\n },\n },\n};\n","import default_theme from \"./themes/default-theme\";\nimport prettier from \"prettier/standalone\";\nimport prettierMarkdown from \"prettier/parser-markdown\";\nimport prettierCss from \"prettier/parser-postcss\";\n\n// 设置自定义颜色\nexport function setColorWithTemplate(template) {\n return function (color) {\n let custom_theme = JSON.parse(JSON.stringify(template));\n custom_theme.block.h1[\"border-bottom\"] = `2px solid ${color}`;\n custom_theme.block.h2[\"background\"] = color;\n custom_theme.block.h3[\"border-left\"] = `3px solid ${color}`;\n custom_theme.block.h4[\"color\"] = color;\n custom_theme.inline.strong[\"color\"] = color;\n return custom_theme;\n };\n}\n\nexport const setColorWithCustomTemplate = function setColorWithCustomTemplate(\n template,\n color\n) {\n let custom_theme = JSON.parse(JSON.stringify(template));\n custom_theme.block.h1[\"border-bottom\"] = `2px solid ${color}`;\n custom_theme.block.h2[\"background\"] = color;\n custom_theme.block.h3[\"border-left\"] = `3px solid ${color}`;\n custom_theme.block.h4[\"color\"] = color;\n custom_theme.inline.strong[\"color\"] = color;\n return custom_theme;\n};\n\n// 设置自定义字体大小\nexport function setFontSizeWithTemplate(template) {\n return function (fontSize) {\n let custom_theme = JSON.parse(JSON.stringify(template));\n custom_theme.block.h1[\"font-size\"] = `${fontSize * 1.14}px`;\n custom_theme.block.h2[\"font-size\"] = `${fontSize * 1.1}px`;\n custom_theme.block.h3[\"font-size\"] = `${fontSize}px`;\n custom_theme.block.h4[\"font-size\"] = `${fontSize}px`;\n return custom_theme;\n };\n}\n\nexport const setColor = setColorWithTemplate(default_theme);\nexport const setFontSize = setFontSizeWithTemplate(default_theme);\n\nexport function customCssWithTemplate(jsonString, color, theme) {\n let custom_theme = JSON.parse(JSON.stringify(theme));\n // block\n custom_theme.block.h1[\"border-bottom\"] = `2px solid ${color}`;\n custom_theme.block.h2[\"background\"] = color;\n custom_theme.block.h3[\"border-left\"] = `3px solid ${color}`;\n custom_theme.block.h4[\"color\"] = color;\n custom_theme.inline.strong[\"color\"] = color;\n\n custom_theme.block.h1 = Object.assign(custom_theme.block.h1, jsonString.h1);\n custom_theme.block.h2 = Object.assign(custom_theme.block.h2, jsonString.h2);\n custom_theme.block.h3 = Object.assign(custom_theme.block.h3, jsonString.h3);\n custom_theme.block.h4 = Object.assign(custom_theme.block.h4, jsonString.h4);\n custom_theme.block.p = Object.assign(custom_theme.block.p, jsonString.p);\n custom_theme.block.blockquote = Object.assign(\n custom_theme.block.blockquote,\n jsonString.blockquote\n );\n custom_theme.block.blockquote_p = Object.assign(\n custom_theme.block.blockquote_p,\n jsonString.blockquote_p\n );\n custom_theme.block.image = Object.assign(\n custom_theme.block.image,\n jsonString.image\n );\n\n // inline\n custom_theme.inline.strong = Object.assign(\n custom_theme.inline.strong,\n jsonString.strong\n );\n custom_theme.inline.codespan = Object.assign(\n custom_theme.inline.codespan,\n jsonString.codespan\n );\n custom_theme.inline.link = Object.assign(\n custom_theme.inline.link,\n jsonString.link\n );\n custom_theme.inline.wx_link = Object.assign(\n custom_theme.inline.wx_link,\n jsonString.wx_link\n );\n custom_theme.block.ul = Object.assign(custom_theme.block.ul, jsonString.ul);\n custom_theme.block.ol = Object.assign(custom_theme.block.ol, jsonString.ol);\n custom_theme.inline.listitem = Object.assign(\n custom_theme.inline.listitem,\n jsonString.li\n );\n return custom_theme;\n}\n\n/**\n * 将CSS形式的字符串转换为JSON\n *\n * @param {css字符串} css\n */\nexport function css2json(css) {\n // 移除CSS所有注释\n let open, close;\n while (\n (open = css.indexOf(\"/*\")) !== -1 &&\n (close = css.indexOf(\"*/\")) !== -1\n ) {\n css = css.substring(0, open) + css.substring(close + 2);\n }\n\n // 初始化返回值\n let json = {};\n\n while (css.length > 0 && css.indexOf(\"{\") !== -1 && css.indexOf(\"}\") !== -1) {\n // 存储第一个左/右花括号的下标\n const lbracket = css.indexOf(\"{\");\n const rbracket = css.indexOf(\"}\");\n\n // 第一步:将声明转换为Object,如:\n // `font: 'Times New Roman' 1em; color: #ff0000; margin-top: 1em;`\n // ==>\n // `{\"font\": \"'Times New Roman' 1em\", \"color\": \"#ff0000\", \"margin-top\": \"1em\"}`\n\n // 辅助方法:将array转为object\n function toObject(array) {\n let ret = {};\n array.forEach((e) => {\n const index = e.indexOf(\":\");\n const property = e.substring(0, index).trim();\n const value = e.substring(index + 1).trim();\n ret[property] = value;\n });\n return ret;\n }\n\n // 切割声明块并移除空白符,然后放入数组中\n let declarations = css\n .substring(lbracket + 1, rbracket)\n .split(\";\")\n .map((e) => e.trim())\n .filter((e) => e.length > 0); // 移除所有\"\"空值\n\n // 转为Object对象\n declarations = toObject(declarations);\n\n // 第二步:选择器处理,每个选择器会与它对应的声明相关联,如:\n // `h1, p#bar {color: red}`\n // ==>\n // {\"h1\": {color: red}, \"p#bar\": {color: red}}\n\n let selectors = css\n .substring(0, lbracket)\n // 以,切割,并移除空格:`\"h1, p#bar, span.foo\"` => [\"h1\", \"p#bar\", \"span.foo\"]\n .split(\",\")\n .map((selector) => selector.trim());\n\n // 迭代赋值\n selectors.forEach((selector) => {\n // 若不存在,则先初始化\n if (!json[selector]) json[selector] = {};\n // 赋值到JSON\n Object.keys(declarations).forEach((key) => {\n json[selector][key] = declarations[key];\n });\n });\n\n // 继续下个声明块\n css = css.slice(rbracket + 1).trim();\n }\n\n // 返回JSON形式的结果串\n return json;\n}\n\n/**\n * 将编辑器内容保存到 LocalStorage\n * @param {*} editor\n * @param {*} name\n */\nexport function saveEditorContent(editor, name) {\n const content = editor.getValue(0);\n if (content) {\n localStorage.setItem(name, content);\n } else {\n localStorage.removeItem(name);\n }\n}\n\n/**\n * 格式化文档\n * @param {文档内容} content\n */\nexport function formatDoc(content) {\n const doc = prettier.format(content, {\n parser: \"markdown\",\n plugins: [prettierMarkdown],\n });\n return doc;\n}\n\n/**\n * 格式化css\n * @param {css内容}} content\n */\nexport function formatCss(content) {\n const doc = prettier.format(content, {\n parser: \"css\",\n plugins: [prettierCss],\n });\n return doc;\n}\n\nexport function fixCodeWhiteSpace(value = \"pre\") {\n const preDomList = document.getElementsByClassName(\"code__pre\");\n if (preDomList.length > 0) {\n preDomList.forEach((pre) => {\n pre.style.whiteSpace = value;\n });\n }\n}\n\n/**\n * 导出原始 Markdown 文档\n * @param {文档内容} doc\n */\nexport function downloadMD(doc) {\n let downLink = document.createElement(\"a\");\n\n downLink.download = \"content.md\";\n downLink.style.display = \"none\";\n let blob = new Blob([doc]);\n\n downLink.href = URL.createObjectURL(blob);\n document.body.appendChild(downLink);\n downLink.click();\n document.body.removeChild(downLink);\n}\n\n/**\n * 导出 HTML 生成内容\n */\nexport function exportHTML() {\n const element = document.querySelector(\"#output\");\n setStyles(element);\n const htmlStr = element.innerHTML;\n\n const downLink = document.createElement(\"a\");\n\n downLink.download = \"content.html\";\n downLink.style.display = \"none\";\n let blob = new Blob([\n `
${htmlStr}
`,\n ]);\n\n downLink.href = URL.createObjectURL(blob);\n document.body.appendChild(downLink);\n downLink.click();\n document.body.removeChild(downLink);\n\n function setStyles(element) {\n switch (true) {\n case isSection(element):\n case isPre(element):\n case isCode(element):\n case isSpan(element):\n element.setAttribute(\"style\", getElementStyles(element));\n default:\n }\n if (element.children.length) {\n Array.from(element.children).forEach((child) => setStyles(child));\n }\n\n // 判断是否是包裹代码块的 section 元素\n function isSection(element) {\n return (\n element.tagName === \"SECTION\" &&\n Array.from(element.classList).includes(\"code-snippet__github\")\n );\n }\n // 判断是否是包裹代码块的 pre 元素\n function isPre(element) {\n return (\n element.tagName === \"PRE\" &&\n Array.from(element.classList).includes(\"code__pre\")\n );\n }\n // 判断是否是包裹代码块的 code 元素\n function isCode(element) {\n return (\n element.tagName === \"CODE\" &&\n Array.from(element.classList).includes(\"prettyprint\")\n );\n }\n // 判断是否是包裹代码字符的 span 元素\n function isSpan(element) {\n return (\n element.tagName === \"SPAN\" &&\n (isCode(element.parentElement) ||\n isCode(element.parentElement.parentElement))\n );\n }\n }\n}\n\n/**\n * 生成列表字符串\n * @param {*} data 对应内容集合\n * @param {*} rows 行\n * @param {*} cols 列\n */\nexport function createTable({ data, rows, cols }) {\n let table = \"\";\n let currRow = [];\n for (let i = 0; i < rows + 2; ++i) {\n table += \"|\\t\";\n currRow = [];\n for (let j = 0; j < cols; ++j) {\n const rowIdx = i > 1 ? i - 1 : i;\n i === 1\n ? currRow.push(\"---\\t\")\n : currRow.push(data[`k_${rowIdx}_${j}`] || \"\");\n }\n table += currRow.join(\"\\t|\\t\");\n table += \"\\t|\\n\";\n }\n\n return table;\n}\n\nexport const toBase64 = (file) =>\n new Promise((resolve, reject) => {\n const reader = new FileReader();\n reader.readAsDataURL(file);\n reader.onload = () => resolve(reader.result.split(\",\").pop());\n reader.onerror = (error) => reject(error);\n });\n\nexport function checkImage(file) {\n // check filename suffix\n const isValidSuffix = /\\.(gif|jpg|jpeg|png|GIF|JPG|PNG)$/.test(file.name);\n if (!isValidSuffix) {\n return {\n ok: false,\n msg: \"请上传 JPG/PNG/GIF 格式的图片\",\n };\n }\n\n // check file size\n const maxSize = 5;\n const isLt5M = file.size / 1024 / 1024 <= maxSize;\n if (!isLt5M) {\n return {\n ok: false,\n msg: `由于公众号限制,图片大小不能超过 ${maxSize}M`,\n };\n }\n return { ok: true };\n}\n\n/**\n * 获取一个 DOM 元素的所有样式,\n * @param {DOM 元素} element DOM 元素\n * @param {排除的属性} excludes 如果某些属性对结果有不良影响,可以使用这个参数来排除\n * @returns 行内样式拼接结果\n */\nfunction getElementStyles(element, excludes = [\"width\", \"height\"]) {\n const styles = getComputedStyle(element, null);\n return Object.entries(styles)\n .filter(([key]) => styles.getPropertyValue(key) && !excludes.includes(key))\n .map(([key, value]) => `${key}:${value};`)\n .join(\"\");\n}\n\n/**\n * 移除左边多余空格\n * @param {*} str \n * @returns \n */\nexport function removeLeft(str) {\n const lines = str.split('\\n')\n // 获取应该删除的空白符数量\n const minSpaceNum = lines.filter(item => item.trim())\n .map(item => item.match(/(^\\s+)?/)[0].length)\n .sort((a, b) => a - b)[0]\n // 删除空白符\n const newStr = lines\n .map(item => item.slice(minSpaceNum))\n .join('\\n')\n return newStr\n}","import Vue from \"vue\";\nimport Vuex from \"vuex\";\nimport config from \"../assets/scripts/config\";\nimport WxRenderer from \"../assets/scripts/renderers/wx-renderer\";\nimport marked from \"marked\";\nimport CodeMirror from \"codemirror/lib/codemirror\";\nimport DEFAULT_CONTENT from \"@/assets/example/markdown.md\";\nimport DEFAULT_CSS_CONTENT from \"@/assets/example/theme-css.txt\";\nimport { setColor, formatDoc, formatCss } from \"../assets/scripts/util\";\n\nVue.use(Vuex);\n\nconst state = {\n wxRenderer: null,\n output: \"\",\n html: \"\",\n editor: null,\n cssEditor: null,\n currentFont: \"\",\n currentSize: \"\",\n currentColor: \"\",\n citeStatus: 0,\n nightMode: false,\n codeTheme: \"github\",\n rightClickMenuVisible: false,\n};\nconst mutations = {\n setEditorValue(state, data) {\n state.editor.setValue(data);\n },\n setCssEditorValue(state, data) {\n state.cssEditor.setValue(data);\n },\n setWxRendererOptions(state, data) {\n state.wxRenderer.setOptions(data);\n },\n setCiteStatus(state, data) {\n state.citeStatus = data;\n localStorage.setItem(\"citeStatus\", data);\n },\n setCurrentFont(state, data) {\n state.currentFont = data;\n localStorage.setItem(\"fonts\", data);\n },\n setCurrentSize(state, data) {\n state.currentSize = data;\n localStorage.setItem(\"size\", data);\n },\n setCurrentColor(state, data) {\n state.currentColor = data;\n localStorage.setItem(\"color\", data);\n },\n setCurrentCodeTheme(state, data) {\n state.codeTheme = data;\n localStorage.setItem(\"codeTheme\", data);\n },\n setRightClickMenuVisible(state, data) {\n state.rightClickMenuVisible = data;\n },\n themeChanged(state) {\n state.nightMode = !state.nightMode;\n localStorage.setItem(\"nightMode\", state.nightMode);\n },\n initEditorState(state) {\n state.currentFont =\n localStorage.getItem(\"fonts\") || config.builtinFonts[0].value;\n state.currentColor =\n localStorage.getItem(\"color\") || config.colorOption[0].value;\n state.currentSize =\n localStorage.getItem(\"size\") || config.sizeOption[2].value;\n state.codeTheme =\n localStorage.getItem(\"codeTheme\") || config.codeThemeOption[0].value;\n state.citeStatus = localStorage.getItem(\"citeStatus\") === \"true\";\n state.nightMode = localStorage.getItem(\"nightMode\") === \"true\";\n state.wxRenderer = new WxRenderer({\n theme: setColor(state.currentColor),\n fonts: state.currentFont,\n size: state.currentSize,\n status: state.citeStatus,\n });\n },\n initEditorEntity(state) {\n const editorDom = document.getElementById(\"editor\");\n\n if (!editorDom.value) {\n editorDom.value =\n localStorage.getItem(\"__editor_content\") || formatDoc(DEFAULT_CONTENT);\n }\n state.editor = CodeMirror.fromTextArea(editorDom, {\n mode: \"text/x-markdown\",\n theme: \"xq-light\",\n lineNumbers: false,\n lineWrapping: true,\n styleActiveLine: true,\n autoCloseBrackets: true,\n extraKeys: {\n \"Ctrl-F\": function autoFormat(editor) {\n const doc = formatDoc(editor.getValue(0));\n localStorage.setItem(\"__editor_content\", doc);\n editor.setValue(doc);\n },\n \"Ctrl-S\": function save(editor) {},\n \"Ctrl-B\": function bold(editor) {\n const selected = editor.getSelection();\n editor.replaceSelection(`**${selected}**`);\n },\n \"Ctrl-D\": function del(editor) {\n const selected = editor.getSelection();\n editor.replaceSelection(`~~${selected}~~`);\n },\n \"Ctrl-I\": function italic(editor) {\n const selected = editor.getSelection();\n editor.replaceSelection(`*${selected}*`);\n }\n },\n });\n },\n initCssEditorEntity(state) {\n const cssEditorDom = document.getElementById(\"cssEditor\");\n\n if (!cssEditorDom.value) {\n cssEditorDom.value =\n localStorage.getItem(\"__css_content\") || DEFAULT_CSS_CONTENT;\n }\n state.cssEditor = CodeMirror.fromTextArea(cssEditorDom, {\n mode: \"css\",\n theme: \"style-mirror\",\n lineNumbers: false,\n lineWrapping: true,\n matchBrackets: true,\n autofocus: true,\n extraKeys: {\n \"Ctrl-F\": function autoFormat(editor) {\n const doc = formatCss(editor.getValue(0));\n localStorage.setItem(\"__css_content\", doc);\n editor.setValue(doc);\n },\n \"Ctrl-S\": function save(editor) {},\n },\n });\n },\n editorRefresh(state) {\n let output = marked(state.editor.getValue(0), {\n renderer: state.wxRenderer.getRenderer(state.citeStatus),\n });\n\n // 去除第一行的 margin-top\n output = output.replace(/(style=\".*?)\"/, '$1;margin-top: 0\"');\n if (state.citeStatus) {\n // 引用脚注\n output += state.wxRenderer.buildFootnotes();\n // 附加的一些 style\n output += state.wxRenderer.buildAddition();\n }\n state.output = output;\n },\n clearEditorToDefault(state) {\n const doc = formatDoc(DEFAULT_CONTENT);\n\n state.editor.setValue(doc);\n state.cssEditor.setValue(DEFAULT_CSS_CONTENT);\n },\n};\n\nexport default new Vuex.Store({\n state,\n mutations,\n actions: {},\n});\n","import Vue from \"vue\";\nimport {\n Loading,\n Message,\n} from \"element-ui\";\n\nVue.component(Message.name, Message);\n\nVue.prototype.$loading = Loading.service;\nVue.prototype.$message = Message;\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.loading)?_c('transition',{attrs:{\"name\":\"fade\"}},[_c('loading')],1):_c('codemirror-editor')}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"container\",class:{ container_night: _vm.nightMode }},[_c('el-container',[_c('el-header',{staticClass:\"editor__header\"},[_c('editor-header',{ref:\"header\",on:{\"refresh\":_vm.onEditorRefresh,\"cssChanged\":_vm.cssChanged,\"download\":_vm.downloadEditorContent,\"export\":_vm.exportEditorContent,\"showCssEditor\":function($event){_vm.showCssEditor = !_vm.showCssEditor},\"show-about-dialog\":function($event){_vm.aboutDialogVisible = true},\"show-dialog-form\":function($event){_vm.dialogFormVisible = true},\"show-dialog-upload-img\":function($event){_vm.dialogUploadImgVisible = true},\"startCopy\":function($event){(_vm.isCoping = true), (_vm.backLight = true)},\"endCopy\":_vm.endCopy}})],1),_c('el-main',{staticClass:\"main-body\"},[_c('el-row',{staticClass:\"main-section\"},[_c('el-col',{staticClass:\"codeMirror-wrapper\",attrs:{\"span\":12},nativeOn:{\"contextmenu\":function($event){$event.preventDefault();return _vm.openMenu($event)}}},[_c('textarea',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.source),expression:\"source\"}],attrs:{\"id\":\"editor\",\"type\":\"textarea\",\"placeholder\":\"Your markdown text here.\"},domProps:{\"value\":(_vm.source)},on:{\"input\":function($event){if($event.target.composing){ return; }_vm.source=$event.target.value}}})]),_c('el-col',{ref:\"preview\",staticClass:\"preview-wrapper\",class:{\n 'preview-wrapper_night': _vm.nightMode && _vm.isCoping,\n },attrs:{\"span\":12,\"id\":\"preview\"}},[_c('section',{class:{ output_night: _vm.nightMode && !_vm.backLight },attrs:{\"id\":\"output-wrapper\"}},[_c('div',{staticClass:\"preview\"},[_c('section',{attrs:{\"id\":\"output\"},domProps:{\"innerHTML\":_vm._s(_vm.output)}}),(_vm.nightMode && _vm.isCoping)?_c('div',{staticClass:\"loading-mask\"},[_c('div',{staticClass:\"loading__img\"}),_c('span',[_vm._v(\"正在生成\")])]):_vm._e()])])]),_c('transition',{attrs:{\"name\":\"custom-classes-transition\",\"enter-active-class\":\"bounceInRight\"}},[_c('el-col',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showCssEditor),expression:\"showCssEditor\"}],staticClass:\"cssEditor-wrapper\",attrs:{\"id\":\"cssBox\",\"span\":12}},[_c('textarea',{attrs:{\"id\":\"cssEditor\",\"type\":\"textarea\",\"placeholder\":\"Your custom css here.\"}})])],1)],1)],1)],1),_c('upload-img-dialog',{on:{\"close\":function($event){_vm.dialogUploadImgVisible = false},\"beforeUpload\":_vm.beforeUpload,\"uploadImage\":_vm.uploadImage,\"uploaded\":_vm.uploaded},model:{value:(_vm.dialogUploadImgVisible),callback:function ($$v) {_vm.dialogUploadImgVisible=$$v},expression:\"dialogUploadImgVisible\"}}),_c('about-dialog',{model:{value:(_vm.aboutDialogVisible),callback:function ($$v) {_vm.aboutDialogVisible=$$v},expression:\"aboutDialogVisible\"}}),_c('insert-form-dialog',{model:{value:(_vm.dialogFormVisible),callback:function ($$v) {_vm.dialogFormVisible=$$v},expression:\"dialogFormVisible\"}}),_c('right-click-menu',{attrs:{\"left\":_vm.mouseLeft,\"top\":_vm.mouseTop},on:{\"menuTick\":_vm.onMenuEvent,\"closeMenu\":_vm.closeRightClickMenu},model:{value:(_vm.rightClickMenuVisible),callback:function ($$v) {_vm.rightClickMenuVisible=$$v},expression:\"rightClickMenuVisible\"}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-container',{staticClass:\"top is-dark\"},[_c('div',{staticClass:\"left-side\"},[_c('el-tooltip',{attrs:{\"effect\":_vm.effect,\"content\":\"上传图片\",\"placement\":\"bottom-start\"}},[_c('i',{staticClass:\"el-icon-upload\",attrs:{\"size\":\"medium\"},on:{\"click\":function($event){return _vm.$emit('show-dialog-upload-img')}}})]),_c('el-tooltip',{staticClass:\"header__item\",attrs:{\"effect\":_vm.effect,\"content\":\"导出 Markdown 文档\",\"placement\":\"bottom-start\"}},[_c('i',{staticClass:\"el-icon-download\",attrs:{\"size\":\"medium\"},on:{\"click\":function($event){return _vm.$emit('download')}}})]),_c('el-tooltip',{staticClass:\"header__item\",attrs:{\"effect\":_vm.effect,\"content\":\"导出 HTML 页面\",\"placement\":\"bottom-start\"}},[_c('i',{staticClass:\"el-icon-document\",attrs:{\"size\":\"medium\"},on:{\"click\":function($event){return _vm.$emit('export')}}})]),_c('el-tooltip',{staticClass:\"header__item\",attrs:{\"effect\":_vm.effect,\"content\":\"重置页面\",\"placement\":\"bottom-start\"}},[_c('i',{staticClass:\"el-icon-refresh\",attrs:{\"size\":\"medium\"},on:{\"click\":function($event){_vm.showResetConfirm = true}}})]),_c('el-tooltip',{staticClass:\"header__item header__item_last\",attrs:{\"effect\":_vm.effect,\"content\":\"插入表格\",\"placement\":\"bottom-start\"}},[_c('i',{staticClass:\"el-icon-s-grid\",attrs:{\"size\":\"medium\"},on:{\"click\":function($event){return _vm.$emit('show-dialog-form')}}})]),_c('el-select',{attrs:{\"size\":\"mini\",\"placeholder\":\"选择字体\",\"clearable\":\"\"},on:{\"change\":_vm.fontChanged},model:{value:(_vm.selectFont),callback:function ($$v) {_vm.selectFont=$$v},expression:\"selectFont\"}},_vm._l((_vm.config.builtinFonts),function(font){return _c('el-option',{key:font.value,style:({ fontFamily: font.value }),attrs:{\"label\":font.label,\"value\":font.value}},[_c('span',{staticClass:\"select-item-left\"},[_vm._v(_vm._s(font.label))]),_c('span',{staticClass:\"select-item-right\"},[_vm._v(\"Abc\")])])}),1),_c('el-select',{attrs:{\"size\":\"mini\",\"placeholder\":\"选择段落字号\",\"clearable\":\"\"},on:{\"change\":_vm.sizeChanged},model:{value:(_vm.selectSize),callback:function ($$v) {_vm.selectSize=$$v},expression:\"selectSize\"}},_vm._l((_vm.config.sizeOption),function(size){return _c('el-option',{key:size.value,attrs:{\"label\":size.label,\"value\":size.value}},[_c('span',{staticClass:\"select-item-left\"},[_vm._v(_vm._s(size.label))]),_c('span',{staticClass:\"select-item-right\"},[_vm._v(_vm._s(size.desc))])])}),1),_c('el-select',{attrs:{\"size\":\"mini\",\"placeholder\":\"选择颜色\",\"clearable\":\"\"},on:{\"change\":_vm.colorChanged},model:{value:(_vm.selectColor),callback:function ($$v) {_vm.selectColor=$$v},expression:\"selectColor\"}},_vm._l((_vm.config.colorOption),function(color){return _c('el-option',{key:color.value,attrs:{\"label\":color.label,\"value\":color.value}},[_c('span',{staticClass:\"select-item-left\"},[_vm._v(_vm._s(color.label))]),_c('span',{staticClass:\"select-item-right\"},[_vm._v(_vm._s(color.desc))])])}),1),_c('el-tooltip',{attrs:{\"content\":\"自定义颜色\",\"effect\":_vm.effect,\"placement\":\"top\"}},[_c('el-color-picker',{attrs:{\"size\":\"mini\",\"show-alpha\":\"\"},on:{\"change\":_vm.colorChanged},model:{value:(_vm.selectColor),callback:function ($$v) {_vm.selectColor=$$v},expression:\"selectColor\"}})],1),_c('el-tooltip',{attrs:{\"content\":\"微信外链自动转为文末引用\",\"effect\":_vm.effect,\"placement\":\"top\"}},[_c('el-switch',{staticClass:\"header__switch\",attrs:{\"active-color\":\"#67c23a\",\"inactive-color\":\"#dcdfe6\"},on:{\"change\":_vm.statusChanged},model:{value:(_vm.citeStatus),callback:function ($$v) {_vm.citeStatus=$$v},expression:\"citeStatus\"}})],1)],1),_c('div',{staticClass:\"right-side\"},[_c('el-tooltip',{staticClass:\"item\",attrs:{\"effect\":_vm.effect,\"content\":\"自定义CSS样式\",\"placement\":\"left\"}},[_c('el-button',{attrs:{\"type\":_vm.btnType,\"plain\":\"\",\"size\":\"medium\",\"icon\":\"el-icon-setting\"},on:{\"click\":_vm.customStyle}})],1),_c('el-button',{attrs:{\"type\":_vm.btnType,\"plain\":\"\",\"size\":\"medium\",\"placement\":\"bottom-start\"},on:{\"click\":_vm.copy}},[_vm._v(\"复制\")]),_c('el-button',{staticClass:\"about\",attrs:{\"type\":_vm.btnType,\"plain\":\"\",\"size\":\"medium\"},on:{\"click\":function($event){return _vm.$emit('show-about-dialog')}}},[_vm._v(\"关于\")]),_c('el-tooltip',{attrs:{\"content\":_vm.btnContent,\"effect\":_vm.effect,\"placement\":\"bottom-start\"}},[(_vm.nightMode)?_c('div',{staticClass:\"mode__switch mode__switch_black\",on:{\"click\":_vm.themeChanged}}):_c('div',{staticClass:\"mode__switch\",on:{\"click\":_vm.themeChanged}})])],1),_c('resetDialog',{attrs:{\"showResetConfirm\":_vm.showResetConfirm},on:{\"confirm\":_vm.confirmReset,\"close\":_vm.cancelReset}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import juice from \"juice\";\n\nexport function solveWeChatImage() {\n const clipboardDiv = document.getElementById(\"output\");\n const images = clipboardDiv.getElementsByTagName(\"img\");\n for (let i = 0; i < images.length; i++) {\n const image = images[i];\n const width = image.getAttribute(\"width\");\n const height = image.getAttribute(\"height\");\n image.removeAttribute(\"width\");\n image.removeAttribute(\"height\");\n image.style.width = width;\n image.style.height = height;\n }\n}\nexport function solveHtml() {\n const element = document.getElementById(\"output-wrapper\");\n let html = element.innerHTML;\n let res = \"\";\n res = juice.inlineContent(html, {\n inlinePseudoElements: true,\n preserveImportant: true,\n });\n return res;\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{staticClass:\"reset__dialog\",attrs:{\"title\":\"提示\",\"visible\":_vm.showResetConfirm},on:{\"close\":function($event){return _vm.$emit('close')}}},[_c('div',{staticClass:\"text\"},[_vm._v(\"此操作将丢失本地缓存的文本和自定义样式,是否继续?\")]),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{attrs:{\"type\":_vm.btnType,\"plain\":\"\"},on:{\"click\":function($event){return _vm.$emit('close')}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":_vm.btnType,\"plain\":\"\"},on:{\"click\":function($event){return _vm.$emit('confirm')}}},[_vm._v(\"确 定\")])],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./resetDialog.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./resetDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./resetDialog.vue?vue&type=template&id=68392714&scoped=true&\"\nimport script from \"./resetDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./resetDialog.vue?vue&type=script&lang=js&\"\nimport style0 from \"./resetDialog.vue?vue&type=style&index=0&id=68392714&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"68392714\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./header.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./header.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./header.vue?vue&type=template&id=1d12595a&scoped=true&\"\nimport script from \"./header.vue?vue&type=script&lang=js&\"\nexport * from \"./header.vue?vue&type=script&lang=js&\"\nimport style0 from \"./header.vue?vue&type=style&index=0&id=1d12595a&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"1d12595a\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{staticClass:\"about__dialog\",attrs:{\"title\":\"关于\",\"visible\":_vm.value,\"width\":\"30%\",\"center\":\"\"},on:{\"close\":function($event){return _vm.$emit('input', false)}}},[_c('div',{staticStyle:{\"text-align\":\"center\"}},[_c('h3',[_vm._v(\"一款高度简洁的微信 Markdown 编辑器\")])]),_c('div',{staticStyle:{\"text-align\":\"center\",\"margin-top\":\"10px\"}},[_c('p',[_vm._v(\"扫码关注我的公众号,原创技术文章第一时间推送!\")]),_c('img',{staticStyle:{\"width\":\"40%\",\"display\":\"block\",\"margin\":\"20px auto 10px\"},attrs:{\"src\":\"https://gitee.com/yanglbme/resource/raw/master/doocs-md/qrcode.png\"}})]),_c('span',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{attrs:{\"type\":\"primary\",\"plain\":\"\"},on:{\"click\":function($event){return _vm.onRedirect('https://github.com/doocs/md')}}},[_vm._v(\"GitHub 仓库\")]),_c('el-button',{attrs:{\"type\":\"primary\",\"plain\":\"\"},on:{\"click\":function($event){return _vm.onRedirect('https://gitee.com/doocs/md')}}},[_vm._v(\"Gitee 仓库\")])],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./aboutDialog.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./aboutDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./aboutDialog.vue?vue&type=template&id=70c50907&scoped=true&\"\nimport script from \"./aboutDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./aboutDialog.vue?vue&type=script&lang=js&\"\nimport style0 from \"./aboutDialog.vue?vue&type=style&index=0&id=70c50907&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"70c50907\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{staticClass:\"insert__dialog\",attrs:{\"title\":\"插入表格\",\"visible\":_vm.value,\"border\":\"\"},on:{\"close\":function($event){return _vm.$emit('input', false)}}},[_c('el-row',{staticClass:\"tb-options\",attrs:{\"type\":\"flex\",\"align\":\"middle\",\"gutter\":10}},[_c('el-col',[_vm._v(\" 行数: \"),_c('el-input-number',{attrs:{\"controls-position\":\"right\",\"min\":1,\"max\":100,\"size\":\"small\"},model:{value:(_vm.rowNum),callback:function ($$v) {_vm.rowNum=$$v},expression:\"rowNum\"}})],1),_c('el-col',[_vm._v(\" 列数: \"),_c('el-input-number',{attrs:{\"controls-position\":\"right\",\"min\":1,\"max\":100,\"size\":\"small\"},model:{value:(_vm.colNum),callback:function ($$v) {_vm.colNum=$$v},expression:\"colNum\"}})],1)],1),_c('table',{staticClass:\"input-table\",staticStyle:{\"border-collapse\":\"collapse\"}},_vm._l((_vm.rowNum + 1),function(row){return _c('tr',{key:row,class:{ 'head-style': row === 1 }},_vm._l((_vm.colNum),function(col){return _c('td',{key:col},[_c('el-input',{attrs:{\"align\":\"center\",\"placeholder\":row === 1 ? '表头' : ''},model:{value:(_vm.tableData[(\"k_\" + (row - 1) + \"_\" + (col - 1))]),callback:function ($$v) {_vm.$set(_vm.tableData, (\"k_\" + (row - 1) + \"_\" + (col - 1)), $$v)},expression:\"tableData[`k_${row - 1}_${col - 1}`]\"}})],1)}),0)}),0),_c('div',{staticClass:\"dialog-footer\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('el-button',{attrs:{\"type\":_vm.btnType,\"plain\":\"\"},on:{\"click\":function($event){return _vm.$emit('input', false)}}},[_vm._v(\"取 消\")]),_c('el-button',{attrs:{\"type\":_vm.btnType,\"plain\":\"\"},on:{\"click\":_vm.insertTable}},[_vm._v(\"确 定\")])],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./insertForm.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./insertForm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./insertForm.vue?vue&type=template&id=4dd4e7e2&scoped=true&\"\nimport script from \"./insertForm.vue?vue&type=script&lang=js&\"\nexport * from \"./insertForm.vue?vue&type=script&lang=js&\"\nimport style0 from \"./insertForm.vue?vue&type=style&index=0&id=4dd4e7e2&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4dd4e7e2\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('ul',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.value),expression:\"value\"}],staticClass:\"menu\",style:((\"left: \" + _vm.left + \"px;top: \" + _vm.top + \"px;\")),attrs:{\"id\":\"menu\"}},_vm._l((_vm.menu),function(menuItem,index){return _c('div',{key:index,staticClass:\"menu__group\"},_vm._l((menuItem),function(item){return _c('li',{key:item.key,staticClass:\"menu_item\",on:{\"mousedown\":function($event){return _vm.onMouseDown(item.key)}}},[_c('span',[_vm._v(_vm._s(item.text))])])}),0)}),0)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./rightClickMenu.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./rightClickMenu.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./rightClickMenu.vue?vue&type=template&id=a704a2f8&scoped=true&\"\nimport script from \"./rightClickMenu.vue?vue&type=script&lang=js&\"\nexport * from \"./rightClickMenu.vue?vue&type=script&lang=js&\"\nimport style0 from \"./rightClickMenu.vue?vue&type=style&index=0&id=a704a2f8&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"a704a2f8\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-dialog',{staticClass:\"upload__dialog\",attrs:{\"title\":\"本地上传\",\"visible\":_vm.value},on:{\"close\":function($event){return _vm.$emit('close')}}},[_c('el-tabs',{attrs:{\"type\":\"activeName\"},model:{value:(_vm.activeName),callback:function ($$v) {_vm.activeName=$$v},expression:\"activeName\"}},[_c('el-tab-pane',{staticClass:\"upload-panel\",attrs:{\"label\":\"选择上传\",\"name\":\"upload\"}},[_c('el-select',{attrs:{\"placeholder\":\"请选择\",\"size\":\"small\"},on:{\"change\":_vm.changeImgHost},model:{value:(_vm.imgHost),callback:function ($$v) {_vm.imgHost=$$v},expression:\"imgHost\"}},_vm._l((_vm.options),function(item){return _c('el-option',{key:item.value,attrs:{\"label\":item.label,\"value\":item.value}})}),1),_c('el-upload',{attrs:{\"drag\":\"\",\"action\":\"\",\"headers\":{ 'Content-Type': 'multipart/form-data' },\"show-file-list\":false,\"multiple\":true,\"accept\":\".jpg, .jpeg, .png, .gif\",\"name\":\"file\",\"before-upload\":_vm.beforeImageUpload,\"http-request\":_vm.uploadImage}},[_c('i',{staticClass:\"el-icon-upload\"}),_c('div',{staticClass:\"el-upload__text\"},[_vm._v(\" 将图片拖到此处,或 \"),_c('em',[_vm._v(\"点击上传\")])])])],1),_c('el-tab-pane',{staticClass:\"github-panel\",attrs:{\"label\":\"Gitee 图床\",\"name\":\"gitee\"}},[_c('el-form',{staticClass:\"setting-form\",attrs:{\"model\":_vm.formGitee,\"label-position\":\"right\",\"label-width\":\"140px\"}},[_c('el-form-item',{attrs:{\"label\":\"Gitee 仓库\",\"required\":true}},[_c('el-input',{attrs:{\"placeholder\":\"如:gitee.com/yanglbme/resource\"},model:{value:(_vm.formGitee.repo),callback:function ($$v) {_vm.$set(_vm.formGitee, \"repo\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formGitee.repo\"}})],1),_c('el-form-item',{attrs:{\"label\":\"分支\"}},[_c('el-input',{attrs:{\"placeholder\":\"如:release,可不填,默认 master\"},model:{value:(_vm.formGitee.branch),callback:function ($$v) {_vm.$set(_vm.formGitee, \"branch\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formGitee.branch\"}})],1),_c('el-form-item',{attrs:{\"label\":\"私人令牌\",\"required\":true}},[_c('el-input',{attrs:{\"show-password\":\"\",\"placeholder\":\"如:cc1d0c1426d0fd0902bd2d7184b14da61b8abc46\"},model:{value:(_vm.formGitee.accessToken),callback:function ($$v) {_vm.$set(_vm.formGitee, \"accessToken\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formGitee.accessToken\"}}),_c('el-link',{attrs:{\"type\":\"primary\",\"href\":\"https://gitee.com/profile/personal_access_tokens\",\"target\":\"_blank\"}},[_vm._v(\"请在 Gitee「设置->安全设置->私人令牌」中生成\")])],1),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.saveGiteeConfiguration}},[_vm._v(\"保存配置\")])],1)],1)],1),_c('el-tab-pane',{staticClass:\"github-panel\",attrs:{\"label\":\"GitHub 图床\",\"name\":\"github\"}},[_c('el-form',{staticClass:\"setting-form\",attrs:{\"model\":_vm.formGitHub,\"label-position\":\"right\",\"label-width\":\"140px\"}},[_c('el-form-item',{attrs:{\"label\":\"GitHub 仓库\",\"required\":true}},[_c('el-input',{attrs:{\"placeholder\":\"如:github.com/yanglbme/resource\"},model:{value:(_vm.formGitHub.repo),callback:function ($$v) {_vm.$set(_vm.formGitHub, \"repo\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formGitHub.repo\"}})],1),_c('el-form-item',{attrs:{\"label\":\"分支\"}},[_c('el-input',{attrs:{\"placeholder\":\"如:release,可不填,默认 master\"},model:{value:(_vm.formGitHub.branch),callback:function ($$v) {_vm.$set(_vm.formGitHub, \"branch\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formGitHub.branch\"}})],1),_c('el-form-item',{attrs:{\"label\":\"Token\",\"required\":true}},[_c('el-input',{attrs:{\"show-password\":\"\",\"placeholder\":\"如:cc1d0c1426d0fd0902bd2d7184b14da61b8abc46\"},model:{value:(_vm.formGitHub.accessToken),callback:function ($$v) {_vm.$set(_vm.formGitHub, \"accessToken\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formGitHub.accessToken\"}}),_c('el-link',{attrs:{\"type\":\"primary\",\"href\":\"https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token\",\"target\":\"_blank\"}},[_vm._v(\"如何获取 GitHub Token?\")])],1),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.saveGitHubConfiguration}},[_vm._v(\"保存配置\")])],1)],1)],1),_c('el-tab-pane',{staticClass:\"github-panel\",attrs:{\"label\":\"阿里云 OSS\",\"name\":\"aliOSS\"}},[_c('el-form',{staticClass:\"setting-form\",attrs:{\"model\":_vm.formAliOSS,\"label-position\":\"right\",\"label-width\":\"140px\"}},[_c('el-form-item',{attrs:{\"label\":\"AccessKey ID\",\"required\":true}},[_c('el-input',{attrs:{\"placeholder\":\"如:LTAI4GdoocsmdoxUf13ylbaNHk\"},model:{value:(_vm.formAliOSS.accessKeyId),callback:function ($$v) {_vm.$set(_vm.formAliOSS, \"accessKeyId\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formAliOSS.accessKeyId\"}})],1),_c('el-form-item',{attrs:{\"label\":\"AccessKey Secret\",\"required\":true}},[_c('el-input',{attrs:{\"show-password\":\"\",\"placeholder\":\"如:cc1d0c142doocs0902bd2d7md4b14da6ylbabc46\"},model:{value:(_vm.formAliOSS.accessKeySecret),callback:function ($$v) {_vm.$set(_vm.formAliOSS, \"accessKeySecret\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formAliOSS.accessKeySecret\"}})],1),_c('el-form-item',{attrs:{\"label\":\"Bucket\",\"required\":true}},[_c('el-input',{attrs:{\"placeholder\":\"如:doocs\"},model:{value:(_vm.formAliOSS.bucket),callback:function ($$v) {_vm.$set(_vm.formAliOSS, \"bucket\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formAliOSS.bucket\"}})],1),_c('el-form-item',{attrs:{\"label\":\"Bucket 所在区域\",\"required\":true}},[_c('el-input',{attrs:{\"placeholder\":\"如:oss-cn-shenzhen\"},model:{value:(_vm.formAliOSS.region),callback:function ($$v) {_vm.$set(_vm.formAliOSS, \"region\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formAliOSS.region\"}})],1),_c('el-form-item',{attrs:{\"label\":\"自定义 CDN 域名\",\"required\":false}},[_c('el-input',{attrs:{\"placeholder\":\"如:https://imagecdn.alidaodao.com,可不填\"},model:{value:(_vm.formAliOSS.cdnHost),callback:function ($$v) {_vm.$set(_vm.formAliOSS, \"cdnHost\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formAliOSS.cdnHost\"}})],1),_c('el-form-item',{attrs:{\"label\":\"存储路径\"}},[_c('el-input',{attrs:{\"placeholder\":\"如:img,可不填,默认为根目录\"},model:{value:(_vm.formAliOSS.path),callback:function ($$v) {_vm.$set(_vm.formAliOSS, \"path\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formAliOSS.path\"}}),_c('el-link',{attrs:{\"type\":\"primary\",\"href\":\"https://help.aliyun.com/document_detail/31883.html\",\"target\":\"_blank\"}},[_vm._v(\"如何使用阿里云 OSS?\")])],1),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.saveAliOSSConfiguration}},[_vm._v(\"保存配置\")])],1)],1)],1),_c('el-tab-pane',{staticClass:\"github-panel\",attrs:{\"label\":\"腾讯云 COS\",\"name\":\"txCOS\"}},[_c('el-form',{staticClass:\"setting-form\",attrs:{\"model\":_vm.formTxCOS,\"label-position\":\"right\",\"label-width\":\"140px\"}},[_c('el-form-item',{attrs:{\"label\":\"SecretId\",\"required\":true}},[_c('el-input',{attrs:{\"placeholder\":\"如:AKIDnQp1w3DOOCSs8F5MDp9tdoocsmdUPonW3\"},model:{value:(_vm.formTxCOS.secretId),callback:function ($$v) {_vm.$set(_vm.formTxCOS, \"secretId\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formTxCOS.secretId\"}})],1),_c('el-form-item',{attrs:{\"label\":\"SecretKey\",\"required\":true}},[_c('el-input',{attrs:{\"show-password\":\"\",\"placeholder\":\"如:ukLmdtEJ9271f3DOocsMDsCXdS3YlbW0\"},model:{value:(_vm.formTxCOS.secretKey),callback:function ($$v) {_vm.$set(_vm.formTxCOS, \"secretKey\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formTxCOS.secretKey\"}})],1),_c('el-form-item',{attrs:{\"label\":\"Bucket\",\"required\":true}},[_c('el-input',{attrs:{\"placeholder\":\"如:doocs-3212520134\"},model:{value:(_vm.formTxCOS.bucket),callback:function ($$v) {_vm.$set(_vm.formTxCOS, \"bucket\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formTxCOS.bucket\"}})],1),_c('el-form-item',{attrs:{\"label\":\"Bucket 所在区域\",\"required\":true}},[_c('el-input',{attrs:{\"placeholder\":\"如:ap-guangzhou\"},model:{value:(_vm.formTxCOS.region),callback:function ($$v) {_vm.$set(_vm.formTxCOS, \"region\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formTxCOS.region\"}})],1),_c('el-form-item',{attrs:{\"label\":\"自定义 CDN 域名\",\"required\":false}},[_c('el-input',{attrs:{\"placeholder\":\"如:https://imagecdn.alidaodao.com,可不填\"},model:{value:(_vm.formTxCOS.cdnHost),callback:function ($$v) {_vm.$set(_vm.formTxCOS, \"cdnHost\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formTxCOS.cdnHost\"}})],1),_c('el-form-item',{attrs:{\"label\":\"存储路径\"}},[_c('el-input',{attrs:{\"placeholder\":\"如:img,可不填,默认根目录\"},model:{value:(_vm.formTxCOS.path),callback:function ($$v) {_vm.$set(_vm.formTxCOS, \"path\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formTxCOS.path\"}}),_c('el-link',{attrs:{\"type\":\"primary\",\"href\":\"https://cloud.tencent.com/document/product/436/38484\",\"target\":\"_blank\"}},[_vm._v(\"如何使用腾讯云 COS?\")])],1),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.saveTxCOSConfiguration}},[_vm._v(\"保存配置\")])],1)],1)],1),_c('el-tab-pane',{staticClass:\"github-panel\",attrs:{\"label\":\"七牛云 Kodo\",\"name\":\"qiniu\"}},[_c('el-form',{staticClass:\"setting-form\",attrs:{\"model\":_vm.formQiniu,\"label-position\":\"right\",\"label-width\":\"140px\"}},[_c('el-form-item',{attrs:{\"label\":\"AccessKey\",\"required\":true}},[_c('el-input',{attrs:{\"placeholder\":\"如:6DD3VaLJ_SQgOdoocsyTV_YWaDmdnL2n8EGx7kG\"},model:{value:(_vm.formQiniu.accessKey),callback:function ($$v) {_vm.$set(_vm.formQiniu, \"accessKey\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formQiniu.accessKey\"}})],1),_c('el-form-item',{attrs:{\"label\":\"SecretKey\",\"required\":true}},[_c('el-input',{attrs:{\"show-password\":\"\",\"placeholder\":\"如:qgZa5qrvDOOcsmdKStD1oCjZ9nB7MDvJUs_34SIm\"},model:{value:(_vm.formQiniu.secretKey),callback:function ($$v) {_vm.$set(_vm.formQiniu, \"secretKey\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formQiniu.secretKey\"}})],1),_c('el-form-item',{attrs:{\"label\":\"Bucket\",\"required\":true}},[_c('el-input',{attrs:{\"placeholder\":\"如:md\"},model:{value:(_vm.formQiniu.bucket),callback:function ($$v) {_vm.$set(_vm.formQiniu, \"bucket\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formQiniu.bucket\"}})],1),_c('el-form-item',{attrs:{\"label\":\"Bucket 对应域名\",\"required\":true}},[_c('el-input',{attrs:{\"placeholder\":\"如:https://images.123ylb.cn\"},model:{value:(_vm.formQiniu.domain),callback:function ($$v) {_vm.$set(_vm.formQiniu, \"domain\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formQiniu.domain\"}})],1),_c('el-form-item',{attrs:{\"label\":\"存储区域\",\"required\":true}},[_c('el-input',{attrs:{\"placeholder\":\"如:z2\"},model:{value:(_vm.formQiniu.region),callback:function ($$v) {_vm.$set(_vm.formQiniu, \"region\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formQiniu.region\"}})],1),_c('el-form-item',{attrs:{\"label\":\"存储路径\",\"required\":false}},[_c('el-input',{attrs:{\"placeholder\":\"如:img,可不填,默认为根目录\"},model:{value:(_vm.formQiniu.path),callback:function ($$v) {_vm.$set(_vm.formQiniu, \"path\", (typeof $$v === 'string'? $$v.trim(): $$v))},expression:\"formQiniu.path\"}}),_c('el-link',{attrs:{\"type\":\"primary\",\"href\":\"https://developer.qiniu.com/kodo\",\"target\":\"_blank\"}},[_vm._v(\"如何使用七牛云 Kodo?\")])],1),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.saveQiniuConfiguration}},[_vm._v(\"保存配置\")])],1)],1)],1),_c('el-tab-pane',{staticClass:\"github-panel formCustom\",attrs:{\"label\":\"自定义代码\",\"name\":\"formCustom\"}},[_c('el-form',{staticClass:\"setting-form\",attrs:{\"model\":_vm.formCustom,\"label-position\":\"right\"}},[_c('el-form-item',{attrs:{\"label\":\"\",\"required\":true}},[_c('el-input',{ref:\"formCustomElInput\",staticClass:\"formCustomElInput\",attrs:{\"type\":\"textarea\",\"resize\":\"none\",\"placeholder\":\"Your custom code here.\"},model:{value:(_vm.formCustom.code),callback:function ($$v) {_vm.$set(_vm.formCustom, \"code\", $$v)},expression:\"formCustom.code\"}}),_c('el-link',{attrs:{\"type\":\"primary\",\"href\":\"https://github.com/doocs/md#自定义上传逻辑\",\"target\":\"_blank\"}},[_vm._v(\"参数详情?\")])],1),_c('el-form-item',[_c('el-button',{attrs:{\"type\":\"primary\"},on:{\"click\":_vm.formCustomSave}},[_vm._v(\"保存配置\")])],1)],1)],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./uploadImgDialog.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./uploadImgDialog.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./uploadImgDialog.vue?vue&type=template&id=6b7f927f&scoped=true&\"\nimport script from \"./uploadImgDialog.vue?vue&type=script&lang=js&\"\nexport * from \"./uploadImgDialog.vue?vue&type=script&lang=js&\"\nimport style0 from \"./uploadImgDialog.vue?vue&type=style&index=0&id=6b7f927f&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"6b7f927f\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n\n\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CodemirrorEditor.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CodemirrorEditor.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./CodemirrorEditor.vue?vue&type=template&id=7acf9643&scoped=true&\"\nimport script from \"./CodemirrorEditor.vue?vue&type=script&lang=js&\"\nexport * from \"./CodemirrorEditor.vue?vue&type=script&lang=js&\"\nimport style0 from \"./CodemirrorEditor.vue?vue&type=style&index=0&id=7acf9643&lang=less&scoped=true&\"\nimport style1 from \"./CodemirrorEditor.vue?vue&type=style&index=1&id=7acf9643&lang=less&scoped=true&\"\nimport style2 from \"./CodemirrorEditor.vue?vue&type=style&index=2&id=7acf9643&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7acf9643\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=8e90ad4c&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=8e90ad4c&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"8e90ad4c\",\n null\n \n)\n\nexport default component.exports","import Vue from 'vue'\nimport VueRouter from 'vue-router'\nimport index from '@/pages/index/index'\n\nVue.use(VueRouter)\n\nconst routes = [\n {\n path: `/`,\n name: `index`,\n component: index,\n }\n]\n\nconst router = new VueRouter({\n mode: `history`,\n base: process.env.BASE_URL,\n routes,\n})\n\nexport default router\n","import Vue from \"vue\";\nimport App from \"./App\";\nimport store from \"./store\";\nimport ElementUI from \"element-ui\";\nimport \"element-ui/lib/theme-chalk/index.css\";\nimport \"./plugins/element\";\nimport \"codemirror/lib/codemirror.css\";\nimport \"codemirror/theme/xq-light.css\";\nimport \"codemirror/mode/css/css\";\nimport \"codemirror/mode/markdown/markdown\";\nimport \"codemirror/addon/edit/closebrackets\";\nimport \"codemirror/addon/edit/matchbrackets\";\nimport \"codemirror/addon/selection/active-line\";\nimport \"codemirror/addon/hint/show-hint.js\";\nimport \"codemirror/addon/hint/css-hint.js\";\nimport router from './router';\n\nVue.use(ElementUI);\n\nVue.config.productionTip = false;\n\nApp.mpType = \"app\";\n\nconst app = new Vue({\n router,\n store,\n ...App,\n});\napp.$mount(\"#app\");\n","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./insertForm.vue?vue&type=style&index=0&id=4dd4e7e2&lang=less&scoped=true&\"","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CodemirrorEditor.vue?vue&type=style&index=1&id=7acf9643&lang=less&scoped=true&\"","export * from \"-!../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=style&index=0&lang=less&\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./rightClickMenu.vue?vue&type=style&index=0&id=a704a2f8&lang=less&scoped=true&\"","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CodemirrorEditor.vue?vue&type=style&index=0&id=7acf9643&lang=less&scoped=true&\"","export * from \"-!../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../node_modules/cache-loader/dist/cjs.js??ref--1-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=style&index=1&lang=less&\"","export * from \"-!../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CodemirrorEditor.vue?vue&type=style&index=2&id=7acf9643&lang=less&scoped=true&\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./uploadImgDialog.vue?vue&type=style&index=0&id=6b7f927f&lang=less&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _vm._m(0)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"loading\",attrs:{\"id\":\"loading\"}},[_c('div',{staticClass:\"loading-wrapper\"},[_c('div',{staticClass:\"loading-anim\"}),_c('div',{staticClass:\"loading-text\"},[_vm._v(\"致力于让 Markdown 编辑更简单\")])])])}]\n\nexport { render, staticRenderFns }","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./header.vue?vue&type=style&index=0&id=1d12595a&lang=less&scoped=true&\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--11-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--11-oneOf-1-2!../../../node_modules/less-loader/dist/cjs.js??ref--11-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./aboutDialog.vue?vue&type=style&index=0&id=70c50907&lang=less&scoped=true&\"","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Loading.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Loading.vue?vue&type=script&lang=js&\"","const githubConfig = {\n username: \"filess\",\n repoList: Array.from(\n [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19],\n (e) => `img${e}`\n ),\n branch: \"main\",\n accessTokenList: [\n \"7715d7ca67b5d3837cfdoocsmde8c38421815aa423510af\",\n \"c411415bf95dbe39625doocsmd5047ba9b7a2a6c9642abe\",\n \"2821cd8819fa345c053doocsmdca86ac653f8bc20db1f1b\",\n \"445f0dae46ef1f2a4d6doocsmdc797301e94797b4750a4c\",\n \"cc1d0c1426d0fd0902bdoocsmdd2d7184b14da61b86ec46\",\n \"b67e9d15cb6f910492fdoocsmdac6b44d379c953bb19eff\",\n \"618c4dc2244ccbbc088doocsmd125d17fd31b7d06a50cf3\",\n \"a4b581732e1c1507458doocsmdc5b223b27dae5e2e16a55\",\n \"77904db41aee57ad79bdoocsmd760f848201dac9c96fd5e\",\n \"02f251cb14ac62ab100doocsmdddbfc8527d773f1f04ce1\",\n \"eb321079a95ba7028d9doocsmde2e84c502dac70de7cf08\",\n \"22f74fcfb071a961fa2doocsmde28dabc746f0503a15e5d\",\n \"85124c2bfe7abba0938doocsmd0af7f67918b99d085a5fd\",\n \"0a561b4d4bbecb2de7edoocsmdd9ba3833d11dbc5e430f5\",\n \"e8a01491188d8d5a097doocsmd03ede0aad1fe9e3af24e9\",\n \"36e1f420d7e5bdebd67doocsmd65463562f5f25b20b8377\",\n ],\n};\n\nconst giteeConfig = {\n username: \"filesss\",\n repoList: Array.from(\n [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19],\n (e) => `img${e}`\n ),\n branch: \"main\",\n accessTokenList: [\n \"ed5fc9866bd6c2fdoocsmddd433f806fd2f399c\",\n \"5448ffebbbf1151doocsmdc4e337cf814fc8a62\",\n \"25b05efd2557ca2doocsmd75b5c0835e3395911\",\n \"11628c7a5aef015doocsmd2eeff9fb9566f0458\",\n \"cb2f5145ed938dedoocsmdbd063b4ed244eecf8\",\n \"d8c0b57500672c1doocsmd55f48b866b5ebcd98\",\n \"78c56eadb88e453doocsmd43ddd95753351771a\",\n \"03e1a688003948fdoocsmda16fcf41e6f03f1f0\",\n \"c49121cf4d191fbdoocsmdd6a7877ed537e474a\",\n \"adfeb2fadcdc4aadoocsmdfe1ee869ac9c968ff\",\n \"116c94549ca4a0ddoocsmd192653af5c0694616\",\n \"ecf30ed7f2eb184doocsmd51ea4ec8300371d9e\",\n \"5837cf2bd5afd93doocsmd73904bed31934949e\",\n \"b5b7e1c7d57e01fdoocsmd5266f552574297d78\",\n \"684d55564ffbd0bdoocsmd7d747e5cc23aed6d6\",\n \"3fc04a9d272ab71doocsmd010c56cb57d88d2ba\",\n ],\n};\n\nexport { githubConfig, giteeConfig };\n","import axios from \"axios\";\n\n// 创建axios实例\nconst service = axios.create({\n baseURL: \"\",\n timeout: 10 * 1000, // 请求超时时间\n});\n\nservice.interceptors.request.use(\n (config) => {\n if (/^(post)|(put)|(delete)$/i.test(config.method)) {\n if (config.data && config.data.upload) {\n config.headers[\"Content-Type\"] = \"multipart/form-data\";\n }\n }\n return config;\n },\n (error) => {\n Promise.reject(error);\n }\n);\n\nservice.interceptors.response.use(\n (res) => {\n return res.data ? res.data : Promise.reject(res);\n },\n (error) => Promise.reject(error)\n);\n\nexport default service;\n"],"sourceRoot":""} \ No newline at end of file diff --git a/js/chunk-vendors.37bae3e5.js b/js/chunk-vendors.4ec50ad6.js similarity index 51% rename from js/chunk-vendors.37bae3e5.js rename to js/chunk-vendors.4ec50ad6.js index d12c071..17cceaf 100644 --- a/js/chunk-vendors.37bae3e5.js +++ b/js/chunk-vendors.4ec50ad6.js @@ -21,64 +21,28 @@ var n=Object.freeze({});function r(e){return void 0===e||null===e}function i(e){ * (c) 2021 Evan You * @license MIT */ -function r(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:r});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[r].concat(e.init):r,n.call(this,e)}}function r(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}n.d(t,"b",(function(){return P})),n.d(t,"c",(function(){return I}));var i="undefined"!==typeof window?window:"undefined"!==typeof e?e:{},o=i.__VUE_DEVTOOLS_GLOBAL_HOOK__;function s(e){o&&(e._devtoolHook=o,o.emit("vuex:init",e),o.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){o.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){o.emit("vuex:action",e,t)}),{prepend:!0}))}function a(e,t){return e.filter(t)[0]}function u(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var n=a(t,(function(t){return t.original===e}));if(n)return n.copy;var r=Array.isArray(e)?[]:{};return t.push({original:e,copy:r}),Object.keys(e).forEach((function(n){r[n]=u(e[n],t)})),r}function l(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function c(e){return null!==e&&"object"===typeof e}function p(e){return e&&"function"===typeof e.then}function f(e,t){return function(){return e(t)}}var h=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},d={namespaced:{configurable:!0}};d.namespaced.get=function(){return!!this._rawModule.namespaced},h.prototype.addChild=function(e,t){this._children[e]=t},h.prototype.removeChild=function(e){delete this._children[e]},h.prototype.getChild=function(e){return this._children[e]},h.prototype.hasChild=function(e){return e in this._children},h.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},h.prototype.forEachChild=function(e){l(this._children,e)},h.prototype.forEachGetter=function(e){this._rawModule.getters&&l(this._rawModule.getters,e)},h.prototype.forEachAction=function(e){this._rawModule.actions&&l(this._rawModule.actions,e)},h.prototype.forEachMutation=function(e){this._rawModule.mutations&&l(this._rawModule.mutations,e)},Object.defineProperties(h.prototype,d);var m=function(e){this.register([],e,!1)};function g(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void 0;g(e.concat(r),t.getChild(r),n.modules[r])}}m.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},m.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},m.prototype.update=function(e){g([],this.root,e)},m.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=new h(t,n);if(0===e.length)this.root=i;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],i)}t.modules&&l(t.modules,(function(t,i){r.register(e.concat(i),t,n)}))},m.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r&&r.runtime&&t.removeChild(n)},m.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var y;var v=function(e){var t=this;void 0===e&&(e={}),!y&&"undefined"!==typeof window&&window.Vue&&N(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var r=e.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new m(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new y,this._makeLocalGettersCache=Object.create(null);var i=this,o=this,a=o.dispatch,u=o.commit;this.dispatch=function(e,t){return a.call(i,e,t)},this.commit=function(e,t,n){return u.call(i,e,t,n)},this.strict=r;var l=this._modules.root.state;x(this,l,[],this._modules.root),C(this,l),n.forEach((function(e){return e(t)}));var c=void 0!==e.devtools?e.devtools:y.config.devtools;c&&s(this)},b={state:{configurable:!0}};function D(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function w(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;x(e,n,[],e._modules.root,!0),C(e,n,t)}function C(e,t,n){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,o={};l(i,(function(t,n){o[n]=f(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var s=y.config.silent;y.config.silent=!0,e._vm=new y({data:{$$state:t},computed:o}),y.config.silent=s,e.strict&&A(e),r&&(n&&e._withCommit((function(){r._data.$$state=null})),y.nextTick((function(){return r.$destroy()})))}function x(e,t,n,r,i){var o=!n.length,s=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[s],e._modulesNamespaceMap[s]=r),!o&&!i){var a=O(t,n.slice(0,-1)),u=n[n.length-1];e._withCommit((function(){y.set(a,u,r.state)}))}var l=r.context=E(e,s,n);r.forEachMutation((function(t,n){var r=s+n;k(e,r,t,l)})),r.forEachAction((function(t,n){var r=t.root?n:s+n,i=t.handler||t;T(e,r,i,l)})),r.forEachGetter((function(t,n){var r=s+n;S(e,r,t,l)})),r.forEachChild((function(r,o){x(e,t,n.concat(o),r,i)}))}function E(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var o=F(n,r,i),s=o.payload,a=o.options,u=o.type;return a&&a.root||(u=t+u),e.dispatch(u,s)},commit:r?e.commit:function(n,r,i){var o=F(n,r,i),s=o.payload,a=o.options,u=o.type;a&&a.root||(u=t+u),e.commit(u,s,a)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return _(e,t)}},state:{get:function(){return O(e.state,n)}}}),i}function _(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,r)===t){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function k(e,t,n,r){var i=e._mutations[t]||(e._mutations[t]=[]);i.push((function(t){n.call(e,r.state,t)}))}function T(e,t,n,r){var i=e._actions[t]||(e._actions[t]=[]);i.push((function(t){var i=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return p(i)||(i=Promise.resolve(i)),e._devtoolHook?i.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):i}))}function S(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)})}function A(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function O(e,t){return t.reduce((function(e,t){return e[t]}),e)}function F(e,t,n){return c(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function N(e){y&&e===y||(y=e,r(y))}b.state.get=function(){return this._vm._data.$$state},b.state.set=function(e){0},v.prototype.commit=function(e,t,n){var r=this,i=F(e,t,n),o=i.type,s=i.payload,a=(i.options,{type:o,payload:s}),u=this._mutations[o];u&&(this._withCommit((function(){u.forEach((function(e){e(s)}))})),this._subscribers.slice().forEach((function(e){return e(a,r.state)})))},v.prototype.dispatch=function(e,t){var n=this,r=F(e,t),i=r.type,o=r.payload,s={type:i,payload:o},a=this._actions[i];if(a){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(s,n.state)}))}catch(l){0}var u=a.length>1?Promise.all(a.map((function(e){return e(o)}))):a[0](o);return new Promise((function(e,t){u.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(s,n.state)}))}catch(l){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(s,n.state,e)}))}catch(l){0}t(e)}))}))}},v.prototype.subscribe=function(e,t){return D(e,this._subscribers,t)},v.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return D(n,this._actionSubscribers,t)},v.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},v.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},v.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),x(this,this.state,e,this._modules.get(e),n.preserveState),C(this,this.state)},v.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=O(t.state,e.slice(0,-1));y.delete(n,e[e.length-1])})),w(this)},v.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},v.prototype.hotUpdate=function(e){this._modules.update(e),w(this,!0)},v.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(v.prototype,b);var I=$((function(e,t){var n={};return B(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=H(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,t,n):t[i]},n[r].vuex=!0})),n})),P=$((function(e,t){var n={};return B(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.commit;if(e){var o=H(this.$store,"mapMutations",e);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),M=$((function(e,t){var n={};return B(t).forEach((function(t){var r=t.key,i=t.val;i=e+i,n[r]=function(){if(!e||H(this.$store,"mapGetters",e))return this.$store.getters[i]},n[r].vuex=!0})),n})),L=$((function(e,t){var n={};return B(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var o=H(this.$store,"mapActions",e);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),j=function(e){return{mapState:I.bind(null,e),mapGetters:M.bind(null,e),mapMutations:P.bind(null,e),mapActions:L.bind(null,e)}};function B(e){return R(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function R(e){return Array.isArray(e)||c(e)}function $(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function H(e,t,n){var r=e._modulesNamespaceMap[n];return r}function U(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var r=e.transformer;void 0===r&&(r=function(e){return e});var i=e.mutationTransformer;void 0===i&&(i=function(e){return e});var o=e.actionFilter;void 0===o&&(o=function(e,t){return!0});var s=e.actionTransformer;void 0===s&&(s=function(e){return e});var a=e.logMutations;void 0===a&&(a=!0);var l=e.logActions;void 0===l&&(l=!0);var c=e.logger;return void 0===c&&(c=console),function(e){var p=u(e.state);"undefined"!==typeof c&&(a&&e.subscribe((function(e,o){var s=u(o);if(n(e,p,s)){var a=V(),l=i(e),f="mutation "+e.type+a;q(c,f,t),c.log("%c prev state","color: #9E9E9E; font-weight: bold",r(p)),c.log("%c mutation","color: #03A9F4; font-weight: bold",l),c.log("%c next state","color: #4CAF50; font-weight: bold",r(s)),z(c)}p=s})),l&&e.subscribeAction((function(e,n){if(o(e,n)){var r=V(),i=s(e),a="action "+e.type+r;q(c,a,t),c.log("%c action","color: #03A9F4; font-weight: bold",i),z(c)}})))}}function q(e,t,n){var r=n?e.groupCollapsed:e.group;try{r.call(e,t)}catch(i){e.log(t)}}function z(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function V(){var e=new Date;return" @ "+G(e.getHours(),2)+":"+G(e.getMinutes(),2)+":"+G(e.getSeconds(),2)+"."+G(e.getMilliseconds(),3)}function W(e,t){return new Array(t+1).join(e)}function G(e,t){return W("0",t-e.toString().length)+e}var K={Store:v,install:N,version:"3.6.2",mapState:I,mapMutations:P,mapGetters:M,mapActions:L,createNamespacedHelpers:j,createLogger:U};t["a"]=K}).call(this,n("c8ba"))},"2f9a":function(e,t){e.exports=function(){}},"301c":function(e,t,n){n("e198")("asyncIterator")},"30b5":function(e,t,n){"use strict";var r=n("c532");function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var s=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),s.push(i(t)+"="+i(e))})))})),o=s.join("&")}if(o){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},"31c5":function(e,t,n){(function(e){e(n("56b3"))})((function(e){"use strict";var t="CodeMirror-activeline",n="CodeMirror-activeline-background",r="CodeMirror-activeline-gutter";function i(e){for(var i=0;ie.length?n:e})),l.value=e.join(p)}else l.value=e.join(n.slice(a,a+l.count));a+=l.count,l.added||(u+=l.count)}}var f=t[s-1];return s>1&&"string"==typeof f.value&&(f.added||f.removed)&&e.equals("",f.value)&&(t[s-2].value+=f.value,t.pop()),t}function i(e){return{newPos:e.newPos,components:e.components.slice(0)}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,n.prototype={diff:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.callback;"function"==typeof n&&(o=n,n={}),this.options=n;var s=this;function a(e){return o?(setTimeout((function(){o(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var u=(t=this.removeEmpty(this.tokenize(t))).length,l=e.length,c=1,p=u+l,f=[{newPos:-1,components:[]}],h=this.extractCommon(f[0],t,e,0);if(f[0].newPos+1>=u&&h+1>=l)return a([{value:this.join(t),count:t.length}]);function d(){for(var n=-1*c;n<=c;n+=2){var o=void 0,p=f[n-1],h=f[n+1],d=(h?h.newPos:0)-n;p&&(f[n-1]=void 0);var m=p&&p.newPos+1=u&&d+1>=l)return a(r(s,o.components,t,e,s.useLongestToken));f[n]=o}else f[n]=void 0}c++}if(o)!function e(){setTimeout((function(){if(c>p)return o();d()||e()}),0)}();else for(;c<=p;){var m=d();if(m)return m}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var i=t.length,o=n.length,s=e.newPos,a=s-r,u=0;s+1=74)&&(o=N.match(/Chrome\/(\d+)/))&&(s=o[1]);var j=s&&+s,B=!!Object.getOwnPropertySymbols&&!y((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&j&&j<41})),R=B&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,$=R?function(e){return"symbol"==typeof e}:function(e){var t=F("Symbol");return"function"==typeof t&&Object(e)instanceof t},H=function(e,t){try{Object.defineProperty(g,e,{value:t,configurable:!0,writable:!0})}catch(r){g[e]=t}return t},U="__core-js_shared__",q=g[U]||H(U,{}),z=i((function(e){(e.exports=function(e,t){return q[e]||(q[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.17.3",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"})})),V=function(e){return Object(T(e))},W={}.hasOwnProperty,G=Object.hasOwn||function(e,t){return W.call(V(e),t)},K=0,Y=Math.random(),X=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++K+Y).toString(36)},J=z("wks"),Q=g.Symbol,Z=R?Q:Q&&Q.withoutSetter||X,ee=function(e){return G(J,e)&&(B||"string"==typeof J[e])||(B&&G(Q,e)?J[e]=Q[e]:J[e]=Z("Symbol."+e)),J[e]},te=ee("toPrimitive"),ne=function(e,t){if(!A(e)||$(e))return e;var n,r=e[te];if(void 0!==r){if(void 0===t&&(t="default"),n=r.call(e,t),!A(n)||$(n))return n;throw TypeError("Can't convert object to primitive value")}return void 0===t&&(t="number"),function(e,t){var n,r;if("string"===t&&"function"==typeof(n=e.toString)&&!A(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!A(r=n.call(e)))return r;if("string"!==t&&"function"==typeof(n=e.toString)&&!A(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}(e,t)},re=function(e){var t=ne(e,"string");return $(t)?t:String(t)},ie=g.document,oe=A(ie)&&A(ie.createElement),se=!v&&!y((function(){return 7!=Object.defineProperty((e="div",oe?ie.createElement(e):{}),"a",{get:function(){return 7}}).a;var e})),ae=Object.getOwnPropertyDescriptor,ue={f:v?ae:function(e,t){if(e=S(e),t=re(t),se)try{return ae(e,t)}catch(e){}if(G(e,t))return C(!w.f.call(e,t),e[t])}},le=function(e){if(!A(e))throw TypeError(String(e)+" is not an object");return e},ce=Object.defineProperty,pe={f:v?ce:function(e,t,n){if(le(e),t=re(t),le(n),se)try{return ce(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},fe=v?function(e,t,n){return pe.f(e,t,C(1,n))}:function(e,t,n){return e[t]=n,e},he=Function.toString;"function"!=typeof q.inspectSource&&(q.inspectSource=function(e){return he.call(e)});var de,me,ge,ye,ve=q.inspectSource,be=g.WeakMap,De="function"==typeof be&&/native code/.test(ve(be)),we=z("keys"),Ce={},xe="Object already initialized",Ee=g.WeakMap;if(De||q.state){var _e=q.state||(q.state=new Ee),ke=_e.get,Te=_e.has,Se=_e.set;de=function(e,t){if(Te.call(_e,e))throw new TypeError(xe);return t.facade=e,Se.call(_e,e,t),t},me=function(e){return ke.call(_e,e)||{}},ge=function(e){return Te.call(_e,e)}}else{var Ae=we[ye="state"]||(we[ye]=X(ye));Ce[Ae]=!0,de=function(e,t){if(G(e,Ae))throw new TypeError(xe);return t.facade=e,fe(e,Ae,t),t},me=function(e){return G(e,Ae)?e[Ae]:{}},ge=function(e){return G(e,Ae)}}var Oe,Fe,Ne={set:de,get:me,has:ge,enforce:function(e){return ge(e)?me(e):de(e,{})},getterFor:function(e){return function(t){var n;if(!A(t)||(n=me(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},Ie=i((function(e){var t=Ne.get,n=Ne.enforce,r=String(String).split("String");(e.exports=function(e,t,i,o){var s,a=!!o&&!!o.unsafe,u=!!o&&!!o.enumerable,l=!!o&&!!o.noTargetGet;"function"==typeof i&&("string"!=typeof t||G(i,"name")||fe(i,"name",t),(s=n(i)).source||(s.source=r.join("string"==typeof t?t:""))),e!==g?(a?!l&&e[t]&&(u=!0):delete e[t],u?e[t]=i:fe(e,t,i)):u?e[t]=i:H(t,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||ve(this)}))})),Pe=Math.ceil,Me=Math.floor,Le=function(e){return isNaN(e=+e)?0:(e>0?Me:Pe)(e)},je=Math.min,Be=function(e){return e>0?je(Le(e),9007199254740991):0},Re=Math.max,$e=Math.min,He=function(e){return function(t,n,r){var i,o=S(t),s=Be(o.length),a=function(e,t){var n=Le(e);return n<0?Re(n+t,0):$e(n,t)}(r,s);if(e&&n!=n){for(;s>a;)if((i=o[a++])!=i)return!0}else for(;s>a;a++)if((e||a in o)&&o[a]===n)return e||a||0;return!e&&-1}},Ue={includes:He(!0),indexOf:He(!1)}.indexOf,qe=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype"),ze={f:Object.getOwnPropertyNames||function(e){return function(e,t){var n,r=S(e),i=0,o=[];for(n in r)!G(Ce,n)&&G(r,n)&&o.push(n);for(;t.length>i;)G(r,n=t[i++])&&(~Ue(o,n)||o.push(n));return o}(e,qe)}},Ve={f:Object.getOwnPropertySymbols},We=F("Reflect","ownKeys")||function(e){var t=ze.f(le(e)),n=Ve.f;return n?t.concat(n(e)):t},Ge=function(e,t){for(var n=We(t),r=pe.f,i=ue.f,o=0;o0;)e[r]=e[--r];r!==o++&&(e[r]=n)}return e},ut=function(e,t,n){for(var r=e.length,i=t.length,o=0,s=0,a=[];o3)){if(ft)return!0;if(dt)return dt<603;var e,t,n,r,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)mt.push({k:t+r,v:n})}for(mt.sort((function(e,t){return t.v-e.v})),r=0;rit(n)?1:-1}}(e))).length,r=0;r1&&void 0!==arguments[1]?arguments[1]:{},n=e.split(/\r\n|[\n\v\f\r\x85]/),r=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],i=[],o=0;function s(){var e={};for(i.push(e);o2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t&&(t=(0,_t.parsePatch)(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var r,i,o=e.split(/\r\n|[\n\v\f\r\x85]/),s=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],a=t.hunks,u=n.compareLine||function(e,t,n,r){return t===r},l=0,c=n.fuzzFactor||0,p=0,f=0;function h(e,t){for(var n=0;n0?r[0]:" ",s=r.length>0?r.substr(1):r;if(" "===i||"-"===i){if(!u(t+1,o[t],i,s)&&++l>c)return!1;t++}}return!0}for(var d=0;d0?_[0]:" ",T=_.length>0?_.substr(1):_,S=C.linedelimiters[E];if(" "===k)x++;else if("-"===k)o.splice(x,1),s.splice(x,1);else if("+"===k)o.splice(x,0,T),s.splice(x,0,S),x++;else if("\\"===k){var A=C.lines[E-1]?C.lines[E-1][0]:null;"+"===A?r=!0:"-"===A&&(i=!0)}}}if(r)for(;!o[o.length-1];)o.pop(),s.pop();else i&&(o.push(""),s.push("\n"));for(var O=0;Oe.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?u(f.lines.slice(-s.context)):[],c-=h.length,p-=h.length)}(o=h).push.apply(o,Lt(i.map((function(e){return(t.added?"+":"-")+e})))),t.added?m+=i.length:d+=i.length}else{if(c)if(i.length<=2*s.context&&e=a.length-2&&i.length<=s.context){var D=/\n$/.test(n),w=/\n$/.test(r),C=0==i.length&&h.length>b.oldLines;!D&&C&&n.length>0&&h.splice(b.oldLines,0,"\\ No newline at end of file"),(D||C)&&w||h.push("\\ No newline at end of file")}l.push(b),c=0,p=0,h=[]}d+=i.length,m+=i.length}},y=0;ye.length)return!1;for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n"):r.removed&&t.push(""),t.push(yn(r.value)),r.added?t.push(""):r.removed&&t.push("")}return t.join("")};function yn(e){var t=e;return(t=(t=(t=t.replace(/&/g,"&")).replace(//g,">")).replace(/"/g,""")}var vn=Object.defineProperty({convertChangesToXML:gn},"__esModule",{value:!0}),bn=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"Diff",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"diffChars",{enumerable:!0,get:function(){return u.diffChars}}),Object.defineProperty(t,"diffWords",{enumerable:!0,get:function(){return p.diffWords}}),Object.defineProperty(t,"diffWordsWithSpace",{enumerable:!0,get:function(){return p.diffWordsWithSpace}}),Object.defineProperty(t,"diffLines",{enumerable:!0,get:function(){return f.diffLines}}),Object.defineProperty(t,"diffTrimmedLines",{enumerable:!0,get:function(){return f.diffTrimmedLines}}),Object.defineProperty(t,"diffSentences",{enumerable:!0,get:function(){return h.diffSentences}}),Object.defineProperty(t,"diffCss",{enumerable:!0,get:function(){return d.diffCss}}),Object.defineProperty(t,"diffJson",{enumerable:!0,get:function(){return Ct.diffJson}}),Object.defineProperty(t,"canonicalize",{enumerable:!0,get:function(){return Ct.canonicalize}}),Object.defineProperty(t,"diffArrays",{enumerable:!0,get:function(){return xt.diffArrays}}),Object.defineProperty(t,"applyPatch",{enumerable:!0,get:function(){return Ft.applyPatch}}),Object.defineProperty(t,"applyPatches",{enumerable:!0,get:function(){return Ft.applyPatches}}),Object.defineProperty(t,"parsePatch",{enumerable:!0,get:function(){return _t.parsePatch}}),Object.defineProperty(t,"merge",{enumerable:!0,get:function(){return hn.merge}}),Object.defineProperty(t,"structuredPatch",{enumerable:!0,get:function(){return Ht.structuredPatch}}),Object.defineProperty(t,"createTwoFilesPatch",{enumerable:!0,get:function(){return Ht.createTwoFilesPatch}}),Object.defineProperty(t,"createPatch",{enumerable:!0,get:function(){return Ht.createPatch}}),Object.defineProperty(t,"convertChangesToDMP",{enumerable:!0,get:function(){return mn.convertChangesToDMP}}),Object.defineProperty(t,"convertChangesToXML",{enumerable:!0,get:function(){return vn.convertChangesToXML}});var n=function(e){return e&&e.__esModule?e:{default:e}}(a)}));function Dn(e){return{type:"concat",parts:e}}function wn(e){return{type:"indent",contents:e}}function Cn(e,t){return{type:"align",contents:t,n:e}}function xn(e,t={}){return{type:"group",id:t.id,contents:e,break:Boolean(t.shouldBreak),expandedStates:t.expandedStates}}const En={type:"break-parent"},_n={type:"line",hard:!0},kn={type:"line",hard:!0,literal:!0},Tn=Dn([_n,En]),Sn=Dn([kn,En]);var An={concat:Dn,join:function(e,t){const n=[];for(let r=0;r0){for(let e=0;e"string"==typeof e?e.replace((({onlyFirst:e=!1}={})=>{const t=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(t,e?void 0:"g")})(),""):e;const Fn=e=>!Number.isNaN(e)&&e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141);var Nn=Fn,In=Fn;Nn.default=In;const Pn=e=>{if("string"!=typeof e||0===e.length)return 0;if(0===(e=On(e)).length)return 0;e=e.replace(/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uD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E\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g," ");let t=0;for(let n=0;n=127&&r<=159||r>=768&&r<=879||(r>65535&&n++,t+=Nn(r)?2:1)}return t};var Mn=Pn,Ln=Pn;Mn.default=Ln;var jn=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},Bn=e=>e[e.length-1];function Rn(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var $n=Array.isArray||function(e){return"Array"==E(e)},Hn=function(e,t,n){if(rt(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}},Un=function(e,t,n,r,i,o,s,a){for(var u,l=i,c=0,p=!!s&&Hn(s,a,3);c0&&$n(u))l=Un(e,t,u,Be(u.length),l,o-1)-1;else{if(l>=9007199254740991)throw TypeError("Exceed the acceptable array length");e[l]=u}l++}c++}return l},qn=Un,zn=ee("species"),Vn=function(e,t){return new(function(e){var t;return $n(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!$n(t.prototype)?A(t)&&null===(t=t[zn])&&(t=void 0):t=void 0),void 0===t?Array:t}(e))(0===t?0:t)};nt({target:"Array",proto:!0},{flatMap:function(e){var t,n=V(this),r=Be(n.length);return rt(e),(t=Vn(n,0)).length=qn(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}});var Wn={},Gn=ee("iterator"),Kn=Array.prototype,Yn={};Yn[ee("toStringTag")]="z";var Xn="[object z]"===String(Yn),Jn=ee("toStringTag"),Qn="Arguments"==E(function(){return arguments}()),Zn=Xn?E:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),Jn))?n:Qn?E(t):"Object"==(r=E(t))&&"function"==typeof t.callee?"Arguments":r},er=ee("iterator"),tr=function(e){if(null!=e)return e[er]||e["@@iterator"]||Wn[Zn(e)]},nr=function(e,t,n){var r,i;le(e);try{if(void 0===(r=e.return)){if("throw"===t)throw n;return n}r=r.call(e)}catch(e){i=!0,r=e}if("throw"===t)throw n;if(i)throw r;return le(r),n},rr=function(e,t){this.stopped=e,this.result=t},ir=function(e,t,n){var r,i,o,s,a,u,l,c,p=n&&n.that,f=!(!n||!n.AS_ENTRIES),h=!(!n||!n.IS_ITERATOR),d=!(!n||!n.INTERRUPTED),m=Hn(t,p,1+f+d),g=function(e){return r&&nr(r,"normal",e),new rr(!0,e)},y=function(e){return f?(le(e),d?m(e[0],e[1],g):m(e[0],e[1])):d?m(e,g):m(e)};if(h)r=e;else{if("function"!=typeof(i=tr(e)))throw TypeError("Target is not iterable");if(void 0!==(c=i)&&(Wn.Array===c||Kn[Gn]===c)){for(o=0,s=Be(e.length);s>o;o++)if((a=y(e[o]))&&a instanceof rr)return a;return new rr(!1)}r=function(e,t){var n=arguments.length<2?tr(e):t;if("function"!=typeof n)throw TypeError(String(e)+" is not iterable");return le(n.call(e))}(e,i)}for(u=r.next;!(l=u.call(r)).done;){try{a=y(l.value)}catch(e){nr(r,"throw",e)}if("object"==typeof a&&a&&a instanceof rr)return a}return new rr(!1)};nt({target:"Object",stat:!0},{fromEntries:function(e){var t={};return ir(e,(function(e,n){!function(e,t,n){var r=re(t);r in e?pe.f(e,r,C(0,n)):e[r]=n}(t,e,n)}),{AS_ENTRIES:!0}),t}});var or=void 0!==or?or:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function sr(){throw new Error("setTimeout has not been defined")}function ar(){throw new Error("clearTimeout has not been defined")}var ur=sr,lr=ar;function cr(e){if(ur===setTimeout)return setTimeout(e,0);if((ur===sr||!ur)&&setTimeout)return ur=setTimeout,setTimeout(e,0);try{return ur(e,0)}catch(n){try{return ur.call(null,e,0)}catch(n){return ur.call(this,e,0)}}}"function"==typeof or.setTimeout&&(ur=setTimeout),"function"==typeof or.clearTimeout&&(lr=clearTimeout);var pr,fr=[],hr=!1,dr=-1;function mr(){hr&&pr&&(hr=!1,pr.length?fr=pr.concat(fr):dr=-1,fr.length&&gr())}function gr(){if(!hr){var e=cr(mr);hr=!0;for(var t=fr.length;t;){for(pr=fr,fr=[];++dr1)for(var n=1;nconsole.error("SEMVER",...e):()=>{},Fr={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16},Nr=i((function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n}=Fr,r=(t=e.exports={}).re=[],i=t.src=[],o=t.t={};let s=0;const a=(e,t,n)=>{const a=s++;Or(a,t),o[e]=a,i[a]=t,r[a]=new RegExp(t,n?"g":void 0)};a("NUMERICIDENTIFIER","0|[1-9]\\d*"),a("NUMERICIDENTIFIERLOOSE","[0-9]+"),a("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),a("MAINVERSION",`(${i[o.NUMERICIDENTIFIER]})\\.(${i[o.NUMERICIDENTIFIER]})\\.(${i[o.NUMERICIDENTIFIER]})`),a("MAINVERSIONLOOSE",`(${i[o.NUMERICIDENTIFIERLOOSE]})\\.(${i[o.NUMERICIDENTIFIERLOOSE]})\\.(${i[o.NUMERICIDENTIFIERLOOSE]})`),a("PRERELEASEIDENTIFIER",`(?:${i[o.NUMERICIDENTIFIER]}|${i[o.NONNUMERICIDENTIFIER]})`),a("PRERELEASEIDENTIFIERLOOSE",`(?:${i[o.NUMERICIDENTIFIERLOOSE]}|${i[o.NONNUMERICIDENTIFIER]})`),a("PRERELEASE",`(?:-(${i[o.PRERELEASEIDENTIFIER]}(?:\\.${i[o.PRERELEASEIDENTIFIER]})*))`),a("PRERELEASELOOSE",`(?:-?(${i[o.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${i[o.PRERELEASEIDENTIFIERLOOSE]})*))`),a("BUILDIDENTIFIER","[0-9A-Za-z-]+"),a("BUILD",`(?:\\+(${i[o.BUILDIDENTIFIER]}(?:\\.${i[o.BUILDIDENTIFIER]})*))`),a("FULLPLAIN",`v?${i[o.MAINVERSION]}${i[o.PRERELEASE]}?${i[o.BUILD]}?`),a("FULL",`^${i[o.FULLPLAIN]}$`),a("LOOSEPLAIN",`[v=\\s]*${i[o.MAINVERSIONLOOSE]}${i[o.PRERELEASELOOSE]}?${i[o.BUILD]}?`),a("LOOSE",`^${i[o.LOOSEPLAIN]}$`),a("GTLT","((?:<|>)?=?)"),a("XRANGEIDENTIFIERLOOSE",i[o.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*"),a("XRANGEIDENTIFIER",i[o.NUMERICIDENTIFIER]+"|x|X|\\*"),a("XRANGEPLAIN",`[v=\\s]*(${i[o.XRANGEIDENTIFIER]})(?:\\.(${i[o.XRANGEIDENTIFIER]})(?:\\.(${i[o.XRANGEIDENTIFIER]})(?:${i[o.PRERELEASE]})?${i[o.BUILD]}?)?)?`),a("XRANGEPLAINLOOSE",`[v=\\s]*(${i[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[o.XRANGEIDENTIFIERLOOSE]})(?:\\.(${i[o.XRANGEIDENTIFIERLOOSE]})(?:${i[o.PRERELEASELOOSE]})?${i[o.BUILD]}?)?)?`),a("XRANGE",`^${i[o.GTLT]}\\s*${i[o.XRANGEPLAIN]}$`),a("XRANGELOOSE",`^${i[o.GTLT]}\\s*${i[o.XRANGEPLAINLOOSE]}$`),a("COERCE",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?(?:$|[^\\d])`),a("COERCERTL",i[o.COERCE],!0),a("LONETILDE","(?:~>?)"),a("TILDETRIM",`(\\s*)${i[o.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",a("TILDE",`^${i[o.LONETILDE]}${i[o.XRANGEPLAIN]}$`),a("TILDELOOSE",`^${i[o.LONETILDE]}${i[o.XRANGEPLAINLOOSE]}$`),a("LONECARET","(?:\\^)"),a("CARETTRIM",`(\\s*)${i[o.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",a("CARET",`^${i[o.LONECARET]}${i[o.XRANGEPLAIN]}$`),a("CARETLOOSE",`^${i[o.LONECARET]}${i[o.XRANGEPLAINLOOSE]}$`),a("COMPARATORLOOSE",`^${i[o.GTLT]}\\s*(${i[o.LOOSEPLAIN]})$|^$`),a("COMPARATOR",`^${i[o.GTLT]}\\s*(${i[o.FULLPLAIN]})$|^$`),a("COMPARATORTRIM",`(\\s*)${i[o.GTLT]}\\s*(${i[o.LOOSEPLAIN]}|${i[o.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",a("HYPHENRANGE",`^\\s*(${i[o.XRANGEPLAIN]})\\s+-\\s+(${i[o.XRANGEPLAIN]})\\s*$`),a("HYPHENRANGELOOSE",`^\\s*(${i[o.XRANGEPLAINLOOSE]})\\s+-\\s+(${i[o.XRANGEPLAINLOOSE]})\\s*$`),a("STAR","(<|>)?=?\\s*\\*"),a("GTE0","^\\s*>=\\s*0.0.0\\s*$"),a("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}));const Ir=["includePrerelease","loose","rtl"];var Pr=e=>e?"object"!=typeof e?{loose:!0}:Ir.filter(t=>e[t]).reduce((e,t)=>(e[t]=!0,e),{}):{};const Mr=/^[0-9]+$/,Lr=(e,t)=>{const n=Mr.test(e),r=Mr.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:eLr(t,e)};const{MAX_LENGTH:Br,MAX_SAFE_INTEGER:Rr}=Fr,{re:$r,t:Hr}=Nr,{compareIdentifiers:Ur}=jr;class qr{constructor(e,t){if(t=Pr(t),e instanceof qr){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>Br)throw new TypeError(`version is longer than ${Br} characters`);Or("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?$r[Hr.LOOSE]:$r[Hr.FULL]);if(!n)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Rr||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Rr||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Rr||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this}}var zr=qr,Vr=(e,t,n)=>new zr(e,n).compare(new zr(t,n)),Wr=(e,t,n)=>Vr(e,t,n)<0,Gr=(e,t,n)=>Vr(e,t,n)>=0,Kr=i((function(e,t){function n(){for(var e=[],t=0;t"string"==typeof e||"function"==typeof e,choices:[{value:"flow",description:"Flow"},{value:"babel",since:"1.16.0",description:"JavaScript"},{value:"babel-flow",since:"1.16.0",description:"Flow"},{value:"babel-ts",since:"2.0.0",description:"TypeScript"},{value:"typescript",since:"1.4.0",description:"TypeScript"},{value:"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:Zr,description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin",cliCategory:Xr},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:Zr,description:Yr` - Custom directory that contains prettier plugins in node_modules subdirectory. - Overrides default behavior when plugins are searched relatively to the location of Prettier. - Multiple values are accepted. - `,exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin-search-dir",cliCategory:Xr},printWidth:{since:"0.0.0",category:Zr,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:ei,type:"int",default:Number.POSITIVE_INFINITY,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:Yr` - Format code ending at a given character offset (exclusive). - The range will extend forwards to the end of the selected statement. - This option cannot be used with --cursor-offset. - `,cliCategory:Jr},rangeStart:{since:"1.4.0",category:ei,type:"int",default:0,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:Yr` - Format code starting at a given character offset. - The range will extend backwards to the start of the first line containing the selected statement. - This option cannot be used with --cursor-offset. - `,cliCategory:Jr},requirePragma:{since:"1.7.0",category:ei,type:"boolean",default:!1,description:Yr` - Require either '@prettier' or '@format' to be present in the file's first docblock comment - in order for it to be formatted. - `,cliCategory:Qr},tabWidth:{type:"int",category:Zr,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{since:"1.0.0",category:Zr,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:Zr,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."}]}},ni=["cliName","cliCategory","cliDescription"],ri={compare:Vr,lt:Wr,gte:Gr},ii=e.version,oi={CATEGORY_CONFIG:Xr,CATEGORY_EDITOR:Jr,CATEGORY_FORMAT:"Format",CATEGORY_OTHER:Qr,CATEGORY_OUTPUT:"Output",CATEGORY_GLOBAL:Zr,CATEGORY_SPECIAL:ei,options:ti}.options;var si={getSupportInfo:function({plugins:e=[],showUnreleased:t=!1,showDeprecated:n=!1,showInternal:r=!1}={}){const i=ii.split("-",1)[0],o=e.flatMap(e=>e.languages||[]).filter(a),s=((e,t)=>Object.entries(e).map(([e,n])=>Object.assign({[t]:e},n)))(Object.assign({},...e.map(({options:e})=>e),oi),"name").filter(e=>a(e)&&u(e)).sort((e,t)=>e.name===t.name?0:e.name{t=Object.assign({},t),Array.isArray(t.default)&&(t.default=1===t.default.length?t.default[0].value:t.default.filter(a).sort((e,t)=>ri.compare(t.since,e.since))[0].value),Array.isArray(t.choices)&&(t.choices=t.choices.filter(e=>a(e)&&u(e)),"parser"===t.name&&function(e,t,n){const r=new Set(e.choices.map(e=>e.value));for(const i of t)if(i.parsers)for(const t of i.parsers)if(!r.has(t)){r.add(t);const o=n.find(e=>e.parsers&&e.parsers[t]);let s=i.name;o&&o.name&&(s+=` (plugin: ${o.name})`),e.choices.push({value:t,description:s})}}(t,o,e));const n=Object.fromEntries(e.filter(e=>e.defaultOptions&&void 0!==e.defaultOptions[t.name]).map(e=>[e.name,e.defaultOptions[t.name]]));return Object.assign(Object.assign({},t),{},{pluginDefaults:n})});return{languages:o,options:s};function a(e){return t||!("since"in e)||e.since&&ri.gte(i,e.since)}function u(e){return n||!("deprecated"in e)||e.deprecated&&ri.lt(i,e.deprecated)}}};const{getSupportInfo:ai}=si,ui=/[^\x20-\x7F]/;function li(e){return(t,n,r)=>{const i=r&&r.backwards;if(!1===n)return!1;const{length:o}=t;let s=n;for(;s>=0&&s(n.match(s.regex)||[]).length?s.quote:o.quote),a}function xi(e,t,n){const r='"'===t?"'":'"',i=e.replace(/\\(.)|(["'])/gs,(e,i,o)=>i===r?i:o===t?"\\"+o:o||(n&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(i)?i:"\\"+i));return t+i+t}function Ei(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=function(e){const t=e.type||e.kind||"(unknown type)";let n=String(e.name||e.id&&("object"==typeof e.id?e.id.name:e.id)||e.key&&("object"==typeof e.key?e.key.name:e.key)||e.value&&("object"==typeof e.value?"":String(e.value))||e.operator||"");return n.length>20&&(n=n.slice(0,19)+"…"),t+(n?" "+n:"")}(e)}var _i={inferParserByLanguage:function(e,t){const{languages:n}=ai({plugins:t.plugins}),r=n.find(({name:t})=>t.toLowerCase()===e)||n.find(({aliases:t})=>Array.isArray(t)&&t.includes(e))||n.find(({extensions:t})=>Array.isArray(t)&&t.includes("."+e));return r&&r.parsers[0]},getStringWidth:function(e){return e?ui.test(e)?Mn(e):e.length:0},getMaxContinuousCount:function(e,t){const n=e.match(new RegExp(`(${jn(t)})+`,"g"));return null===n?0:n.reduce((e,n)=>Math.max(e,n.length/t.length),0)},getMinNotPresentContinuousCount:function(e,t){const n=e.match(new RegExp(`(${jn(t)})+`,"g"));if(null===n)return 0;const r=new Map;let i=0;for(const o of n){const e=o.length/t.length;r.set(e,!0),e>i&&(i=e)}for(let o=1;oe[e.length-2],getLast:Bn,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:bi,getNextNonSpaceNonCommentCharacterIndex:Di,getNextNonSpaceNonCommentCharacter:function(e,t,n){return e.charAt(Di(e,t,n))},skip:li,skipWhitespace:ci,skipSpaces:pi,skipToLineEnd:fi,skipEverythingButNewLine:hi,skipInlineComment:di,skipTrailingComment:mi,skipNewline:gi,isNextLineEmptyAfterIndex:vi,isNextLineEmpty:function(e,t,n){return vi(e,n(t))},isPreviousLineEmpty:function(e,t,n){let r=n(t)-1;return r=pi(e,r,{backwards:!0}),r=gi(e,r,{backwards:!0}),r=pi(e,r,{backwards:!0}),r!==gi(e,r,{backwards:!0})},hasNewline:yi,hasNewlineInRange:function(e,t,n){for(let r=t;r0},createGroupIdMapper:function(e){const t=new WeakMap;return function(n){return t.has(n)||t.set(n,Symbol(e)),t.get(n)}}},ki={guessEndOfLine:function(e){const t=e.indexOf("\r");return t>=0?"\n"===e.charAt(t+1)?"crlf":"cr":"lf"},convertEndOfLineToChars:function(e){switch(e){case"cr":return"\r";case"crlf":return"\r\n";default:return"\n"}},countEndOfLineChars:function(e,t){let n;if("\n"===t)n=/\n/g;else if("\r"===t)n=/\r/g;else{if("\r\n"!==t)throw new Error(`Unexpected "eol" ${JSON.stringify(t)}.`);n=/\r\n/g}const r=e.match(n);return r?r.length:0},normalizeEndOfLine:function(e){return e.replace(/\r\n?/g,"\n")}};const{literalline:Ti,join:Si}=An,Ai=e=>Array.isArray(e)||e&&"concat"===e.type,Oi=e=>{if(Array.isArray(e))return e;if("concat"!==e.type&&"fill"!==e.type)throw new Error("Expect doc type to be `concat` or `fill`.");return e.parts},Fi={};function Ni(e,t,n,r){const i=[e];for(;i.length>0;){const e=i.pop();if(e!==Fi){if(n&&i.push(e,Fi),!t||!1!==t(e))if(Ai(e)||"fill"===e.type){const t=Oi(e);for(let e=t.length-1;e>=0;--e)i.push(t[e])}else if("if-break"===e.type)e.flatContents&&i.push(e.flatContents),e.breakContents&&i.push(e.breakContents);else if("group"===e.type&&e.expandedStates)if(r)for(let t=e.expandedStates.length-1;t>=0;--t)i.push(e.expandedStates[t]);else i.push(e.contents);else e.contents&&i.push(e.contents)}else n(i.pop())}}function Ii(e,t){const n=new Map;return r(e);function r(e){if(n.has(e))return n.get(e);const i=function(e){if(Array.isArray(e))return t(e.map(r));if("concat"===e.type||"fill"===e.type){const n=e.parts.map(r);return t(Object.assign(Object.assign({},e),{},{parts:n}))}if("if-break"===e.type){const n=e.breakContents&&r(e.breakContents),i=e.flatContents&&r(e.flatContents);return t(Object.assign(Object.assign({},e),{},{breakContents:n,flatContents:i}))}if("group"===e.type&&e.expandedStates){const n=e.expandedStates.map(r),i=n[0];return t(Object.assign(Object.assign({},e),{},{contents:i,expandedStates:n}))}if(e.contents){const n=r(e.contents);return t(Object.assign(Object.assign({},e),{},{contents:n}))}return t(e)}(e);return n.set(e,i),i}}function Pi(e,t,n){let r=n,i=!1;return Ni(e,(function(e){const n=t(e);if(void 0!==n&&(i=!0,r=n),i)return!1})),r}function Mi(e){return!("group"!==e.type||!e.break)||!("line"!==e.type||!e.hard)||"break-parent"===e.type||void 0}function Li(e){if(e.length>0){const t=Bn(e);t.expandedStates||t.break||(t.break="propagated")}return null}function ji(e){return"line"!==e.type||e.hard?"if-break"===e.type?e.flatContents||"":e:e.soft?"":" "}const Bi=(e,t)=>e&&"line"===e.type&&e.hard&&t&&"break-parent"===t.type;function Ri(e){if(!e)return e;if(Ai(e)||"fill"===e.type){const t=Oi(e);for(;t.length>1&&Bi(...t.slice(-2));)t.length-=2;if(t.length>0){const e=Ri(Bn(t));t[t.length-1]=e}return Array.isArray(e)?t:Object.assign(Object.assign({},e),{},{parts:t})}switch(e.type){case"align":case"indent":case"indent-if-break":case"group":case"line-suffix":case"label":{const t=Ri(e.contents);return Object.assign(Object.assign({},e),{},{contents:t})}case"if-break":{const t=Ri(e.breakContents),n=Ri(e.flatContents);return Object.assign(Object.assign({},e),{},{breakContents:t,flatContents:n})}}return e}function $i(e){return Ii(e,e=>function(e){switch(e.type){case"fill":if(0===e.parts.length||e.parts.every(e=>""===e))return"";break;case"group":if(!(e.contents||e.id||e.break||e.expandedStates))return"";if("group"===e.contents.type&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case"align":case"indent":case"indent-if-break":case"line-suffix":if(!e.contents)return"";break;case"if-break":if(!e.flatContents&&!e.breakContents)return""}if(!Ai(e))return e;const t=[];for(const n of Oi(e)){if(!n)continue;const[e,...r]=Ai(n)?Oi(n):[n];"string"==typeof e&&"string"==typeof Bn(t)?t[t.length-1]+=e:t.push(e),t.push(...r)}return 0===t.length?"":1===t.length?t[0]:Array.isArray(e)?t:Object.assign(Object.assign({},e),{},{parts:t})}(e))}function Hi(e){const t=[],n=e.filter(Boolean);for(;n.length>0;){const e=n.shift();e&&(Ai(e)?n.unshift(...Oi(e)):t.length>0&&"string"==typeof Bn(t)&&"string"==typeof e?t[t.length-1]+=e:t.push(e))}return t}function Ui(e,t=Ti){return Si(t,e.split("\n")).parts}var qi={isConcat:Ai,getDocParts:Oi,willBreak:function(e){return Pi(e,Mi,!1)},traverseDoc:Ni,findInDoc:Pi,mapDoc:Ii,propagateBreaks:function(e){const t=new Set,n=[];Ni(e,(function(e){if("break-parent"===e.type&&Li(n),"group"===e.type){if(n.push(e),t.has(e))return!1;t.add(e)}}),(function(e){"group"===e.type&&n.pop().break&&Li(n)}),!0)},removeLines:function(e){return Ii(e,ji)},stripTrailingHardline:function(e){return Ri($i(e))},normalizeParts:Hi,normalizeDoc:function(e){return Ii(e,e=>Array.isArray(e)?Hi(e):e.parts?Object.assign(Object.assign({},e),{},{parts:Hi(e.parts)}):e)},cleanDoc:$i,replaceTextEndOfLine:Ui,replaceEndOfLine:function(e){return Ii(e,e=>"string"==typeof e&&e.includes("\n")?Ui(e):e)}};const{getStringWidth:zi,getLast:Vi}=_i,{convertEndOfLineToChars:Wi}=ki,{fill:Gi,cursor:Ki,indent:Yi}=An,{isConcat:Xi,getDocParts:Ji}=qi;let Qi;function Zi(e,t){return to(e,{type:"indent"},t)}function eo(e,t,n){return t===Number.NEGATIVE_INFINITY?e.root||{value:"",length:0,queue:[]}:t<0?to(e,{type:"dedent"},n):t?"root"===t.type?Object.assign(Object.assign({},e),{},{root:e}):to(e,{type:"string"==typeof t?"stringAlign":"numberAlign",n:t},n):e}function to(e,t,n){const r="dedent"===t.type?e.queue.slice(0,-1):[...e.queue,t];let i="",o=0,s=0,a=0;for(const h of r)switch(h.type){case"indent":c(),n.useTabs?u(1):l(n.tabWidth);break;case"stringAlign":c(),i+=h.n,o+=h.n.length;break;case"numberAlign":s+=1,a+=h.n;break;default:throw new Error(`Unexpected type '${h.type}'`)}return p(),Object.assign(Object.assign({},e),{},{value:i,length:o,queue:r});function u(e){i+="\t".repeat(e),o+=n.tabWidth*e}function l(e){i+=" ".repeat(e),o+=e}function c(){n.useTabs?function(){s>0&&u(s),f()}():p()}function p(){a>0&&l(a),f()}function f(){s=0,a=0}}function no(e){if(0===e.length)return 0;let t=0;for(;e.length>0&&"string"==typeof Vi(e)&&/^[\t ]*$/.test(Vi(e));)t+=e.pop().length;if(e.length>0&&"string"==typeof Vi(e)){const n=Vi(e).replace(/[\t ]*$/,"");t+=Vi(e).length-n.length,e[e.length-1]=n}return t}function ro(e,t,n,r,i,o){let s=t.length;const a=[e],u=[];for(;n>=0;){if(0===a.length){if(0===s)return!0;a.push(t[s-1]),s--;continue}const[e,l,c]=a.pop();if("string"==typeof c)u.push(c),n-=zi(c);else if(Xi(c)){const t=Ji(c);for(let n=t.length-1;n>=0;n--)a.push([e,l,t[n]])}else switch(c.type){case"indent":a.push([Zi(e,r),l,c.contents]);break;case"align":a.push([eo(e,c.n,r),l,c.contents]);break;case"trim":n+=no(u);break;case"group":{if(o&&c.break)return!1;const t=c.break?1:l;a.push([e,t,c.expandedStates&&1===t?Vi(c.expandedStates):c.contents]),c.id&&(Qi[c.id]=t);break}case"fill":for(let t=c.parts.length-1;t>=0;t--)a.push([e,l,c.parts[t]]);break;case"if-break":case"indent-if-break":{const t=c.groupId?Qi[c.groupId]:l;if(1===t){const t="if-break"===c.type?c.breakContents:c.negate?c.contents:Yi(c.contents);t&&a.push([e,l,t])}if(2===t){const t="if-break"===c.type?c.flatContents:c.negate?Yi(c.contents):c.contents;t&&a.push([e,l,t])}break}case"line":switch(l){case 2:if(!c.hard){c.soft||(u.push(" "),n-=1);break}return!0;case 1:return!0}break;case"line-suffix":i=!0;break;case"line-suffix-boundary":if(i)return!1;break;case"label":a.push([e,l,c.contents])}}return!1}var io={printDocToString:function(e,t){Qi={};const n=t.printWidth,r=Wi(t.endOfLine);let i=0;const o=[[{value:"",length:0,queue:[]},1,e]],s=[];let a=!1,u=[];for(;o.length>0;){const[e,l,c]=o.pop();if("string"==typeof c){const e="\n"!==r?c.replace(/\n/g,r):c;s.push(e),i+=zi(e)}else if(Xi(c)){const t=Ji(c);for(let n=t.length-1;n>=0;n--)o.push([e,l,t[n]])}else switch(c.type){case"cursor":s.push(Ki.placeholder);break;case"indent":o.push([Zi(e,t),l,c.contents]);break;case"align":o.push([eo(e,c.n,t),l,c.contents]);break;case"trim":i-=no(s);break;case"group":switch(l){case 2:if(!a){o.push([e,c.break?1:2,c.contents]);break}case 1:{a=!1;const r=[e,2,c.contents],s=n-i,l=u.length>0;if(!c.break&&ro(r,o,s,t,l))o.push(r);else if(c.expandedStates){const n=Vi(c.expandedStates);if(c.break){o.push([e,1,n]);break}for(let r=1;r=c.expandedStates.length){o.push([e,1,n]);break}{const n=[e,2,c.expandedStates[r]];if(ro(n,o,s,t,l)){o.push(n);break}}}}else o.push([e,1,c.contents]);break}}c.id&&(Qi[c.id]=Vi(o)[1]);break;case"fill":{const r=n-i,{parts:s}=c;if(0===s.length)break;const[a,p]=s,f=[e,2,a],h=[e,1,a],d=ro(f,[],r,t,u.length>0,!0);if(1===s.length){d?o.push(f):o.push(h);break}const m=[e,2,p],g=[e,1,p];if(2===s.length){d?o.push(m,f):o.push(g,h);break}s.splice(0,2);const y=[e,l,Gi(s)];ro([e,2,[a,p,s[0]]],[],r,t,u.length>0,!0)?o.push(y,m,f):d?o.push(y,g,f):o.push(y,g,h);break}case"if-break":case"indent-if-break":{const t=c.groupId?Qi[c.groupId]:l;if(1===t){const t="if-break"===c.type?c.breakContents:c.negate?c.contents:Yi(c.contents);t&&o.push([e,l,t])}if(2===t){const t="if-break"===c.type?c.flatContents:c.negate?Yi(c.contents):c.contents;t&&o.push([e,l,t])}break}case"line-suffix":u.push([e,l,c.contents]);break;case"line-suffix-boundary":u.length>0&&o.push([e,l,{type:"line",hard:!0}]);break;case"line":switch(l){case 2:if(!c.hard){c.soft||(s.push(" "),i+=1);break}a=!0;case 1:if(u.length>0){o.push([e,l,c],...u.reverse()),u=[];break}c.literal?e.root?(s.push(r,e.root.value),i=e.root.length):(s.push(r),i=0):(i-=no(s),s.push(r+e.value),i=e.length)}break;case"label":o.push([e,l,c.contents])}0===o.length&&u.length>0&&(o.push(...u.reverse()),u=[])}const l=s.indexOf(Ki.placeholder);if(-1!==l){const e=s.indexOf(Ki.placeholder,l+1),t=s.slice(0,l).join(""),n=s.slice(l+1,e).join("");return{formatted:t+n+s.slice(e+1).join(""),cursorNodeStart:t.length,cursorNodeText:n}}return{formatted:s.join("")}}};const{isConcat:oo,getDocParts:so}=qi;function ao(e){if(!e)return"";if(oo(e)){const t=[];for(const n of so(e))if(oo(n))t.push(...ao(n).parts);else{const e=ao(n);""!==e&&t.push(e)}return{type:"concat",parts:t}}return"if-break"===e.type?Object.assign(Object.assign({},e),{},{breakContents:ao(e.breakContents),flatContents:ao(e.flatContents)}):"group"===e.type?Object.assign(Object.assign({},e),{},{contents:ao(e.contents),expandedStates:e.expandedStates&&e.expandedStates.map(ao)}):"fill"===e.type?{type:"fill",parts:e.parts.map(ao)}:e.contents?Object.assign(Object.assign({},e),{},{contents:ao(e.contents)}):e}var uo={builders:An,printer:io,utils:qi,debug:{printDocToDebug:function(e){const t=Object.create(null),n=new Set;return function e(t,n,i){if("string"==typeof t)return JSON.stringify(t);if(oo(t)){const n=so(t).map(e).filter(Boolean);return 1===n.length?n[0]:`[${n.join(", ")}]`}if("line"===t.type){const e=Array.isArray(i)&&i[n+1]&&"break-parent"===i[n+1].type;return t.literal?e?"literalline":"literallineWithoutBreakParent":t.hard?e?"hardline":"hardlineWithoutBreakParent":t.soft?"softline":"line"}if("break-parent"===t.type)return Array.isArray(i)&&i[n-1]&&"line"===i[n-1].type&&i[n-1].hard?void 0:"breakParent";if("trim"===t.type)return"trim";if("indent"===t.type)return"indent("+e(t.contents)+")";if("align"===t.type)return t.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+e(t.contents)+")":t.n<0?"dedent("+e(t.contents)+")":"root"===t.n.type?"markAsRoot("+e(t.contents)+")":"align("+JSON.stringify(t.n)+", "+e(t.contents)+")";if("if-break"===t.type)return"ifBreak("+e(t.breakContents)+(t.flatContents?", "+e(t.flatContents):"")+(t.groupId?(t.flatContents?"":', ""')+`, { groupId: ${r(t.groupId)} }`:"")+")";if("indent-if-break"===t.type){const n=[];t.negate&&n.push("negate: true"),t.groupId&&n.push("groupId: "+r(t.groupId));const i=n.length>0?`, { ${n.join(", ")} }`:"";return`indentIfBreak(${e(t.contents)}${i})`}if("group"===t.type){const n=[];t.break&&"propagated"!==t.break&&n.push("shouldBreak: true"),t.id&&n.push("id: "+r(t.id));const i=n.length>0?`, { ${n.join(", ")} }`:"";return t.expandedStates?`conditionalGroup([${t.expandedStates.map(t=>e(t)).join(",")}]${i})`:`group(${e(t.contents)}${i})`}if("fill"===t.type)return`fill([${t.parts.map(t=>e(t)).join(", ")}])`;if("line-suffix"===t.type)return"lineSuffix("+e(t.contents)+")";if("line-suffix-boundary"===t.type)return"lineSuffixBoundary";if("label"===t.type)return`label(${JSON.stringify(t.label)}, ${e(t.contents)})`;throw new Error("Unknown doc type "+t.type)}(ao(e));function r(e){if("symbol"!=typeof e)return JSON.stringify(String(e));if(e in t)return t[e];const r=String(e).slice(7,-1)||"symbol";for(let i=0;;i++){const o=r+(i>0?" #"+i:"");if(!n.has(o))return n.add(o),t[e]=`Symbol.for(${JSON.stringify(o)})`}}}}},lo=Object.freeze({__proto__:null,default:{}});function co(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var po=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,fo=function(e){return po.exec(e).slice(1)};function ho(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var r=n>=0?arguments[n]:"/";if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");r&&(e=r+"/"+e,t="/"===r.charAt(0))}return(t?"/":"")+(e=co(xo(e.split("/"),(function(e){return!!e})),!t).join("/"))||"."}function mo(e){var t=go(e),n="/"===Eo(e,-1);return(e=co(xo(e.split("/"),(function(e){return!!e})),!t).join("/"))||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e}function go(e){return"/"===e.charAt(0)}function yo(){var e=Array.prototype.slice.call(arguments,0);return mo(xo(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))}function vo(e,t){function n(e){for(var t=0;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=ho(e).substr(1),t=ho(t).substr(1);for(var r=n(e.split("/")),i=n(t.split("/")),o=Math.min(r.length,i.length),s=o,a=0;a>18&63]+ko[i>>12&63]+ko[i>>6&63]+ko[63&i]);return o.join("")}function No(e){var t;Ao||Oo();for(var n=e.length,r=n%3,i="",o=[],s=16383,a=0,u=n-r;au?u:a+s));return 1===r?(t=e[n-1],i+=ko[t>>2],i+=ko[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=ko[t>>10],i+=ko[t>>4&63],i+=ko[t<<2&63],i+="="),o.push(i),o.join("")}function Io(e,t,n,r,i){var o,s,a=8*i-r-1,u=(1<>1,c=-7,p=n?i-1:0,f=n?-1:1,h=e[t+p];for(p+=f,o=h&(1<<-c)-1,h>>=-c,c+=a;c>0;o=256*o+e[t+p],p+=f,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=r;c>0;s=256*s+e[t+p],p+=f,c-=8);if(0===o)o=1-l;else{if(o===u)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,r),o-=l}return(h?-1:1)*s*Math.pow(2,o-r)}function Po(e,t,n,r,i,o){var s,a,u,l=8*o-i-1,c=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,d=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+p>=1?f/u:f*Math.pow(2,1-p))*u>=2&&(s++,u/=2),s+p>=c?(a=0,s=c):s+p>=1?(a=(t*u-1)*Math.pow(2,i),s+=p):(a=t*Math.pow(2,p-1)*Math.pow(2,i),s=0));i>=8;e[n+h]=255&a,h+=d,a/=256,i-=8);for(s=s<0;e[n+h]=255&s,h+=d,s/=256,l-=8);e[n+h-d]|=128*m}var Mo={}.toString,Lo=Array.isArray||function(e){return"[object Array]"==Mo.call(e)};function jo(){return Ro.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Bo(e,t){if(jo()=jo())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+jo().toString(16)+" bytes");return 0|e}function Vo(e){return!(null==e||!e._isBuffer)}function Wo(e,t){if(Vo(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return bs(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Ds(e).length;default:if(r)return bs(e).length;t=(""+t).toLowerCase(),r=!0}}function Go(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return us(this,t,n);case"utf8":case"utf-8":return is(this,t,n);case"ascii":return ss(this,t,n);case"latin1":case"binary":return as(this,t,n);case"base64":return rs(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ls(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Ko(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Yo(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=Ro.from(t,r)),Vo(t))return 0===t.length?-1:Xo(e,t,n,r,i);if("number"==typeof t)return t&=255,Ro.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Xo(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function Xo(e,t,n,r,i){var o,s=1,a=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,n/=2}function l(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var c=-1;for(o=n;oa&&(n=a-u),o=n;o>=0;o--){for(var p=!0,f=0;fi&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function rs(e,t,n){return 0===t&&n===e.length?No(e):No(e.slice(t,n))}function is(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:l>223?3:l>191?2:1;if(i+p<=n)switch(p){case 1:l<128&&(c=l);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=e[i+1],s=e[i+2],128==(192&o)&&128==(192&s)&&(u=(15&l)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(u=(15&l)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(c=u)}null===c?(c=65533,p=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=p}return function(e){var t=e.length;if(t<=os)return String.fromCharCode.apply(String,e);for(var n="",r=0;r0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},Ro.prototype.compare=function(e,t,n,r,i){if(!Vo(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(o,s),u=this.slice(r,i),l=e.slice(t,n),c=0;ci)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return Jo(this,e,t,n);case"utf8":case"utf-8":return Qo(this,e,t,n);case"ascii":return Zo(this,e,t,n);case"latin1":case"binary":return es(this,e,t,n);case"base64":return ts(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ns(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},Ro.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var os=4096;function ss(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function ps(e,t,n,r,i,o){if(!Vo(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function fs(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function hs(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function ds(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function ms(e,t,n,r,i){return i||ds(e,0,n,4),Po(e,t,n,r,23,4),n+4}function gs(e,t,n,r,i){return i||ds(e,0,n,8),Po(e,t,n,r,52,8),n+8}Ro.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},Ro.prototype.readUInt8=function(e,t){return t||cs(e,1,this.length),this[e]},Ro.prototype.readUInt16LE=function(e,t){return t||cs(e,2,this.length),this[e]|this[e+1]<<8},Ro.prototype.readUInt16BE=function(e,t){return t||cs(e,2,this.length),this[e]<<8|this[e+1]},Ro.prototype.readUInt32LE=function(e,t){return t||cs(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Ro.prototype.readUInt32BE=function(e,t){return t||cs(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Ro.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||cs(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},Ro.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||cs(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},Ro.prototype.readInt8=function(e,t){return t||cs(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Ro.prototype.readInt16LE=function(e,t){t||cs(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},Ro.prototype.readInt16BE=function(e,t){t||cs(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},Ro.prototype.readInt32LE=function(e,t){return t||cs(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Ro.prototype.readInt32BE=function(e,t){return t||cs(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Ro.prototype.readFloatLE=function(e,t){return t||cs(e,4,this.length),Io(this,e,!0,23,4)},Ro.prototype.readFloatBE=function(e,t){return t||cs(e,4,this.length),Io(this,e,!1,23,4)},Ro.prototype.readDoubleLE=function(e,t){return t||cs(e,8,this.length),Io(this,e,!0,52,8)},Ro.prototype.readDoubleBE=function(e,t){return t||cs(e,8,this.length),Io(this,e,!1,52,8)},Ro.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||ps(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},Ro.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||ps(this,e,t,1,255,0),Ro.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Ro.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||ps(this,e,t,2,65535,0),Ro.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):fs(this,e,t,!0),t+2},Ro.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||ps(this,e,t,2,65535,0),Ro.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):fs(this,e,t,!1),t+2},Ro.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||ps(this,e,t,4,4294967295,0),Ro.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):hs(this,e,t,!0),t+4},Ro.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||ps(this,e,t,4,4294967295,0),Ro.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):hs(this,e,t,!1),t+4},Ro.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);ps(this,e,t,n,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o>0)-a&255;return t+n},Ro.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);ps(this,e,t,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},Ro.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||ps(this,e,t,1,127,-128),Ro.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Ro.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||ps(this,e,t,2,32767,-32768),Ro.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):fs(this,e,t,!0),t+2},Ro.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||ps(this,e,t,2,32767,-32768),Ro.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):fs(this,e,t,!1),t+2},Ro.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||ps(this,e,t,4,2147483647,-2147483648),Ro.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):hs(this,e,t,!0),t+4},Ro.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||ps(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Ro.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):hs(this,e,t,!1),t+4},Ro.prototype.writeFloatLE=function(e,t,n){return ms(this,e,t,!0,n)},Ro.prototype.writeFloatBE=function(e,t,n){return ms(this,e,t,!1,n)},Ro.prototype.writeDoubleLE=function(e,t,n){return gs(this,e,t,!0,n)},Ro.prototype.writeDoubleBE=function(e,t,n){return gs(this,e,t,!1,n)},Ro.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!Ro.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Ds(e){return function(e){var t,n,r,i,o,s;Ao||Oo();var a=e.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[a-2]?2:"="===e[a-1]?1:0,s=new So(3*a/4-o),r=o>0?a-4:a;var u=0;for(t=0,n=0;t>16&255,s[u++]=i>>8&255,s[u++]=255&i;return 2===o?(i=To[e.charCodeAt(t)]<<2|To[e.charCodeAt(t+1)]>>4,s[u++]=255&i):1===o&&(i=To[e.charCodeAt(t)]<<10|To[e.charCodeAt(t+1)]<<4|To[e.charCodeAt(t+2)]>>2,s[u++]=i>>8&255,s[u++]=255&i),s}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(ys,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function ws(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function Cs(e){return null!=e&&(!!e._isBuffer||xs(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&xs(e.slice(0,0))}(e))}function xs(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}var Es=r(lo),_s=class{constructor(e,t){(t=t||{}).readChunk||(t.readChunk=1024),t.newLineCharacter?t.newLineCharacter=t.newLineCharacter.charCodeAt(0):t.newLineCharacter=10,this.fd="number"==typeof e?e:Es.openSync(e,"r"),this.options=t,this.newLineCharacter=t.newLineCharacter,this.reset()}_searchInBuffer(e,t){let n=-1;for(let r=0;r<=e.length;r++)if(e[r]===t){n=r;break}return n}reset(){this.eofReached=!1,this.linesCache=[],this.fdPosition=0}close(){Es.closeSync(this.fd),this.fd=null}_extractLines(e){let t;const n=[];let r=0,i=0;for(;;){let o=e[r++];if(o===this.newLineCharacter)t=e.slice(i,r),n.push(t),i=r;else if(void 0===o)break}let o=e.slice(i,r);return o.length&&n.push(o),n}_readChunk(e){let t,n=0;const r=[];do{const e=new Ro(this.options.readChunk);t=Es.readSync(this.fd,e,0,this.options.readChunk,this.fdPosition),n+=t,this.fdPosition=this.fdPosition+t,r.push(e)}while(t&&-1===this._searchInBuffer(r[r.length-1],this.options.newLineCharacter));let i=Ro.concat(r);return t=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ps(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function Ms(e){return this instanceof Ms?(this.v=e,this):new Ms(e)}var Ls=Object.freeze({__proto__:null,__extends:function(e,t){function n(){this.constructor=e}Fs(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},get __assign(){return Ns},__rest:function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},__param:function(e,t){return function(n,r){t(n,r,e)}},__metadata:function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},__awaiter:function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},__generator:function(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!((i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof Ms?Promise.resolve(n.value.v).then(u,l):c(o[0][2],n)}catch(e){c(o[0][3],e)}var n}function u(e){a("next",e)}function l(e){a("throw",e)}function c(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}},__asyncDelegator:function(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:Ms(e[r](t)),done:"return"===r}:i?i(t):t}:i}},__asyncValues:function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=Is(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}},__makeTemplateObject:function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__importStar:function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},__importDefault:function(e){return e&&e.__esModule?e:{default:e}},__classPrivateFieldGet:function(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)},__classPrivateFieldSet:function(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}}),js=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.apiDescriptor={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(null===e||"object"!=typeof e)return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(e=>t.apiDescriptor.value(e)).join(", ")}]`;const n=Object.keys(e);return 0===n.length?"{}":`{ ${n.map(n=>`${t.apiDescriptor.key(n)}: ${t.apiDescriptor.value(e[n])}`).join(", ")} }`},pair:({key:e,value:n})=>t.apiDescriptor.value({[e]:n})}})),Bs=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Ls.__exportStar(js,t)})),Rs=/[|\\{}()[\]^$+*?.]/g,$s=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(Rs,"\\$&")},Hs={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},Us=i((function(e){var t={};for(var n in Hs)Hs.hasOwnProperty(n)&&(t[Hs[n]]=n);var r=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var i in r)if(r.hasOwnProperty(i)){if(!("channels"in r[i]))throw new Error("missing channels property: "+i);if(!("labels"in r[i]))throw new Error("missing channel labels property: "+i);if(r[i].labels.length!==r[i].channels)throw new Error("channel and label counts mismatch: "+i);var o=r[i].channels,s=r[i].labels;delete r[i].channels,delete r[i].labels,Object.defineProperty(r[i],"channels",{value:o}),Object.defineProperty(r[i],"labels",{value:s})}r.rgb.hsl=function(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,s=Math.min(r,i,o),a=Math.max(r,i,o),u=a-s;return a===s?t=0:r===a?t=(i-o)/u:i===a?t=2+(o-r)/u:o===a&&(t=4+(r-i)/u),(t=Math.min(60*t,360))<0&&(t+=360),n=(s+a)/2,[t,100*(a===s?0:n<=.5?u/(a+s):u/(2-a-s)),100*n]},r.rgb.hsv=function(e){var t,n,r,i,o,s=e[0]/255,a=e[1]/255,u=e[2]/255,l=Math.max(s,a,u),c=l-Math.min(s,a,u),p=function(e){return(l-e)/6/c+.5};return 0===c?i=o=0:(o=c/l,t=p(s),n=p(a),r=p(u),s===l?i=r-n:a===l?i=1/3+t-r:u===l&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*l]},r.rgb.hwb=function(e){var t=e[0],n=e[1],i=e[2];return[r.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,i))*100,100*(i=1-1/255*Math.max(t,Math.max(n,i)))]},r.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-i)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]},r.rgb.keyword=function(e){var n=t[e];if(n)return n;var r,i,o,s=1/0;for(var a in Hs)if(Hs.hasOwnProperty(a)){var u=Hs[a],l=(i=e,o=u,Math.pow(i[0]-o[0],2)+Math.pow(i[1]-o[1],2)+Math.pow(i[2]-o[2],2));l.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},r.rgb.lab=function(e){var t=r.rgb.xyz(e),n=t[0],i=t[1],o=t[2];return i/=100,o/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116)-16,500*(n-i),200*(i-(o=o>.008856?Math.pow(o,1/3):7.787*o+16/116))]},r.hsl.rgb=function(e){var t,n,r,i,o,s=e[0]/360,a=e[1]/100,u=e[2]/100;if(0===a)return[o=255*u,o,o];t=2*u-(n=u<.5?u*(1+a):u+a-u*a),i=[0,0,0];for(var l=0;l<3;l++)(r=s+1/3*-(l-1))<0&&r++,r>1&&r--,o=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,i[l]=255*o;return i},r.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,i=n,o=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,i*=o<=1?o:2-o,[t,100*(0===r?2*i/(o+i):2*n/(r+n)),(r+n)/2*100]},r.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),s=255*r*(1-n),a=255*r*(1-n*o),u=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,u,s];case 1:return[a,r,s];case 2:return[s,r,u];case 3:return[s,a,r];case 4:return[u,s,r];case 5:return[r,s,a]}},r.hsv.hsl=function(e){var t,n,r,i=e[0],o=e[1]/100,s=e[2]/100,a=Math.max(s,.01);return r=(2-o)*s,n=o*a,[i,100*(n=(n/=(t=(2-o)*a)<=1?t:2-t)||0),100*(r/=2)]},r.hwb.rgb=function(e){var t,n,r,i,o,s,a,u=e[0]/360,l=e[1]/100,c=e[2]/100,p=l+c;switch(p>1&&(l/=p,c/=p),r=6*u-(t=Math.floor(6*u)),0!=(1&t)&&(r=1-r),i=l+r*((n=1-c)-l),t){default:case 6:case 0:o=n,s=i,a=l;break;case 1:o=i,s=n,a=l;break;case 2:o=l,s=n,a=i;break;case 3:o=l,s=i,a=n;break;case 4:o=i,s=l,a=n;break;case 5:o=n,s=l,a=i}return[255*o,255*s,255*a]},r.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},r.xyz.rgb=function(e){var t,n,r,i=e[0]/100,o=e[1]/100,s=e[2]/100;return n=-.9689*i+1.8758*o+.0415*s,r=.0557*i+-.204*o+1.057*s,t=(t=3.2406*i+-1.5372*o+-.4986*s)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},r.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},r.lab.xyz=function(e){var t,n,r,i=e[0];t=e[1]/500+(n=(i+16)/116),r=n-e[2]/200;var o=Math.pow(n,3),s=Math.pow(t,3),a=Math.pow(r,3);return n=o>.008856?o:(n-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,r=a>.008856?a:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},r.lab.lch=function(e){var t,n=e[0],r=e[1],i=e[2];return(t=360*Math.atan2(i,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+i*i),t]},r.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},r.rgb.ansi16=function(e){var t=e[0],n=e[1],i=e[2],o=1 in arguments?arguments[1]:r.rgb.hsv(e)[2];if(0===(o=Math.round(o/50)))return 30;var s=30+(Math.round(i/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===o&&(s+=60),s},r.hsv.ansi16=function(e){return r.rgb.ansi16(r.hsv.rgb(e),e[2])},r.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},r.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},r.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},r.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},r.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},r.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255,o=Math.max(Math.max(n,r),i),s=Math.min(Math.min(n,r),i),a=o-s;return t=a<=0?0:o===n?(r-i)/a%6:o===r?2+(i-n)/a:4+(n-r)/a+4,t/=6,[360*(t%=1),100*a,100*(a<1?s/(1-a):0)]},r.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,i=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},r.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},r.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var i,o=[0,0,0],s=t%1*6,a=s%1,u=1-a;switch(Math.floor(s)){case 0:o[0]=1,o[1]=a,o[2]=0;break;case 1:o[0]=u,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=a;break;case 3:o[0]=0,o[1]=u,o[2]=1;break;case 4:o[0]=a,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=u}return i=(1-n)*r,[255*(n*o[0]+i),255*(n*o[1]+i),255*(n*o[2]+i)]},r.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},r.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},r.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},r.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},r.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},r.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},r.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},r.gray.hsl=r.gray.hsv=function(e){return[0,0,e[0]]},r.gray.hwb=function(e){return[0,100,e[0]]},r.gray.cmyk=function(e){return[0,0,0,e[0]]},r.gray.lab=function(e){return[e[0],0,0]},r.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},r.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}}));function qs(e){var t=function(){for(var e={},t=Object.keys(Us),n=t.length,r=0;r1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,i=0;i1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))}));var Gs,Ks=Ws,Ys=i((function(e){const t=(e,t)=>function(){const n=e.apply(Ks,arguments);return`[${n+t}m`},n=(e,t)=>function(){const n=e.apply(Ks,arguments);return`[${38+t};5;${n}m`},r=(e,t)=>function(){const n=e.apply(Ks,arguments);return`[${38+t};2;${n[0]};${n[1]};${n[2]}m`};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,i={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};i.color.grey=i.color.gray;for(const t of Object.keys(i)){const n=i[t];for(const t of Object.keys(n)){const r=n[t];i[t]={open:`[${r[0]}m`,close:`[${r[1]}m`},n[t]=i[t],e.set(r[0],r[1])}Object.defineProperty(i,t,{value:n,enumerable:!1}),Object.defineProperty(i,"codes",{value:e,enumerable:!1})}const o=e=>e,s=(e,t,n)=>[e,t,n];i.color.close="",i.bgColor.close="",i.color.ansi={ansi:t(o,0)},i.color.ansi256={ansi256:n(o,0)},i.color.ansi16m={rgb:r(s,0)},i.bgColor.ansi={ansi:t(o,10)},i.bgColor.ansi256={ansi256:n(o,10)},i.bgColor.ansi16m={rgb:r(s,10)};for(let a of Object.keys(Ks)){if("object"!=typeof Ks[a])continue;const e=Ks[a];"ansi16"===a&&(a="ansi"),"ansi16"in e&&(i.color.ansi[a]=t(e.ansi16,0),i.bgColor.ansi[a]=t(e.ansi16,10)),"ansi256"in e&&(i.color.ansi256[a]=n(e.ansi256,0),i.bgColor.ansi256[a]=n(e.ansi256,10)),"rgb"in e&&(i.color.ansi16m[a]=r(e.rgb,0),i.bgColor.ansi16m[a]=r(e.rgb,10))}return i}})}));function Xs(){if(void 0===Gs){var e=new ArrayBuffer(2),t=new Uint8Array(e),n=new Uint16Array(e);if(t[0]=1,t[1]=2,258===n[0])Gs="BE";else{if(513!==n[0])throw new Error("unable to figure out endianess");Gs="LE"}}return Gs}function Js(){return void 0!==or.location?or.location.hostname:""}function Qs(){return[]}function Zs(){return 0}function ea(){return Number.MAX_VALUE}function ta(){return Number.MAX_VALUE}function na(){return[]}function ra(){return"Browser"}function ia(){return void 0!==or.navigator?or.navigator.appVersion:""}function oa(){}function sa(){}function aa(){return"javascript"}function ua(){return"browser"}function la(){return"/tmp"}var ca=la,pa={EOL:"\n",arch:aa,platform:ua,tmpdir:ca,tmpDir:la,networkInterfaces:oa,getNetworkInterfaces:sa,release:ia,type:ra,cpus:na,totalmem:ta,freemem:ea,uptime:Zs,loadavg:Qs,hostname:Js,endianness:Xs},fa=(e,t)=>{t=t||Ar.argv;const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),i=t.indexOf("--");return-1!==r&&(-1===i||r=2,has16m:e>=3}}(function(e){if(!1===ma)return 0;if(fa("color=16m")||fa("color=full")||fa("color=truecolor"))return 3;if(fa("color=256"))return 2;if(e&&!e.isTTY&&!0!==ma)return 0;const t=ma?1:0;if("win32"===Ar.platform){const e=ha.release().split(".");return Number(Ar.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in da)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in da)||"codeship"===da.CI_NAME?1:t;if("TEAMCITY_VERSION"in da)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(da.TEAMCITY_VERSION)?1:0;if("truecolor"===da.COLORTERM)return 3;if("TERM_PROGRAM"in da){const e=parseInt((da.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(da.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(da.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(da.TERM)||"COLORTERM"in da?1:(da.TERM,t)}(e))}fa("no-color")||fa("no-colors")||fa("color=false")?ma=!1:(fa("color")||fa("colors")||fa("color=true")||fa("color=always"))&&(ma=!0),"FORCE_COLOR"in da&&(ma=0===da.FORCE_COLOR.length||0!==parseInt(da.FORCE_COLOR,10));var ya={supportsColor:ga,stdout:ga(Ar.stdout),stderr:ga(Ar.stderr)};const va=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,ba=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Da=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,wa=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Ca=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function xa(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):Ca.get(e)||e}function Ea(e,t){const n=[],r=t.trim().split(/\s*,\s*/g);let i;for(const o of r)if(isNaN(o)){if(!(i=o.match(Da)))throw new Error(`Invalid Chalk template style argument: ${o} (in style '${e}')`);n.push(i[2].replace(wa,(e,t,n)=>t?xa(t):n))}else n.push(Number(o));return n}function _a(e){ba.lastIndex=0;const t=[];let n;for(;null!==(n=ba.exec(e));){const e=n[1];if(n[2]){const r=Ea(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function ka(e,t){const n={};for(const i of t)for(const e of i.styles)n[e[0]]=i.inverse?null:e.slice(1);let r=e;for(const i of Object.keys(n))if(Array.isArray(n[i])){if(!(i in r))throw new Error("Unknown Chalk style: "+i);r=n[i].length>0?r[i].apply(r,n[i]):r[i]}return r}var Ta=(e,t)=>{const n=[],r=[];let i=[];if(t.replace(va,(t,o,s,a,u,l)=>{if(o)i.push(xa(o));else if(a){const t=i.join("");i=[],r.push(0===n.length?t:ka(e,n)(t)),n.push({inverse:s,styles:_a(a)})}else if(u){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");r.push(ka(e,n)(i.join(""))),i=[],n.pop()}else i.push(l)}),r.push(i.join("")),n.length>0){const e=`Chalk template literal is missing ${n.length} closing bracket${1===n.length?"":"s"} (\`}\`)`;throw new Error(e)}return r.join("")},Sa=i((function(e){const t=ya.stdout,n="win32"===Ar.platform&&!(Ar.env.TERM||"").toLowerCase().startsWith("xterm"),r=["ansi","ansi","ansi256","ansi16m"],i=new Set(["gray"]),o=Object.create(null);function s(e,n){n=n||{};const r=t?t.level:0;e.level=void 0===n.level?r:n.level,e.enabled="enabled"in n?n.enabled:e.level>0}function a(e){if(!this||!(this instanceof a)||this.template){const t={};return s(t,e),t.template=function(){const e=[].slice.call(arguments);return p.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,a.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=a,t.template}s(this,e)}n&&(Ys.blue.open="");for(const f of Object.keys(Ys))Ys[f].closeRe=new RegExp($s(Ys[f].close),"g"),o[f]={get(){const e=Ys[f];return l.call(this,this._styles?this._styles.concat(e):[e],this._empty,f)}};o.visible={get(){return l.call(this,this._styles||[],!0,"visible")}},Ys.color.closeRe=new RegExp($s(Ys.color.close),"g");for(const f of Object.keys(Ys.color.ansi))i.has(f)||(o[f]={get(){const e=this.level;return function(){const t=Ys.color[r[e]][f].apply(null,arguments),n={open:t,close:Ys.color.close,closeRe:Ys.color.closeRe};return l.call(this,this._styles?this._styles.concat(n):[n],this._empty,f)}}});Ys.bgColor.closeRe=new RegExp($s(Ys.bgColor.close),"g");for(const f of Object.keys(Ys.bgColor.ansi))i.has(f)||(o["bg"+f[0].toUpperCase()+f.slice(1)]={get(){const e=this.level;return function(){const t=Ys.bgColor[r[e]][f].apply(null,arguments),n={open:t,close:Ys.bgColor.close,closeRe:Ys.bgColor.closeRe};return l.call(this,this._styles?this._styles.concat(n):[n],this._empty,f)}}});const u=Object.defineProperties(()=>{},o);function l(e,t,n){const r=function(){return c.apply(r,arguments)};r._styles=e,r._empty=t;const i=this;return Object.defineProperty(r,"level",{enumerable:!0,get:()=>i.level,set(e){i.level=e}}),Object.defineProperty(r,"enabled",{enumerable:!0,get:()=>i.enabled,set(e){i.enabled=e}}),r.hasGrey=this.hasGrey||"gray"===n||"grey"===n,r.__proto__=u,r}function c(){const e=arguments,t=e.length;let r=String(arguments[0]);if(0===t)return"";if(t>1)for(let n=1;n{const r=[Sa.default.yellow("string"==typeof e?n.key(e):n.pair(e))+" is deprecated"];return t&&r.push("we now treat it as "+Sa.default.blue("string"==typeof t?n.key(t):n.pair(t))),r.join("; ")+"."}},"__esModule",{value:!0}),Oa=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Ls.__exportStar(Aa,t)})),Fa=Object.defineProperty({commonInvalidHandler:(e,t,n)=>[`Invalid ${Sa.default.red(n.descriptor.key(e))} value.`,`Expected ${Sa.default.blue(n.schemas[e].expected(n))},`,`but received ${Sa.default.red(n.descriptor.value(t))}.`].join(" ")},"__esModule",{value:!0}),Na=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Ls.__exportStar(Fa,t)})),Ia=[],Pa=[],Ma=Object.defineProperty({levenUnknownHandler:(e,t,{descriptor:n,logger:r,schemas:i})=>{const o=[`Ignored unknown option ${Sa.default.yellow(n.pair({key:e,value:t}))}.`],s=Object.keys(i).sort().find(t=>function(e,t){if(e===t)return 0;var n=e;e.length>t.length&&(e=t,t=n);var r=e.length,i=t.length;if(0===r)return i;if(0===i)return r;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-i);)r--,i--;if(0===r)return i;for(var o,s,a,u,l=0;ls?u>s?s+1:u:u>a?a+1:u;return s}(e,t)<3);s&&o.push(`Did you mean ${Sa.default.blue(n.key(s))}?`),r.warn(o.join(" "))}},"__esModule",{value:!0}),La=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Ls.__exportStar(Ma,t)})),ja=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Ls.__exportStar(Oa,t),Ls.__exportStar(Na,t),Ls.__exportStar(La,t)}));const Ba=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function Ra(e,t){const n=new e(t),r=Object.create(n);for(const i of Ba)i in t&&(r[i]=qa(t[i],n,Ha.prototype[i].length));return r}var $a=Ra;class Ha{constructor(e){this.name=e.name}static create(e){return Ra(this,e)}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,n){return e}preprocess(e,t){return e}postprocess(e,t){return e}}var Ua=Ha;function qa(e,t,n){return"function"==typeof e?(...r)=>e(...r.slice(0,n-1),t,...r.slice(n-1)):()=>e}var za=Object.defineProperty({createSchema:$a,Schema:Ua},"__esModule",{value:!0});class Va extends za.Schema{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}}var Wa=Va,Ga=Object.defineProperty({AliasSchema:Wa},"__esModule",{value:!0});class Ka extends za.Schema{expected(){return"anything"}validate(){return!0}}var Ya=Ka,Xa=Object.defineProperty({AnySchema:Ya},"__esModule",{value:!0});class Ja extends za.Schema{constructor(e){var{valueSchema:t,name:n=t.name}=e,r=Ls.__rest(e,["valueSchema","name"]);super(Object.assign({},r,{name:n})),this._valueSchema=t}expected(e){return"an array of "+this._valueSchema.expected(e)}validate(e,t){if(!Array.isArray(e))return!1;const n=[];for(const r of e){const e=t.normalizeValidateResult(this._valueSchema.validate(r,t),r);!0!==e&&n.push(e.value)}return 0===n.length||{value:n}}deprecated(e,t){const n=[];for(const r of e){const e=t.normalizeDeprecatedResult(this._valueSchema.deprecated(r,t),r);!1!==e&&n.push(...e.map(({value:e})=>({value:[e]})))}return n}forward(e,t){const n=[];for(const r of e){const e=t.normalizeForwardResult(this._valueSchema.forward(r,t),r);n.push(...e.map(Za))}return n}redirect(e,t){const n=[],r=[];for(const i of e){const e=t.normalizeRedirectResult(this._valueSchema.redirect(i,t),i);"remain"in e&&n.push(e.remain),r.push(...e.redirect.map(Za))}return 0===n.length?{redirect:r}:{redirect:r,remain:n}}overlap(e,t){return e.concat(t)}}var Qa=Ja;function Za({from:e,to:t}){return{from:[e],to:t}}var eu=Object.defineProperty({ArraySchema:Qa},"__esModule",{value:!0});class tu extends za.Schema{expected(){return"true or false"}validate(e){return"boolean"==typeof e}}var nu=tu,ru=Object.defineProperty({BooleanSchema:nu},"__esModule",{value:!0}),iu=function(e,t){const n=Object.create(null);for(const r of e){const e=r[t];if(n[e])throw new Error(`Duplicate ${t} ${JSON.stringify(e)}`);n[e]=r}return n},ou=function(e,t){const n=new Map;for(const r of e){const e=r[t];if(n.has(e))throw new Error(`Duplicate ${t} ${JSON.stringify(e)}`);n.set(e,r)}return n},su=function(){const e=Object.create(null);return t=>{const n=JSON.stringify(t);return!!e[n]||(e[n]=!0,!1)}},au=function(e,t){const n=[],r=[];for(const i of e)t(i)?n.push(i):r.push(i);return[n,r]},uu=function(e){return e===Math.floor(e)},lu=function(e,t){if(e===t)return 0;const n=typeof e,r=typeof t,i=["undefined","object","boolean","number","string"];return n!==r?i.indexOf(n)-i.indexOf(r):"string"!==n?Number(e)-Number(t):e.localeCompare(t)},cu=function(e){return void 0===e?{}:e},pu=function(e,t){return!0===e||(!1===e?{value:t}:e)},fu=function(e,t,n=!1){return!1!==e&&(!0===e?!!n||[{value:t}]:"value"in e?[e]:0!==e.length&&e)};function hu(e,t){return"string"==typeof e||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}var du=hu;function mu(e,t){return void 0===e?[]:Array.isArray(e)?e.map(e=>hu(e,t)):[hu(e,t)]}var gu=mu,yu=function(e,t){const n=mu("object"==typeof e&&"redirect"in e?e.redirect:e,t);return 0===n.length?{remain:t,redirect:n}:"object"==typeof e&&"remain"in e?{remain:e.remain,redirect:n}:{redirect:n}},vu=Object.defineProperty({recordFromArray:iu,mapFromArray:ou,createAutoChecklist:su,partition:au,isInt:uu,comparePrimitive:lu,normalizeDefaultResult:cu,normalizeValidateResult:pu,normalizeDeprecatedResult:fu,normalizeTransferResult:du,normalizeForwardResult:gu,normalizeRedirectResult:yu},"__esModule",{value:!0});class bu extends za.Schema{constructor(e){super(e),this._choices=vu.mapFromArray(e.choices.map(e=>e&&"object"==typeof e?e:{value:e}),"value")}expected({descriptor:e}){const t=Array.from(this._choices.keys()).map(e=>this._choices.get(e)).filter(e=>!e.deprecated).map(e=>e.value).sort(vu.comparePrimitive).map(e.value),n=t.slice(0,-2),r=t.slice(-2);return n.concat(r.join(" or ")).join(", ")}validate(e){return this._choices.has(e)}deprecated(e){const t=this._choices.get(e);return!(!t||!t.deprecated)&&{value:e}}forward(e){const t=this._choices.get(e);return t?t.forward:void 0}redirect(e){const t=this._choices.get(e);return t?t.redirect:void 0}}var Du=bu,wu=Object.defineProperty({ChoiceSchema:Du},"__esModule",{value:!0});class Cu extends za.Schema{expected(){return"a number"}validate(e,t){return"number"==typeof e}}var xu=Cu,Eu=Object.defineProperty({NumberSchema:xu},"__esModule",{value:!0});class _u extends Eu.NumberSchema{expected(){return"an integer"}validate(e,t){return!0===t.normalizeValidateResult(super.validate(e,t),e)&&vu.isInt(e)}}var ku=_u,Tu=Object.defineProperty({IntegerSchema:ku},"__esModule",{value:!0});class Su extends za.Schema{expected(){return"a string"}validate(e){return"string"==typeof e}}var Au=Su,Ou=Object.defineProperty({StringSchema:Au},"__esModule",{value:!0}),Fu=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Ls.__exportStar(Ga,t),Ls.__exportStar(Xa,t),Ls.__exportStar(eu,t),Ls.__exportStar(ru,t),Ls.__exportStar(wu,t),Ls.__exportStar(Tu,t),Ls.__exportStar(Eu,t),Ls.__exportStar(Ou,t)})),Nu=js.apiDescriptor,Iu=Ma.levenUnknownHandler,Pu=Na.commonInvalidHandler,Mu=Aa.commonDeprecatedHandler,Lu=Object.defineProperty({defaultDescriptor:Nu,defaultUnknownHandler:Iu,defaultInvalidHandler:Pu,defaultDeprecatedHandler:Mu},"__esModule",{value:!0});class ju{constructor(e,t){const{logger:n=console,descriptor:r=Lu.defaultDescriptor,unknown:i=Lu.defaultUnknownHandler,invalid:o=Lu.defaultInvalidHandler,deprecated:s=Lu.defaultDeprecatedHandler}=t||{};this._utils={descriptor:r,logger:n||{warn:()=>{}},schemas:vu.recordFromArray(e,"name"),normalizeDefaultResult:vu.normalizeDefaultResult,normalizeDeprecatedResult:vu.normalizeDeprecatedResult,normalizeForwardResult:vu.normalizeForwardResult,normalizeRedirectResult:vu.normalizeRedirectResult,normalizeValidateResult:vu.normalizeValidateResult},this._unknownHandler=i,this._invalidHandler=o,this._deprecatedHandler=s,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=vu.createAutoChecklist()}normalize(e){const t={},n=[e],r=()=>{for(;0!==n.length;){const e=n.shift(),r=this._applyNormalization(e,t);n.push(...r)}};r();for(const i of Object.keys(this._utils.schemas)){const e=this._utils.schemas[i];if(!(i in t)){const t=vu.normalizeDefaultResult(e.default(this._utils));"value"in t&&n.push({[i]:t.value})}}r();for(const i of Object.keys(this._utils.schemas)){const e=this._utils.schemas[i];i in t&&(t[i]=e.postprocess(t[i],this._utils))}return t}_applyNormalization(e,t){const n=[],[r,i]=vu.partition(Object.keys(e),e=>e in this._utils.schemas);for(const o of r){const r=this._utils.schemas[o],i=r.preprocess(e[o],this._utils),s=vu.normalizeValidateResult(r.validate(i,this._utils),i);if(!0!==s){const{value:e}=s,t=this._invalidHandler(o,e,this._utils);throw"string"==typeof t?new Error(t):t}const a=({from:e,to:t})=>{n.push("string"==typeof t?{[t]:e}:{[t.key]:t.value})},u=({value:e,redirectTo:t})=>{const n=vu.normalizeDeprecatedResult(r.deprecated(e,this._utils),i,!0);if(!1!==n)if(!0===n)this._hasDeprecationWarned(o)||this._utils.logger.warn(this._deprecatedHandler(o,t,this._utils));else for(const{value:r}of n){const e={key:o,value:r};if(!this._hasDeprecationWarned(e)){const n="string"==typeof t?{key:t,value:r}:t;this._utils.logger.warn(this._deprecatedHandler(e,n,this._utils))}}};vu.normalizeForwardResult(r.forward(i,this._utils),i).forEach(a);const l=vu.normalizeRedirectResult(r.redirect(i,this._utils),i);if(l.redirect.forEach(a),"remain"in l){const e=l.remain;t[o]=o in t?r.overlap(t[o],e,this._utils):e,u({value:e})}for(const{from:e,to:t}of l.redirect)u({value:e,redirectTo:t})}for(const o of i){const r=e[o],i=this._unknownHandler(o,r,this._utils);if(i)for(const e of Object.keys(i)){const r={[e]:i[e]};e in this._utils.schemas?n.push(r):Object.assign(t,r)}}return n}}var Bu=ju,Ru=Object.defineProperty({normalize:(e,t,n)=>new ju(t,n).normalize(e),Normalizer:Bu},"__esModule",{value:!0}),$u=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Ls.__exportStar(Bs,t),Ls.__exportStar(ja,t),Ls.__exportStar(Fu,t),Ls.__exportStar(Ru,t),Ls.__exportStar(za,t)}));const Hu=[],Uu=[],qu=(e,t)=>{if(e===t)return 0;const n=e;e.length>t.length&&(e=t,t=n);let r=e.length,i=t.length;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-i);)r--,i--;let o,s,a,u,l=0;for(;ls?u>s?s+1:u:u>a?a+1:u;return s};var zu=qu,Vu=qu;zu.default=Vu;var Wu={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const Gu={};for(const t of Object.keys(Wu))Gu[Wu[t]]=t;const Ku={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var Yu=Ku;for(const t of Object.keys(Ku)){if(!("channels"in Ku[t]))throw new Error("missing channels property: "+t);if(!("labels"in Ku[t]))throw new Error("missing channel labels property: "+t);if(Ku[t].labels.length!==Ku[t].channels)throw new Error("channel and label counts mismatch: "+t);const{channels:e,labels:n}=Ku[t];delete Ku[t].channels,delete Ku[t].labels,Object.defineProperty(Ku[t],"channels",{value:e}),Object.defineProperty(Ku[t],"labels",{value:n})}function Xu(e){const t=function(){const e={},t=Object.keys(Yu);for(let n=t.length,r=0;r1&&(i-=1)),[360*i,100*o,100*l]},Ku.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const i=Ku.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[i,100*o,100*r]},Ku.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(1-t,1-n,1-r);return[100*((1-t-i)/(1-i)||0),100*((1-n-i)/(1-i)||0),100*((1-r-i)/(1-i)||0),100*i]},Ku.rgb.keyword=function(e){const t=Gu[e];if(t)return t;let n,r=1/0;for(const s of Object.keys(Wu)){const t=(o=Wu[s],((i=e)[0]-o[0])**2+(i[1]-o[1])**2+(i[2]-o[2])**2);t.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,[100*(.4124*t+.3576*n+.1805*r),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},Ku.rgb.lab=function(e){const t=Ku.rgb.xyz(e);let n=t[0],r=t[1],i=t[2];return n/=95.047,r/=100,i/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,[116*r-16,500*(n-r),200*(r-i)]},Ku.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let i,o,s;if(0===n)return s=255*r,[s,s,s];i=r<.5?r*(1+n):r+n-r*n;const a=2*r-i,u=[0,0,0];for(let l=0;l<3;l++)o=t+1/3*-(l-1),o<0&&o++,o>1&&o--,s=6*o<1?a+6*(i-a)*o:2*o<1?i:3*o<2?a+(i-a)*(2/3-o)*6:a,u[l]=255*s;return u},Ku.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,i=n;const o=Math.max(r,.01);return r*=2,n*=r<=1?r:2-r,i*=o<=1?o:2-o,[t,100*(0===r?2*i/(o+i):2*n/(r+n)),(r+n)/2*100]},Ku.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const i=Math.floor(t)%6,o=t-Math.floor(t),s=255*r*(1-n),a=255*r*(1-n*o),u=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,u,s];case 1:return[a,r,s];case 2:return[s,r,u];case 3:return[s,a,r];case 4:return[u,s,r];case 5:return[r,s,a]}},Ku.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01);let o,s;s=(2-n)*r;const a=(2-n)*i;return o=n*i,o/=a<=1?a:2-a,o=o||0,s/=2,[t,100*o,100*s]},Ku.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const i=n+r;let o;i>1&&(n/=i,r/=i);const s=Math.floor(6*t),a=1-r;o=6*t-s,0!=(1&s)&&(o=1-o);const u=n+o*(a-n);let l,c,p;switch(s){default:case 6:case 0:l=a,c=u,p=n;break;case 1:l=u,c=a,p=n;break;case 2:l=n,c=a,p=u;break;case 3:l=n,c=u,p=a;break;case 4:l=u,c=n,p=a;break;case 5:l=a,c=n,p=u}return[255*l,255*c,255*p]},Ku.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},Ku.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let i,o,s;return i=3.2406*t+-1.5372*n+-.4986*r,o=-.9689*t+1.8758*n+.0415*r,s=.0557*t+-.204*n+1.057*r,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),[255*i,255*o,255*s]},Ku.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];return t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,[116*n-16,500*(t-n),200*(n-r)]},Ku.lab.xyz=function(e){let t,n,r;n=(e[0]+16)/116,t=e[1]/500+n,r=n-e[2]/200;const i=n**3,o=t**3,s=r**3;return n=i>.008856?i:(n-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,t*=95.047,n*=100,r*=108.883,[t,n,r]},Ku.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let i;return i=360*Math.atan2(r,n)/2/Math.PI,i<0&&(i+=360),[t,Math.sqrt(n*n+r*r),i]},Ku.lch.lab=function(e){const t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},Ku.rgb.ansi16=function(e,t=null){const[n,r,i]=e;let o=null===t?Ku.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),0===o)return 30;let s=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===o&&(s+=60),s},Ku.hsv.ansi16=function(e){return Ku.rgb.ansi16(Ku.hsv.rgb(e),e[2])},Ku.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},Ku.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},Ku.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},Ku.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},Ku.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map(e=>e+e).join(""));const r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},Ku.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),o=Math.min(Math.min(t,n),r),s=i-o;let a,u;return a=s<1?o/(1-s):0,u=s<=0?0:i===t?(n-r)/s%6:i===n?2+(r-t)/s:4+(t-n)/s,u/=6,u%=1,[360*u,100*s,100*a]},Ku.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let i=0;return r<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},Ku.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},Ku.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];const i=[0,0,0],o=t%1*6,s=o%1,a=1-s;let u=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return u=(1-n)*r,[255*(n*i[0]+u),255*(n*i[1]+u),255*(n*i[2]+u)]},Ku.hcg.hsv=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);let r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},Ku.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},Ku.hcg.hwb=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},Ku.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,r=n-t;let i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},Ku.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},Ku.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},Ku.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},Ku.gray.hsl=function(e){return[0,0,e[0]]},Ku.gray.hsv=Ku.gray.hsl,Ku.gray.hwb=function(e){return[0,100,e[0]]},Ku.gray.cmyk=function(e){return[0,0,0,e[0]]},Ku.gray.lab=function(e){return[e[0],0,0]},Ku.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},Ku.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const Zu={};Object.keys(Yu).forEach(e=>{Zu[e]={},Object.defineProperty(Zu[e],"channels",{value:Yu[e].channels}),Object.defineProperty(Zu[e],"labels",{value:Yu[e].labels});const t=function(e){const t=Xu(e),n={},r=Object.keys(t);for(let i=r.length,o=0;o{const r=t[n];Zu[e][n]=function(e){const t=function(...t){const n=t[0];if(null==n)return n;n.length>1&&(t=n);const r=e(t);if("object"==typeof r)for(let e=r.length,i=0;i1&&(t=n),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)})});var el=Zu,tl=i((function(e){const t=(e,t)=>(...n)=>`[${e(...n)+t}m`,n=(e,t)=>(...n)=>{const r=e(...n);return`[${38+t};5;${r}m`},r=(e,t)=>(...n)=>{const r=e(...n);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`},i=e=>e,o=(e,t,n)=>[e,t,n],s=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{const r=n();return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0}),r},enumerable:!0,configurable:!0})};let a;const u=(e,t,n,r)=>{void 0===a&&(a=el);const i=r?10:0,o={};for(const[s,u]of Object.entries(a)){const r="ansi16"===s?"ansi":s;s===t?o[r]=e(n,i):"object"==typeof u&&(o[r]=e(u[t],i))}return o};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,a={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};a.color.gray=a.color.blackBright,a.bgColor.bgGray=a.bgColor.bgBlackBright,a.color.grey=a.color.blackBright,a.bgColor.bgGrey=a.bgColor.bgBlackBright;for(const[t,n]of Object.entries(a)){for(const[t,r]of Object.entries(n))a[t]={open:`[${r[0]}m`,close:`[${r[1]}m`},n[t]=a[t],e.set(r[0],r[1]);Object.defineProperty(a,t,{value:n,enumerable:!1})}return Object.defineProperty(a,"codes",{value:e,enumerable:!1}),a.color.close="",a.bgColor.close="",s(a.color,"ansi",()=>u(t,"ansi16",i,!1)),s(a.color,"ansi256",()=>u(n,"ansi256",i,!1)),s(a.color,"ansi16m",()=>u(r,"rgb",o,!1)),s(a.bgColor,"ansi",()=>u(t,"ansi16",i,!0)),s(a.bgColor,"ansi256",()=>u(n,"ansi256",i,!0)),s(a.bgColor,"ansi16m",()=>u(r,"rgb",o,!0)),a}})}));function nl(){return!1}function rl(){throw new Error("tty.ReadStream is not implemented")}function il(){throw new Error("tty.ReadStream is not implemented")}var ol={isatty:nl,ReadStream:rl,WriteStream:il},sl=(e,t=Ar.argv)=>{const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),i=t.indexOf("--");return-1!==r&&(-1===i||r=2,has16m:e>=3}}function pl(e,t){if(0===ll)return 0;if(sl("color=16m")||sl("color=full")||sl("color=truecolor"))return 3;if(sl("color=256"))return 2;if(e&&!t&&void 0===ll)return 0;const n=ll||0;if("dumb"===ul.TERM)return n;if("win32"===Ar.platform){const e=ha.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in ul)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(e=>e in ul)||"codeship"===ul.CI_NAME?1:n;if("TEAMCITY_VERSION"in ul)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ul.TEAMCITY_VERSION)?1:0;if("truecolor"===ul.COLORTERM)return 3;if("TERM_PROGRAM"in ul){const e=parseInt((ul.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ul.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ul.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ul.TERM)||"COLORTERM"in ul?1:n}sl("no-color")||sl("no-colors")||sl("color=false")||sl("color=never")?ll=0:(sl("color")||sl("colors")||sl("color=true")||sl("color=always"))&&(ll=1),"FORCE_COLOR"in ul&&(ll="true"===ul.FORCE_COLOR?1:"false"===ul.FORCE_COLOR?0:0===ul.FORCE_COLOR.length?1:Math.min(parseInt(ul.FORCE_COLOR,10),3));var fl={supportsColor:function(e){return cl(pl(e,e&&e.isTTY))},stdout:cl(pl(!0,al.isatty(1))),stderr:cl(pl(!0,al.isatty(2)))},hl={stringReplaceAll:(e,t,n)=>{let r=e.indexOf(t);if(-1===r)return e;const i=t.length;let o=0,s="";do{s+=e.substr(o,r-o)+t+n,o=r+i,r=e.indexOf(t,o)}while(-1!==r);return s+=e.substr(o),s},stringEncaseCRLFWithFirstIndex:(e,t,n,r)=>{let i=0,o="";do{const s="\r"===e[r-1];o+=e.substr(i,(s?r-1:r)-i)+t+(s?"\r\n":"\n")+n,i=r+1,r=e.indexOf("\n",i)}while(-1!==r);return o+=e.substr(i),o}};const dl=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,ml=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,gl=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,yl=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,vl=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function bl(e){const t="u"===e[0],n="{"===e[1];return t&&!n&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):t&&n?String.fromCodePoint(parseInt(e.slice(2,-1),16)):vl.get(e)||e}function Dl(e,t){const n=[],r=t.trim().split(/\s*,\s*/g);let i;for(const o of r){const t=Number(o);if(Number.isNaN(t)){if(!(i=o.match(gl)))throw new Error(`Invalid Chalk template style argument: ${o} (in style '${e}')`);n.push(i[2].replace(yl,(e,t,n)=>t?bl(t):n))}else n.push(t)}return n}function wl(e){ml.lastIndex=0;const t=[];let n;for(;null!==(n=ml.exec(e));){const e=n[1];if(n[2]){const r=Dl(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function Cl(e,t){const n={};for(const i of t)for(const e of i.styles)n[e[0]]=i.inverse?null:e.slice(1);let r=e;for(const[i,o]of Object.entries(n))if(Array.isArray(o)){if(!(i in r))throw new Error("Unknown Chalk style: "+i);r=o.length>0?r[i](...o):r[i]}return r}var xl=(e,t)=>{const n=[],r=[];let i=[];if(t.replace(dl,(t,o,s,a,u,l)=>{if(o)i.push(bl(o));else if(a){const t=i.join("");i=[],r.push(0===n.length?t:Cl(e,n)(t)),n.push({inverse:s,styles:wl(a)})}else if(u){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");r.push(Cl(e,n)(i.join(""))),i=[],n.pop()}else i.push(l)}),r.push(i.join("")),n.length>0){const e=`Chalk template literal is missing ${n.length} closing bracket${1===n.length?"":"s"} (\`}\`)`;throw new Error(e)}return r.join("")};const{stdout:El,stderr:_l}=fl,{stringReplaceAll:kl,stringEncaseCRLFWithFirstIndex:Tl}=hl,{isArray:Sl}=Array,Al=["ansi","ansi","ansi256","ansi16m"],Ol=Object.create(null);class Fl{constructor(e){return Nl(e)}}const Nl=e=>{const t={};return((e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const n=El?El.level:0;e.level=void 0===t.level?n:t.level})(t,e),t.template=(...e)=>$l(t.template,...e),Object.setPrototypeOf(t,Il.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=Fl,t.template};function Il(e){return Nl(e)}for(const[t,ZH]of Object.entries(tl))Ol[t]={get(){const e=jl(this,Ll(ZH.open,ZH.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:e}),e}};Ol.visible={get(){const e=jl(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};const Pl=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const t of Pl)Ol[t]={get(){const{level:e}=this;return function(...n){const r=Ll(tl.color[Al[e]][t](...n),tl.color.close,this._styler);return jl(this,r,this._isEmpty)}}};for(const t of Pl)Ol["bg"+t[0].toUpperCase()+t.slice(1)]={get(){const{level:e}=this;return function(...n){const r=Ll(tl.bgColor[Al[e]][t](...n),tl.bgColor.close,this._styler);return jl(this,r,this._isEmpty)}}};const Ml=Object.defineProperties(()=>{},Object.assign(Object.assign({},Ol),{},{level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}})),Ll=(e,t,n)=>{let r,i;return void 0===n?(r=e,i=t):(r=n.openAll+e,i=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:i,parent:n}},jl=(e,t,n)=>{const r=(...e)=>Sl(e[0])&&Sl(e[0].raw)?Bl(r,$l(r,...e)):Bl(r,1===e.length?""+e[0]:e.join(" "));return Object.setPrototypeOf(r,Ml),r._generator=e,r._styler=t,r._isEmpty=n,r},Bl=(e,t)=>{if(e.level<=0||!t)return e._isEmpty?"":t;let n=e._styler;if(void 0===n)return t;const{openAll:r,closeAll:i}=n;if(-1!==t.indexOf(""))for(;void 0!==n;)t=kl(t,n.close,n.open),n=n.parent;const o=t.indexOf("\n");return-1!==o&&(t=Tl(t,i,r,o)),r+t+i};let Rl;const $l=(e,...t)=>{const[n]=t;if(!Sl(n)||!Sl(n.raw))return t.join(" ");const r=t.slice(1),i=[n.raw[0]];for(let o=1;o1===e.length?"-"+e:"--"+e,value:e=>$u.apiDescriptor.value(e),pair:({key:e,value:t})=>!1===t?"--no-"+e:!0===t?zl.key(e):""===t?zl.key(e)+" without an argument":`${zl.key(e)}=${t}`};class Vl extends $u.ChoiceSchema{constructor({name:e,flags:t}){super({name:e,choices:t}),this._flags=[...t].sort()}preprocess(e,t){if("string"==typeof e&&e.length>0&&!this._flags.includes(e)){const n=this._flags.find(t=>zu(t,e)<3);if(n)return t.logger.warn([`Unknown flag ${Ul.yellow(t.descriptor.value(e))},`,`did you mean ${Ul.blue(t.descriptor.value(n))}?`].join(" ")),n}return e}expected(){return"a flag"}}let Wl;function Gl(e,t,{logger:n,isCLI:r=!1,passThrough:i=!1}={}){const o=i?Array.isArray(i)?(e,t)=>i.includes(e)?{[e]:t}:void 0:(e,t)=>({[e]:t}):(e,t,n)=>{const r=Rn(n.schemas,ql);return $u.levenUnknownHandler(e,t,Object.assign(Object.assign({},n),{},{schemas:r}))},s=r?zl:$u.apiDescriptor,a=function(e,{isCLI:t}){const n=[];t&&n.push($u.AnySchema.create({name:"_"}));for(const r of e)n.push(Kl(r,{isCLI:t,optionInfos:e})),r.alias&&t&&n.push($u.AliasSchema.create({name:r.alias,sourceName:r.name}));return n}(t,{isCLI:r}),u=new $u.Normalizer(a,{logger:n,unknown:o,descriptor:s}),l=!1!==n;l&&Wl&&(u._hasDeprecationWarned=Wl);const c=u.normalize(e);return l&&(Wl=u._hasDeprecationWarned),c}function Kl(e,{isCLI:t,optionInfos:n}){let r;const i={name:e.name},o={};switch(e.type){case"int":r=$u.IntegerSchema,t&&(i.preprocess=e=>Number(e));break;case"string":r=$u.StringSchema;break;case"choice":r=$u.ChoiceSchema,i.choices=e.choices.map(t=>"object"==typeof t&&t.redirect?Object.assign(Object.assign({},t),{},{redirect:{to:{key:e.name,value:t.redirect}}}):t);break;case"boolean":r=$u.BooleanSchema;break;case"flag":r=Vl,i.flags=n.flatMap(e=>[e.alias,e.description&&e.name,e.oppositeDescription&&"no-"+e.name].filter(Boolean));break;case"path":r=$u.StringSchema;break;default:throw new Error("Unexpected type "+e.type)}if(e.exception?i.validate=(t,n,r)=>e.exception(t)||n.validate(t,r):i.validate=(e,t,n)=>void 0===e||t.validate(e,n),e.redirect&&(o.redirect=t=>t?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(o.deprecated=!0),t&&!e.array){const e=i.preprocess||(e=>e);i.preprocess=(t,n,r)=>n.preprocess(e(Array.isArray(t)?Bn(t):t),r)}return e.array?$u.ArraySchema.create(Object.assign(Object.assign(Object.assign({},t?{preprocess:e=>Array.isArray(e)?e:[e]}:{}),o),{},{valueSchema:r.create(i)})):r.create(Object.assign(Object.assign({},i),o))}var Yl={normalizeApiOptions:function(e,t,n){return Gl(e,t,n)},normalizeCliOptions:function(e,t,n){return Gl(e,t,Object.assign({isCLI:!0},n))}};const{isNonEmptyArray:Xl}=_i;function Jl(e,t){const{ignoreDecorators:n}=t||{};if(!n){const t=e.declaration&&e.declaration.decorators||e.decorators;if(Xl(t))return Jl(t[0])}return e.range?e.range[0]:e.start}function Ql(e){return e.range?e.range[1]:e.end}function Zl(e,t){return Jl(e)===Jl(t)}var ec={locStart:Jl,locEnd:Ql,hasSameLocStart:Zl,hasSameLoc:function(e,t){return Zl(e,t)&&function(e,t){return Ql(e)===Ql(t)}(e,t)}},tc=Object.defineProperty({default:/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,matchToToken:function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t}},"__esModule",{value:!0}),nc=fc,rc=hc,ic=function(e){let t=!0;for(let n=0;ne)return!1;if(n+=t[r+1],n>=e)return!0}return!1}function fc(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&ac.test(String.fromCharCode(e)):pc(e,lc)))}function hc(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&uc.test(String.fromCharCode(e)):pc(e,lc)||pc(e,cc))))}var dc=Object.defineProperty({isIdentifierStart:nc,isIdentifierChar:rc,isIdentifierName:ic},"__esModule",{value:!0}),mc=_c,gc=kc,yc=Tc,vc=function(e,t){return kc(e,t)||Tc(e)},bc=function(e){return Cc.has(e)};const Dc=["implements","interface","let","package","private","protected","public","static","yield"],wc=["eval","arguments"],Cc=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),xc=new Set(Dc),Ec=new Set(wc);function _c(e,t){return t&&"await"===e||"enum"===e}function kc(e,t){return _c(e,t)||xc.has(e)}function Tc(e){return Ec.has(e)}var Sc=Object.defineProperty({isReservedWord:mc,isStrictReservedWord:gc,isStrictBindOnlyReservedWord:yc,isStrictBindReservedWord:vc,isKeyword:bc},"__esModule",{value:!0}),Ac=i((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"isIdentifierName",{enumerable:!0,get:function(){return dc.isIdentifierName}}),Object.defineProperty(t,"isIdentifierChar",{enumerable:!0,get:function(){return dc.isIdentifierChar}}),Object.defineProperty(t,"isIdentifierStart",{enumerable:!0,get:function(){return dc.isIdentifierStart}}),Object.defineProperty(t,"isReservedWord",{enumerable:!0,get:function(){return Sc.isReservedWord}}),Object.defineProperty(t,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return Sc.isStrictBindOnlyReservedWord}}),Object.defineProperty(t,"isStrictBindReservedWord",{enumerable:!0,get:function(){return Sc.isStrictBindReservedWord}}),Object.defineProperty(t,"isStrictReservedWord",{enumerable:!0,get:function(){return Sc.isStrictReservedWord}}),Object.defineProperty(t,"isKeyword",{enumerable:!0,get:function(){return Sc.isKeyword}})})),Oc=/[|\\{}()[\]^$+*?.]/g,Fc=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(Oc,"\\$&")},Nc=i((function(e){const t=(e,t)=>function(){const n=e.apply(Ks,arguments);return`[${n+t}m`},n=(e,t)=>function(){const n=e.apply(Ks,arguments);return`[${38+t};5;${n}m`},r=(e,t)=>function(){const n=e.apply(Ks,arguments);return`[${38+t};2;${n[0]};${n[1]};${n[2]}m`};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,i={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};i.color.grey=i.color.gray;for(const t of Object.keys(i)){const n=i[t];for(const t of Object.keys(n)){const r=n[t];i[t]={open:`[${r[0]}m`,close:`[${r[1]}m`},n[t]=i[t],e.set(r[0],r[1])}Object.defineProperty(i,t,{value:n,enumerable:!1}),Object.defineProperty(i,"codes",{value:e,enumerable:!1})}const o=e=>e,s=(e,t,n)=>[e,t,n];i.color.close="",i.bgColor.close="",i.color.ansi={ansi:t(o,0)},i.color.ansi256={ansi256:n(o,0)},i.color.ansi16m={rgb:r(s,0)},i.bgColor.ansi={ansi:t(o,10)},i.bgColor.ansi256={ansi256:n(o,10)},i.bgColor.ansi16m={rgb:r(s,10)};for(let a of Object.keys(Ks)){if("object"!=typeof Ks[a])continue;const e=Ks[a];"ansi16"===a&&(a="ansi"),"ansi16"in e&&(i.color.ansi[a]=t(e.ansi16,0),i.bgColor.ansi[a]=t(e.ansi16,10)),"ansi256"in e&&(i.color.ansi256[a]=n(e.ansi256,0),i.bgColor.ansi256[a]=n(e.ansi256,10)),"rgb"in e&&(i.color.ansi16m[a]=r(e.rgb,0),i.bgColor.ansi16m[a]=r(e.rgb,10))}return i}})})),Ic=(e,t)=>{t=t||Ar.argv;const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),i=t.indexOf("--");return-1!==r&&(-1===i||r=2,has16m:e>=3}}(function(e){if(!1===Mc)return 0;if(Ic("color=16m")||Ic("color=full")||Ic("color=truecolor"))return 3;if(Ic("color=256"))return 2;if(e&&!e.isTTY&&!0!==Mc)return 0;const t=Mc?1:0;if("win32"===Ar.platform){const e=ha.release().split(".");return Number(Ar.versions.node.split(".")[0])>=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in Pc)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in Pc)||"codeship"===Pc.CI_NAME?1:t;if("TEAMCITY_VERSION"in Pc)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Pc.TEAMCITY_VERSION)?1:0;if("truecolor"===Pc.COLORTERM)return 3;if("TERM_PROGRAM"in Pc){const e=parseInt((Pc.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Pc.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Pc.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Pc.TERM)||"COLORTERM"in Pc?1:(Pc.TERM,t)}(e))}Ic("no-color")||Ic("no-colors")||Ic("color=false")?Mc=!1:(Ic("color")||Ic("colors")||Ic("color=true")||Ic("color=always"))&&(Mc=!0),"FORCE_COLOR"in Pc&&(Mc=0===Pc.FORCE_COLOR.length||0!==parseInt(Pc.FORCE_COLOR,10));var jc={supportsColor:Lc,stdout:Lc(Ar.stdout),stderr:Lc(Ar.stderr)};const Bc=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Rc=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,$c=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Hc=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Uc=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function qc(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):Uc.get(e)||e}function zc(e,t){const n=[],r=t.trim().split(/\s*,\s*/g);let i;for(const o of r)if(isNaN(o)){if(!(i=o.match($c)))throw new Error(`Invalid Chalk template style argument: ${o} (in style '${e}')`);n.push(i[2].replace(Hc,(e,t,n)=>t?qc(t):n))}else n.push(Number(o));return n}function Vc(e){Rc.lastIndex=0;const t=[];let n;for(;null!==(n=Rc.exec(e));){const e=n[1];if(n[2]){const r=zc(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function Wc(e,t){const n={};for(const i of t)for(const e of i.styles)n[e[0]]=i.inverse?null:e.slice(1);let r=e;for(const i of Object.keys(n))if(Array.isArray(n[i])){if(!(i in r))throw new Error("Unknown Chalk style: "+i);r=n[i].length>0?r[i].apply(r,n[i]):r[i]}return r}var Gc=(e,t)=>{const n=[],r=[];let i=[];if(t.replace(Bc,(t,o,s,a,u,l)=>{if(o)i.push(qc(o));else if(a){const t=i.join("");i=[],r.push(0===n.length?t:Wc(e,n)(t)),n.push({inverse:s,styles:Vc(a)})}else if(u){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");r.push(Wc(e,n)(i.join(""))),i=[],n.pop()}else i.push(l)}),r.push(i.join("")),n.length>0){const e=`Chalk template literal is missing ${n.length} closing bracket${1===n.length?"":"s"} (\`}\`)`;throw new Error(e)}return r.join("")},Kc=i((function(e){const t=jc.stdout,n="win32"===Ar.platform&&!(Ar.env.TERM||"").toLowerCase().startsWith("xterm"),r=["ansi","ansi","ansi256","ansi16m"],i=new Set(["gray"]),o=Object.create(null);function s(e,n){n=n||{};const r=t?t.level:0;e.level=void 0===n.level?r:n.level,e.enabled="enabled"in n?n.enabled:e.level>0}function a(e){if(!this||!(this instanceof a)||this.template){const t={};return s(t,e),t.template=function(){const e=[].slice.call(arguments);return p.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,a.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=a,t.template}s(this,e)}n&&(Nc.blue.open="");for(const f of Object.keys(Nc))Nc[f].closeRe=new RegExp(Fc(Nc[f].close),"g"),o[f]={get(){const e=Nc[f];return l.call(this,this._styles?this._styles.concat(e):[e],this._empty,f)}};o.visible={get(){return l.call(this,this._styles||[],!0,"visible")}},Nc.color.closeRe=new RegExp(Fc(Nc.color.close),"g");for(const f of Object.keys(Nc.color.ansi))i.has(f)||(o[f]={get(){const e=this.level;return function(){const t=Nc.color[r[e]][f].apply(null,arguments),n={open:t,close:Nc.color.close,closeRe:Nc.color.closeRe};return l.call(this,this._styles?this._styles.concat(n):[n],this._empty,f)}}});Nc.bgColor.closeRe=new RegExp(Fc(Nc.bgColor.close),"g");for(const f of Object.keys(Nc.bgColor.ansi))i.has(f)||(o["bg"+f[0].toUpperCase()+f.slice(1)]={get(){const e=this.level;return function(){const t=Nc.bgColor[r[e]][f].apply(null,arguments),n={open:t,close:Nc.bgColor.close,closeRe:Nc.bgColor.closeRe};return l.call(this,this._styles?this._styles.concat(n):[n],this._empty,f)}}});const u=Object.defineProperties(()=>{},o);function l(e,t,n){const r=function(){return c.apply(r,arguments)};r._styles=e,r._empty=t;const i=this;return Object.defineProperty(r,"level",{enumerable:!0,get:()=>i.level,set(e){i.level=e}}),Object.defineProperty(r,"enabled",{enumerable:!0,get:()=>i.enabled,set(e){i.enabled=e}}),r.hasGrey=this.hasGrey||"gray"===n||"grey"===n,r.__proto__=u,r}function c(){const e=arguments,t=e.length;let r=String(arguments[0]);if(0===t)return"";if(t>1)for(let n=1;nt(e)).join("\n"):i}return n}(function(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.grey,invalid:e.white.bgRed.bold}}(n),e)}return e};const Qc=new Set(["as","async","from","get","of","set"]),Zc=/\r\n|[\n\r\u2028\u2029]/,ep=/^[()[\]{}]$/;let tp;{const e=/^[a-z][\w-]*$/i,t=function(t,n,r){if("name"===t.type){if((0,Ac.isKeyword)(t.value)||(0,Ac.isStrictReservedWord)(t.value,!0)||Qc.has(t.value))return"keyword";if(e.test(t.value)&&("<"===r[n-1]||"r?e(t):t,a=e.split(up),{start:u,end:l,markerLines:c}=function(e,t,n){const r=Object.assign({column:0,line:-1},e.start),i=Object.assign({},r,e.end),{linesAbove:o=2,linesBelow:s=3}=n||{},a=r.line,u=r.column,l=i.line,c=i.column;let p=Math.max(a-(o+1),0),f=Math.min(t.length,l+s);-1===a&&(p=0),-1===l&&(f=t.length);const h=l-a,d={};if(h)for(let m=0;m<=h;m++){const e=m+a;if(u)if(0===m){const n=t[e-1].length;d[e]=[u,n-u+1]}else if(m===h)d[e]=[0,c];else{const n=t[e-m].length;d[e]=[0,n]}else d[e]=!0}else d[a]=u===c?!u||[u,0]:[u,c-u];return{start:p,end:f,markerLines:d}}(t,a,n),p=t.start&&"number"==typeof t.start.column,f=String(l).length;let h=(r?(0,ip.default)(e,n):e).split(up).slice(u,l).map((e,t)=>{const r=u+1+t,i=` ${(" "+r).slice(-f)} |`,a=c[r],l=!c[r+1];if(a){let t="";if(Array.isArray(a)){const r=e.slice(0,Math.max(a[0]-1,0)).replace(/[^\t]/g," "),u=a[1]||1;t=["\n ",s(o.gutter,i.replace(/\d/g," "))," ",r,s(o.marker,"^").repeat(u)].join(""),l&&n.message&&(t+=" "+s(o.message,n.message))}return[s(o.marker,">"),s(o.gutter,i),e.length>0?" "+e:"",t].join("")}return` ${s(o.gutter,i)}${e.length>0?" "+e:""}`}).join("\n");return n.message&&!p&&(h=`${" ".repeat(f+1)}${n.message}\n${h}`),r?i.reset(h):h}var cp=Object.defineProperty({codeFrameColumns:op,default:sp},"__esModule",{value:!0}),pp=r(_o);const{ConfigError:fp}=Os,{locStart:hp,locEnd:dp}=ec,mp=Object.getOwnPropertyNames,gp=Object.getOwnPropertyDescriptor;function yp(e){const t={};for(const n of e.plugins)if(n.parsers)for(const e of mp(n.parsers))Object.defineProperty(t,e,gp(n.parsers,e));return t}function vp(e,t=yp(e)){if("function"==typeof e.parser)return{parse:e.parser,astFormat:"estree",locStart:hp,locEnd:dp};if("string"==typeof e.parser){if(Object.prototype.hasOwnProperty.call(t,e.parser))return t[e.parser];throw new fp(`Couldn't resolve parser "${e.parser}". Parsers must be explicitly added to the standalone bundle.`)}}var bp={parse:function(e,t){const n=yp(t),r=Object.defineProperties({},Object.fromEntries(Object.keys(n).map(e=>[e,{enumerable:!0,get:()=>n[e].parse}]))),i=vp(t,n);try{return i.preprocess&&(e=i.preprocess(e,t)),{text:e,ast:i.parse(e,r,t)}}catch(t){const{loc:n}=t;if(n){const{codeFrameColumns:r}=cp;throw t.codeFrame=r(e,n,{highlightCode:!0}),t.message+="\n"+t.codeFrame,t}throw t.stack}},resolveParser:vp};const{UndefinedParserError:Dp}=Os,{getSupportInfo:wp}=si,{resolveParser:Cp}=bp,xp={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function Ep(e,t){const n=pp.basename(e).toLowerCase(),r=wp({plugins:t}).languages.filter(e=>null!==e.since);let i=r.find(e=>e.extensions&&e.extensions.some(e=>n.endsWith(e))||e.filenames&&e.filenames.some(e=>e.toLowerCase()===n));if(!i&&!n.includes(".")){const t=function(e){if("string"!=typeof e)return"";let t;try{t=Es.openSync(e,"r")}catch{return""}try{const e=new _s(t).next().toString("utf8"),n=e.match(/^#!\/(?:usr\/)?bin\/env\s+(\S+)/);if(n)return n[1];const r=e.match(/^#!\/(?:usr\/(?:local\/)?)?bin\/(\S+)/);return r?r[1]:""}catch{return""}finally{try{Es.closeSync(t)}catch{}}}(e);i=r.find(e=>e.interpreters&&e.interpreters.includes(t))}return i&&i.parsers[0]}var _p={normalize:function(e,t={}){const n=Object.assign({},e),r=wp({plugins:e.plugins,showUnreleased:!0,showDeprecated:!0}).options,i=Object.assign(Object.assign({},xp),Object.fromEntries(r.filter(e=>void 0!==e.default).map(e=>[e.name,e.default])));if(!n.parser)if(n.filepath){if(n.parser=Ep(n.filepath,n.plugins),!n.parser)throw new Dp("No parser could be inferred for file: "+n.filepath)}else(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."),n.parser="babel";const o=Cp(Yl.normalizeApiOptions(n,[r.find(e=>"parser"===e.name)],{passThrough:!0,logger:!1}));n.astFormat=o.astFormat,n.locEnd=o.locEnd,n.locStart=o.locStart;const s=function(e){const{astFormat:t}=e;if(!t)throw new Error("getPlugin() requires astFormat to be set");const n=e.plugins.find(e=>e.printers&&e.printers[t]);if(!n)throw new Error(`Couldn't find plugin for AST format "${t}"`);return n}(n);n.printer=s.printers[n.astFormat];const a=Object.fromEntries(r.filter(e=>e.pluginDefaults&&void 0!==e.pluginDefaults[s.name]).map(e=>[e.name,e.pluginDefaults[s.name]])),u=Object.assign(Object.assign({},i),a);for(const[l,c]of Object.entries(u))null!==n[l]&&void 0!==n[l]||(n[l]=c);return"json"===n.parser&&(n.trailingComma="none"),Yl.normalizeApiOptions(n,r,Object.assign({passThrough:Object.keys(xp)},t))},hiddenDefaults:xp,inferParser:Ep},kp=function e(t,n,r){if(Array.isArray(t))return t.map(t=>e(t,n,r)).filter(Boolean);if(!t||"object"!=typeof t)return t;const i=n.printer.massageAstNode;let o;o=i&&i.ignoredProperties?i.ignoredProperties:new Set;const s={};for(const[a,u]of Object.entries(t))o.has(a)||"function"==typeof u||(s[a]=e(u,n,t));if(i){const e=i(t,s,r);if(null===e)return;if(e)return e}return s},Tp="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e};function Sp(e,t){var n={seen:[],stylize:Op};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),Pp(t)?n.showHidden=t:t&&Vp(n,t),jp(n.showHidden)&&(n.showHidden=!1),jp(n.depth)&&(n.depth=2),jp(n.colors)&&(n.colors=!1),jp(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=Ap),Fp(n,e,n.depth)}function Ap(e,t){var n=Sp.styles[t];return n?"["+Sp.colors[n][0]+"m"+e+"["+Sp.colors[n][1]+"m":e}function Op(e,t){return e}function Fp(e,t,n){if(e.customInspect&&t&&Up(t.inspect)&&t.inspect!==Sp&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(n,e);return Lp(r)||(r=Fp(e,r,n)),r}var i=function(e,t){if(jp(t))return e.stylize("undefined","undefined");if(Lp(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return r=t,"number"==typeof r?e.stylize(""+t,"number"):Pp(t)?e.stylize(""+t,"boolean"):Mp(t)?e.stylize("null","null"):void 0;var r}(e,t);if(i)return i;var o=Object.keys(t),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),Hp(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return Np(t);if(0===o.length){if(Up(t)){var a=t.name?": "+t.name:"";return e.stylize("[Function"+a+"]","special")}if(Bp(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if($p(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Hp(t))return Np(t)}var u,l,c="",p=!1,f=["{","}"];return u=t,Array.isArray(u)&&(p=!0,f=["[","]"]),Up(t)&&(c=" [Function"+(t.name?": "+t.name:"")+"]"),Bp(t)&&(c=" "+RegExp.prototype.toString.call(t)),$p(t)&&(c=" "+Date.prototype.toUTCString.call(t)),Hp(t)&&(c=" "+Np(t)),0!==o.length||p&&0!=t.length?n<0?Bp(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),l=p?function(e,t,n,r,i){for(var o=[],s=0,a=t.length;s60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(l,c,f)):f[0]+c+f[1]}function Np(e){return"["+Error.prototype.toString.call(e)+"]"}function Ip(e,t,n,r,i,o){var s,a,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(a=e.stylize("[Setter]","special")),Wp(r,i)||(s="["+i+"]"),a||(e.seen.indexOf(u.value)<0?(a=Mp(n)?Fp(e,u.value,null):Fp(e,u.value,n-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n")):a=e.stylize("[Circular]","special")),jp(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).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 Pp(e){return"boolean"==typeof e}function Mp(e){return null===e}function Lp(e){return"string"==typeof e}function jp(e){return void 0===e}function Bp(e){return Rp(e)&&"[object RegExp]"===zp(e)}function Rp(e){return"object"==typeof e&&null!==e}function $p(e){return Rp(e)&&"[object Date]"===zp(e)}function Hp(e){return Rp(e)&&("[object Error]"===zp(e)||e instanceof Error)}function Up(e){return"function"==typeof e}function qp(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function zp(e){return Object.prototype.toString.call(e)}function Vp(e,t){if(!t||!Rp(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function Wp(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Gp(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i=0){var s=r.indexOf("\n",o+1);r=r.substring(s+1)}this.stack=r}}}function sf(e,t){return"string"==typeof e?e.length=0;a--)if(u[a]!==l[a])return!1;for(a=u.length-1;a>=0;a--)if(!df(e[s=u[a]],t[s],n,r))return!1;return!0}(e,t,n,r))}return n?e===t:e==t}function mf(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function gf(e,t,n){df(e,t,!1)&&uf(e,t,n,"notDeepEqual",gf)}function yf(e,t,n){df(e,t,!0)&&uf(e,t,n,"notDeepStrictEqual",yf)}function vf(e,t,n){e!==t&&uf(e,t,n,"===",vf)}function bf(e,t,n){e===t&&uf(e,t,n,"!==",bf)}function Df(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function wf(e,t,n,r){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),i=function(e){var t;try{e()}catch(e){t=e}return t}(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!i&&uf(i,n,"Missing expected exception"+r);var o="string"==typeof r,s=!e&&i&&!n;if((!e&&Hp(i)&&o&&Df(i,n)||s)&&uf(i,n,"Got unwanted exception"+r),e&&i&&n&&!Df(i,n)||!e&&i)throw i}function Cf(e,t,n){wf(!0,e,t,n)}function xf(e,t,n){wf(!1,e,t,n)}function Ef(e){if(e)throw e}tf.AssertionError=of,Tp(of,Error),tf.fail=uf,tf.ok=lf,tf.equal=cf,tf.notEqual=pf,tf.deepEqual=ff,tf.deepStrictEqual=hf,tf.notDeepEqual=gf,tf.notDeepStrictEqual=yf,tf.strictEqual=vf,tf.notStrictEqual=bf,tf.throws=Cf,tf.doesNotThrow=xf,tf.ifError=Ef;var _f=r(Object.freeze({__proto__:null,default:tf,AssertionError:of,fail:uf,ok:lf,assert:lf,equal:cf,notEqual:pf,deepEqual:ff,deepStrictEqual:hf,notDeepEqual:gf,notDeepStrictEqual:yf,strictEqual:vf,notStrictEqual:bf,throws:Cf,doesNotThrow:xf,ifError:Ef}));const{builders:{line:kf,hardline:Tf,breakParent:Sf,indent:Af,lineSuffix:Of,join:Ff,cursor:Nf}}=uo,{hasNewline:If,skipNewline:Pf,skipSpaces:Mf,isPreviousLineEmpty:Lf,addLeadingComment:jf,addDanglingComment:Bf,addTrailingComment:Rf}=_i,$f=new WeakMap;function Hf(e,t,n){if(!e)return;const{printer:r,locStart:i,locEnd:o}=t;if(n){if(r.canAttachComment&&r.canAttachComment(e)){let t;for(t=n.length-1;t>=0&&!(i(n[t])<=i(e)&&o(n[t])<=o(e));--t);return void n.splice(t+1,0,e)}}else if($f.has(e))return $f.get(e);const s=r.getCommentChildNodes&&r.getCommentChildNodes(e,t)||"object"==typeof e&&Object.entries(e).filter(([e])=>"enclosingNode"!==e&&"precedingNode"!==e&&"followingNode"!==e&&"tokens"!==e&&"comments"!==e).map(([,e])=>e);if(s){n||(n=[],$f.set(e,n));for(const e of s)Hf(e,t,n);return n}}function Uf(e,t,n,r){const{locStart:i,locEnd:o}=n,s=i(t),a=o(t),u=Hf(e,n);let l,c,p=0,f=u.length;for(;p>1,r=u[e],h=i(r),d=o(r);if(h<=s&&a<=d)return Uf(r,t,n,r);if(d<=s)l=r,p=e+1;else{if(!(a<=h))throw new Error("Comment location overlaps with node location");c=r,f=e}}if(r&&"TemplateLiteral"===r.type){const{quasis:e}=r,i=Yf(e,t,n);l&&Yf(e,l,n)!==i&&(l=null),c&&Yf(e,c,n)!==i&&(c=null)}return{enclosingNode:r,precedingNode:l,followingNode:c}}const qf=()=>!1,zf=e=>!/[\S\n\u2028\u2029]/.test(e);function Vf(e,t,n,r){const{comment:i,precedingNode:o}=n[r],{locStart:s,locEnd:a}=t;let u=s(i);if(o)for(let l=r-1;l>=0;l--){const{comment:t,precedingNode:r}=n[l];if(r!==o||!zf(e.slice(a(t),u)))break;u=s(t)}return If(e,u,{backwards:!0})}function Wf(e,t,n,r){const{comment:i,followingNode:o}=n[r],{locStart:s,locEnd:a}=t;let u=a(i);if(o)for(let l=r+1;l0;--u){const{comment:r,precedingNode:s,followingNode:c}=e[u-1];_f.strictEqual(s,i),_f.strictEqual(c,o);const p=t.slice(n.locEnd(r),l);if(!a.test(p))break;l=n.locStart(r)}for(const[c,{comment:p}]of e.entries())c1&&c.comments.sort((e,t)=>n.locStart(e)-n.locStart(t));e.length=0}function Kf(e,t){return e.getValue().printed=!0,t.printer.printComment(e,t)}function Yf(e,t,n){const r=n.locStart(t)-1;for(let i=1;i!n.has(e)));const o=r===t.cursorNode;if(0===i.length){const e=o?Nf:"";return{leading:e,trailing:e}}const s=[],a=[];return e.each(()=>{const r=e.getValue();if(n&&n.has(r))return;const{leading:i,trailing:o}=r;i?s.push(function(e,t){const n=e.getValue(),r=[Kf(e,t)],{printer:i,originalText:o,locStart:s,locEnd:a}=t;if(i.isBlockComment&&i.isBlockComment(n)){const e=If(o,a(n))?If(o,s(n),{backwards:!0})?Tf:kf:" ";r.push(e)}else r.push(Tf);const u=Pf(o,Mf(o,a(n)));return!1!==u&&If(o,u)&&r.push(Tf),r}(e,t)):o&&a.push(function(e,t){const n=e.getValue(),r=Kf(e,t),{printer:i,originalText:o,locStart:s}=t,a=i.isBlockComment&&i.isBlockComment(n);if(If(o,s(n),{backwards:!0})){const e=Lf(o,n,s);return Of([Tf,e?Tf:"",r])}let u=[" ",r];return a||(u=[Of(u),Sf]),u}(e,t))},"comments"),o&&(s.unshift(Nf),a.push(Nf)),{leading:s,trailing:a}}var Jf={attach:function(e,t,n,r){if(!Array.isArray(e))return;const i=[],{locStart:o,locEnd:s,printer:{handleComments:a={}}}=r,{avoidAstMutation:u,ownLine:l=qf,endOfLine:c=qf,remaining:p=qf}=a,f=e.map((i,o)=>Object.assign(Object.assign({},Uf(t,i,r)),{},{comment:i,text:n,options:r,ast:t,isLastComment:e.length-1===o}));for(const[h,d]of f.entries()){const{comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:a,options:m,ast:g,isLastComment:y}=d;if("json"===m.parser||"json5"===m.parser||"__js_expression"===m.parser||"__vue_expression"===m.parser){if(o(e)-o(g)<=0){jf(g,e);continue}if(s(e)-s(g)>=0){Rf(g,e);continue}}let v;if(u?v=[d]:(e.enclosingNode=n,e.precedingNode=t,e.followingNode=r,v=[e,a,m,g,y]),Vf(a,m,f,h))e.placement="ownLine",l(...v)||(r?jf(r,e):t?Rf(t,e):Bf(n||g,e));else if(Wf(a,m,f,h))e.placement="endOfLine",c(...v)||(t?Rf(t,e):r?jf(r,e):Bf(n||g,e));else if(e.placement="remaining",p(...v));else if(t&&r){const e=i.length;e>0&&i[e-1].followingNode!==r&&Gf(i,a,m),i.push(d)}else t?Rf(t,e):r?jf(r,e):Bf(n||g,e)}if(Gf(i,n,r),!u)for(const h of e)delete h.precedingNode,delete h.enclosingNode,delete h.followingNode},printComments:function(e,t,n,r){const{leading:i,trailing:o}=Xf(e,n,r);return i||o?[i,t,o]:t},printCommentsSeparately:Xf,printDanglingComments:function(e,t,n,r){const i=[],o=e.getValue();return o&&o.comments?(e.each(()=>{const n=e.getValue();n.leading||n.trailing||r&&!r(n)||i.push(Kf(e,t))},"comments"),0===i.length?"":n?Ff(Tf,i):Af([Tf,Ff(Tf,i)])):""},getSortedChildNodes:Hf,ensureAllCommentsPrinted:function(e){if(e)for(const t of e){if(!t.printed)throw new Error('Comment "'+t.value.trim()+'" was not printed. Please report this error!');delete t.printed}}};function Qf(e,t){const n=Zf(e.stack,t);return-1===n?null:e.stack[n]}function Zf(e,t){for(let n=e.length-1;n>=0;n-=2){const r=e[n];if(r&&!Array.isArray(r)&&--t<0)return n}return-1}var eh=class{constructor(e){this.stack=[e]}getName(){const{stack:e}=this,{length:t}=e;return t>1?e[t-2]:null}getValue(){return Bn(this.stack)}getNode(e=0){return Qf(this,e)}getParentNode(e=0){return Qf(this,e+1)}call(e,...t){const{stack:n}=this,{length:r}=n;let i=Bn(n);for(const s of t)i=i[s],n.push(s,i);const o=e(this);return n.length=r,o}callParent(e,t=0){const n=Zf(this.stack,t+1),r=this.stack.splice(n+1),i=e(this);return this.stack.push(...r),i}each(e,...t){const{stack:n}=this,{length:r}=n;let i=Bn(n);for(const o of t)i=i[o],n.push(o,i);for(let o=0;o{n[r]=e(t,r,i)},...t),n}try(e){const{stack:t}=this,n=[...t];try{return e()}finally{t.length=0,t.push(...n)}}match(...e){let t=this.stack.length-1,n=null,r=this.stack[t--];for(const i of e){if(void 0===r)return!1;let e=null;if("number"==typeof n&&(e=n,n=this.stack[t--],r=this.stack[t--]),i&&!i(r,n,e))return!1;n=this.stack[t--],r=this.stack[t--]}return!0}findAncestor(e){let t=this.stack.length-1,n=null,r=this.stack[t--];for(;r;){let i=null;if("number"==typeof n&&(i=n,n=this.stack[t--],r=this.stack[t--]),null!==n&&e(r,n,i))return r;n=this.stack[t--],r=this.stack[t--]}}};const{utils:{stripTrailingHardline:th}}=uo,{normalize:nh}=_p;var rh={printSubtree:function(e,t,n,r){if(n.printer.embed&&"auto"===n.embeddedLanguageFormatting)return n.printer.embed(e,t,(e,t,i)=>function(e,t,n,r,{stripTrailingHardline:i=!1}={}){const o=nh(Object.assign(Object.assign(Object.assign({},n),t),{},{parentParser:n.parser,originalText:e}),{passThrough:!0}),s=bp.parse(e,o),{ast:a}=s;e=s.text;const u=a.comments;delete a.comments,Jf.attach(u,a,e,o),o[Symbol.for("comments")]=u||[],o[Symbol.for("tokens")]=a.tokens||[];const l=r(a,o);return Jf.ensureAllCommentsPrinted(u),i?"string"==typeof l?l.replace(/(?:\r?\n)*$/,""):th(l):l}(e,t,n,r,i),n)}};const{builders:{hardline:ih,addAlignmentToDoc:oh},utils:{propagateBreaks:sh}}=uo,{printComments:ah}=Jf;function uh(e,t,r=0){const{printer:i}=t;i.preprocess&&(e=i.preprocess(e,t));const o=new Map,s=new eh(e);let a=u();return r>0&&(a=oh([ih,a],r,t.tabWidth)),sh(a),a;function u(e,t){return void 0===e||e===s?l(t):Array.isArray(e)?s.call(()=>l(t),...e):s.call(()=>l(t),e)}function l(e){const r=s.getValue(),i=r&&"object"==typeof r&&void 0===e;if(i&&o.has(r))return o.get(r);const a=function(e,t,r,i){const o=e.getValue(),{printer:s}=t;let a,u;if(s.hasPrettierIgnore&&s.hasPrettierIgnore(e))({doc:a,printedComments:u}=function(e,t){const{originalText:n,[Symbol.for("comments")]:r,locStart:i,locEnd:o}=t,s=i(e),a=o(e),u=new Set;for(const l of r)i(l)>=s&&o(l)<=a&&(l.printed=!0,u.add(l));return{doc:n.slice(s,a),printedComments:u}}(o,t));else{if(o)try{a=rh.printSubtree(e,r,t,uh)}catch(e){if(n.PRETTIER_DEBUG)throw e}a||(a=s.print(e,t,r,i))}return s.willPrintOwnComments&&s.willPrintOwnComments(e,t)||(a=ah(e,a,t,u)),a}(s,t,u,e);return i&&o.set(r,a),a}}var lh=uh;function ch(e){let t=e.length-1;for(;;){const n=e[t];if(!n||"Program"!==n.type&&"File"!==n.type)break;t--}return e.slice(0,t+1)}function ph(e,t,n,r,i=[],o){const{locStart:s,locEnd:a}=n,u=s(e),l=a(e);if(!(t>l||tr);const a=e.slice(r,i).search(/\S/),u=-1===a;if(!u)for(r+=a;i>r&&!/\S/.test(e[i-1]);--i);const l=ph(n,r,t,(e,n)=>dh(t,e,n),[],"rangeStart"),c=u?l:ph(n,i,t,e=>dh(t,e),[],"rangeEnd");if(!l||!c)return{rangeStart:0,rangeEnd:0};let p,f;if((({parser:e})=>"json"===e||"json5"===e||"json-stringify"===e)(t)){const e=function(e,t){const n=[e.node,...e.parentNodes],r=new Set([t.node,...t.parentNodes]);return n.find(e=>fh.has(e.type)&&r.has(e))}(l,c);p=e,f=e}else({startNode:p,endNode:f}=function(e,t,{locStart:n,locEnd:r}){let i=e.node,o=t.node;if(i===o)return{startNode:i,endNode:o};const s=n(e.node);for(const u of ch(t.parentNodes)){if(!(n(u)>=s))break;o=u}const a=r(t.node);for(const u of ch(e.parentNodes)){if(!(r(u)<=a))break;i=u}return{startNode:i,endNode:o}}(l,c,t));return{rangeStart:Math.min(o(p),o(f)),rangeEnd:Math.max(s(p),s(f))}},findNodeAtOffset:ph};const{printer:{printDocToString:gh},debug:{printDocToDebug:yh}}=uo,{getAlignmentSize:vh}=_i,{guessEndOfLine:bh,convertEndOfLineToChars:Dh,countEndOfLineChars:wh,normalizeEndOfLine:Ch}=ki,xh=_p.normalize,Eh=Symbol("cursor");function _h(e,t,n){const r=t.comments;return r&&(delete t.comments,Jf.attach(r,t,e,n)),n[Symbol.for("comments")]=r||[],n[Symbol.for("tokens")]=t.tokens||[],n.originalText=e,r}function kh(e,t,n=0){if(!e||0===e.trim().length)return{formatted:"",cursorOffset:-1,comments:[]};const{ast:r,text:i}=bp.parse(e,t);if(t.cursorOffset>=0){const e=mh.findNodeAtOffset(r,t.cursorOffset,t);e&&e.node&&(t.cursorNode=e.node)}const o=_h(i,r,t),s=lh(r,t,n),a=gh(s,t);if(Jf.ensureAllCommentsPrinted(o),n>0){const e=a.formatted.trim();void 0!==a.cursorNodeStart&&(a.cursorNodeStart-=a.formatted.indexOf(e)),a.formatted=e+Dh(t.endOfLine)}if(t.cursorOffset>=0){let e,n,r,s,u;if(t.cursorNode&&a.cursorNodeText?(e=t.locStart(t.cursorNode),n=i.slice(e,t.locEnd(t.cursorNode)),r=t.cursorOffset-e,s=a.cursorNodeStart,u=a.cursorNodeText):(e=0,n=i,r=t.cursorOffset,s=0,u=a.formatted),n===u)return{formatted:a.formatted,cursorOffset:s+r,comments:o};const l=[...n];l.splice(r,0,Eh);const c=[...u],p=bn.diffArrays(l,c);let f=s;for(const t of p)if(t.removed){if(t.value.includes(Eh))break}else f+=t.count;return{formatted:a.formatted,cursorOffset:f,comments:o}}return{formatted:a.formatted,cursorOffset:-1,comments:o}}function Th(e,t,n){return"number"!=typeof t||Number.isNaN(t)||t<0||t>e.length?n:t}function Sh(e,t){let{cursorOffset:n,rangeStart:r,rangeEnd:i}=t;return n=Th(e,n,-1),r=Th(e,r,0),i=Th(e,i,e.length),Object.assign(Object.assign({},t),{},{cursorOffset:n,rangeStart:r,rangeEnd:i})}function Ah(e,t){let{cursorOffset:n,rangeStart:r,rangeEnd:i,endOfLine:o}=Sh(e,t);const s="\ufeff"===e.charAt(0);if(s&&(e=e.slice(1),n--,r--,i--),"auto"===o&&(o=bh(e)),e.includes("\r")){const t=t=>wh(e.slice(0,Math.max(t,0)),"\r\n");n-=t(n),r-=t(r),i-=t(i),e=Ch(e)}return{hasBOM:s,text:e,options:Sh(e,Object.assign(Object.assign({},t),{},{cursorOffset:n,rangeStart:r,rangeEnd:i,endOfLine:o}))}}function Oh(e,t){const n=bp.resolveParser(t);return!n.hasPragma||n.hasPragma(e)}function Fh(e,t){let n,{hasBOM:r,text:i,options:o}=Ah(e,xh(t));return o.rangeStart>=o.rangeEnd&&""!==i||o.requirePragma&&!Oh(i,o)?{formatted:e,cursorOffset:t.cursorOffset,comments:[]}:(o.rangeStart>0||o.rangeEndi&&t.cursorOffset<=o?t.cursorOffset-i:-1,endOfLine:"lf"}),l),p=c.formatted.trimEnd();let{cursorOffset:f}=t;f>o?f+=p.length-s.length:c.cursorOffset>=0&&(f=c.cursorOffset+i);let h=r.slice(0,i)+p+r.slice(o);if("lf"!==t.endOfLine){const e=Dh(t.endOfLine);f>=0&&"\r\n"===e&&(f+=wh(h.slice(0,f),"\n")),h=h.replace(/\n/g,e)}return{formatted:h,cursorOffset:f,comments:c.comments}}(i,o):(!o.requirePragma&&o.insertPragma&&o.printer.insertPragma&&!Oh(i,o)&&(i=o.printer.insertPragma(i)),n=kh(i,o)),r&&(n.formatted="\ufeff"+n.formatted,n.cursorOffset>=0&&n.cursorOffset++),n)}var Nh={formatWithCursor:Fh,parse(e,t,n){const{text:r,options:i}=Ah(e,xh(t)),o=bp.parse(r,i);return n&&(o.ast=kp(o.ast,i)),o},formatAST(e,t){t=xh(t);const n=lh(e,t);return gh(n,t)},formatDoc:(e,t)=>Fh(yh(e),Object.assign(Object.assign({},t),{},{parser:"__js_expression"})).formatted,printToDoc(e,t){t=xh(t);const{ast:n,text:r}=bp.parse(e,t);return _h(r,n,t),lh(n,t)},printDocToString:(e,t)=>gh(e,xh(t))};const{getMaxContinuousCount:Ih,getStringWidth:Ph,getAlignmentSize:Mh,getIndentSize:Lh,skip:jh,skipWhitespace:Bh,skipSpaces:Rh,skipNewline:$h,skipToLineEnd:Hh,skipEverythingButNewLine:Uh,skipInlineComment:qh,skipTrailingComment:zh,hasNewline:Vh,hasNewlineInRange:Wh,hasSpaces:Gh,isNextLineEmpty:Kh,isNextLineEmptyAfterIndex:Yh,isPreviousLineEmpty:Xh,getNextNonSpaceNonCommentCharacterIndex:Jh,makeString:Qh,addLeadingComment:Zh,addDanglingComment:ed,addTrailingComment:td}=_i;var nd={getMaxContinuousCount:Ih,getStringWidth:Ph,getAlignmentSize:Mh,getIndentSize:Lh,skip:jh,skipWhitespace:Bh,skipSpaces:Rh,skipNewline:$h,skipToLineEnd:Hh,skipEverythingButNewLine:Uh,skipInlineComment:qh,skipTrailingComment:zh,hasNewline:Vh,hasNewlineInRange:Wh,hasSpaces:Gh,isNextLineEmpty:Kh,isNextLineEmptyAfterIndex:Yh,isPreviousLineEmpty:Xh,getNextNonSpaceNonCommentCharacterIndex:Jh,makeString:Qh,addLeadingComment:Zh,addDanglingComment:ed,addTrailingComment:td};const rd=["languageId"];var id=function(e,t){const{languageId:n}=e,r=Rn(e,rd);return Object.assign(Object.assign({linguistLanguageId:n},r),t(e))},od=i((function(e){!function(){function t(e){if(null==e)return!1;switch(e.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(e){switch(e.type){case"IfStatement":return null!=e.alternate?e.alternate:e.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return e.body}return null}e.exports={isExpression:function(e){if(null==e)return!1;switch(e.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},isStatement:t,isIterationStatement:function(e){if(null==e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function(e){return t(e)||null!=e&&"FunctionDeclaration"===e.type},isProblematicIfStatement:function(e){var t;if("IfStatement"!==e.type)return!1;if(null==e.alternate)return!1;t=e.consequent;do{if("IfStatement"===t.type&&null==t.alternate)return!0;t=n(t)}while(t);return!1},trailingStatement:n}}()})),sd=i((function(e){!function(){var t,n,r,i,o,s;function a(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(Math.floor((e-65536)/1024)+55296)+String.fromCharCode((e-65536)%1024+56320)}for(n={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\u0A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D44\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]/},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-\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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\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-\uDC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DF44\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]/},r=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],i=new Array(128),s=0;s<128;++s)i[s]=s>=97&&s<=122||s>=65&&s<=90||36===s||95===s;for(o=new Array(128),s=0;s<128;++s)o[s]=s>=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||36===s||95===s;e.exports={isDecimalDigit:function(e){return 48<=e&&e<=57},isHexDigit:function(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70},isOctalDigit:function(e){return e>=48&&e<=55},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&r.indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStartES5:function(e){return e<128?i[e]:n.NonAsciiIdentifierStart.test(a(e))},isIdentifierPartES5:function(e){return e<128?o[e]:n.NonAsciiIdentifierPart.test(a(e))},isIdentifierStartES6:function(e){return e<128?i[e]:t.NonAsciiIdentifierStart.test(a(e))},isIdentifierPartES6:function(e){return e<128?o[e]:t.NonAsciiIdentifierPart.test(a(e))}}}()})),ad=i((function(e){!function(){var t=sd;function n(e,t){return!(!t&&"yield"===e)&&r(e,t)}function r(e,t){if(t&&function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function i(e,t){return"null"===e||"true"===e||"false"===e||n(e,t)}function o(e,t){return"null"===e||"true"===e||"false"===e||r(e,t)}function s(e){var n,r,i;if(0===e.length)return!1;if(i=e.charCodeAt(0),!t.isIdentifierStartES5(i))return!1;for(n=1,r=e.length;n=r)return!1;if(!(56320<=(o=e.charCodeAt(n))&&o<=57343))return!1;i=1024*(i-55296)+(o-56320)+65536}if(!s(i))return!1;s=t.isIdentifierPartES6}return!0}e.exports={isKeywordES5:n,isKeywordES6:r,isReservedWordES5:i,isReservedWordES6:o,isRestrictedWord:function(e){return"eval"===e||"arguments"===e},isIdentifierNameES5:s,isIdentifierNameES6:a,isIdentifierES5:function(e,t){return s(e)&&!i(e,t)},isIdentifierES6:function(e,t){return a(e)&&!o(e,t)}}}()}));const ud=i((function(e,t){t.ast=od,t.code=sd,t.keyword=ad})).keyword.isIdentifierNameES5,{getLast:ld,hasNewline:cd,skipWhitespace:pd,isNonEmptyArray:fd,isNextLineEmptyAfterIndex:hd,getStringWidth:dd}=_i,{locStart:md,locEnd:gd,hasSameLocStart:yd}=ec,vd=new RegExp("^(?:(?=.)\\s)*:"),bd=new RegExp("^(?:(?=.)\\s)*::");function Dd(e){return"Block"===e.type||"CommentBlock"===e.type||"MultiLine"===e.type}function wd(e){return"Line"===e.type||"CommentLine"===e.type||"SingleLine"===e.type||"HashbangComment"===e.type||"HTMLOpen"===e.type||"HTMLClose"===e.type}const Cd=new Set(["ExportDefaultDeclaration","ExportDefaultSpecifier","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration"]);function xd(e){return e&&Cd.has(e.type)}function Ed(e){return"NumericLiteral"===e.type||"Literal"===e.type&&"number"==typeof e.value}function _d(e){return"StringLiteral"===e.type||"Literal"===e.type&&"string"==typeof e.value}function kd(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type}function Td(e){return Pd(e)&&"Identifier"===e.callee.type&&("async"===e.callee.name||"inject"===e.callee.name||"fakeAsync"===e.callee.name)}function Sd(e){return"JSXElement"===e.type||"JSXFragment"===e.type}function Ad(e){return"get"===e.kind||"set"===e.kind}function Od(e){return Ad(e)||yd(e,e.value)}const Fd=new Set(["BinaryExpression","LogicalExpression","NGPipeExpression"]),Nd=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"]),Id=/^(?:skip|[fx]?(?:it|describe|test))$/;function Pd(e){return e&&("CallExpression"===e.type||"OptionalCallExpression"===e.type)}function Md(e){return e&&("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)}function Ld(e){return/^(?:\d+|\d+\.\d+)$/.test(e)}function jd(e){return e.quasis.some(e=>e.value.raw.includes("\n"))}function Bd(e){return e.extra?e.extra.raw:e.raw}const Rd={"==":!0,"!=":!0,"===":!0,"!==":!0},$d={"*":!0,"/":!0,"%":!0},Hd={">>":!0,">>>":!0,"<<":!0},Ud={};for(const[t,ZH]of[["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].entries())for(const e of ZH)Ud[e]=t;function qd(e){return Ud[e]}const zd=new WeakMap;function Vd(e){if(zd.has(e))return zd.get(e);const 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),zd.set(e,t),t}const Wd=new WeakMap;function Gd(e){if(Wd.has(e))return Wd.get(e);let t=e.arguments;return"ImportExpression"===e.type&&(t=[e.source],e.attributes&&t.push(e.attributes)),Wd.set(e,t),t}function Kd(e){return"prettier-ignore"===e.value.trim()&&!e.unignore}function Yd(e){return e&&(e.prettierIgnore||Qd(e,Xd.PrettierIgnore))}const Xd={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},Jd=(e,t)=>{if("function"==typeof e&&(t=e,e=0),e||t)return(n,r,i)=>!(e&Xd.Leading&&!n.leading||e&Xd.Trailing&&!n.trailing||e&Xd.Dangling&&(n.leading||n.trailing)||e&Xd.Block&&!Dd(n)||e&Xd.Line&&!wd(n)||e&Xd.First&&0!==r||e&Xd.Last&&r!==i.length-1||e&Xd.PrettierIgnore&&!Kd(n)||t&&!t(n))};function Qd(e,t,n){if(!e||!fd(e.comments))return!1;const r=Jd(t,n);return!r||e.comments.some(r)}function Zd(e,t,n){if(!e||!Array.isArray(e.comments))return[];const r=Jd(t,n);return r?e.comments.filter(r):e.comments}function em(e){return Pd(e)||"NewExpression"===e.type||"ImportExpression"===e.type}var tm={getFunctionParameters:Vd,iterateFunctionParametersPath:function(e,t){const n=e.getValue();let r=0;const i=e=>t(e,r++);n.this&&e.call(i,"this"),Array.isArray(n.parameters)?e.each(i,"parameters"):Array.isArray(n.params)&&e.each(i,"params"),n.rest&&e.call(i,"rest")},getCallArguments:Gd,iterateCallArgumentsPath:function(e,t){const n=e.getValue();"ImportExpression"===n.type?(e.call(e=>t(e,0),"source"),n.attributes&&e.call(e=>t(e,1),"attributes")):e.each(t,"arguments")},hasRestParameter:function(e){if(e.rest)return!0;const t=Vd(e);return t.length>0&&"RestElement"===ld(t).type},getLeftSide:function(e){return e.expressions?e.expressions[0]:e.left||e.test||e.callee||e.object||e.tag||e.argument||e.expression},getLeftSidePathName:function(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.")},getParentExportDeclaration:function(e){const t=e.getParentNode();return"declaration"===e.getName()&&xd(t)?t:null},getTypeScriptMappedTypeModifier:function(e,t){return"+"===e?"+"+t:"-"===e?"-"+t:t},hasFlowAnnotationComment:function(e){return fd(e)&&Dd(e[0])&&bd.test(e[0].value)},hasFlowShorthandAnnotationComment:function(e){return e.extra&&e.extra.parenthesized&&fd(e.trailingComments)&&Dd(e.trailingComments[0])&&vd.test(e.trailingComments[0].value)},hasLeadingOwnLineComment:function(e,t){return Sd(t)?Yd(t):Qd(t,Xd.Leading,t=>cd(e,gd(t)))},hasNakedLeftSide:function(e){return"AssignmentExpression"===e.type||"BinaryExpression"===e.type||"LogicalExpression"===e.type||"NGPipeExpression"===e.type||"ConditionalExpression"===e.type||Pd(e)||Md(e)||"SequenceExpression"===e.type||"TaggedTemplateExpression"===e.type||"BindExpression"===e.type||"UpdateExpression"===e.type&&!e.prefix||"TSAsExpression"===e.type||"TSNonNullExpression"===e.type},hasNode:function e(t,n){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t))return t.some(t=>e(t,n));const r=n(t);return"boolean"==typeof r?r:Object.values(t).some(t=>e(t,n))},hasIgnoreComment:function(e){return Yd(e.getValue())},hasNodeIgnoreComment:Yd,identity:function(e){return e},isBinaryish:function(e){return Fd.has(e.type)},isBlockComment:Dd,isCallLikeExpression:em,isLineComment:wd,isPrettierIgnoreComment:Kd,isCallExpression:Pd,isMemberExpression:Md,isExportDeclaration:xd,isFlowAnnotationComment:function(e,t){const n=md(t),r=pd(e,gd(t));return!1!==r&&"/*"===e.slice(n,n+2)&&"*/"===e.slice(r,r+2)},isFunctionCompositionArgs:function(e){if(e.length<=1)return!1;let t=0;for(const n of e)if(kd(n)){if(t+=1,t>1)return!0}else if(Pd(n))for(const e of n.arguments)if(kd(e))return!0;return!1},isFunctionNotation:Od,isFunctionOrArrowExpression:kd,isGetterOrSetter:Ad,isJestEachTemplateLiteral:function(e,t){const n=/^[fx]?(?:describe|it|test)$/;return"TaggedTemplateExpression"===t.type&&t.quasi===e&&"MemberExpression"===t.tag.type&&"Identifier"===t.tag.property.type&&"each"===t.tag.property.name&&("Identifier"===t.tag.object.type&&n.test(t.tag.object.name)||"MemberExpression"===t.tag.object.type&&"Identifier"===t.tag.object.property.type&&("only"===t.tag.object.property.name||"skip"===t.tag.object.property.name)&&"Identifier"===t.tag.object.object.type&&n.test(t.tag.object.object.name))},isJsxNode:Sd,isLiteral:function(e){return"BooleanLiteral"===e.type||"DirectiveLiteral"===e.type||"Literal"===e.type||"NullLiteral"===e.type||"NumericLiteral"===e.type||"BigIntLiteral"===e.type||"DecimalLiteral"===e.type||"RegExpLiteral"===e.type||"StringLiteral"===e.type||"TemplateLiteral"===e.type||"TSTypeLiteral"===e.type||"JSXText"===e.type},isLongCurriedCallExpression:function(e){const t=e.getValue(),n=e.getParentNode();return Pd(t)&&Pd(n)&&n.callee===t&&t.arguments.length>n.arguments.length&&n.arguments.length>0},isSimpleCallArgument:function e(t,n){if(n>=2)return!1;const r=t=>e(t,n+1),i="Literal"===t.type&&"regex"in t&&t.regex.pattern||"RegExpLiteral"===t.type&&t.pattern;return!(i&&dd(i)>5)&&("Literal"===t.type||"BigIntLiteral"===t.type||"DecimalLiteral"===t.type||"BooleanLiteral"===t.type||"NullLiteral"===t.type||"NumericLiteral"===t.type||"RegExpLiteral"===t.type||"StringLiteral"===t.type||"Identifier"===t.type||"ThisExpression"===t.type||"Super"===t.type||"PrivateName"===t.type||"PrivateIdentifier"===t.type||"ArgumentPlaceholder"===t.type||"Import"===t.type||("TemplateLiteral"===t.type?t.quasis.every(e=>!e.value.raw.includes("\n"))&&t.expressions.every(r):"ObjectExpression"===t.type?t.properties.every(e=>!e.computed&&(e.shorthand||e.value&&r(e.value))):"ArrayExpression"===t.type?t.elements.every(e=>null===e||r(e)):em(t)?("ImportExpression"===t.type||e(t.callee,n))&&Gd(t).every(r):Md(t)?e(t.object,n)&&e(t.property,n):"UnaryExpression"!==t.type||"!"!==t.operator&&"-"!==t.operator?"TSNonNullExpression"===t.type&&e(t.expression,n):e(t.argument,n)))},isMemberish:function(e){return Md(e)||"BindExpression"===e.type&&Boolean(e.object)},isNumericLiteral:Ed,isSignedNumericLiteral:function(e){return"UnaryExpression"===e.type&&("+"===e.operator||"-"===e.operator)&&Ed(e.argument)},isObjectProperty:function(e){return e&&("ObjectProperty"===e.type||"Property"===e.type&&!e.method&&"init"===e.kind)},isObjectType:function(e){return"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type||"TSMappedType"===e.type},isObjectTypePropertyAFunction:function(e){return!("ObjectTypeProperty"!==e.type&&"ObjectTypeInternalSlot"!==e.type||"FunctionTypeAnnotation"!==e.value.type||e.static||Od(e))},isSimpleType:function(e){return!!e&&(!("GenericTypeAnnotation"!==e.type&&"TSTypeReference"!==e.type||e.typeParameters)||!!Nd.has(e.type))},isSimpleNumber:Ld,isSimpleTemplateLiteral:function(e){let t="expressions";"TSTemplateLiteralType"===e.type&&(t="types");const n=e[t];return 0!==n.length&&n.every(e=>{if(Qd(e))return!1;if("Identifier"===e.type||"ThisExpression"===e.type)return!0;if(Md(e)){let t=e;for(;Md(t);){if("Identifier"!==t.property.type&&"Literal"!==t.property.type&&"StringLiteral"!==t.property.type&&"NumericLiteral"!==t.property.type)return!1;if(t=t.object,Qd(t))return!1}return"Identifier"===t.type||"ThisExpression"===t.type}return!1})},isStringLiteral:_d,isStringPropSafeToUnquote:function(e,t){return"json"!==t.parser&&_d(e.key)&&Bd(e.key).slice(1,-1)===e.key.value&&(ud(e.key.value)&&!(("typescript"===t.parser||"babel-ts"===t.parser)&&"ClassProperty"===e.type)||Ld(e.key.value)&&String(Number(e.key.value))===e.key.value&&("babel"===t.parser||"espree"===t.parser||"meriyah"===t.parser||"__babel_estree"===t.parser))},isTemplateOnItsOwnLine:function(e,t){return("TemplateLiteral"===e.type&&jd(e)||"TaggedTemplateExpression"===e.type&&jd(e.quasi))&&!cd(t,md(e),{backwards:!0})},isTestCall:function e(t,n){if("CallExpression"!==t.type)return!1;if(1===t.arguments.length){if(Td(t)&&n&&e(n))return kd(t.arguments[0]);if(function(e){return"Identifier"===e.callee.type&&/^(?:before|after)(?:Each|All)$/.test(e.callee.name)&&1===e.arguments.length}(t))return Td(t.arguments[0])}else if((2===t.arguments.length||3===t.arguments.length)&&("Identifier"===t.callee.type&&Id.test(t.callee.name)||function(e){return Md(e.callee)&&"Identifier"===e.callee.object.type&&"Identifier"===e.callee.property.type&&Id.test(e.callee.object.name)&&("only"===e.callee.property.name||"skip"===e.callee.property.name)}(t))&&(function(e){return"TemplateLiteral"===e.type}(t.arguments[0])||_d(t.arguments[0])))return!(t.arguments[2]&&!Ed(t.arguments[2]))&&((2===t.arguments.length?kd(t.arguments[1]):function(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&"BlockStatement"===e.body.type}(t.arguments[1])&&Vd(t.arguments[1]).length<=1)||Td(t.arguments[1]));return!1},isTheOnlyJsxElementInMarkdown:function(e,t){if("markdown"!==e.parentParser&&"mdx"!==e.parentParser)return!1;const n=t.getNode();if(!n.expression||!Sd(n.expression))return!1;const r=t.getParentNode();return"Program"===r.type&&1===r.body.length},isTSXFile:function(e){return e.filepath&&/\.tsx$/i.test(e.filepath)},isTypeAnnotationAFunction:function(e){return!("TypeAnnotation"!==e.type&&"TSTypeAnnotation"!==e.type||"FunctionTypeAnnotation"!==e.typeAnnotation.type||e.static||yd(e,e.typeAnnotation))},isNextLineEmpty:(e,{originalText:t})=>hd(t,gd(e)),needsHardlineAfterDanglingComment:function(e){if(!Qd(e))return!1;const t=ld(Zd(e,Xd.Dangling));return t&&!Dd(t)},rawText:Bd,shouldPrintComma:function(e,t="es5"){return"es5"===e.trailingComma&&"es5"===t||"all"===e.trailingComma&&("all"===t||"es5"===t)},isBitwiseOperator:function(e){return Boolean(Hd[e])||"|"===e||"^"===e||"&"===e},shouldFlatten:function(e,t){return qd(t)===qd(e)&&"**"!==e&&(!Rd[e]||!Rd[t])&&!("%"===t&&$d[e]||"%"===e&&$d[t])&&(t===e||!$d[t]||!$d[e])&&(!Hd[e]||!Hd[t])},startsWithNoLookaheadToken:function e(t,n){switch((t=function(e){for(;e.left;)e=e.left;return e}(t)).type){case"FunctionExpression":case"ClassExpression":case"DoExpression":return n;case"ObjectExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return e(t.object,n);case"TaggedTemplateExpression":return"FunctionExpression"!==t.tag.type&&e(t.tag,n);case"CallExpression":case"OptionalCallExpression":return"FunctionExpression"!==t.callee.type&&e(t.callee,n);case"ConditionalExpression":return e(t.test,n);case"UpdateExpression":return!t.prefix&&e(t.argument,n);case"BindExpression":return t.object&&e(t.object,n);case"SequenceExpression":return e(t.expressions[0],n);case"TSAsExpression":case"TSNonNullExpression":return e(t.expression,n);default:return!1}},getPrecedence:qd,hasComment:Qd,getComments:Zd,CommentCheckFlags:Xd};const{getStringWidth:nm,getIndentSize:rm}=_i,{builders:{join:im,hardline:om,softline:sm,group:am,indent:um,align:lm,lineSuffixBoundary:cm,addAlignmentToDoc:pm},printer:{printDocToString:fm},utils:{mapDoc:hm}}=uo,{isBinaryish:dm,isJestEachTemplateLiteral:mm,isSimpleTemplateLiteral:gm,hasComment:ym,isMemberExpression:vm}=tm;function bm(e){return e.replace(/([\\`]|\${)/g,"\\$1")}var Dm={printTemplateLiteral:function(e,t,n){const r=e.getValue();if("TemplateLiteral"===r.type&&mm(r,e.getParentNode())){const r=function(e,t,n){const r=e.getNode(),i=r.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(i.length>1||i.some(e=>e.length>0)){t.__inJestEach=!0;const o=e.map(n,"expressions");t.__inJestEach=!1;const s=[],a=o.map(e=>"${"+fm(e,Object.assign(Object.assign({},t),{},{printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"})).formatted+"}"),u=[{hasLineBreak:!1,cells:[]}];for(let e=1;ee.cells.length)),c=Array.from({length:l}).fill(0),p=[{cells:i},...u.filter(e=>e.cells.length>0)];for(const{cells:e}of p.filter(e=>!e.hasLineBreak))for(const[t,n]of e.entries())c[t]=Math.max(c[t],nm(n));return s.push(cm,"`",um([om,im(om,p.map(e=>im(" | ",e.cells.map((t,n)=>e.hasLineBreak?t:t+" ".repeat(c[n]-nm(t))))))]),om,"`"),s}}(e,n,t);if(r)return r}let i="expressions";"TSTemplateLiteralType"===r.type&&(i="types");const o=[];let s=e.map(t,i);const a=gm(r);return a&&(s=s.map(e=>fm(e,Object.assign(Object.assign({},n),{},{printWidth:Number.POSITIVE_INFINITY})).formatted)),o.push(cm,"`"),e.each(e=>{const u=e.getName();if(o.push(t()),ufunction(e,t){const n=e.getValue();let r=t();return ym(n)&&(r=am([um([sm,r]),sm])),["${",r,cm,"}"]}(e,t),"expressions")},escapeTemplateCharacters:function(e,t){return hm(e,e=>"string"==typeof e?t?e.replace(/(\\*)`/g,"$1$1\\`"):bm(e):e)},uncookTemplateElementValue:bm};const{builders:{indent:wm,softline:Cm,literalline:xm,dedentToRoot:Em}}=uo,{escapeTemplateCharacters:_m}=Dm;var km=function(e,t,n){let r=e.getValue().quasis[0].value.raw.replace(/((?:\\\\)*)\\`/g,(e,t)=>"\\".repeat(t.length/2)+"`");const i=function(e){const t=e.match(/^([^\S\n]*)\S/m);return null===t?"":t[1]}(r),o=""!==i;o&&(r=r.replace(new RegExp("^"+i,"gm"),""));const s=_m(n(r,{parser:"markdown",__inJsTemplate:!0},{stripTrailingHardline:!0}),!0);return["`",o?wm([Cm,s]):[xm,Em(s)],Cm,"`"]};const{isNonEmptyArray:Tm}=_i,{builders:{indent:Sm,hardline:Am,softline:Om},utils:{mapDoc:Fm,replaceEndOfLine:Nm,cleanDoc:Im}}=uo,{printTemplateExpressions:Pm}=Dm;var Mm=function(e,t,n){const r=e.getValue(),i=r.quasis.map(e=>e.value.raw);let o=0;return function(e,t,n){if(1===t.quasis.length&&!t.quasis[0].value.raw.trim())return"``";const r=function(e,t){if(!Tm(t))return e;let n=0;const r=Fm(Im(e),e=>"string"==typeof e&&e.includes("@prettier-placeholder")?e.split(/@prettier-placeholder-(\d+)-id/).map((e,r)=>r%2==0?Nm(e):(n++,t[e])):e);return t.length===n?r:null}(e,n);if(!r)throw new Error("Couldn't insert all the expressions");return["`",Sm([Am,r]),Om,"`"]}(n(i.reduce((e,t,n)=>0===n?t:e+"@prettier-placeholder-"+o+++"-id"+t,""),{parser:"scss"},{stripTrailingHardline:!0}),r,Pm(e,t))};const{builders:{indent:Lm,join:jm,hardline:Bm}}=uo,{escapeTemplateCharacters:Rm,printTemplateExpressions:$m}=Dm;function Hm(e){const t=[];let n=!1;const r=e.map(e=>e.trim());for(const[i,o]of r.entries())""!==o&&(""===r[i-1]&&n?t.push([Bm,o]):t.push(o),n=!0);return 0===t.length?null:jm(Bm,t)}var Um=function(e,t,n){const r=e.getValue(),i=r.quasis.length;if(1===i&&""===r.quasis[0].value.raw.trim())return"``";const o=$m(e,t),s=[];for(let a=0;a2&&""===l[0].trim()&&""===l[1].trim(),h=c>2&&""===l[c-1].trim()&&""===l[c-2].trim(),d=l.every(e=>/^\s*(?:#[^\n\r]*)?$/.test(e));if(!t&&/#[^\n\r]*$/.test(l[c-1]))return null;let m=null;m=d?Hm(l):n(u,{parser:"graphql"},{stripTrailingHardline:!0}),m?(m=Rm(m,!1),!e&&f&&s.push(""),s.push(m),!t&&h&&s.push("")):e||t||!f||s.push(""),p&&s.push(p)}return["`",Lm([Bm,jm(Bm,s)]),Bm,"`"]};const{builders:{indent:qm,line:zm,hardline:Vm,group:Wm},utils:{mapDoc:Gm}}=uo,{printTemplateExpressions:Km,uncookTemplateElementValue:Ym}=Dm;let Xm=0;var Jm=function(e,t,n,r,{parser:i}){const o=e.getValue(),s=Xm;Xm=Xm+1>>>0;const a=e=>`PRETTIER_HTML_PLACEHOLDER_${e}_${s}_IN_JS`,u=o.quasis.map((e,t,n)=>t===n.length-1?e.value.cooked:e.value.cooked+a(t)).join(""),l=Km(e,t);if(0===l.length&&0===u.trim().length)return"``";const c=new RegExp(a("(\\d+)"),"g");let p=0;const f=n(u,{parser:i,__onHtmlRoot(e){p=e.children.length}},{stripTrailingHardline:!0}),h=Gm(f,e=>{if("string"!=typeof e)return e;const t=[],n=e.split(c);for(let i=0;i1?qm(Wm(h)):Wm(h),m,"`"])};const{hasComment:Qm,CommentCheckFlags:Zm,isObjectProperty:eg}=tm;function tg(e){return function(e){const t=e.getValue(),n=e.getParentNode(),r=e.getParentNode(1);return r&&t.quasis&&"JSXExpressionContainer"===n.type&&"JSXElement"===r.type&&"style"===r.openingElement.name.name&&r.openingElement.attributes.some(e=>"jsx"===e.name.name)||n&&"TaggedTemplateExpression"===n.type&&"Identifier"===n.tag.type&&"css"===n.tag.name||n&&"TaggedTemplateExpression"===n.type&&"MemberExpression"===n.tag.type&&"css"===n.tag.object.name&&("global"===n.tag.property.name||"resolve"===n.tag.property.name)}(e)||function(e){const t=e.getParentNode();if(!t||"TaggedTemplateExpression"!==t.type)return!1;const n="ParenthesizedExpression"===t.tag.type?t.tag.expression:t.tag;switch(n.type){case"MemberExpression":return rg(n.object)||ig(n);case"CallExpression":return rg(n.callee)||"MemberExpression"===n.callee.type&&("MemberExpression"===n.callee.object.type&&(rg(n.callee.object.object)||ig(n.callee.object))||"CallExpression"===n.callee.object.type&&rg(n.callee.object.callee));case"Identifier":return"css"===n.name;default:return!1}}(e)||function(e){const t=e.getParentNode(),n=e.getParentNode(1);return n&&"JSXExpressionContainer"===t.type&&"JSXAttribute"===n.type&&"JSXIdentifier"===n.name.type&&"css"===n.name.name}(e)||function(e){return e.match(e=>"TemplateLiteral"===e.type,(e,t)=>"ArrayExpression"===e.type&&"elements"===t,(e,t)=>eg(e)&&"Identifier"===e.key.type&&"styles"===e.key.name&&"value"===t,...ng)}(e)?"css":function(e){const t=e.getValue(),n=e.getParentNode();return og(t,"GraphQL")||n&&("TaggedTemplateExpression"===n.type&&("MemberExpression"===n.tag.type&&"graphql"===n.tag.object.name&&"experimental"===n.tag.property.name||"Identifier"===n.tag.type&&("gql"===n.tag.name||"graphql"===n.tag.name))||"CallExpression"===n.type&&"Identifier"===n.callee.type&&"graphql"===n.callee.name)}(e)?"graphql":function(e){return og(e.getValue(),"HTML")||e.match(e=>"TemplateLiteral"===e.type,(e,t)=>"TaggedTemplateExpression"===e.type&&"Identifier"===e.tag.type&&"html"===e.tag.name&&"quasi"===t)}(e)?"html":function(e){return e.match(e=>"TemplateLiteral"===e.type,(e,t)=>eg(e)&&"Identifier"===e.key.type&&"template"===e.key.name&&"value"===t,...ng)}(e)?"angular":function(e){const t=e.getValue(),n=e.getParentNode();return n&&"TaggedTemplateExpression"===n.type&&1===t.quasis.length&&"Identifier"===n.tag.type&&("md"===n.tag.name||"markdown"===n.tag.name)}(e)?"markdown":void 0}const ng=[(e,t)=>"ObjectExpression"===e.type&&"properties"===t,(e,t)=>"CallExpression"===e.type&&"Identifier"===e.callee.type&&"Component"===e.callee.name&&"arguments"===t,(e,t)=>"Decorator"===e.type&&"expression"===t];function rg(e){return"Identifier"===e.type&&"styled"===e.name}function ig(e){return/^[A-Z]/.test(e.object.name)&&"extend"===e.property.name}function og(e,t){return Qm(e,Zm.Block|Zm.Leading,({value:e})=>e===` ${t} `)}var sg=function(e,t,n,r){const i=e.getValue();if("TemplateLiteral"!==i.type||function({quasis:e}){return e.some(({value:{cooked:e}})=>null===e)}(i))return;const o=tg(e);return o?"markdown"===o?km(e,t,n):"css"===o?Mm(e,t,n):"graphql"===o?Um(e,t,n):"html"===o||"angular"===o?Jm(e,t,n,r,{parser:o}):void 0:void 0};const{isBlockComment:ag}=tm,ug=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),lg=e=>{for(const t of e.quasis)delete t.value};function cg(e,t,n){if("Program"===e.type&&delete t.sourceType,"BigIntLiteral"!==e.type&&"BigIntLiteralTypeAnnotation"!==e.type||t.value&&(t.value=t.value.toLowerCase()),"BigIntLiteral"!==e.type&&"Literal"!==e.type||t.bigint&&(t.bigint=t.bigint.toLowerCase()),"DecimalLiteral"===e.type&&(t.value=Number(t.value)),"Literal"===e.type&&t.decimal&&(t.decimal=Number(t.decimal)),"EmptyStatement"===e.type)return null;if("JSXText"===e.type)return null;if("JSXExpressionContainer"===e.type&&("Literal"===e.expression.type||"StringLiteral"===e.expression.type)&&" "===e.expression.value)return null;if("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"!==e.type||"object"!=typeof e.key||!e.key||"Literal"!==e.key.type&&"NumericLiteral"!==e.key.type&&"StringLiteral"!==e.key.type&&"Identifier"!==e.key.type||delete t.key,"JSXElement"===e.type&&"style"===e.openingElement.name.name&&e.openingElement.attributes.some(e=>"jsx"===e.name.name))for(const{type:i,expression:o}of t.children)"JSXExpressionContainer"===i&&"TemplateLiteral"===o.type&&lg(o);"JSXAttribute"===e.type&&"css"===e.name.name&&"JSXExpressionContainer"===e.value.type&&"TemplateLiteral"===e.value.expression.type&&lg(t.value.expression),"JSXAttribute"===e.type&&e.value&&"Literal"===e.value.type&&/["']|"|'/.test(e.value.value)&&(t.value.value=t.value.value.replace(/["']|"|'/g,'"'));const r=e.expression||e.callee;if("Decorator"===e.type&&"CallExpression"===r.type&&"Component"===r.callee.name&&1===r.arguments.length){const n=e.expression.arguments[0].properties;for(const[e,r]of t.expression.arguments[0].properties.entries())switch(n[e].key.name){case"styles":"ArrayExpression"===r.value.type&&lg(r.value.elements[0]);break;case"template":"TemplateLiteral"===r.value.type&&lg(r.value)}}return"TaggedTemplateExpression"!==e.type||"MemberExpression"!==e.tag.type&&("Identifier"!==e.tag.type||"gql"!==e.tag.name&&"graphql"!==e.tag.name&&"css"!==e.tag.name&&"md"!==e.tag.name&&"markdown"!==e.tag.name&&"html"!==e.tag.name)&&"CallExpression"!==e.tag.type||lg(t.quasi),"TemplateLiteral"===e.type&&(e.leadingComments&&e.leadingComments.some(e=>ag(e)&&["GraphQL","HTML"].some(t=>e.value===` ${t} `))||"CallExpression"===n.type&&"graphql"===n.callee.name||!e.leadingComments)&&lg(t),"InterpreterDirective"===e.type&&(t.value=t.value.trimEnd()),"TSIntersectionType"!==e.type&&"TSUnionType"!==e.type||1!==e.types.length?void 0:t.types[0]}cg.ignoredProperties=ug;var pg=cg;const fg=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");const t=e.match(/(?:\r?\n)/g)||[];if(0===t.length)return;const n=t.filter(e=>"\r\n"===e).length;return n>t.length-n?"\r\n":"\n"};var hg=fg;hg.graceful=e=>"string"==typeof e&&fg(e)||"\n";var dg=function(e){const t=e.match(xg);return t?t[0].trimLeft():""},mg=function(e){const t=e.match(xg);return t&&t[0]?e.substring(t[0].length):e},gg=function(e){return Og(e).pragmas},yg=Og,vg=function({comments:e="",pragmas:t={}}){const n=(0,Dg().default)(e)||bg().EOL,r=" *",i=Object.keys(t),o=i.map(e=>Fg(e,t[e])).reduce((e,t)=>e.concat(t),[]).map(e=>" * "+e+n).join("");if(!e){if(0===i.length)return"";if(1===i.length&&!Array.isArray(t[i[0]])){const e=t[i[0]];return`/** ${Fg(i[0],e)[0]} */`}}const s=e.split(n).map(e=>" * "+e).join(n)+n;return"/**"+n+(e?s:"")+(e&&i.length?r+n:"")+o+" */"};function bg(){const e=ha;return bg=function(){return e},e}function Dg(){const e=function(e){return e&&e.__esModule?e:{default:e}}(hg);return Dg=function(){return e},e}const wg=/\*\/$/,Cg=/^\/\*\*/,xg=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Eg=/(^|\s+)\/\/([^\r\n]*)/g,_g=/^(\r?\n)+/,kg=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,Tg=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,Sg=/(\r?\n|^) *\* ?/g,Ag=[];function Og(e){const t=(0,Dg().default)(e)||bg().EOL;e=e.replace(Cg,"").replace(wg,"").replace(Sg,"$1");let n="";for(;n!==e;)n=e,e=e.replace(kg,`${t}$1 $2${t}`);e=e.replace(_g,"").trimRight();const r=Object.create(null),i=e.replace(Tg,"").replace(_g,"").trimRight();let o;for(;o=Tg.exec(e);){const e=o[2].replace(Eg,"");"string"==typeof r[o[1]]||Array.isArray(r[o[1]])?r[o[1]]=Ag.concat(r[o[1]],e):r[o[1]]=e}return{comments:i,pragmas:r}}function Fg(e,t){return Ag.concat(t).map(t=>`@${e} ${t}`.trim())}var Ng=Object.defineProperty({extract:dg,strip:mg,parse:gg,parseWithComments:yg,print:vg},"__esModule",{value:!0});const{parseWithComments:Ig,strip:Pg,extract:Mg,print:Lg}=Ng,{getShebang:jg}=_i,{normalizeEndOfLine:Bg}=ki;function Rg(e){const t=jg(e);t&&(e=e.slice(t.length+1));const n=Mg(e),{pragmas:r,comments:i}=Ig(n);return{shebang:t,text:e,pragmas:r,comments:i}}var $g={hasPragma:function(e){const t=Object.keys(Rg(e).pragmas);return t.includes("prettier")||t.includes("format")},insertPragma:function(e){const{shebang:t,text:n,pragmas:r,comments:i}=Rg(e),o=Pg(n),s=Lg({pragmas:Object.assign({format:""},r),comments:i.trimStart()});return(t?t+"\n":"")+Bg(s)+(o.startsWith("\n")?"\n":"\n\n")+o}};const{getLast:Hg,hasNewline:Ug,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:qg,getNextNonSpaceNonCommentCharacter:zg,hasNewlineInRange:Vg,addLeadingComment:Wg,addTrailingComment:Gg,addDanglingComment:Kg,getNextNonSpaceNonCommentCharacterIndex:Yg,isNonEmptyArray:Xg}=_i,{isBlockComment:Jg,getFunctionParameters:Qg,isPrettierIgnoreComment:Zg,isJsxNode:ey,hasFlowShorthandAnnotationComment:ty,hasFlowAnnotationComment:ny,hasIgnoreComment:ry,isCallLikeExpression:iy,getCallArguments:oy,isCallExpression:sy,isMemberExpression:ay,isObjectProperty:uy,getComments:ly,CommentCheckFlags:cy}=tm,{locStart:py,locEnd:fy}=ec;function hy(e,t){const n=(e.body||e.properties).find(({type:e})=>"EmptyStatement"!==e);n?Wg(n,t):Kg(e,t)}function dy(e,t){"BlockStatement"===e.type?hy(e,t):Wg(e,t)}function my({comment:e,followingNode:t}){return!(!t||!zy(e))&&(Wg(t,e),!0)}function gy({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:i}){return!(!n||"IfStatement"!==n.type||!r)&&(")"===zg(i,e,fy)?(Gg(t,e),!0):t===n.consequent&&r===n.alternate?("BlockStatement"===t.type?Gg(t,e):Kg(n,e),!0):"BlockStatement"===r.type?(hy(r,e),!0):"IfStatement"===r.type?(dy(r.consequent,e),!0):n.consequent===r&&(Wg(r,e),!0))}function yy({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:i}){return!(!n||"WhileStatement"!==n.type||!r)&&(")"===zg(i,e,fy)?(Gg(t,e),!0):"BlockStatement"===r.type?(hy(r,e),!0):n.body===r&&(Wg(r,e),!0))}function vy({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return!(!n||"TryStatement"!==n.type&&"CatchClause"!==n.type||!r)&&("CatchClause"===n.type&&t?(Gg(t,e),!0):"BlockStatement"===r.type?(hy(r,e),!0):"TryStatement"===r.type?(dy(r.finalizer,e),!0):"CatchClause"===r.type&&(dy(r.body,e),!0))}function by({comment:e,enclosingNode:t,followingNode:n}){return!(!ay(t)||!n||"Identifier"!==n.type)&&(Wg(t,e),!0)}function Dy({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:i}){const o=t&&!Vg(i,fy(t),py(e));return!(t&&o||!n||"ConditionalExpression"!==n.type&&"TSConditionalType"!==n.type||!r)&&(Wg(r,e),!0)}function wy({comment:e,precedingNode:t,enclosingNode:n}){return!(!uy(n)||!n.shorthand||n.key!==t||"AssignmentPattern"!==n.value.type)&&(Gg(n.value.left,e),!0)}function Cy({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){if(n&&("ClassDeclaration"===n.type||"ClassExpression"===n.type||"DeclareClass"===n.type||"DeclareInterface"===n.type||"InterfaceDeclaration"===n.type||"TSInterfaceDeclaration"===n.type)){if(Xg(n.decorators)&&(!r||"Decorator"!==r.type))return Gg(Hg(n.decorators),e),!0;if(n.body&&r===n.body)return hy(n.body,e),!0;if(r)for(const i of["implements","extends","mixins"])if(n[i]&&r===n[i][0])return!t||t!==n.id&&t!==n.typeParameters&&t!==n.superClass?Kg(n,e,i):Gg(t,e),!0}return!1}function xy({comment:e,precedingNode:t,enclosingNode:n,text:r}){return(n&&t&&("Property"===n.type||"TSDeclareMethod"===n.type||"TSAbstractMethodDefinition"===n.type)&&"Identifier"===t.type&&n.key===t&&":"!==zg(r,t,fy)||!(!t||!n||"Decorator"!==t.type||"ClassMethod"!==n.type&&"ClassProperty"!==n.type&&"PropertyDefinition"!==n.type&&"TSAbstractClassProperty"!==n.type&&"TSAbstractMethodDefinition"!==n.type&&"TSDeclareMethod"!==n.type&&"MethodDefinition"!==n.type))&&(Gg(t,e),!0)}function Ey({comment:e,precedingNode:t,enclosingNode:n,text:r}){return"("===zg(r,e,fy)&&!(!t||!n||"FunctionDeclaration"!==n.type&&"FunctionExpression"!==n.type&&"ClassMethod"!==n.type&&"MethodDefinition"!==n.type&&"ObjectMethod"!==n.type)&&(Gg(t,e),!0)}function _y({comment:e,enclosingNode:t,text:n}){if(!t||"ArrowFunctionExpression"!==t.type)return!1;const r=Yg(n,e,fy);return!1!==r&&"=>"===n.slice(r,r+2)&&(Kg(t,e),!0)}function ky({comment:e,enclosingNode:t,text:n}){return")"===zg(n,e,fy)&&(t&&(qy(t)&&0===Qg(t).length||iy(t)&&0===oy(t).length)?(Kg(t,e),!0):!(!t||"MethodDefinition"!==t.type&&"TSAbstractMethodDefinition"!==t.type||0!==Qg(t.value).length)&&(Kg(t.value,e),!0))}function Ty({comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:i}){if(t&&"FunctionTypeParam"===t.type&&n&&"FunctionTypeAnnotation"===n.type&&r&&"FunctionTypeParam"!==r.type)return Gg(t,e),!0;if(t&&("Identifier"===t.type||"AssignmentPattern"===t.type)&&n&&qy(n)&&")"===zg(i,e,fy))return Gg(t,e),!0;if(n&&"FunctionDeclaration"===n.type&&r&&"BlockStatement"===r.type){const t=(()=>{const e=Qg(n);if(e.length>0)return qg(i,fy(Hg(e)));const t=qg(i,fy(n.id));return!1!==t&&qg(i,t+1)})();if(py(e)>t)return hy(r,e),!0}return!1}function Sy({comment:e,enclosingNode:t}){return!(!t||"ImportSpecifier"!==t.type)&&(Wg(t,e),!0)}function Ay({comment:e,enclosingNode:t}){return!(!t||"LabeledStatement"!==t.type)&&(Wg(t,e),!0)}function Oy({comment:e,enclosingNode:t}){return!(!t||"ContinueStatement"!==t.type&&"BreakStatement"!==t.type||t.label)&&(Gg(t,e),!0)}function Fy({comment:e,precedingNode:t,enclosingNode:n}){return!!(sy(n)&&t&&n.callee===t&&n.arguments.length>0)&&(Wg(n.arguments[0],e),!0)}function Ny({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return!n||"UnionTypeAnnotation"!==n.type&&"TSUnionType"!==n.type?(r&&("UnionTypeAnnotation"===r.type||"TSUnionType"===r.type)&&Zg(e)&&(r.types[0].prettierIgnore=!0,e.unignore=!0),!1):(Zg(e)&&(r.prettierIgnore=!0,e.unignore=!0),!!t&&(Gg(t,e),!0))}function Iy({comment:e,enclosingNode:t}){return!!uy(t)&&(Wg(t,e),!0)}function Py({comment:e,enclosingNode:t,followingNode:n,ast:r,isLastComment:i}){return r&&r.body&&0===r.body.length?(i?Kg(r,e):Wg(r,e),!0):t&&"Program"===t.type&&0===t.body.length&&!Xg(t.directives)?(i?Kg(t,e):Wg(t,e),!0):!(!n||"Program"!==n.type||0!==n.body.length||!t||"ModuleExpression"!==t.type)&&(Kg(n,e),!0)}function My({comment:e,enclosingNode:t}){return!(!t||"ForInStatement"!==t.type&&"ForOfStatement"!==t.type)&&(Wg(t,e),!0)}function Ly({comment:e,precedingNode:t,enclosingNode:n,text:r}){return!!(t&&"ImportSpecifier"===t.type&&n&&"ImportDeclaration"===n.type&&Ug(r,fy(e)))&&(Gg(t,e),!0)}function jy({comment:e,enclosingNode:t}){return!(!t||"AssignmentPattern"!==t.type)&&(Wg(t,e),!0)}function By({comment:e,enclosingNode:t}){return!(!t||"TypeAlias"!==t.type)&&(Wg(t,e),!0)}function Ry({comment:e,enclosingNode:t,followingNode:n}){return!(!t||"VariableDeclarator"!==t.type&&"AssignmentExpression"!==t.type||!n||"ObjectExpression"!==n.type&&"ArrayExpression"!==n.type&&"TemplateLiteral"!==n.type&&"TaggedTemplateExpression"!==n.type&&!Jg(e))&&(Wg(n,e),!0)}function $y({comment:e,enclosingNode:t,followingNode:n,text:r}){return!(n||!t||"TSMethodSignature"!==t.type&&"TSDeclareFunction"!==t.type&&"TSAbstractMethodDefinition"!==t.type||";"!==zg(r,e,fy))&&(Gg(t,e),!0)}function Hy({comment:e,enclosingNode:t,followingNode:n}){if(Zg(e)&&t&&"TSMappedType"===t.type&&n&&"TSTypeParameter"===n.type&&n.constraint)return t.prettierIgnore=!0,e.unignore=!0,!0}function Uy({comment:e,precedingNode:t,enclosingNode:n,followingNode:r}){return!(!n||"TSMappedType"!==n.type)&&(r&&"TSTypeParameter"===r.type&&r.name?(Wg(r.name,e),!0):!(!t||"TSTypeParameter"!==t.type||!t.constraint)&&(Gg(t.constraint,e),!0))}function qy(e){return"ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type||"FunctionDeclaration"===e.type||"ObjectMethod"===e.type||"ClassMethod"===e.type||"TSDeclareFunction"===e.type||"TSCallSignatureDeclaration"===e.type||"TSConstructSignatureDeclaration"===e.type||"TSMethodSignature"===e.type||"TSConstructorType"===e.type||"TSFunctionType"===e.type||"TSDeclareMethod"===e.type}function zy(e){return Jg(e)&&"*"===e.value[0]&&/@type\b/.test(e.value)}var Vy={handleOwnLineComment:function(e){return[Hy,Ty,by,gy,yy,vy,Cy,Sy,My,Ny,Py,Ly,jy,xy,Ay].some(t=>t(e))},handleEndOfLineComment:function(e){return[my,Ty,Dy,Sy,gy,yy,vy,Cy,Ay,Fy,Iy,Py,By,Ry].some(t=>t(e))},handleRemainingComment:function(e){return[Hy,gy,yy,wy,ky,xy,Py,_y,Ey,Uy,Oy,$y].some(t=>t(e))},isTypeCastComment:zy,getCommentChildNodes:function(e,t){if(("typescript"===t.parser||"flow"===t.parser||"espree"===t.parser||"meriyah"===t.parser||"__babel_estree"===t.parser)&&"MethodDefinition"===e.type&&e.value&&"FunctionExpression"===e.value.type&&0===Qg(e.value).length&&!e.value.returnType&&!Xg(e.value.typeParameters)&&e.value.body)return[...e.decorators||[],e.key,e.value.body]},willPrintOwnComments:function(e){const t=e.getValue(),n=e.getParentNode();return(t&&(ey(t)||ty(t)||sy(n)&&(e=>ny(ly(e,cy.Leading))||ny(ly(e,cy.Trailing)))(t))||n&&("JSXSpreadAttribute"===n.type||"JSXSpreadChild"===n.type||"UnionTypeAnnotation"===n.type||"TSUnionType"===n.type||("ClassDeclaration"===n.type||"ClassExpression"===n.type)&&n.superClass===t))&&(!ry(e)||"UnionTypeAnnotation"===n.type||"TSUnionType"===n.type)}};const{getFunctionParameters:Wy,getLeftSidePathName:Gy,hasFlowShorthandAnnotationComment:Ky,hasNakedLeftSide:Yy,hasNode:Xy,isBitwiseOperator:Jy,startsWithNoLookaheadToken:Qy,shouldFlatten:Zy,getPrecedence:ev,isCallExpression:tv,isMemberExpression:nv,isObjectProperty:rv}=tm;function iv(e,t){const n=e.getParentNode();if(!n)return!1;const r=e.getName(),i=e.getNode();if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&function(e){switch(e.type){case"ObjectExpression":return!0;default:return!1}}(i)&&ov(e))return!0;if(function(e){return"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"===e.type}(i))return!1;if("flow"!==t.parser&&Ky(e.getValue()))return!0;if("Identifier"===i.type)return!!(i.extra&&i.extra.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(i.name))||"left"===r&&"async"===i.name&&"ForOfStatement"===n.type&&!n.await;switch(n.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if("superClass"===r&&("ArrowFunctionExpression"===i.type||"AssignmentExpression"===i.type||"AwaitExpression"===i.type||"BinaryExpression"===i.type||"ConditionalExpression"===i.type||"LogicalExpression"===i.type||"NewExpression"===i.type||"ObjectExpression"===i.type||"ParenthesizedExpression"===i.type||"SequenceExpression"===i.type||"TaggedTemplateExpression"===i.type||"UnaryExpression"===i.type||"UpdateExpression"===i.type||"YieldExpression"===i.type||"TSNonNullExpression"===i.type))return!0;break;case"ExportDefaultDeclaration":return sv(e,t)||"SequenceExpression"===i.type;case"Decorator":if("expression"===r){let e=!1,t=!1,n=i;for(;n;)switch(n.type){case"MemberExpression":t=!0,n=n.object;break;case"CallExpression":if(t||e)return!0;e=!0,n=n.callee;break;case"Identifier":return!1;default:return!0}return!0}break;case"ExpressionStatement":if(Qy(i,!0))return!0;break;case"ArrowFunctionExpression":if("body"===r&&"SequenceExpression"!==i.type&&Qy(i,!1))return!0}switch(i.type){case"UpdateExpression":if("UnaryExpression"===n.type)return i.prefix&&("++"===i.operator&&"+"===n.operator||"--"===i.operator&&"-"===n.operator);case"UnaryExpression":switch(n.type){case"UnaryExpression":return i.operator===n.operator&&("+"===i.operator||"-"===i.operator);case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"BinaryExpression":return"left"===r&&"**"===n.operator;case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if("UpdateExpression"===n.type||"PipelineTopicExpression"===n.type&&"|>"===i.operator)return!0;if("in"===i.operator&&function(e){let t=0,n=e.getValue();for(;n;){const r=e.getParentNode(t++);if(r&&"ForStatement"===r.type&&r.init===n)return!0;n=r}return!1}(e))return!0;if("|>"===i.operator&&i.extra&&i.extra.parenthesized){const t=e.getParentNode(1);if("BinaryExpression"===t.type&&"|>"===t.operator)return!0}case"TSTypeAssertion":case"TSAsExpression":case"LogicalExpression":switch(n.type){case"TSAsExpression":return"TSAsExpression"!==i.type;case"ConditionalExpression":return"TSAsExpression"===i.type;case"CallExpression":case"NewExpression":case"OptionalCallExpression":return"callee"===r;case"ClassExpression":case"ClassDeclaration":return"superClass"===r;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"object"===r;case"AssignmentExpression":case"AssignmentPattern":return"left"===r&&("TSTypeAssertion"===i.type||"TSAsExpression"===i.type);case"LogicalExpression":if("LogicalExpression"===i.type)return n.operator!==i.operator;case"BinaryExpression":{const{operator:e,type:t}=i;if(!e&&"TSTypeAssertion"!==t)return!0;const o=ev(e),s=n.operator,a=ev(s);return a>o||"right"===r&&a===o||a===o&&!Zy(s,e)||(a"===n.operator);default:return!1}case"TSConditionalType":if("extendsType"===r&&"TSConditionalType"===n.type)return!0;case"TSFunctionType":case"TSConstructorType":if("checkType"===r&&"TSConditionalType"===n.type)return!0;case"TSUnionType":case"TSIntersectionType":if(("TSUnionType"===n.type||"TSIntersectionType"===n.type)&&n.types.length>1&&(!i.types||i.types.length>1))return!0;case"TSInferType":if("TSInferType"===i.type&&"TSRestType"===n.type)return!1;case"TSTypeOperator":return"TSArrayType"===n.type||"TSOptionalType"===n.type||"TSRestType"===n.type||"objectType"===r&&"TSIndexedAccessType"===n.type||"TSTypeOperator"===n.type||"TSTypeAnnotation"===n.type&&/^TSJSDoc/.test(e.getParentNode(1).type);case"ArrayTypeAnnotation":return"NullableTypeAnnotation"===n.type;case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return"ArrayTypeAnnotation"===n.type||"NullableTypeAnnotation"===n.type||"IntersectionTypeAnnotation"===n.type||"UnionTypeAnnotation"===n.type||"objectType"===r&&("IndexedAccessType"===n.type||"OptionalIndexedAccessType"===n.type);case"NullableTypeAnnotation":return"ArrayTypeAnnotation"===n.type||"objectType"===r&&("IndexedAccessType"===n.type||"OptionalIndexedAccessType"===n.type);case"FunctionTypeAnnotation":{const t="NullableTypeAnnotation"===n.type?e.getParentNode(1):n;return"UnionTypeAnnotation"===t.type||"IntersectionTypeAnnotation"===t.type||"ArrayTypeAnnotation"===t.type||"objectType"===r&&("IndexedAccessType"===t.type||"OptionalIndexedAccessType"===t.type)||"NullableTypeAnnotation"===t.type||"FunctionTypeParam"===n.type&&null===n.name&&Wy(i).some(e=>e.typeAnnotation&&"NullableTypeAnnotation"===e.typeAnnotation.type)}case"OptionalIndexedAccessType":return"objectType"===r&&"IndexedAccessType"===n.type;case"TypeofTypeAnnotation":return"objectType"===r&&("IndexedAccessType"===n.type||"OptionalIndexedAccessType"===n.type);case"StringLiteral":case"NumericLiteral":case"Literal":if("string"==typeof i.value&&"ExpressionStatement"===n.type&&!n.directive){const t=e.getParentNode(1);return"Program"===t.type||"BlockStatement"===t.type}return"object"===r&&"MemberExpression"===n.type&&"number"==typeof i.value;case"AssignmentExpression":{const t=e.getParentNode(1);return"body"===r&&"ArrowFunctionExpression"===n.type||("key"!==r||"ClassProperty"!==n.type&&"PropertyDefinition"!==n.type||!n.computed)&&("init"!==r&&"update"!==r||"ForStatement"!==n.type)&&("ExpressionStatement"===n.type?"ObjectPattern"===i.left.type:("key"!==r||"TSPropertySignature"!==n.type)&&"AssignmentExpression"!==n.type&&("SequenceExpression"!==n.type||!t||"ForStatement"!==t.type||t.init!==n&&t.update!==n)&&("value"!==r||"Property"!==n.type||!t||"ObjectPattern"!==t.type||!t.properties.includes(n))&&"NGChainedExpression"!==n.type)}case"ConditionalExpression":switch(n.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"callee"===r;case"ConditionalExpression":return"test"===r;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;default:return!1}case"FunctionExpression":switch(n.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(n.type){case"PipelineTopicExpression":return Boolean(i.extra&&i.extra.parenthesized);case"BinaryExpression":return"|>"!==n.operator||i.extra&&i.extra.parenthesized;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;case"TSAsExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return"test"===r;default:return!1}case"ClassExpression":switch(n.type){case"NewExpression":return"callee"===r;default:return!1}case"OptionalMemberExpression":case"OptionalCallExpression":{const t=e.getParentNode(1);if("object"===r&&"MemberExpression"===n.type||"callee"===r&&("CallExpression"===n.type||"NewExpression"===n.type)||"TSNonNullExpression"===n.type&&"MemberExpression"===t.type&&t.object===n)return!0}case"CallExpression":case"MemberExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":if("callee"===r&&("BindExpression"===n.type||"NewExpression"===n.type)){let e=i;for(;e;)switch(e.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":e=e.object;break;case"TaggedTemplateExpression":e=e.tag;break;case"TSNonNullExpression":e=e.expression;break;default:return!1}}return!1;case"BindExpression":return"callee"===r&&("BindExpression"===n.type||"NewExpression"===n.type)||"object"===r&&nv(n);case"NGPipeExpression":return!("NGRoot"===n.type||"NGMicrosyntaxExpression"===n.type||"ObjectProperty"===n.type&&(!i.extra||!i.extra.parenthesized)||"ArrayExpression"===n.type||tv(n)&&n.arguments[r]===i||"right"===r&&"NGPipeExpression"===n.type||"property"===r&&"MemberExpression"===n.type||"AssignmentExpression"===n.type);case"JSXFragment":case"JSXElement":return"callee"===r||"left"===r&&"BinaryExpression"===n.type&&"<"===n.operator||"ArrayExpression"!==n.type&&"ArrowFunctionExpression"!==n.type&&"AssignmentExpression"!==n.type&&"AssignmentPattern"!==n.type&&"BinaryExpression"!==n.type&&"NewExpression"!==n.type&&"ConditionalExpression"!==n.type&&"ExpressionStatement"!==n.type&&"JsExpressionRoot"!==n.type&&"JSXAttribute"!==n.type&&"JSXElement"!==n.type&&"JSXExpressionContainer"!==n.type&&"JSXFragment"!==n.type&&"LogicalExpression"!==n.type&&!tv(n)&&!rv(n)&&"ReturnStatement"!==n.type&&"ThrowStatement"!==n.type&&"TypeCastExpression"!==n.type&&"VariableDeclarator"!==n.type&&"YieldExpression"!==n.type;case"TypeAnnotation":return"returnType"===r&&"ArrowFunctionExpression"===n.type&&function(e){return Xy(e,e=>"ObjectTypeAnnotation"===e.type&&Xy(e,e=>"FunctionTypeAnnotation"===e.type||void 0)||void 0)}(i)}return!1}function ov(e){const t=e.getValue(),n=e.getParentNode(),r=e.getName();switch(n.type){case"NGPipeExpression":if("number"==typeof r&&n.arguments[r]===t&&n.arguments.length-1===r)return e.callParent(ov);break;case"ObjectProperty":if("value"===r){const t=e.getParentNode(1);return Bn(t.properties)===n}break;case"BinaryExpression":case"LogicalExpression":if("right"===r)return e.callParent(ov);break;case"ConditionalExpression":if("alternate"===r)return e.callParent(ov);break;case"UnaryExpression":if(n.prefix)return e.callParent(ov)}return!1}function sv(e,t){const n=e.getValue(),r=e.getParentNode();return"FunctionExpression"===n.type||"ClassExpression"===n.type?"ExportDefaultDeclaration"===r.type||!iv(e,t):!(!Yy(n)||"ExportDefaultDeclaration"!==r.type&&iv(e,t))&&e.call(e=>sv(e,t),...Gy(e,n))}var av=iv,uv=function(e,t){switch(t.parser){case"json":case"json5":case"json-stringify":case"__js_expression":case"__vue_expression":return Object.assign(Object.assign({},e),{},{type:t.parser.startsWith("__")?"JsExpressionRoot":"JsonRoot",node:e,comments:[],rootMarker:t.rootMarker});default:return e}};const{builders:{join:lv,line:cv,group:pv,softline:fv,indent:hv}}=uo;var dv={isVueEventBindingExpression:function e(t){switch(t.type){case"MemberExpression":switch(t.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return e(t.object)}return!1;case"Identifier":return!0;default:return!1}},printHtmlBinding:function(e,t,n){const r=e.getValue();if(t.__onHtmlBindingRoot&&null===e.getName()&&t.__onHtmlBindingRoot(r,t),"File"===r.type)return t.__isVueForBindingLeft?e.call(e=>{const t=lv([",",cv],e.map(n,"params")),{params:r}=e.getValue();return 1===r.length?t:["(",hv([fv,pv(t)]),fv,")"]},"program","body",0):t.__isVueBindings?e.call(e=>lv([",",cv],e.map(n,"params")),"program","body",0):void 0}};const{printComments:mv}=Jf,{getLast:gv}=_i,{builders:{join:yv,line:vv,softline:bv,group:Dv,indent:wv,align:Cv,ifBreak:xv,indentIfBreak:Ev},utils:{cleanDoc:_v,getDocParts:kv,isConcat:Tv}}=uo,{hasLeadingOwnLineComment:Sv,isBinaryish:Av,isJsxNode:Ov,shouldFlatten:Fv,hasComment:Nv,CommentCheckFlags:Iv,isCallExpression:Pv,isMemberExpression:Mv,isObjectProperty:Lv}=tm;let jv=0;function Bv(e,t,n,r,i){let o=[];const s=e.getValue();if(Av(s)){Fv(s.operator,s.left.operator)?o=[...o,...e.call(e=>Bv(e,t,n,!0,i),"left")]:o.push(Dv(t("left")));const a=Rv(s),u=("|>"===s.operator||"NGPipeExpression"===s.type||"|"===s.operator&&"__vue_expression"===n.parser)&&!Sv(n.originalText,s.right),l="NGPipeExpression"===s.type?"|":s.operator,c="NGPipeExpression"===s.type&&s.arguments.length>0?Dv(wv([bv,": ",yv([bv,":",xv(" ")],e.map(t,"arguments").map(e=>Cv(2,Dv(e))))])):"",p=a?[l," ",t("right"),c]:[u?vv:"",l,u?" ":vv,t("right"),c],f=e.getParentNode(),h=Nv(s.left,Iv.Trailing|Iv.Line),d=h||!(i&&"LogicalExpression"===s.type)&&f.type!==s.type&&s.left.type!==s.type&&s.right.type!==s.type;if(o.push(u?"":" ",d?Dv(p,{shouldBreak:h}):p),r&&Nv(s)){const t=_v(mv(e,o,n));o=Tv(t)||"fill"===t.type?kv(t):[t]}}else o.push(Dv(t()));return o}function Rv(e){return"LogicalExpression"===e.type&&("ObjectExpression"===e.right.type&&e.right.properties.length>0||"ArrayExpression"===e.right.type&&e.right.elements.length>0||!!Ov(e.right))}var $v={printBinaryishExpression:function(e,t,n){const r=e.getValue(),i=e.getParentNode(),o=e.getParentNode(1),s=r!==i.body&&("IfStatement"===i.type||"WhileStatement"===i.type||"SwitchStatement"===i.type||"DoWhileStatement"===i.type),a=Bv(e,n,t,!1,s);if(s)return a;if(Pv(i)&&i.callee===r||"UnaryExpression"===i.type||Mv(i)&&!i.computed)return Dv([wv([bv,...a]),bv]);const u="ReturnStatement"===i.type||"ThrowStatement"===i.type||"JSXExpressionContainer"===i.type&&"JSXAttribute"===o.type||"|"!==r.operator&&"JsExpressionRoot"===i.type||"NGPipeExpression"!==r.type&&("NGRoot"===i.type&&"__ng_binding"===t.parser||"NGMicrosyntaxExpression"===i.type&&"NGMicrosyntax"===o.type&&1===o.body.length)||r===i.body&&"ArrowFunctionExpression"===i.type||r!==i.body&&"ForStatement"===i.type||"ConditionalExpression"===i.type&&"ReturnStatement"!==o.type&&"ThrowStatement"!==o.type&&!Pv(o)||"TemplateLiteral"===i.type,l="AssignmentExpression"===i.type||"VariableDeclarator"===i.type||"ClassProperty"===i.type||"PropertyDefinition"===i.type||"TSAbstractClassProperty"===i.type||"ClassPrivateProperty"===i.type||Lv(i),c=Av(r.left)&&Fv(r.operator,r.left.operator);if(u||Rv(r)&&!c||!Rv(r)&&l)return Dv(a);if(0===a.length)return"";const p=Ov(r.right),f=a.findIndex(e=>"string"!=typeof e&&!Array.isArray(e)&&"group"===e.type),h=a.slice(0,-1===f?1:f+1),d=a.slice(h.length,p?-1:void 0),m=Symbol("logicalChain-"+ ++jv),g=Dv([...h,wv(d)],{id:m});if(!p)return g;const y=gv(a);return Dv([g,Ev(y,{groupId:m})])},shouldInlineLogicalExpression:Rv};const{builders:{join:Hv,line:Uv,group:qv}}=uo,{hasNode:zv,hasComment:Vv,getComments:Wv}=tm,{printBinaryishExpression:Gv}=$v;function Kv(e,t,n){return"NGMicrosyntaxKeyedExpression"===e.type&&"of"===e.key.name&&1===t&&"NGMicrosyntaxLet"===n.body[0].type&&null===n.body[0].value}var Yv={printAngular:function(e,t,n){const r=e.getValue();if(r.type.startsWith("NG"))switch(r.type){case"NGRoot":return[n("node"),Vv(r.node)?" //"+Wv(r.node)[0].value.trimEnd():""];case"NGPipeExpression":return Gv(e,t,n);case"NGChainedExpression":return qv(Hv([";",Uv],e.map(e=>function(e){return zv(e.getValue(),e=>{switch(e.type){case void 0:return!1;case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}})}(e)?n():["(",n(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGQuotedExpression":return[r.prefix,": ",r.value.trim()];case"NGMicrosyntax":return e.map((e,t)=>[0===t?"":Kv(e.getValue(),t,r)?" ":[";",Uv],n()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/i.test(r.name)?r.name:JSON.stringify(r.name);case"NGMicrosyntaxExpression":return[n("expression"),null===r.alias?"":[" as ",n("alias")]];case"NGMicrosyntaxKeyedExpression":{const t=e.getName(),i=e.getParentNode(),o=Kv(r,t,i)||(1===t&&("then"===r.key.name||"else"===r.key.name)||2===t&&"else"===r.key.name&&"NGMicrosyntaxKeyedExpression"===i.body[t-1].type&&"then"===i.body[t-1].key.name)&&"NGMicrosyntaxExpression"===i.body[0].type;return[n("key"),o?" ":": ",n("expression")]}case"NGMicrosyntaxLet":return["let ",n("key"),null===r.value?"":[" = ",n("value")]];case"NGMicrosyntaxAs":return[n("key")," as ",n("alias")];default:throw new Error(`Unknown Angular node type: ${JSON.stringify(r.type)}.`)}}};const{printComments:Xv,printDanglingComments:Jv}=Jf,{builders:{line:Qv,hardline:Zv,softline:eb,group:tb,indent:nb,conditionalGroup:rb,fill:ib,ifBreak:ob,lineSuffixBoundary:sb,join:ab},utils:{willBreak:ub}}=uo,{getLast:lb,getPreferredQuote:cb}=_i,{isJsxNode:pb,rawText:fb,isLiteral:hb,isCallExpression:db,isStringLiteral:mb,isBinaryish:gb,hasComment:yb,CommentCheckFlags:vb,hasNodeIgnoreComment:bb}=tm,{willPrintOwnComments:Db}=Vy,wb=e=>""===e||e===Qv||e===Zv||e===eb;function Cb(e,t,n){const r=e.getValue();if("JSXElement"===r.type&&function(e){if(0===e.children.length)return!0;if(e.children.length>1)return!1;const t=e.children[0];return hb(t)&&!Ob(t)}(r))return[n("openingElement"),n("closingElement")];const i="JSXElement"===r.type?n("openingElement"):n("openingFragment"),o="JSXElement"===r.type?n("closingElement"):n("closingFragment");if(1===r.children.length&&"JSXExpressionContainer"===r.children[0].type&&("TemplateLiteral"===r.children[0].expression.type||"TaggedTemplateExpression"===r.children[0].expression.type))return[i,...e.map(n,"children"),o];r.children=r.children.map(e=>function(e){return"JSXExpressionContainer"===e.type&&hb(e.expression)&&" "===e.expression.value&&!yb(e.expression)}(e)?{type:"JSXText",value:" ",raw:" "}:e);const s=r.children.filter(pb).length>0,a=r.children.filter(e=>"JSXExpressionContainer"===e.type).length>1,u="JSXElement"===r.type&&r.openingElement.attributes.length>1;let l=ub(i)||s||u||a;const c="mdx"===e.getParentNode().rootMarker,p=t.singleQuote?"{' '}":'{" "}',f=c?" ":ob([p,eb]," "),h=function(e,t,n,r,i){const o=[];return e.each((e,t,s)=>{const a=e.getValue();if(hb(a)){const e=fb(a);if(Ob(a)){const n=e.split(Tb);if(""===n[0]){if(o.push(""),n.shift(),/\n/.test(n[0])){const e=s[t+1];o.push(Eb(i,n[1],a,e))}else o.push(r);n.shift()}let u;if(""===lb(n)&&(n.pop(),u=n.pop()),0===n.length)return;for(const[e,t]of n.entries())e%2==1?o.push(Qv):o.push(t);if(void 0!==u)if(/\n/.test(u)){const e=s[t+1];o.push(Eb(i,lb(o),a,e))}else o.push(r);else{const e=s[t+1];o.push(xb(i,lb(o),a,e))}}else/\n/.test(e)?e.match(/\n/g).length>1&&o.push("",Zv):o.push("",r)}else{const e=n();o.push(e);const r=s[t+1];if(r&&Ob(r)){const e=Ab(fb(r)).split(Tb)[0];o.push(xb(i,e,a,r))}else o.push(Zv)}},"children"),o}(e,0,n,f,r.openingElement&&r.openingElement.name&&"fbt"===r.openingElement.name.name),d=r.children.some(e=>Ob(e));for(let v=h.length-2;v>=0;v--){const e=""===h[v]&&""===h[v+1],t=h[v]===Zv&&""===h[v+1]&&h[v+2]===Zv,n=(h[v]===eb||h[v]===Zv)&&""===h[v+1]&&h[v+2]===f,r=h[v]===f&&""===h[v+1]&&(h[v+2]===eb||h[v+2]===Zv),i=h[v]===f&&""===h[v+1]&&h[v+2]===f,o=h[v]===eb&&""===h[v+1]&&h[v+2]===Zv||h[v]===Zv&&""===h[v+1]&&h[v+2]===eb;t&&d||e||n||i||o?h.splice(v,2):r&&h.splice(v+1,2)}for(;h.length>0&&wb(lb(h));)h.pop();for(;h.length>1&&wb(h[0])&&wb(h[1]);)h.shift(),h.shift();const m=[];for(const[v,b]of h.entries()){if(b===f){if(1===v&&""===h[v-1]){if(2===h.length){m.push(p);continue}m.push([p,Zv]);continue}if(v===h.length-1){m.push(p);continue}if(""===h[v-1]&&h[v-2]===Zv){m.push(p);continue}}m.push(b),ub(b)&&(l=!0)}const g=d?ib(m):tb(m,{shouldBreak:!0});if(c)return g;const y=tb([i,nb([Zv,g]),Zv,o]);return l?y:rb([tb([i,...h,o]),y])}function xb(e,t,n,r){return e?"":"JSXElement"===n.type&&!n.closingElement||r&&"JSXElement"===r.type&&!r.closingElement?1===t.length?eb:Zv:eb}function Eb(e,t,n,r){return e?Zv:1===t.length?"JSXElement"===n.type&&!n.closingElement||r&&"JSXElement"===r.type&&!r.closingElement?Zv:eb:Zv}function _b(e,t,n){return function(e,t,n){const r=e.getParentNode();if(!r)return t;if({ArrayExpression:!0,JSXAttribute:!0,JSXElement:!0,JSXExpressionContainer:!0,JSXFragment:!0,ExpressionStatement:!0,CallExpression:!0,OptionalCallExpression:!0,ConditionalExpression:!0,JsExpressionRoot:!0}[r.type])return t;const i=e.match(void 0,e=>"ArrowFunctionExpression"===e.type,db,e=>"JSXExpressionContainer"===e.type),o=av(e,n);return tb([o?"":ob("("),nb([eb,t]),eb,o?"":ob(")")],{shouldBreak:i})}(e,Xv(e,Cb(e,t,n),t),t)}function kb(e,t,n){const r=e.getValue();return["{",e.call(e=>{const r=["...",n()],i=e.getValue();return yb(i)&&Db(e)?[nb([eb,Xv(e,r,t)]),eb]:r},"JSXSpreadAttribute"===r.type?"argument":"expression"),"}"]}const Tb=new RegExp("([ \n\r\t]+)"),Sb=new RegExp("[^ \n\r\t]"),Ab=e=>e.replace(new RegExp("(?:^"+Tb.source+"|"+Tb.source+"$)"),"");function Ob(e){return hb(e)&&(Sb.test(fb(e))||!/\n/.test(fb(e)))}var Fb={hasJsxIgnoreComment:function(e){const t=e.getValue(),n=e.getParentNode();if(!(n&&t&&pb(t)&&pb(n)))return!1;let r=null;for(let i=n.children.indexOf(t);i>0;i--){const e=n.children[i-1];if("JSXText"!==e.type||Ob(e)){r=e;break}}return r&&"JSXExpressionContainer"===r.type&&"JSXEmptyExpression"===r.expression.type&&bb(r.expression)},printJsx:function(e,t,n){const r=e.getValue();if(r.type.startsWith("JSX"))switch(r.type){case"JSXAttribute":return function(e,t,n){const r=e.getValue(),i=[];if(i.push(n("name")),r.value){let e;if(mb(r.value)){let n=fb(r.value).replace(/'/g,"'").replace(/"/g,'"');const i=cb(n,t.jsxSingleQuote?"'":'"'),o="'"===i?"'":""";n=n.slice(1,-1).replace(new RegExp(i,"g"),o),e=[i,n,i]}else e=n("value");i.push("=",e)}return i}(e,t,n);case"JSXIdentifier":return String(r.name);case"JSXNamespacedName":return ab(":",[n("namespace"),n("name")]);case"JSXMemberExpression":return ab(".",[n("object"),n("property")]);case"JSXSpreadAttribute":return kb(e,t,n);case"JSXSpreadChild":return kb(e,t,n);case"JSXExpressionContainer":return function(e,t,n){const r=e.getValue(),i=e.getParentNode(0),o="JSXEmptyExpression"===r.expression.type||!yb(r.expression)&&("ArrayExpression"===r.expression.type||"ObjectExpression"===r.expression.type||"ArrowFunctionExpression"===r.expression.type||db(r.expression)||"FunctionExpression"===r.expression.type||"TemplateLiteral"===r.expression.type||"TaggedTemplateExpression"===r.expression.type||"DoExpression"===r.expression.type||pb(i)&&("ConditionalExpression"===r.expression.type||gb(r.expression)));return tb(o?["{",n("expression"),sb,"}"]:["{",nb([eb,n("expression")]),eb,sb,"}"])}(e,0,n);case"JSXFragment":case"JSXElement":return _b(e,t,n);case"JSXOpeningElement":return function(e,t,n){const r=e.getValue(),i=r.name&&yb(r.name)||r.typeParameters&&yb(r.typeParameters);if(r.selfClosing&&0===r.attributes.length&&!i)return["<",n("name"),n("typeParameters")," />"];if(r.attributes&&1===r.attributes.length&&r.attributes[0].value&&mb(r.attributes[0].value)&&!r.attributes[0].value.value.includes("\n")&&!i&&!yb(r.attributes[0]))return tb(["<",n("name"),n("typeParameters")," ",...e.map(n,"attributes"),r.selfClosing?" />":">"]);const o=r.attributes.length>0&&yb(lb(r.attributes),vb.Trailing),s=0===r.attributes.length&&!i||(t.bracketSameLine||t.jsxBracketSameLine)&&(!i||r.attributes.length>0)&&!o,a=r.attributes&&r.attributes.some(e=>e.value&&mb(e.value)&&e.value.value.includes("\n"));return tb(["<",n("name"),n("typeParameters"),nb(e.map(()=>[Qv,n()],"attributes")),r.selfClosing?Qv:s?">":eb,r.selfClosing?"/>":s?"":">"],{shouldBreak:a})}(e,t,n);case"JSXClosingElement":return function(e,t,n){const r=e.getValue(),i=[];i.push(""),i}(e,0,n);case"JSXOpeningFragment":case"JSXClosingFragment":return function(e,t){const n=e.getValue(),r=yb(n),i=yb(n,vb.Line),o="JSXOpeningFragment"===n.type;return[o?"<":""]}(e,t);case"JSXEmptyExpression":return function(e,t){const n=e.getValue(),r=yb(n,vb.Line);return[Jv(e,t,!r),r?Zv:""]}(e,t);case"JSXText":throw new Error("JSXTest should be handled by JSXElement");default:throw new Error(`Unknown JSX node type: ${JSON.stringify(r.type)}.`)}}};nt({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=V(this),n=Be(t.length),r=Vn(t,0);return r.length=qn(r,t,t,n,0,void 0===e?1:Le(e)),r}});const{isNonEmptyArray:Nb}=_i,{builders:{indent:Ib,join:Pb,line:Mb}}=uo,{isFlowAnnotationComment:Lb}=tm;function jb(e,t,n){const r=e.getValue();if(!r.typeAnnotation)return"";const i=e.getParentNode(),o=r.definite||i&&"VariableDeclarator"===i.type&&i.definite,s="DeclareFunction"===i.type&&i.id===r;return Lb(t.originalText,r.typeAnnotation)?[" /*: ",n("typeAnnotation")," */"]:[s?"":o?"!: ":": ",n("typeAnnotation")]}var Bb={printOptionalToken:function(e){const t=e.getValue();return!t.optional||"Identifier"===t.type&&t===e.getParentNode().key?"":"OptionalCallExpression"===t.type||"OptionalMemberExpression"===t.type&&t.computed?"?.":"?"},printFunctionTypeParameters:function(e,t,n){const r=e.getValue();return r.typeArguments?n("typeArguments"):r.typeParameters?n("typeParameters"):""},printBindExpressionCallee:function(e,t,n){return["::",n("callee")]},printTypeScriptModifiers:function(e,t,n){const r=e.getValue();return Nb(r.modifiers)?[Pb(" ",e.map(n,"modifiers"))," "]:""},printTypeAnnotation:jb,printRestSpread:function(e,t,n){return["...",n("argument"),jb(e,t,n)]},adjustClause:function(e,t,n){return"EmptyStatement"===e.type?";":"BlockStatement"===e.type||n?[" ",t]:Ib([Mb,t])}};const{printDanglingComments:Rb}=Jf,{builders:{line:$b,softline:Hb,hardline:Ub,group:qb,indent:zb,ifBreak:Vb,fill:Wb}}=uo,{getLast:Gb,hasNewline:Kb}=_i,{shouldPrintComma:Yb,hasComment:Xb,CommentCheckFlags:Jb,isNextLineEmpty:Qb,isNumericLiteral:Zb,isSignedNumericLiteral:eD}=tm,{locStart:tD}=ec,{printOptionalToken:nD,printTypeAnnotation:rD}=Bb;function iD(e,t){return e.elements.length>1&&e.elements.every(e=>e&&(Zb(e)||eD(e)&&!Xb(e.argument))&&!Xb(e,Jb.Trailing|Jb.Line,e=>!Kb(t.originalText,tD(e),{backwards:!0})))}function oD(e,t,n,r){const i=[];let o=[];return e.each(e=>{i.push(o,qb(r())),o=[",",$b],e.getValue()&&Qb(e.getValue(),t)&&o.push(Hb)},n),i}function sD(e,t,n,r){const i=[];return e.each((e,o,s)=>{const a=o===s.length-1;i.push([n(),a?r:","]),a||i.push(Qb(e.getValue(),t)?[Ub,Ub]:Xb(s[o+1],Jb.Leading|Jb.Line)?Ub:$b)},"elements"),Wb(i)}var aD={printArray:function(e,t,n){const r=e.getValue(),i=[],o="TupleExpression"===r.type?"#[":"[";if(0===r.elements.length)Xb(r,Jb.Dangling)?i.push(qb([o,Rb(e,t),Hb,"]"])):i.push(o,"]");else{const s=Gb(r.elements),a=!(s&&"RestElement"===s.type),u=null===s,l=Symbol("array"),c=!t.__inJestEach&&r.elements.length>1&&r.elements.every((e,t,n)=>{const r=e&&e.type;if("ArrayExpression"!==r&&"ObjectExpression"!==r)return!1;const i=n[t+1];if(i&&r!==i.type)return!1;const o="ArrayExpression"===r?"elements":"properties";return e[o]&&e[o].length>1}),p=iD(r,t),f=a?u?",":Yb(t)?p?Vb(",","",{groupId:l}):Vb(","):"":"";i.push(qb([o,zb([Hb,p?sD(e,t,n,f):[oD(e,t,"elements",n),f],Rb(e,t,!0)]),Hb,"]"],{shouldBreak:c,id:l}))}return i.push(nD(e),rD(e,t,n)),i},printArrayItems:oD,isConciselyPrintedArray:iD};const{printDanglingComments:uD}=Jf,{getLast:lD,getPenultimate:cD}=_i,{getFunctionParameters:pD,hasComment:fD,CommentCheckFlags:hD,isFunctionCompositionArgs:dD,isJsxNode:mD,isLongCurriedCallExpression:gD,shouldPrintComma:yD,getCallArguments:vD,iterateCallArgumentsPath:bD,isNextLineEmpty:DD,isCallExpression:wD,isStringLiteral:CD,isObjectProperty:xD}=tm,{builders:{line:ED,hardline:_D,softline:kD,group:TD,indent:SD,conditionalGroup:AD,ifBreak:OD,breakParent:FD},utils:{willBreak:ND}}=uo,{ArgExpansionBailout:ID}=Os,{isConciselyPrintedArray:PD}=aD;function MD(e,t=!1){return"ObjectExpression"===e.type&&(e.properties.length>0||fD(e))||"ArrayExpression"===e.type&&(e.elements.length>0||fD(e))||"TSTypeAssertion"===e.type&&MD(e.expression)||"TSAsExpression"===e.type&&MD(e.expression)||"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&(!e.returnType||!e.returnType.typeAnnotation||"TSTypeReference"!==e.returnType.typeAnnotation.type||"BlockStatement"===(n=e.body).type&&(n.body.some(e=>"EmptyStatement"!==e.type)||fD(n,hD.Dangling)))&&("BlockStatement"===e.body.type||"ArrowFunctionExpression"===e.body.type&&MD(e.body,!0)||"ObjectExpression"===e.body.type||"ArrayExpression"===e.body.type||!t&&(wD(e.body)||"ConditionalExpression"===e.body.type)||mD(e.body))||"DoExpression"===e.type||"ModuleExpression"===e.type;var n}var LD=function(e,t,n){const r=e.getValue(),i="ImportExpression"===r.type,o=vD(r);if(0===o.length)return["(",uD(e,t,!0),")"];if(function(e){return 2===e.length&&"ArrowFunctionExpression"===e[0].type&&0===pD(e[0]).length&&"BlockStatement"===e[0].body.type&&"ArrayExpression"===e[1].type&&!e.some(e=>fD(e))}(o))return["(",n(["arguments",0]),", ",n(["arguments",1]),")"];let s=!1,a=!1;const u=o.length-1,l=[];bD(e,(e,r)=>{const i=e.getNode(),o=[n()];r===u||(DD(i,t)?(0===r&&(a=!0),s=!0,o.push(",",_D,_D)):o.push(",",ED)),l.push(o)});const c=i||r.callee&&"Import"===r.callee.type||!yD(t,"all")?"":",";function p(){return TD(["(",SD([ED,...l]),c,ED,")"],{shouldBreak:!0})}if(s||"Decorator"!==e.getParentNode().type&&dD(o))return p();const f=function(e){if(2!==e.length)return!1;const[t,n]=e;return!("ModuleExpression"!==t.type||!function(e){return"ObjectExpression"===e.type&&1===e.properties.length&&xD(e.properties[0])&&"Identifier"===e.properties[0].key.type&&"type"===e.properties[0].key.name&&CD(e.properties[0].value)&&"module"===e.properties[0].value.value}(n))||!fD(t)&&("FunctionExpression"===t.type||"ArrowFunctionExpression"===t.type&&"BlockStatement"===t.body.type)&&"FunctionExpression"!==n.type&&"ArrowFunctionExpression"!==n.type&&"ConditionalExpression"!==n.type&&!MD(n)}(o),h=function(e,t){const n=lD(e),r=cD(e);return!fD(n,hD.Leading)&&!fD(n,hD.Trailing)&&MD(n)&&(!r||r.type!==n.type)&&(2!==e.length||"ArrowFunctionExpression"!==r.type||"ArrayExpression"!==n.type)&&!(e.length>1&&"ArrayExpression"===n.type&&PD(n,t))}(o,t);if(f||h){if(f?l.slice(1).some(ND):l.slice(0,-1).some(ND))return p();let t=[];try{e.try(()=>{bD(e,(e,r)=>{f&&0===r&&(t=[[n([],{expandFirstArg:!0}),l.length>1?",":"",a?_D:ED,a?_D:""],...l.slice(1)]),h&&r===u&&(t=[...l.slice(0,-1),n([],{expandLastArg:!0})])})})}catch(e){if(e instanceof ID)return p();throw e}return[l.some(ND)?FD:"",AD([["(",...t,")"],f?["(",TD(t[0],{shouldBreak:!0}),...t.slice(1),")"]:["(",...l.slice(0,-1),TD(lD(t),{shouldBreak:!0}),")"],p()])]}const d=["(",SD([kD,...l]),OD(c),kD,")"];return gD(e)?d:TD(d,{shouldBreak:l.some(ND)||s})};const{builders:{softline:jD,group:BD,indent:RD,label:$D}}=uo,{isNumericLiteral:HD,isMemberExpression:UD,isCallExpression:qD}=tm,{printOptionalToken:zD}=Bb;function VD(e,t,n){const r=n("property"),i=e.getValue(),o=zD(e);return i.computed?!i.property||HD(i.property)?[o,"[",r,"]"]:BD([o,"[",RD([jD,r]),jD,"]"]):[o,".",r]}var WD={printMemberExpression:function(e,t,n){const r=e.getValue(),i=e.getParentNode();let o,s=0;do{o=e.getParentNode(s),s++}while(o&&(UD(o)||"TSNonNullExpression"===o.type));const a=n("object"),u=VD(e,t,n),l=o&&("NewExpression"===o.type||"BindExpression"===o.type||"AssignmentExpression"===o.type&&"Identifier"!==o.left.type)||r.computed||"Identifier"===r.object.type&&"Identifier"===r.property.type&&!UD(i)||("AssignmentExpression"===i.type||"VariableDeclarator"===i.type)&&(qD(r.object)&&r.object.arguments.length>0||"TSNonNullExpression"===r.object.type&&qD(r.object.expression)&&r.object.expression.arguments.length>0||"member-chain"===a.label);return $D("member-chain"===a.label?"member-chain":"member",[a,l?u:BD(RD([jD,u]))])},printMemberLookup:VD};const{printComments:GD}=Jf,{getLast:KD,isNextLineEmptyAfterIndex:YD,getNextNonSpaceNonCommentCharacterIndex:XD}=_i,{isCallExpression:JD,isMemberExpression:QD,isFunctionOrArrowExpression:ZD,isLongCurriedCallExpression:ew,isMemberish:tw,isNumericLiteral:nw,isSimpleCallArgument:rw,hasComment:iw,CommentCheckFlags:ow,isNextLineEmpty:sw}=tm,{locEnd:aw}=ec,{builders:{join:uw,hardline:lw,group:cw,indent:pw,conditionalGroup:fw,breakParent:hw,label:dw},utils:{willBreak:mw}}=uo,{printMemberLookup:gw}=WD,{printOptionalToken:yw,printFunctionTypeParameters:vw,printBindExpressionCallee:bw}=Bb;var Dw=function(e,t,n){const r=e.getParentNode(),i=!r||"ExpressionStatement"===r.type,o=[];function s(e){const{originalText:n}=t,r=XD(n,e,aw);return")"===n.charAt(r)?!1!==r&&YD(n,r+1):sw(e,t)}function a(e){const r=e.getValue();JD(r)&&(tw(r.callee)||JD(r.callee))?(o.unshift({node:r,printed:[GD(e,[yw(e),vw(e,t,n),LD(e,t,n)],t),s(r)?lw:""]}),e.call(e=>a(e),"callee")):tw(r)?(o.unshift({node:r,needsParens:av(e,t),printed:GD(e,QD(r)?gw(e,t,n):bw(e,t,n),t)}),e.call(e=>a(e),"object")):"TSNonNullExpression"===r.type?(o.unshift({node:r,printed:GD(e,"!",t)}),e.call(e=>a(e),"expression")):o.unshift({node:r,printed:n()})}const u=e.getValue();o.unshift({node:u,printed:[yw(e),vw(e,t,n),LD(e,t,n)]}),u.callee&&e.call(e=>a(e),"callee");const l=[];let c=[o[0]],p=1;for(;p0&&l.push(c);const d=l.length>=2&&!iw(l[1][0].node)&&function(e){const n=e[1].length>0&&e[1][0].node.computed;if(1===e[0].length){const r=e[0][0].node;return"ThisExpression"===r.type||"Identifier"===r.type&&(h(r.name)||i&&function(e){return e.length<=t.tabWidth}(r.name)||n)}const r=KD(e[0]).node;return QD(r)&&"Identifier"===r.property.type&&(h(r.property.name)||n)}(l);function m(e){const t=e.map(e=>e.printed);return e.length>0&&KD(e).needsParens?["(",...t,")"]:t}const g=l.map(m),y=g,v=d?3:2,b=l.flat(),D=b.slice(1,-1).some(e=>iw(e.node,ow.Leading))||b.slice(0,-1).some(e=>iw(e.node,ow.Trailing))||l[v]&&iw(l[v][0].node,ow.Leading);if(l.length<=v&&!D)return ew(e)?y:cw(y);const w=KD(l[d?1:0]).node,C=!JD(w)&&s(w),x=[m(l[0]),d?l.slice(1,2).map(m):"",C?lw:"",function(e){return 0===e.length?"":pw(cw([lw,uw(lw,e.map(m))]))}(l.slice(d?2:1))],E=o.map(({node:e})=>e).filter(JD);let _;return _=D||E.length>2&&E.some(e=>!e.arguments.every(e=>rw(e,0)))||g.slice(0,-1).some(mw)||function(){const e=KD(KD(l)).node,t=KD(g);return JD(e)&&mw(t)&&E.slice(0,-1).some(e=>e.arguments.some(ZD))}()?cw(x):[mw(y)||C?hw:"",fw([y,x])],dw("member-chain",_)};const{builders:{join:ww,group:Cw}}=uo,{getCallArguments:xw,hasFlowAnnotationComment:Ew,isCallExpression:_w,isMemberish:kw,isStringLiteral:Tw,isTemplateOnItsOwnLine:Sw,isTestCall:Aw,iterateCallArgumentsPath:Ow}=tm,{printOptionalToken:Fw,printFunctionTypeParameters:Nw}=Bb;var Iw={printCallExpression:function(e,t,n){const r=e.getValue(),i=e.getParentNode(),o="NewExpression"===r.type,s="ImportExpression"===r.type,a=Fw(e),u=xw(r);if(u.length>0&&(!s&&!o&&function(e,t){if("Identifier"!==e.callee.type)return!1;if("require"===e.callee.name)return!0;if("define"===e.callee.name){const n=xw(e);return"ExpressionStatement"===t.type&&(1===n.length||2===n.length&&"ArrayExpression"===n[0].type||3===n.length&&Tw(n[0])&&"ArrayExpression"===n[1].type)}return!1}(r,i)||1===u.length&&Sw(u[0],t.originalText)||!o&&Aw(r,i))){const r=[];return Ow(e,()=>{r.push(n())}),[o?"new ":"",n("callee"),a,Nw(e,t,n),"(",ww(", ",r),")"]}const l=("babel"===t.parser||"babel-flow"===t.parser)&&r.callee&&"Identifier"===r.callee.type&&Ew(r.callee.trailingComments);if(l&&(r.callee.trailingComments[0].printed=!0),!s&&!o&&kw(r.callee)&&!e.call(e=>av(e,t),"callee"))return Dw(e,t,n);const c=[o?"new ":"",s?"import":n("callee"),a,l?`/*:: ${r.callee.trailingComments[0].value.slice(2).trim()} */`:"",Nw(e,t,n),LD(e,t,n)];return s||_w(r.callee)?Cw(c):c}};const{isNonEmptyArray:Pw,getStringWidth:Mw}=_i,{builders:{line:Lw,group:jw,indent:Bw,indentIfBreak:Rw},utils:{cleanDoc:$w,willBreak:Hw}}=uo,{hasLeadingOwnLineComment:Uw,isBinaryish:qw,isStringLiteral:zw,isLiteral:Vw,isNumericLiteral:Ww,isCallExpression:Gw,isMemberExpression:Kw,getCallArguments:Yw,rawText:Xw,hasComment:Jw,isSignedNumericLiteral:Qw,isObjectProperty:Zw}=tm,{shouldInlineLogicalExpression:eC}=$v,{printCallExpression:tC}=Iw;function nC(e,t,n,r,i,o){const s=function(e,t,n,r,i){const o=e.getValue(),s=o[i];if(!s)return"only-left";const a=!rC(s);if(e.match(rC,iC,e=>!a||"ExpressionStatement"!==e.type&&"VariableDeclaration"!==e.type))return a?"ArrowFunctionExpression"===s.type&&"ArrowFunctionExpression"===s.body.type?"chain-tail-arrow-chain":"chain-tail":"chain";if(!a&&rC(s.right)||Uw(t.originalText,s))return"break-after-operator";if("CallExpression"===s.type&&"require"===s.callee.name||"json5"===t.parser||"json"===t.parser)return"never-break-after-operator";if(function(e){if(iC(e)){const t=e.left||e.id;return"ObjectPattern"===t.type&&t.properties.length>2&&t.properties.some(e=>Zw(e)&&(!e.shorthand||e.value&&"AssignmentPattern"===e.value.type))}return!1}(o)||function(e){const t=function(e){return function(e){return"TSTypeAliasDeclaration"===e.type||"TypeAlias"===e.type}(e)&&e.typeParameters&&e.typeParameters.params?e.typeParameters.params:null}(e);if(Pw(t)){const n="TSTypeAliasDeclaration"===e.type?"constraint":"bound";if(t.length>1&&t.some(e=>e[n]||e.default))return!0}return!1}(o)||function(e){if("VariableDeclarator"!==e.type)return!1;const{typeAnnotation:t}=e.id;if(!t||!t.typeAnnotation)return!1;const n=oC(t.typeAnnotation);return Pw(n)&&n.length>1&&n.some(e=>Pw(oC(e))||"TSConditionalType"===e.type)}(o))return"break-lhs";const u=function(e,t,n){if(!Zw(e))return!1;t=$w(t);const r=3;return"string"==typeof t&&Mw(t)function(e,t,n,r){const i=e.getValue();if(qw(i)&&!eC(i))return!0;switch(i.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"ConditionalExpression":{const{test:e}=i;return qw(e)&&!eC(e)}case"ClassExpression":return Pw(i.decorators)}if(r)return!1;let o=i;const s=[];for(;;)if("UnaryExpression"===o.type)o=o.argument,s.push("argument");else{if("TSNonNullExpression"!==o.type)break;o=o.expression,s.push("expression")}return!(!zw(o)&&!e.call(()=>sC(e,t,n),...s))}(e,t,n,u),i)?"break-after-operator":u||"TemplateLiteral"===s.type||"TaggedTemplateExpression"===s.type||"BooleanLiteral"===s.type||Ww(s)||"ClassExpression"===s.type?"never-break-after-operator":"fluid"}(e,t,n,r,o),a=n(o,{assignmentLayout:s});switch(s){case"break-after-operator":return jw([jw(r),i,jw(Bw([Lw,a]))]);case"never-break-after-operator":return jw([jw(r),i," ",a]);case"fluid":{const e=Symbol("assignment");return jw([jw(r),i,jw(Bw(Lw),{id:e}),Rw(a,{groupId:e})])}case"break-lhs":return jw([r,i," ",jw(a)]);case"chain":return[jw(r),i,Lw,a];case"chain-tail":return[jw(r),i,Bw([Lw,a])];case"chain-tail-arrow-chain":return[jw(r),i,a];case"only-left":return r}}function rC(e){return"AssignmentExpression"===e.type}function iC(e){return rC(e)||"VariableDeclarator"===e.type}function oC(e){return function(e){return"TSTypeReference"===e.type||"GenericTypeAnnotation"===e.type}(e)&&e.typeParameters&&e.typeParameters.params?e.typeParameters.params:null}function sC(e,t,n,r=!1){const i=e.getValue(),o=()=>sC(e,t,n,!0);if("TSNonNullExpression"===i.type)return e.call(o,"expression");if(Gw(i)){if("member-chain"===tC(e,t,n).label)return!1;const r=Yw(i);return!!(0===r.length||1===r.length&&function(e,{printWidth:t}){if(Jw(e))return!1;const n=.25*t;if("ThisExpression"===e.type||"Identifier"===e.type&&e.name.length<=n||Qw(e)&&!Jw(e.argument))return!0;const r="Literal"===e.type&&"regex"in e&&e.regex.pattern||"RegExpLiteral"===e.type&&e.pattern;return r?r.length<=n:zw(e)?Xw(e).length<=n:"TemplateLiteral"===e.type?0===e.expressions.length&&e.quasis[0].value.raw.length<=n&&!e.quasis[0].value.raw.includes("\n"):Vw(e)}(r[0],t))&&!function(e,t){const n=function(e){return e.typeParameters&&e.typeParameters.params||e.typeArguments&&e.typeArguments.params}(e);if(Pw(n)){if(n.length>1)return!0;if(1===n.length){const e=n[0];if("TSUnionType"===e.type||"UnionTypeAnnotation"===e.type||"TSIntersectionType"===e.type||"IntersectionTypeAnnotation"===e.type)return!0}const r=e.typeParameters?"typeParameters":"typeArguments";if(Hw(t(r)))return!0}return!1}(i,n)&&e.call(o,"callee")}return Kw(i)?e.call(o,"object"):r&&("Identifier"===i.type||"ThisExpression"===i.type)}var aC={printVariableDeclarator:function(e,t,n){return nC(e,t,n,n("id")," =","init")},printAssignmentExpression:function(e,t,n){const r=e.getValue();return nC(e,t,n,n("left"),[" ",r.operator],"right")},printAssignment:nC};const{getNextNonSpaceNonCommentCharacter:uC}=_i,{printDanglingComments:lC}=Jf,{builders:{line:cC,hardline:pC,softline:fC,group:hC,indent:dC,ifBreak:mC},utils:{removeLines:gC,willBreak:yC}}=uo,{getFunctionParameters:vC,iterateFunctionParametersPath:bC,isSimpleType:DC,isTestCall:wC,isTypeAnnotationAFunction:CC,isObjectType:xC,isObjectTypePropertyAFunction:EC,hasRestParameter:_C,shouldPrintComma:kC,hasComment:TC,isNextLineEmpty:SC}=tm,{locEnd:AC}=ec,{ArgExpansionBailout:OC}=Os,{printFunctionTypeParameters:FC}=Bb;function NC(e){if(!e)return!1;const t=vC(e);if(1!==t.length)return!1;const[n]=t;return!TC(n)&&("ObjectPattern"===n.type||"ArrayPattern"===n.type||"Identifier"===n.type&&n.typeAnnotation&&("TypeAnnotation"===n.typeAnnotation.type||"TSTypeAnnotation"===n.typeAnnotation.type)&&xC(n.typeAnnotation.typeAnnotation)||"FunctionTypeParam"===n.type&&xC(n.typeAnnotation)||"AssignmentPattern"===n.type&&("ObjectPattern"===n.left.type||"ArrayPattern"===n.left.type)&&("Identifier"===n.right.type||"ObjectExpression"===n.right.type&&0===n.right.properties.length||"ArrayExpression"===n.right.type&&0===n.right.elements.length))}var IC={printFunctionParameters:function(e,t,n,r,i){const o=e.getValue(),s=vC(o),a=i?FC(e,n,t):"";if(0===s.length)return[a,"(",lC(e,n,!0,e=>")"===uC(n.originalText,e,AC)),")"];const u=e.getParentNode(),l=wC(u),c=NC(o),p=[];if(bC(e,(e,r)=>{const i=r===s.length-1;i&&o.rest&&p.push("..."),p.push(t()),i||(p.push(","),l||c?p.push(" "):SC(s[r],n)?p.push(pC,pC):p.push(cC))}),r){if(yC(a)||yC(p))throw new OC;return hC([gC(a),"(",gC(p),")"])}const f=s.every(e=>!e.decorators);return c&&f||l?[a,"(",...p,")"]:(EC(u)||CC(u)||"TypeAlias"===u.type||"UnionTypeAnnotation"===u.type||"TSUnionType"===u.type||"IntersectionTypeAnnotation"===u.type||"FunctionTypeAnnotation"===u.type&&u.returnType===o)&&1===s.length&&null===s[0].name&&o.this!==s[0]&&s[0].typeAnnotation&&null===o.typeParameters&&DC(s[0].typeAnnotation)&&!o.rest?"always"===n.arrowParens?["(",...p,")"]:p:[a,"(",dC([fC,...p]),mC(!_C(o)&&kC(n,"all")?",":""),fC,")"]},shouldHugFunctionParameters:NC,shouldGroupFunctionParameters:function(e,t){const n=function(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}(e);if(!n)return!1;const r=e.typeParameters&&e.typeParameters.params;if(r){if(r.length>1)return!1;if(1===r.length){const e=r[0];if(e.constraint||e.default)return!1}}return 1===vC(e).length&&(xC(n)||yC(t))}};const{printComments:PC,printDanglingComments:MC}=Jf,{getLast:LC}=_i,{builders:{group:jC,join:BC,line:RC,softline:$C,indent:HC,align:UC,ifBreak:qC}}=uo,{locStart:zC}=ec,{isSimpleType:VC,isObjectType:WC,hasLeadingOwnLineComment:GC,isObjectTypePropertyAFunction:KC,shouldPrintComma:YC}=tm,{printAssignment:XC}=aC,{printFunctionParameters:JC,shouldGroupFunctionParameters:QC}=IC,{printArrayItems:ZC}=aD;function ex(e){if(VC(e)||WC(e))return!0;if("UnionTypeAnnotation"===e.type||"TSUnionType"===e.type){const t=e.types.filter(e=>"VoidTypeAnnotation"===e.type||"TSVoidKeyword"===e.type||"NullLiteralTypeAnnotation"===e.type||"TSNullKeyword"===e.type).length,n=e.types.some(e=>"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type||"GenericTypeAnnotation"===e.type||"TSTypeReference"===e.type);if(e.types.length-1===t&&n)return!0}return!1}var tx={printOpaqueType:function(e,t,n){const r=t.semi?";":"",i=e.getValue(),o=[];return o.push("opaque type ",n("id"),n("typeParameters")),i.supertype&&o.push(": ",n("supertype")),i.impltype&&o.push(" = ",n("impltype")),o.push(r),o},printTypeAlias:function(e,t,n){const r=t.semi?";":"",i=e.getValue(),o=[];i.declare&&o.push("declare "),o.push("type ",n("id"),n("typeParameters"));const s="TSTypeAliasDeclaration"===i.type?"typeAnnotation":"right";return[XC(e,t,n,o," =",s),r]},printIntersectionType:function(e,t,n){const r=e.getValue(),i=e.map(n,"types"),o=[];let s=!1;for(let a=0;a1&&(s=!0),o.push(" & ",a>1?HC(i[a]):i[a])):o.push(HC([" &",RC,i[a]]));return jC(o)},printUnionType:function(e,t,n){const r=e.getValue(),i=e.getParentNode(),o=!("TypeParameterInstantiation"===i.type||"TSTypeParameterInstantiation"===i.type||"GenericTypeAnnotation"===i.type||"TSTypeReference"===i.type||"TSTypeAssertion"===i.type||"TupleTypeAnnotation"===i.type||"TSTupleType"===i.type||"FunctionTypeParam"===i.type&&!i.name&&e.getParentNode(1).this!==i||("TypeAlias"===i.type||"VariableDeclarator"===i.type||"TSTypeAliasDeclaration"===i.type)&&GC(t.originalText,r)),s=ex(r),a=e.map(e=>{let r=n();return s||(r=UC(2,r)),PC(e,r,t)},"types");if(s)return BC(" | ",a);const u=o&&!GC(t.originalText,r),l=[qC([u?RC:"","| "]),BC([RC,"| "],a)];return av(e,t)?jC([HC(l),$C]):"TupleTypeAnnotation"===i.type&&i.types.length>1||"TSTupleType"===i.type&&i.elementTypes.length>1?jC([HC([qC(["(",$C]),l]),$C,qC(")")]):jC(o?HC(l):l)},printFunctionType:function(e,t,n){const r=e.getValue(),i=[],o=e.getParentNode(0),s=e.getParentNode(1),a=e.getParentNode(2);let u="TSFunctionType"===r.type||!(("ObjectTypeProperty"===o.type||"ObjectTypeInternalSlot"===o.type)&&!o.variance&&!o.optional&&zC(o)===zC(r)||"ObjectTypeCallProperty"===o.type||a&&"DeclareFunction"===a.type),l=u&&("TypeAnnotation"===o.type||"TSTypeAnnotation"===o.type);const c=l&&u&&("TypeAnnotation"===o.type||"TSTypeAnnotation"===o.type)&&"ArrowFunctionExpression"===s.type;KC(o)&&(u=!0,l=!0),c&&i.push("(");const p=JC(e,n,t,!1,!0),f=r.returnType||r.predicate||r.typeAnnotation?[u?" => ":": ",n("returnType"),n("predicate"),n("typeAnnotation")]:"",h=QC(r,f);return i.push(h?jC(p):p),f&&i.push(f),c&&i.push(")"),jC(i)},printTupleType:function(e,t,n){const r=e.getValue(),i="TSTupleType"===r.type?"elementTypes":"types",o=r[i].length>0&&"TSRestType"===LC(r[i]).type;return jC(["[",HC([$C,ZC(e,t,i,n)]),qC(YC(t,"all")&&!o?",":""),MC(e,t,!0),$C,"]"])},printIndexedAccessType:function(e,t,n){const r=e.getValue(),i="OptionalIndexedAccessType"===r.type&&r.optional?"?.[":"[";return[n("objectType"),i,n("indexType"),"]"]},shouldHugType:ex};const{printDanglingComments:nx}=Jf,{builders:{join:rx,line:ix,hardline:ox,softline:sx,group:ax,indent:ux,ifBreak:lx}}=uo,{isTestCall:cx,hasComment:px,CommentCheckFlags:fx,isTSXFile:hx,shouldPrintComma:dx,getFunctionParameters:mx}=tm,{createGroupIdMapper:gx}=_i,{shouldHugType:yx}=tx,vx=gx("typeParameters");function bx(e,t){const n=e.getValue();if(!px(n,fx.Dangling))return"";const r=!px(n,fx.Line),i=nx(e,t,r);return r?i:[i,ox]}var Dx={printTypeParameter:function(e,t,n){const r=e.getValue(),i=[],o=e.getParentNode();return"TSMappedType"===o.type?(i.push("[",n("name")),r.constraint&&i.push(" in ",n("constraint")),o.nameType&&i.push(" as ",e.callParent(()=>n("nameType"))),i.push("]"),i):(r.variance&&i.push(n("variance")),i.push(n("name")),r.bound&&i.push(": ",n("bound")),r.constraint&&i.push(" extends ",n("constraint")),r.default&&i.push(" = ",n("default")),i)},printTypeParameters:function(e,t,n,r){const i=e.getValue();if(!i[r])return"";if(!Array.isArray(i[r]))return n(r);const o=e.getNode(2);if(o&&cx(o)||0===i[r].length||1===i[r].length&&(yx(i[r][0])||"NullableTypeAnnotation"===i[r][0].type))return["<",rx(", ",e.map(n,r)),bx(e,t),">"];const s="TSTypeParameterInstantiation"===i.type?"":1===mx(i).length&&hx(t)&&!i[r][0].constraint&&"ArrowFunctionExpression"===e.getParentNode().type?",":dx(t,"all")?lx(","):"";return ax(["<",ux([sx,rx([",",ix],e.map(n,r))]),s,sx,">"],{id:vx(i)})},getTypeParametersGroupId:vx};const{printComments:wx}=Jf,{printString:Cx,printNumber:xx}=_i,{isNumericLiteral:Ex,isSimpleNumber:_x,isStringLiteral:kx,isStringPropSafeToUnquote:Tx,rawText:Sx}=tm,{printAssignment:Ax}=aC,Ox=new WeakMap;function Fx(e,t,n){const r=e.getNode();if(r.computed)return["[",n("key"),"]"];const i=e.getParentNode(),{key:o}=r;if("ClassPrivateProperty"===r.type&&"Identifier"===o.type)return["#",n("key")];if("consistent"===t.quoteProps&&!Ox.has(i)){const e=(i.properties||i.body||i.members).some(e=>!e.computed&&e.key&&kx(e.key)&&!Tx(e,t));Ox.set(i,e)}if(("Identifier"===o.type||Ex(o)&&_x(xx(Sx(o)))&&String(o.value)===xx(Sx(o))&&"typescript"!==t.parser&&"babel-ts"!==t.parser)&&("json"===t.parser||"consistent"===t.quoteProps&&Ox.get(i))){const n=Cx(JSON.stringify("Identifier"===o.type?o.name:o.value.toString()),t);return e.call(e=>wx(e,n,t),"key")}return Tx(r,t)&&("as-needed"===t.quoteProps||"consistent"===t.quoteProps&&!Ox.get(i))?e.call(e=>wx(e,/^\d/.test(o.value)?xx(o.value):o.value,t),"key"):n("key")}var Nx={printProperty:function(e,t,n){return e.getValue().shorthand?n("value"):Ax(e,t,n,Fx(e,t,n),":","value")},printPropertyKey:Fx};const{printDanglingComments:Ix,printCommentsSeparately:Px}=Jf,{getNextNonSpaceNonCommentCharacterIndex:Mx}=_i,{builders:{line:Lx,softline:jx,group:Bx,indent:Rx,ifBreak:$x,hardline:Hx,join:Ux,indentIfBreak:qx},utils:{removeLines:zx,willBreak:Vx}}=uo,{ArgExpansionBailout:Wx}=Os,{getFunctionParameters:Gx,hasLeadingOwnLineComment:Kx,isFlowAnnotationComment:Yx,isJsxNode:Xx,isTemplateOnItsOwnLine:Jx,shouldPrintComma:Qx,startsWithNoLookaheadToken:Zx,isBinaryish:eE,isLineComment:tE,hasComment:nE,getComments:rE,CommentCheckFlags:iE,isCallLikeExpression:oE,isCallExpression:sE,getCallArguments:aE,hasNakedLeftSide:uE,getLeftSide:lE}=tm,{locEnd:cE}=ec,{printFunctionParameters:pE,shouldGroupFunctionParameters:fE}=IC,{printPropertyKey:hE}=Nx,{printFunctionTypeParameters:dE}=Bb;function mE(e,t,n){const r=e.getNode(),i=pE(e,n,t),o=yE(e,n,t),s=fE(r,o),a=[dE(e,t,n),Bx([s?Bx(i):i,o])];return r.body?a.push(" ",n("body")):a.push(t.semi?";":""),a}function gE(e,t){return"always"!==t.arrowParens&&("avoid"===t.arrowParens&&function(e){const t=Gx(e);return!(1!==t.length||e.typeParameters||nE(e,iE.Dangling)||"Identifier"!==t[0].type||t[0].typeAnnotation||nE(t[0])||t[0].optional||e.predicate||e.returnType)}(e.getValue()))}function yE(e,t,n){const r=e.getValue(),i=t("returnType");if(r.returnType&&Yx(n.originalText,r.returnType))return[" /*: ",i," */"];const o=[i];return r.returnType&&r.returnType.typeAnnotation&&o.unshift(": "),r.predicate&&o.push(r.returnType?" ":": ",t("predicate")),o}function vE(e,t,n){const r=e.getValue(),i=t.semi?";":"",o=[];r.argument&&(function(e,t){if(Kx(e.originalText,t))return!0;if(uE(t)){let n,r=t;for(;n=lE(r);)if(r=n,Kx(e.originalText,r))return!0}return!1}(t,r.argument)?o.push([" (",Rx([Hx,n("argument")]),Hx,")"]):eE(r.argument)||"SequenceExpression"===r.argument.type?o.push(Bx([$x(" ("," "),Rx([jx,n("argument")]),jx,$x(")")])):o.push(" ",n("argument")));const s=rE(r),a=Bn(s),u=a&&tE(a);return u&&o.push(i),nE(r,iE.Dangling)&&o.push(" ",Ix(e,t,!0)),u||o.push(i),o}var bE={printFunction:function(e,t,n,r){const i=e.getValue();let o=!1;if(("FunctionDeclaration"===i.type||"FunctionExpression"===i.type)&&r&&r.expandLastArg){const t=e.getParentNode();sE(t)&&aE(t).length>1&&(o=!0)}const s=[];"TSDeclareFunction"===i.type&&i.declare&&s.push("declare "),i.async&&s.push("async "),i.generator?s.push("function* "):s.push("function "),i.id&&s.push(t("id"));const a=pE(e,t,n,o),u=yE(e,t,n),l=fE(i,u);return s.push(dE(e,n,t),Bx([l?Bx(a):a,u]),i.body?" ":"",t("body")),!n.semi||!i.declare&&i.body||s.push(";"),s},printArrowFunction:function(e,t,n,r){let i=e.getValue();const o=[],s=[];let a=!1;if(function u(){const l=function(e,t,n,r){const i=[];if(e.getValue().async&&i.push("async "),gE(e,t))i.push(n(["params",0]));else{const o=r&&(r.expandLastArg||r.expandFirstArg);let s=yE(e,n,t);if(o){if(Vx(s))throw new Wx;s=Bx(zx(s))}i.push(Bx([pE(e,n,t,o,!0),s]))}const o=Ix(e,t,!0,e=>{const n=Mx(t.originalText,e,cE);return!1!==n&&"=>"===t.originalText.slice(n,n+2)});return o&&i.push(" ",o),i}(e,t,n,r);if(0===o.length)o.push(l);else{const{leading:n,trailing:r}=Px(e,t);o.push([n,l]),s.unshift(r)}a=a||i.returnType&&Gx(i).length>0||i.typeParameters||Gx(i).some(e=>"Identifier"!==e.type),"ArrowFunctionExpression"!==i.body.type||r&&r.expandLastArg?s.unshift(n("body",r)):(i=i.body,e.call(u,"body"))}(),o.length>1)return function(e,t,n,r,i,o){const s=e.getName(),a=e.getParentNode(),u=oE(a)&&"callee"===s,l=Boolean(t&&t.assignmentLayout),c="BlockStatement"!==o.body.type&&"ObjectExpression"!==o.body.type,p=u&&c||t&&"chain-tail-arrow-chain"===t.assignmentLayout,f=Symbol("arrow-chain");return Bx([Bx(Rx([u||l?jx:"",Bx(Ux([" =>",Lx],n),{shouldBreak:r})]),{id:f,shouldBreak:p})," =>",qx(c?Rx([Lx,i]):[" ",i],{groupId:f}),u?$x(jx,"",{groupId:f}):""])}(e,r,o,a,s,i);const u=o;if(u.push(" =>"),!Kx(t.originalText,i.body)&&("ArrayExpression"===i.body.type||"ObjectExpression"===i.body.type||"BlockStatement"===i.body.type||Xx(i.body)||Jx(i.body,t.originalText)||"ArrowFunctionExpression"===i.body.type||"DoExpression"===i.body.type))return Bx([...u," ",s]);if("SequenceExpression"===i.body.type)return Bx([...u,Bx([" (",Rx([jx,s]),jx,")"])]);const l=(r&&r.expandLastArg||"JSXExpressionContainer"===e.getParentNode().type)&&!nE(i),c=r&&r.expandLastArg&&Qx(t,"all"),p="ConditionalExpression"===i.body.type&&!Zx(i.body,!1);return Bx([...u,Bx([Rx([Lx,p?$x("","("):"",s,p?$x("",")"):""]),l?[$x(c?",":""),jx]:""])])},printMethod:function(e,t,n){const r=e.getNode(),{kind:i}=r,o=r.value||r,s=[];return i&&"init"!==i&&"method"!==i&&"constructor"!==i?(_f.ok("get"===i||"set"===i),s.push(i," ")):o.async&&s.push("async "),o.generator&&s.push("*"),s.push(hE(e,t,n),r.optional||r.key.optional?"?":""),r===o?s.push(mE(e,t,n)):"FunctionExpression"===o.type?s.push(e.call(e=>mE(e,t,n),"value")):s.push(n("value")),s},printReturnStatement:function(e,t,n){return["return",vE(e,t,n)]},printThrowStatement:function(e,t,n){return["throw",vE(e,t,n)]},printMethodInternal:mE,shouldPrintParamsWithoutParens:gE};const{isNonEmptyArray:DE,hasNewline:wE}=_i,{builders:{line:CE,hardline:xE,join:EE,breakParent:_E,group:kE}}=uo,{locStart:TE,locEnd:SE}=ec,{getParentExportDeclaration:AE}=tm;function OE(e,t){return e.decorators.some(e=>wE(t.originalText,SE(e)))}function FE(e){if("ExportDefaultDeclaration"!==e.type&&"ExportNamedDeclaration"!==e.type&&"DeclareExportDeclaration"!==e.type)return!1;const t=e.declaration&&e.declaration.decorators;return DE(t)&&TE(e,{ignoreDecorators:!0})>TE(t[0])}var NE={printDecorators:function(e,t,n){const r=e.getValue(),{decorators:i}=r;if(!DE(i)||FE(e.getParentNode()))return;const o="ClassExpression"===r.type||"ClassDeclaration"===r.type||OE(r,t);return[AE(e)?xE:o?_E:"",EE(CE,e.map(n,"decorators")),CE]},printClassMemberDecorators:function(e,t,n){const r=e.getValue();return kE([EE(CE,e.map(n,"decorators")),OE(r,t)?xE:CE])},printDecoratorsBeforeExport:function(e,t,n){return[EE(xE,e.map(n,"declaration","decorators")),xE]},hasDecoratorsBeforeExport:FE};const{isNonEmptyArray:IE,createGroupIdMapper:PE}=_i,{printComments:ME,printDanglingComments:LE}=Jf,{builders:{join:jE,line:BE,hardline:RE,softline:$E,group:HE,indent:UE,ifBreak:qE}}=uo,{hasComment:zE,CommentCheckFlags:VE}=tm,{getTypeParametersGroupId:WE}=Dx,{printMethod:GE}=bE,{printOptionalToken:KE,printTypeAnnotation:YE}=Bb,{printPropertyKey:XE}=Nx,{printAssignment:JE}=aC,{printClassMemberDecorators:QE}=NE,ZE=PE("heritageGroup");function e_(e){return e.typeParameters&&!zE(e.typeParameters,VE.Trailing|VE.Line)&&!function(e){return["superClass","extends","mixins","implements"].filter(t=>Boolean(e[t])).length>1}(e)}function t_(e,t,n,r){const i=e.getValue();if(!IE(i[r]))return"";const o=LE(e,t,!0,({marker:e})=>e===r);return[e_(i)?qE(" ",BE,{groupId:WE(i.typeParameters)}):BE,o,o&&RE,r,HE(UE([BE,jE([",",BE],e.map(n,r))]))]}function n_(e,t,n){const r=n("superClass");return"AssignmentExpression"===e.getParentNode().type?HE(qE(["(",UE([$E,r]),$E,")"],r)):r}var r_={printClass:function(e,t,n){const r=e.getValue(),i=[];r.declare&&i.push("declare "),r.abstract&&i.push("abstract "),i.push("class");const o=r.id&&zE(r.id,VE.Trailing)||r.superClass&&zE(r.superClass)||IE(r.extends)||IE(r.mixins)||IE(r.implements),s=[],a=[];if(r.id&&s.push(" ",n("id")),s.push(n("typeParameters")),r.superClass){const r=["extends ",n_(e,t,n),n("superTypeParameters")],i=e.call(e=>ME(e,r,t),"superClass");o?a.push(BE,HE(i)):a.push(" ",i)}else a.push(t_(e,t,n,"extends"));if(a.push(t_(e,t,n,"mixins"),t_(e,t,n,"implements")),o){let e;e=e_(r)?[...s,UE(a)]:UE([...s,a]),i.push(HE(e,{id:ZE(r)}))}else i.push(...s,...a);return i.push(" ",n("body")),i},printClassMethod:function(e,t,n){const r=e.getValue(),i=[];return IE(r.decorators)&&i.push(QE(e,t,n)),r.accessibility&&i.push(r.accessibility+" "),r.readonly&&i.push("readonly "),r.declare&&i.push("declare "),r.static&&i.push("static "),("TSAbstractMethodDefinition"===r.type||r.abstract)&&i.push("abstract "),r.override&&i.push("override "),i.push(GE(e,t,n)),i},printClassProperty:function(e,t,n){const r=e.getValue(),i=[],o=t.semi?";":"";return IE(r.decorators)&&i.push(QE(e,t,n)),r.accessibility&&i.push(r.accessibility+" "),r.declare&&i.push("declare "),r.static&&i.push("static "),("TSAbstractClassProperty"===r.type||r.abstract)&&i.push("abstract "),r.override&&i.push("override "),r.readonly&&i.push("readonly "),r.variance&&i.push(n("variance")),i.push(XE(e,t,n),KE(e),YE(e,t,n)),[JE(e,t,n,i," =","value"),o]},printHardlineAfterHeritage:function(e){return qE(RE,"",{groupId:ZE(e)})}};const{isNonEmptyArray:i_}=_i,{builders:{join:o_,line:s_,group:a_,indent:u_,ifBreak:l_}}=uo,{hasComment:c_,identity:p_,CommentCheckFlags:f_}=tm,{getTypeParametersGroupId:h_}=Dx,{printTypeScriptModifiers:d_}=Bb;var m_={printInterface:function(e,t,n){const r=e.getValue(),i=[];r.declare&&i.push("declare "),"TSInterfaceDeclaration"===r.type&&i.push(r.abstract?"abstract ":"",d_(e,t,n)),i.push("interface");const o=[],s=[];"InterfaceTypeAnnotation"!==r.type&&o.push(" ",n("id"),n("typeParameters"));const a=r.typeParameters&&!c_(r.typeParameters,f_.Trailing|f_.Line);return i_(r.extends)&&s.push(a?l_(" ",s_,{groupId:h_(r.typeParameters)}):s_,"extends ",(1===r.extends.length?p_:u_)(o_([",",s_],e.map(n,"extends")))),r.id&&c_(r.id,f_.Trailing)||i_(r.extends)?a?i.push(a_([...o,u_(s)])):i.push(a_(u_([...o,...s]))):i.push(...o,...s),i.push(" ",n("body")),a_(i)}};const{isNonEmptyArray:g_}=_i,{builders:{softline:y_,group:v_,indent:b_,join:D_,line:w_,ifBreak:C_,hardline:x_}}=uo,{printDanglingComments:E_}=Jf,{hasComment:__,CommentCheckFlags:k_,shouldPrintComma:T_,needsHardlineAfterDanglingComment:S_}=tm,{locStart:A_,hasSameLoc:O_}=ec,{hasDecoratorsBeforeExport:F_,printDecoratorsBeforeExport:N_}=NE;function I_(e,t,n){const r=e.getValue();if(!r.source)return"";const i=[];return M_(r,t)||i.push(" from"),i.push(" ",n("source")),i}function P_(e,t,n){const r=e.getValue();if(M_(r,t))return"";const i=[" "];if(g_(r.specifiers)){const o=[],s=[];e.each(()=>{const t=e.getValue().type;if("ExportNamespaceSpecifier"===t||"ExportDefaultSpecifier"===t||"ImportNamespaceSpecifier"===t||"ImportDefaultSpecifier"===t)o.push(n());else{if("ExportSpecifier"!==t&&"ImportSpecifier"!==t)throw new Error("Unknown specifier type "+JSON.stringify(t));s.push(n())}},"specifiers"),i.push(D_(", ",o)),s.length>0&&(o.length>0&&i.push(", "),s.length>1||o.length>0||r.specifiers.some(e=>__(e))?i.push(v_(["{",b_([t.bracketSpacing?w_:y_,D_([",",w_],s)]),C_(T_(t)?",":""),t.bracketSpacing?w_:y_,"}"])):i.push(["{",t.bracketSpacing?" ":"",...s,t.bracketSpacing?" ":"","}"]))}else i.push("{}");return i}function M_(e,t){const{type:n,importKind:r,source:i,specifiers:o}=e;return"ImportDeclaration"===n&&!g_(o)&&"type"!==r&&!/{\s*}/.test(t.originalText.slice(A_(e),A_(i)))}function L_(e,t,n){const r=e.getNode();return g_(r.assertions)?[" assert {",t.bracketSpacing?" ":"",D_(", ",e.map(n,"assertions")),t.bracketSpacing?" ":"","}"]:""}var j_={printImportDeclaration:function(e,t,n){const r=e.getValue(),i=t.semi?";":"",o=[],{importKind:s}=r;return o.push("import"),s&&"value"!==s&&o.push(" ",s),o.push(P_(e,t,n),I_(e,t,n),L_(e,t,n),i),o},printExportDeclaration:function(e,t,n){const r=e.getValue(),i=[];F_(r)&&i.push(N_(e,t,n));const{type:o,exportKind:s,declaration:a}=r;return i.push("export"),(r.default||"ExportDefaultDeclaration"===o)&&i.push(" default"),__(r,k_.Dangling)&&(i.push(" ",E_(e,t,!0)),S_(r)&&i.push(x_)),a?i.push(" ",n("declaration")):i.push("type"===s?" type":"",P_(e,t,n),I_(e,t,n),L_(e,t,n)),function(e,t){if(!t.semi)return!1;const{type:n,declaration:r}=e,i=e.default||"ExportDefaultDeclaration"===n;if(!r)return!0;const{type:o}=r;return!(!i||"ClassDeclaration"===o||"FunctionDeclaration"===o||"TSInterfaceDeclaration"===o||"DeclareClass"===o||"DeclareFunction"===o||"TSDeclareFunction"===o||"EnumDeclaration"===o)}(r,t)&&i.push(";"),i},printExportAllDeclaration:function(e,t,n){const r=e.getValue(),i=t.semi?";":"",o=[],{exportKind:s,exported:a}=r;return o.push("export"),"type"===s&&o.push(" type"),o.push(" *"),a&&o.push(" as ",n("exported")),o.push(I_(e,t,n),L_(e,t,n),i),o},printModuleSpecifier:function(e,t,n){const r=e.getNode(),{type:i,importKind:o}=r,s=[];"ImportSpecifier"===i&&o&&s.push(o," ");const a=i.startsWith("Import"),u=a?"imported":"local",l=a?"local":"exported";let c="",p="";return"ExportNamespaceSpecifier"===i||"ImportNamespaceSpecifier"===i?c="*":r[u]&&(c=n(u)),!r[l]||r[u]&&O_(r[u],r[l])||(p=n(l)),s.push(c,c&&p?" as ":"",p),s}};const{printDanglingComments:B_}=Jf,{builders:{line:R_,softline:$_,group:H_,indent:U_,ifBreak:q_,hardline:z_}}=uo,{getLast:V_,hasNewlineInRange:W_,hasNewline:G_,isNonEmptyArray:K_}=_i,{shouldPrintComma:Y_,hasComment:X_,getComments:J_,CommentCheckFlags:Q_,isNextLineEmpty:Z_}=tm,{locStart:ek,locEnd:tk}=ec,{printOptionalToken:nk,printTypeAnnotation:rk}=Bb,{shouldHugFunctionParameters:ik}=IC,{shouldHugType:ok}=tx,{printHardlineAfterHeritage:sk}=r_;var ak={printObject:function(e,t,n){const r=t.semi?";":"",i=e.getValue();let o;o="TSTypeLiteral"===i.type?"members":"TSInterfaceBody"===i.type?"body":"properties";const s="ObjectTypeAnnotation"===i.type,a=[o];s&&a.push("indexers","callProperties","internalSlots");const u=a.map(e=>i[e][0]).sort((e,t)=>ek(e)-ek(t))[0],l=e.getParentNode(0),c=s&&l&&("InterfaceDeclaration"===l.type||"DeclareInterface"===l.type||"DeclareClass"===l.type)&&"body"===e.getName(),p="TSInterfaceBody"===i.type||c||"ObjectPattern"===i.type&&"FunctionDeclaration"!==l.type&&"FunctionExpression"!==l.type&&"ArrowFunctionExpression"!==l.type&&"ObjectMethod"!==l.type&&"ClassMethod"!==l.type&&"ClassPrivateMethod"!==l.type&&"AssignmentPattern"!==l.type&&"CatchClause"!==l.type&&i.properties.some(e=>e.value&&("ObjectPattern"===e.value.type||"ArrayPattern"===e.value.type))||"ObjectPattern"!==i.type&&u&&W_(t.originalText,ek(i),ek(u)),f=c?";":"TSInterfaceBody"===i.type||"TSTypeLiteral"===i.type?q_(r,";"):",",h="RecordExpression"===i.type?"#{":i.exact?"{|":"{",d=i.exact?"|}":"}",m=[];for(const w of a)e.each(e=>{const t=e.getValue();m.push({node:t,printed:n(),loc:ek(t)})},w);a.length>1&&m.sort((e,t)=>e.loc-t.loc);let g=[];const y=m.map(e=>{const n=[...g,H_(e.printed)];return g=[f,R_],"TSPropertySignature"!==e.node.type&&"TSMethodSignature"!==e.node.type&&"TSConstructSignatureDeclaration"!==e.node.type||!X_(e.node,Q_.PrettierIgnore)||g.shift(),Z_(e.node,t)&&g.push(z_),n});if(i.inexact){let n;if(X_(i,Q_.Dangling)){const r=X_(i,Q_.Line);n=[B_(e,t,!0),r||G_(t.originalText,tk(V_(J_(i))))?z_:R_,"..."]}else n=["..."];y.push([...g,...n])}const v=V_(i[o]),b=!(i.inexact||v&&"RestElement"===v.type||v&&("TSPropertySignature"===v.type||"TSCallSignatureDeclaration"===v.type||"TSMethodSignature"===v.type||"TSConstructSignatureDeclaration"===v.type)&&X_(v,Q_.PrettierIgnore));let D;if(0===y.length){if(!X_(i,Q_.Dangling))return[h,d,rk(e,t,n)];D=H_([h,B_(e,t),$_,d,nk(e),rk(e,t,n)])}else D=[c&&K_(i.properties)?sk(l):"",h,U_([t.bracketSpacing?R_:$_,...y]),q_(b&&(","!==f||Y_(t))?f:""),t.bracketSpacing?R_:$_,d,nk(e),rk(e,t,n)];return e.match(e=>"ObjectPattern"===e.type&&!e.decorators,(e,t,n)=>ik(e)&&("params"===t||"parameters"===t||"this"===t||"rest"===t)&&0===n)||e.match(ok,(e,t)=>"typeAnnotation"===t,(e,t)=>"typeAnnotation"===t,(e,t,n)=>ik(e)&&("params"===t||"parameters"===t||"this"===t||"rest"===t)&&0===n)||!p&&e.match(e=>"ObjectPattern"===e.type,e=>"AssignmentExpression"===e.type||"VariableDeclarator"===e.type)?D:H_(D,{shouldBreak:p})}};const{printDanglingComments:uk}=Jf,{printString:lk,printNumber:ck}=_i,{builders:{hardline:pk,softline:fk,group:hk,indent:dk}}=uo,{getParentExportDeclaration:mk,isFunctionNotation:gk,isGetterOrSetter:yk,rawText:vk,shouldPrintComma:bk}=tm,{locStart:Dk,locEnd:wk}=ec,{printClass:Ck}=r_,{printOpaqueType:xk,printTypeAlias:Ek,printIntersectionType:_k,printUnionType:kk,printFunctionType:Tk,printTupleType:Sk,printIndexedAccessType:Ak}=tx,{printInterface:Ok}=m_,{printTypeParameter:Fk,printTypeParameters:Nk}=Dx,{printExportDeclaration:Ik,printExportAllDeclaration:Pk}=j_,{printArrayItems:Mk}=aD,{printObject:Lk}=ak,{printPropertyKey:jk}=Nx,{printOptionalToken:Bk,printTypeAnnotation:Rk,printRestSpread:$k}=Bb;function Hk(e,t){const n=mk(e);return n?(_f.strictEqual(n.type,"DeclareExportDeclaration"),t):["declare ",t]}var Uk={printFlow:function(e,t,n){const r=e.getValue(),i=t.semi?";":"",o=[];switch(r.type){case"DeclareClass":return Hk(e,Ck(e,t,n));case"DeclareFunction":return Hk(e,["function ",n("id"),r.predicate?" ":"",n("predicate"),i]);case"DeclareModule":return Hk(e,["module ",n("id")," ",n("body")]);case"DeclareModuleExports":return Hk(e,["module.exports",": ",n("typeAnnotation"),i]);case"DeclareVariable":return Hk(e,["var ",n("id"),i]);case"DeclareOpaqueType":return Hk(e,xk(e,t,n));case"DeclareInterface":return Hk(e,Ok(e,t,n));case"DeclareTypeAlias":return Hk(e,Ek(e,t,n));case"DeclareExportDeclaration":return Hk(e,Ik(e,t,n));case"DeclareExportAllDeclaration":return Hk(e,Pk(e,t,n));case"OpaqueType":return xk(e,t,n);case"TypeAlias":return Ek(e,t,n);case"IntersectionTypeAnnotation":return _k(e,t,n);case"UnionTypeAnnotation":return kk(e,t,n);case"FunctionTypeAnnotation":return Tk(e,t,n);case"TupleTypeAnnotation":return Sk(e,t,n);case"GenericTypeAnnotation":return[n("id"),Nk(e,t,n,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return Ak(e,t,n);case"TypeAnnotation":return n("typeAnnotation");case"TypeParameter":return Fk(e,t,n);case"TypeofTypeAnnotation":return["typeof ",n("argument")];case"ExistsTypeAnnotation":return"*";case"EmptyTypeAnnotation":return"empty";case"MixedTypeAnnotation":return"mixed";case"ArrayTypeAnnotation":return[n("elementType"),"[]"];case"BooleanLiteralTypeAnnotation":return String(r.value);case"EnumDeclaration":return["enum ",n("id")," ",n("body")];case"EnumBooleanBody":case"EnumNumberBody":case"EnumStringBody":case"EnumSymbolBody":if("EnumSymbolBody"===r.type||r.explicitType){let e=null;switch(r.type){case"EnumBooleanBody":e="boolean";break;case"EnumNumberBody":e="number";break;case"EnumStringBody":e="string";break;case"EnumSymbolBody":e="symbol"}o.push("of ",e," ")}if(0!==r.members.length||r.hasUnknownMembers){const i=r.members.length>0?[pk,Mk(e,t,"members",n),r.hasUnknownMembers||bk(t)?",":""]:[];o.push(hk(["{",dk([...i,...r.hasUnknownMembers?[pk,"..."]:[]]),uk(e,t,!0),pk,"}"]))}else o.push(hk(["{",uk(e,t),fk,"}"]));return o;case"EnumBooleanMember":case"EnumNumberMember":case"EnumStringMember":return[n("id")," = ","object"==typeof r.init?n("init"):String(r.init)];case"EnumDefaultedMember":return n("id");case"FunctionTypeParam":{const t=r.name?n("name"):e.getParentNode().this===r?"this":"";return[t,Bk(e),t?": ":"",n("typeAnnotation")]}case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return Ok(e,t,n);case"ClassImplements":case"InterfaceExtends":return[n("id"),n("typeParameters")];case"NullableTypeAnnotation":return["?",n("typeAnnotation")];case"Variance":{const{kind:e}=r;return _f.ok("plus"===e||"minus"===e),"plus"===e?"+":"-"}case"ObjectTypeCallProperty":return r.static&&o.push("static "),o.push(n("value")),o;case"ObjectTypeIndexer":return[r.variance?n("variance"):"","[",n("id"),r.id?": ":"",n("key"),"]: ",n("value")];case"ObjectTypeProperty":{let i="";return r.proto?i="proto ":r.static&&(i="static "),[i,yk(r)?r.kind+" ":"",r.variance?n("variance"):"",jk(e,t,n),Bk(e),gk(r)?"":": ",n("value")]}case"ObjectTypeAnnotation":return Lk(e,t,n);case"ObjectTypeInternalSlot":return[r.static?"static ":"","[[",n("id"),"]]",Bk(e),r.method?"":": ",n("value")];case"ObjectTypeSpreadProperty":return $k(e,t,n);case"QualifiedTypeIdentifier":return[n("qualification"),".",n("id")];case"StringLiteralTypeAnnotation":return lk(vk(r),t);case"NumberLiteralTypeAnnotation":_f.strictEqual(typeof r.value,"number");case"BigIntLiteralTypeAnnotation":return r.extra?ck(r.extra.raw):ck(r.raw);case"TypeCastExpression":return["(",n("expression"),Rk(e,t,n),")"];case"TypeParameterDeclaration":case"TypeParameterInstantiation":{const i=Nk(e,t,n,"params");if("flow"===t.parser){const e=Dk(r),n=wk(r),o=t.originalText.lastIndexOf("/*",e),s=t.originalText.indexOf("*/",n);if(-1!==o&&-1!==s){const e=t.originalText.slice(o+2,s).trim();if(e.startsWith("::")&&!e.includes("/*")&&!e.includes("*/"))return["/*:: ",i," */"]}}return i}case"InferredPredicate":return"%checks";case"DeclaredPredicate":return["%checks(",n("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(r.type))}}};const{hasNewlineInRange:qk}=_i,{isJsxNode:zk,isBlockComment:Vk,getComments:Wk,isCallExpression:Gk,isMemberExpression:Kk}=tm,{locStart:Yk,locEnd:Xk}=ec,{builders:{line:Jk,softline:Qk,group:Zk,indent:eT,align:tT,ifBreak:nT,dedent:rT,breakParent:iT}}=uo;function oT(e,t,n){const r=e.getValue(),i="ConditionalExpression"===r.type,o=i?"alternate":"falseType",s=e.getParentNode(),a=i?n("test"):[n("checkType")," ","extends"," ",n("extendsType")];return s.type===r.type&&s[o]===r?tT(2,a):a}const sT=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"]]);var aT={printTernary:function(e,t,n){const r=e.getValue(),i="ConditionalExpression"===r.type,o=i?"consequent":"trueType",s=i?"alternate":"falseType",a=i?["test"]:["checkType","extendsType"],u=r[o],l=r[s],c=[];let p=!1;const f=e.getParentNode(),h=f.type===r.type&&a.some(e=>f[e]===r);let d,m,g=f.type===r.type&&!h,y=0;do{m=d||r,d=e.getParentNode(y),y++}while(d&&d.type===r.type&&a.every(e=>d[e]!==m));const v=d||f,b=m;if(i&&(zk(r[a[0]])||zk(u)||zk(l)||function(e){const t=[e];for(let n=0;n[nT("("),eT([Qk,e]),Qk,nT(")")],t=e=>"NullLiteral"===e.type||"Literal"===e.type&&null===e.value||"Identifier"===e.type&&"undefined"===e.name;c.push(" ? ",t(u)?n(o):e(n(o))," : ",l.type===r.type||t(l)?n(s):e(n(s)))}else{const e=[Jk,"? ",u.type===r.type?nT("","("):"",tT(2,n(o)),u.type===r.type?nT("",")"):"",Jk,": ",l.type===r.type?n(s):tT(2,n(s))];c.push(f.type!==r.type||f[s]===r||h?e:t.useTabs?rT(eT(e)):tT(Math.max(0,t.tabWidth-2),e))}const D=[...a.map(e=>Wk(r[e])),Wk(u),Wk(l)].flat().some(e=>Vk(e)&&qk(t.originalText,Yk(e),Xk(e))),w=!p&&(Kk(f)||"NGPipeExpression"===f.type&&f.left===r)&&!f.computed,C=function(e){const t=e.getValue();if("ConditionalExpression"!==t.type)return!1;let n,r=t;for(let i=0;!n;i++){const t=e.getParentNode(i);Gk(t)&&t.callee===r||Kk(t)&&t.object===r||"TSNonNullExpression"===t.type&&t.expression===r?r=t:"NewExpression"===t.type&&t.callee===r||"TSAsExpression"===t.type&&t.expression===r?(n=e.getParentNode(i+1),r=t):n=t}return r!==t&&n[sT.get(n.type)]===r}(e),x=(E=[oT(e,0,n),g?c:eT(c),i&&w&&!C?Qk:""],f===v?Zk(E,{shouldBreak:D}):D?[E,iT]:E);var E;return h||C?Zk([eT([Qk,x]),Qk]):x}};const{builders:{hardline:uT}}=uo,{getLeftSidePathName:lT,hasNakedLeftSide:cT,isJsxNode:pT,isTheOnlyJsxElementInMarkdown:fT,hasComment:hT,CommentCheckFlags:dT,isNextLineEmpty:mT}=tm,{shouldPrintParamsWithoutParens:gT}=bE;function yT(e,t,n,r){const i=e.getValue(),o=[],s="ClassBody"===i.type,a=function(e){for(let t=e.length-1;t>=0;t--){const n=e[t];if("EmptyStatement"!==n.type)return n}}(i[r]);return e.each((e,r,i)=>{const u=e.getValue();if("EmptyStatement"===u.type)return;const l=n();t.semi||s||fT(t,e)||!function(e,t){return"ExpressionStatement"===e.getNode().type&&e.call(e=>vT(e,t),"expression")}(e,t)?o.push(l):hT(u,dT.Leading)?o.push(n([],{needsSemi:!0})):o.push(";",l),!t.semi&&s&&bT(u)&&function(e,t){const n=e.key&&e.key.name;if(!("static"!==n&&"get"!==n&&"set"!==n||e.value||e.typeAnnotation))return!0;if(!t)return!1;if(t.static||t.accessibility)return!1;if(!t.computed){const e=t.key&&t.key.name;if("in"===e||"instanceof"===e)return!0}if(bT(t)&&t.variance&&!t.static&&!t.declare)return!0;switch(t.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractClassProperty":return t.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((t.value?t.value.async:t.async)||"get"===t.kind||"set"===t.kind)return!1;const e=t.value?t.value.generator:t.generator;return!(!t.computed&&!e)}case"TSIndexSignature":return!0}return!1}(u,i[r+1])&&o.push(";"),u!==a&&(o.push(uT),mT(u,t)&&o.push(uT))},r),o}function vT(e,t){const n=e.getValue();switch(n.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!gT(e,t))return!0;break;case"UnaryExpression":{const{prefix:e,operator:t}=n;if(e&&("+"===t||"-"===t))return!0;break}case"BindExpression":if(!n.object)return!0;break;case"Literal":if(n.regex)return!0;break;default:if(pT(n))return!0}return!!av(e,t)||!!cT(n)&&e.call(e=>vT(e,t),...lT(e,n))}const bT=({type:e})=>"ClassProperty"===e||"PropertyDefinition"===e||"ClassPrivateProperty"===e;var DT={printBody:function(e,t,n){return yT(e,t,n,"body")},printSwitchCaseConsequent:function(e,t,n){return yT(e,t,n,"consequent")}};const{printDanglingComments:wT}=Jf,{isNonEmptyArray:CT}=_i,{builders:{hardline:xT,indent:ET}}=uo,{hasComment:_T,CommentCheckFlags:kT,isNextLineEmpty:TT}=tm,{printHardlineAfterHeritage:ST}=r_,{printBody:AT}=DT;function OT(e,t,n){const r=e.getValue(),i=CT(r.directives),o=r.body.some(e=>"EmptyStatement"!==e.type),s=_T(r,kT.Dangling);if(!i&&!o&&!s)return"";const a=[];if(i&&e.each((e,r,i)=>{a.push(n()),(r"]),i=[HT("("),RT([jT,n("expression")]),jT,HT(")")];return e?$T([[t,n("expression")],[t,BT(i,{shouldBreak:!0})],[t,n("expression")]]):BT([t,n("expression")])}case"TSDeclareFunction":return uS(e,n,t);case"TSExportAssignment":return["export = ",n("expression"),i];case"TSModuleBlock":return pS(e,t,n);case"TSInterfaceBody":case"TSTypeLiteral":return nS(e,t,n);case"TSTypeAliasDeclaration":return fS(e,t,n);case"TSQualifiedName":return PT(".",[n("left"),n("right")]);case"TSAbstractMethodDefinition":case"TSDeclareMethod":return iS(e,t,n);case"TSAbstractClassProperty":return rS(e,t,n);case"TSInterfaceHeritage":case"TSExpressionWithTypeArguments":return o.push(n("expression")),r.typeParameters&&o.push(n("typeParameters")),o;case"TSTemplateLiteralType":return eS(e,n,t);case"TSNamedTupleMember":return[n("label"),r.optional?"?":"",": ",n("elementType")];case"TSRestType":return["...",n("typeAnnotation")];case"TSOptionalType":return[n("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return cS(e,t,n);case"TSClassImplements":return[n("expression"),n("typeParameters")];case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return sS(e,t,n,"params");case"TSTypeParameter":return oS(e,t,n);case"TSAsExpression":{o.push(n("expression")," as ",n("typeAnnotation"));const t=e.getParentNode();return VT(t)&&t.callee===r||WT(t)&&t.object===r?BT([RT([jT,...o]),jT]):o}case"TSArrayType":return[n("elementType"),"[]"];case"TSPropertySignature":return r.readonly&&o.push("readonly "),o.push(aS(e,t,n),YT(e)),r.typeAnnotation&&o.push(": ",n("typeAnnotation")),r.initializer&&o.push(" = ",n("initializer")),o;case"TSParameterProperty":return r.accessibility&&o.push(r.accessibility+" "),r.export&&o.push("export "),r.static&&o.push("static "),r.override&&o.push("override "),r.readonly&&o.push("readonly "),o.push(n("parameter")),o;case"TSTypeQuery":return["typeof ",n("exprName")];case"TSIndexSignature":{const o=e.getParentNode(),s=r.parameters.length>1?HT(zT(t)?",":""):"",a=BT([RT([jT,PT([", ",jT],e.map(n,"parameters"))]),s,jT]);return[r.export?"export ":"",r.accessibility?[r.accessibility," "]:"",r.static?"static ":"",r.readonly?"readonly ":"",r.declare?"declare ":"","[",r.parameters?a:"",r.typeAnnotation?"]: ":"]",r.typeAnnotation?n("typeAnnotation"):"","ClassBody"===o.type?i:""]}case"TSTypePredicate":return[r.asserts?"asserts ":"",n("parameterName"),r.typeAnnotation?[" is ",n("typeAnnotation")]:""];case"TSNonNullExpression":return[n("expression"),"!"];case"TSImportType":return[r.isTypeOf?"typeof ":"","import(",n(r.parameter?"parameter":"argument"),")",r.qualifier?[".",n("qualifier")]:"",sS(e,t,n,"typeParameters")];case"TSLiteralType":return n("literal");case"TSIndexedAccessType":return yS(e,t,n);case"TSConstructSignatureDeclaration":case"TSCallSignatureDeclaration":case"TSConstructorType":if("TSConstructorType"===r.type&&r.abstract&&o.push("abstract "),"TSCallSignatureDeclaration"!==r.type&&o.push("new "),o.push(BT(QT(e,n,t,!1,!0))),r.returnType||r.typeAnnotation){const e="TSConstructorType"===r.type;o.push(e?" => ":": ",n("returnType"),n("typeAnnotation"))}return o;case"TSTypeOperator":return[r.operator," ",n("typeAnnotation")];case"TSMappedType":{const o=IT(t.originalText,GT(r),KT(r));return BT(["{",RT([t.bracketSpacing?MT:jT,r.readonly?[qT(r.readonly,"readonly")," "]:"",XT(e,t,n),n("typeParameter"),r.optional?qT(r.optional,"?"):"",r.typeAnnotation?": ":"",n("typeAnnotation"),HT(i)]),NT(e,t,!0),t.bracketSpacing?MT:jT,"}"],{shouldBreak:o})}case"TSMethodSignature":{const i=r.kind&&"method"!==r.kind?r.kind+" ":"";o.push(r.accessibility?[r.accessibility," "]:"",i,r.export?"export ":"",r.static?"static ":"",r.readonly?"readonly ":"",r.abstract?"abstract ":"",r.declare?"declare ":"",r.computed?"[":"",n("key"),r.computed?"]":"",YT(e));const s=QT(e,n,t,!1,!0),a=r.returnType?"returnType":"typeAnnotation",u=r[a],l=u?n(a):"",c=ZT(r,l);return o.push(c?BT(s):s),u&&o.push(": ",BT(l)),BT(o)}case"TSNamespaceExportDeclaration":return o.push("export as namespace ",n("id")),t.semi&&o.push(";"),BT(o);case"TSEnumDeclaration":return r.declare&&o.push("declare "),r.modifiers&&o.push(XT(e,t,n)),r.const&&o.push("const "),o.push("enum ",n("id")," "),0===r.members.length?o.push(BT(["{",NT(e,t),jT,"}"])):o.push(BT(["{",RT([LT,tS(e,t,"members",n),zT(t,"es5")?",":""]),NT(e,t,!0),LT,"}"])),o;case"TSEnumMember":return o.push(n("id")),r.initializer&&o.push(" = ",n("initializer")),o;case"TSImportEqualsDeclaration":return r.isExport&&o.push("export "),o.push("import "),r.importKind&&"value"!==r.importKind&&o.push(r.importKind," "),o.push(n("id")," = ",n("moduleReference")),t.semi&&o.push(";"),BT(o);case"TSExternalModuleReference":return["require(",n("expression"),")"];case"TSModuleDeclaration":{const s=e.getParentNode(),a=UT(r.id),u="TSModuleDeclaration"===s.type,l=r.body&&"TSModuleDeclaration"===r.body.type;if(u)o.push(".");else{r.declare&&o.push("declare "),o.push(XT(e,t,n));const i=t.originalText.slice(GT(r),GT(r.id));"Identifier"===r.id.type&&"global"===r.id.name&&!/namespace|module/.test(i)||o.push(a||/(?:^|\s)module(?:\s|$)/.test(i)?"module ":"namespace ")}return o.push(n("id")),l?o.push(n("body")):r.body?o.push(" ",BT(n("body"))):o.push(i),o}case"TSPrivateIdentifier":return r.escapedText;case"TSConditionalType":return JT(e,t,n);case"TSInferType":return["infer"," ",n("typeParameter")];case"TSIntersectionType":return hS(e,t,n);case"TSUnionType":return dS(e,t,n);case"TSFunctionType":return mS(e,t,n);case"TSTupleType":return gS(e,t,n);case"TSTypeReference":return[n("typeName"),sS(e,t,n,"typeParameters")];case"TSTypeAnnotation":return n("typeAnnotation");case"TSEmptyBodyFunctionExpression":return lS(e,t,n);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return["?",n("typeAnnotation")];case"TSJSDocNonNullableType":return["!",n("typeAnnotation")];default:throw new Error(`Unknown TypeScript node type: ${JSON.stringify(r.type)}.`)}}};const{hasNewline:bS}=_i,{builders:{join:DS,hardline:wS},utils:{replaceTextEndOfLine:CS}}=uo,{isLineComment:xS,isBlockComment:ES}=tm,{locStart:_S,locEnd:kS}=ec;var TS={printComment:function(e,t){const n=e.getValue();if(xS(n))return t.originalText.slice(_S(n),kS(n)).trimEnd();if(ES(n)){if(function(e){const t=`*${e.value}*`.split("\n");return t.length>1&&t.every(e=>"*"===e.trim()[0])}(n)){const e=function(e){const t=e.value.split("\n");return["/*",DS(wS,t.map((e,n)=>0===n?e.trimEnd():" "+(n"AwaitExpression"===e.type||"BlockStatement"===e.type);if(!t||"AwaitExpression"!==t.type)return RS(s)}}return s;case"ExportDefaultDeclaration":case"ExportNamedDeclaration":return gA(e,t,n);case"ExportAllDeclaration":return yA(e,t,n);case"ImportDeclaration":return mA(e,t,n);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return vA(e,t,n);case"ImportAttribute":return[n("key"),": ",n("value")];case"Import":return"import";case"BlockStatement":case"StaticBlock":case"ClassBody":return BA(e,t,n);case"ThrowStatement":return FA(e,t,n);case"ReturnStatement":return OA(e,t,n);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return NA(e,t,n);case"ObjectExpression":case"ObjectPattern":case"RecordExpression":return CA(e,t,n);case"ObjectProperty":case"Property":return i.method||"get"===i.kind||"set"===i.kind?AA(e,t,n):kA(e,t,n);case"ObjectMethod":return AA(e,t,n);case"Decorator":return["@",n("expression")];case"ArrayExpression":case"ArrayPattern":case"TupleExpression":return wA(e,t,n);case"SequenceExpression":{const t=e.getParentNode(0);if("ExpressionStatement"===t.type||"ForStatement"===t.type){const t=[];return e.each((e,r)=>{0===r?t.push(n()):t.push(",",$S([LS,n()]))},"expressions"),RS(t)}return RS(MS([",",LS],e.map(n,"expressions")))}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[n("value"),o];case"DirectiveLiteral":return qA(i,t);case"UnaryExpression":return s.push(i.operator),/[a-z]$/.test(i.operator)&&s.push(" "),zS(i.argument)?s.push(RS(["(",$S([BS,n("argument")]),BS,")"])):s.push(n("argument")),s;case"UpdateExpression":return s.push(n("argument"),i.operator),i.prefix&&s.reverse(),s;case"ConditionalExpression":return bA(e,t,n);case"VariableDeclaration":{const t=e.map(n,"declarations"),r=e.getParentNode(),a="ForStatement"===r.type||"ForInStatement"===r.type||"ForOfStatement"===r.type,u=i.declarations.some(e=>e.init);let l;return 1!==t.length||zS(i.declarations[0])?t.length>0&&(l=$S(t[0])):l=t[0],s=[i.declare?"declare ":"",i.kind,l?[" ",l]:"",$S(t.slice(1).map(e=>[",",u&&!a?jS:LS,e]))],a&&r.body!==i||s.push(o),RS(s)}case"WithStatement":return RS(["with (",n("object"),")",hA(i.body,n("body"))]);case"IfStatement":{const r=hA(i.consequent,n("consequent")),o=RS(["if (",RS([$S([BS,n("test")]),BS]),")",r]);if(s.push(o),i.alternate){const r=zS(i.consequent,VS.Trailing|VS.Line)||XS(i),o="BlockStatement"===i.consequent.type&&!r;s.push(o?" ":jS),zS(i,VS.Dangling)&&s.push(IS(e,t,!0),r?jS:" "),s.push("else",RS(hA(i.alternate,n("alternate"),"IfStatement"===i.alternate.type)))}return s}case"ForStatement":{const r=hA(i.body,n("body")),o=IS(e,t,!0),s=o?[o,BS]:"";return i.init||i.test||i.update?[s,RS(["for (",RS([$S([BS,n("init"),";",LS,n("test"),";",LS,n("update")]),BS]),")",r])]:[s,RS(["for (;;)",r])]}case"WhileStatement":return RS(["while (",RS([$S([BS,n("test")]),BS]),")",hA(i.body,n("body"))]);case"ForInStatement":return RS(["for (",n("left")," in ",n("right"),")",hA(i.body,n("body"))]);case"ForOfStatement":return RS(["for",i.await?" await":""," (",n("left")," of ",n("right"),")",hA(i.body,n("body"))]);case"DoWhileStatement":{const e=hA(i.body,n("body"));return s=[RS(["do",e])],"BlockStatement"===i.body.type?s.push(" "):s.push(jS),s.push("while (",RS([$S([BS,n("test")]),BS]),")",o),s}case"DoExpression":return[i.async?"async ":"","do ",n("body")];case"BreakStatement":return s.push("break"),i.label&&s.push(" ",n("label")),s.push(o),s;case"ContinueStatement":return s.push("continue"),i.label&&s.push(" ",n("label")),s.push(o),s;case"LabeledStatement":return"EmptyStatement"===i.body.type?[n("label"),":;"]:[n("label"),": ",n("body")];case"TryStatement":return["try ",n("block"),i.handler?[" ",n("handler")]:"",i.finalizer?[" finally ",n("finalizer")]:""];case"CatchClause":if(i.param){const e=zS(i.param,e=>!GS(e)||e.leading&&PS(t.originalText,nA(e))||e.trailing&&PS(t.originalText,tA(e),{backwards:!0})),r=n("param");return["catch ",e?["(",$S([BS,r]),BS,") "]:["(",r,") "],n("body")]}return["catch ",n("body")];case"SwitchStatement":return[RS(["switch (",$S([BS,n("discriminant")]),BS,")"])," {",i.cases.length>0?$S([jS,MS(jS,e.map((e,r,i)=>{const o=e.getValue();return[n(),r!==i.length-1&&YS(o,t)?jS:""]},"cases"))]):"",jS,"}"];case"SwitchCase":{i.test?s.push("case ",n("test"),":"):s.push("default:");const r=i.consequent.filter(e=>"EmptyStatement"!==e.type);if(r.length>0){const i=LA(e,t,n);s.push(1===r.length&&"BlockStatement"===r[0].type?[" ",i]:$S([jS,i]))}return s}case"DebuggerStatement":return["debugger",o];case"ClassDeclaration":case"ClassExpression":return xA(e,t,n);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return EA(e,t,n);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":return _A(e,t,n);case"TemplateElement":return HS(i.value.raw);case"TemplateLiteral":return DA(e,n,t);case"TaggedTemplateExpression":return[n("tag"),n("typeParameters"),n("quasi")];case"PrivateIdentifier":return["#",n("name")];case"PrivateName":return["#",n("id")];case"InterpreterDirective":return s.push("#!",i.value,jS),YS(i,t)&&s.push(jS),s;case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":{s.push("module {");const e=n("body");return e&&s.push($S([jS,e]),jS),s.push("}"),s}default:throw new Error("unknown type: "+JSON.stringify(i.type))}}(e,t,n,r);if(!i)return"";const o=e.getValue(),{type:s}=o;if("ClassMethod"===s||"ClassPrivateMethod"===s||"ClassProperty"===s||"PropertyDefinition"===s||"TSAbstractClassProperty"===s||"ClassPrivateProperty"===s||"MethodDefinition"===s||"TSAbstractMethodDefinition"===s||"TSDeclareMethod"===s)return i;const a=UA(e,t,n);if(a)return RS([...a,i]);if(!av(e,t))return r&&r.needsSemi?[";",i]:i;const u=[r&&r.needsSemi?";(":"(",i];if(qS(o)){const[e]=o.trailingComments;u.push(" /*",e.value.trimStart(),"*/"),e.printed=!0}return u.push(")"),u},embed:sg,insertPragma:US,massageAstNode:pg,hasPrettierIgnore:e=>QS(e)||aA(e),willPrintOwnComments:Vy.willPrintOwnComments,canAttachComment:function(e){return e.type&&!GS(e)&&!KS(e)&&"EmptyStatement"!==e.type&&"TemplateElement"!==e.type&&"Import"!==e.type&&"TSEmptyBodyFunctionExpression"!==e.type},printComment:$A,isBlockComment:GS,handleComments:{avoidAstMutation:!0,ownLine:Vy.handleOwnLineComment,endOfLine:Vy.handleEndOfLineComment,remaining:Vy.handleRemainingComment},getCommentChildNodes:Vy.getCommentChildNodes};const{builders:{hardline:VA,indent:WA,join:GA}}=uo,KA=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function YA(e,t){const{type:n}=e;if("ObjectProperty"!==n||"Identifier"!==e.key.type){if("UnaryExpression"===n&&"+"===e.operator)return t.argument;if("ArrayExpression"!==n)return"TemplateLiteral"===n?{type:"StringLiteral",value:e.quasis[0].value.cooked}:void 0;for(const[n,r]of e.elements.entries())null===r&&t.elements.splice(n,0,{type:"NullLiteral"})}else t.key={type:"StringLiteral",value:e.key.name}}YA.ignoredProperties=KA;var XA={preprocess:uv,print:function(e,t,n){const r=e.getValue();switch(r.type){case"JsonRoot":return[n("node"),VA];case"ArrayExpression":{if(0===r.elements.length)return"[]";const t=e.map(()=>null===e.getValue()?"null":n(),"elements");return["[",WA([VA,GA([",",VA],t)]),VA,"]"]}case"ObjectExpression":return 0===r.properties.length?"{}":["{",WA([VA,GA([",",VA],e.map(n,"properties"))]),VA,"}"];case"ObjectProperty":return[n("key"),": ",n("value")];case"UnaryExpression":return["+"===r.operator?"":r.operator,n("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return r.value?"true":"false";case"StringLiteral":case"NumericLiteral":return JSON.stringify(r.value);case"Identifier":{const t=e.getParentNode();return t&&"ObjectProperty"===t.type&&t.key===r?JSON.stringify(r.name):r.name}case"TemplateLiteral":return n(["quasis",0]);case"TemplateElement":return JSON.stringify(r.value.cooked);default:throw new Error("unknown type: "+JSON.stringify(r.type))}},massageAstNode:YA};const JA="Common";var QA={bracketSpacing:{since:"0.0.0",category:JA,type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},singleQuote:{since:"0.0.0",category:JA,type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{since:"1.8.2",category:JA,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:JA,type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."}};const ZA="JavaScript";var eO={arrowParens:{since:"1.9.0",category:ZA,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:QA.bracketSameLine,bracketSpacing:QA.bracketSpacing,jsxBracketSameLine:{since:"0.17.0",category:ZA,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{since:"1.0.0",category:ZA,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},singleQuote:QA.singleQuote,jsxSingleQuote:{since:"1.15.0",category:ZA,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{since:"1.17.0",category:ZA,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:ZA,type:"choice",default:[{since:"0.0.0",value:!1},{since:"0.19.0",value:"none"},{since:"2.0.0",value:"es5"}],description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."},{value:"all",description:"Trailing commas wherever possible (including function arguments)."}]}},tO={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",".jsb",".jscad",".jsfl",".jsm",".jss",".jsx",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],languageId:183},nO={name:"TypeScript",type:"programming",color:"#2b7489",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",languageId:378},rO={name:"TSX",type:"programming",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",languageId:94901924},iO={name:"JSON",type:"data",tmScope:"source.json",aceMode:"json",codemirrorMode:"javascript",codemirrorMimeType:"application/json",extensions:[".json",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".jsonl",".mcmeta",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".arcconfig",".htmlhintrc",".imgbotconfig",".tern-config",".tern-project",".watchmanconfig","Pipfile.lock","composer.lock","mcmod.info"],languageId:174},oO={name:"JSON with Comments",type:"data",group:"JSON",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",aliases:["jsonc"],extensions:[".jsonc",".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",".eslintrc.json",".jscsrc",".jshintrc",".jslintrc","api-extractor.json","devcontainer.json","jsconfig.json","language-configuration.json","tsconfig.json","tslint.json"],languageId:423},sO={name:"JSON5",type:"data",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",languageId:175},aO={languages:[id(tO,e=>({since:"0.0.0",parsers:["babel","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],interpreters:[...e.interpreters,"zx"],extensions:[...e.extensions.filter(e=>".jsx"!==e),".wxs"]})),id(tO,()=>({name:"Flow",since:"0.0.0",parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],aliases:[],filenames:[],extensions:[".js.flow"]})),id(tO,()=>({name:"JSX",since:"0.0.0",parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],aliases:void 0,filenames:void 0,extensions:[".jsx"],group:"JavaScript",interpreters:void 0,tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",color:void 0})),id(nO,()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]})),id(rO,()=>({since:"1.4.0",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]})),id(iO,()=>({name:"JSON.stringify",since:"1.13.0",parsers:["json-stringify"],vscodeLanguageIds:["json"],extensions:[],filenames:["package.json","package-lock.json","composer.json"]})),id(iO,e=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["json"],extensions:e.extensions.filter(e=>".jsonl"!==e)})),id(oO,e=>({since:"1.5.0",parsers:["json"],vscodeLanguageIds:["jsonc"],filenames:[...e.filenames,".eslintrc"]})),id(sO,()=>({since:"1.13.0",parsers:["json5"],vscodeLanguageIds:["json5"]}))],options:eO,printers:{estree:zA,"estree-json":XA},parsers:void 0};const{isFrontMatterNode:uO}=_i,lO=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma"]);function cO(e,t,n){if(uO(e)&&"yaml"===e.lang&&delete t.value,"css-comment"===e.type&&"css-root"===n.type&&n.nodes.length>0){if((n.nodes[0]===e||uO(n.nodes[0])&&n.nodes[1]===e)&&(delete t.text,/^\*\s*@(?:format|prettier)\s*$/.test(e.text)))return null;if("css-root"===n.type&&Bn(n.nodes)===e)return null}if("value-root"===e.type&&delete t.text,"media-query"!==e.type&&"media-query-list"!==e.type&&"media-feature-expression"!==e.type||delete t.value,"css-rule"===e.type&&delete t.params,"selector-combinator"===e.type&&(t.value=t.value.replace(/\s+/g," ")),"media-feature"===e.type&&(t.value=t.value.replace(/ /g,"")),("value-word"===e.type&&(e.isColor&&e.isHex||["initial","inherit","unset","revert"].includes(t.value.replace().toLowerCase()))||"media-feature"===e.type||"selector-root-invalid"===e.type||"selector-pseudo"===e.type)&&(t.value=t.value.toLowerCase()),"css-decl"===e.type&&(t.prop=t.prop.toLowerCase()),"css-atrule"!==e.type&&"css-import"!==e.type||(t.name=t.name.toLowerCase()),"value-number"===e.type&&(t.unit=t.unit.toLowerCase()),"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"!==e.type||!t.value||(t.value=t.value.replace(/'/g,'"').replace(/\\([^\dA-Fa-f])/g,"$1")),"selector-attribute"===e.type&&(t.attribute=t.attribute.trim(),t.namespace&&"string"==typeof t.namespace&&(t.namespace=t.namespace.trim(),0===t.namespace.length&&(t.namespace=!0)),t.value&&(t.value=t.value.trim().replace(/^["']|["']$/g,""),delete t.quoted)),"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"!==e.type||!t.value||(t.value=t.value.replace(/([\d+.Ee-]+)([A-Za-z]*)/g,(e,t,n)=>{const r=Number(t);return Number.isNaN(r)?e:r+n.toLowerCase()})),"selector-tag"===e.type){const n=e.value.toLowerCase();["from","to"].includes(n)&&(t.value=n)}"css-atrule"===e.type&&"supports"===e.name.toLowerCase()&&delete t.value,"selector-unknown"===e.type&&delete t.value}cO.ignoredProperties=lO;var pO=cO;const{builders:{hardline:fO,markAsRoot:hO}}=uo;var dO=function(e,t){if("yaml"===e.lang){const n=e.value.trim(),r=n?t(n,{parser:"yaml"},{stripTrailingHardline:!0}):"";return hO([e.startDelimiter,fO,r,r?fO:"",e.endDelimiter])}};const{builders:{hardline:mO}}=uo;var gO=function(e,t,n){const r=e.getValue();if("front-matter"===r.type){const e=dO(r,n);return e?[e,mO]:""}};const yO=new RegExp("^(?-{3}|\\+{3})(?[^\\n]*)\\n(?:|(?.*?)\\n)(?\\k|\\.{3})[^\\S\\n]*(?:\\n|$)","s");var vO=function(e){const t=e.match(yO);if(!t)return{content:e};const{startDelimiter:n,language:r,value:i="",endDelimiter:o}=t.groups;let s=r.trim()||"yaml";if("+++"===n&&(s="toml"),"yaml"!==s&&n!==o)return{content:e};const[a]=t;return{frontMatter:{type:"front-matter",lang:s,value:i,startDelimiter:n,endDelimiter:o,raw:a.replace(/\n$/,"")},content:a.replace(/[^\n]/g," ")+e.slice(a.length)}},bO={hasPragma:function(e){return $g.hasPragma(vO(e).content)},insertPragma:function(e){const{frontMatter:t,content:n}=vO(e);return(t?t.raw+"\n\n":"")+$g.insertPragma(n)}};const{isNonEmptyArray:DO}=_i,wO=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"]),CO=new Set(["import","use","forward"]);function xO(e,t){const n=Array.isArray(t)?t:[t];let r,i=-1;for(;r=e.getParentNode(++i);)if(n.includes(r.type))return i;return-1}function EO(e,t){const n=xO(e,t);return-1===n?null:e.getParentNode(n)}function _O(e){return"value-operator"===e.type&&"*"===e.value}function kO(e){return"value-operator"===e.type&&"/"===e.value}function TO(e){return"value-operator"===e.type&&"+"===e.value}function SO(e){return"value-operator"===e.type&&"-"===e.value}function AO(e){return"value-operator"===e.type&&"%"===e.value}function OO(e){return"value-comma_group"===e.type&&e.groups&&e.groups[1]&&"value-colon"===e.groups[1].type}function FO(e){return"value-paren_group"===e.type&&e.groups&&e.groups[0]&&OO(e.groups[0])}function NO(e){return e&&"value-colon"===e.type}var IO={getAncestorCounter:xO,getAncestorNode:EO,getPropOfDeclNode:function(e){const t=EO(e,"css-decl");return t&&t.prop&&t.prop.toLowerCase()},hasSCSSInterpolation:function(e){if(DO(e))for(let t=e.length-1;t>0;t--)if("word"===e[t].type&&"{"===e[t].value&&"word"===e[t-1].type&&e[t-1].value.endsWith("#"))return!0;return!1},hasStringOrFunction:function(e){if(DO(e))for(let t=0;t","<=",">="].includes(e.value)},isEqualityOperatorNode:function(e){return"value-word"===e.type&&["==","!="].includes(e.value)},isMultiplicationNode:_O,isDivisionNode:kO,isAdditionNode:TO,isSubtractionNode:SO,isModuloNode:AO,isMathOperatorNode:function(e){return _O(e)||kO(e)||TO(e)||SO(e)||AO(e)},isEachKeywordNode:function(e){return"value-word"===e.type&&"in"===e.value},isForKeywordNode:function(e){return"value-word"===e.type&&["from","through","end"].includes(e.value)},isURLFunctionNode:function(e){return"value-func"===e.type&&"url"===e.value.toLowerCase()},isIfElseKeywordNode:function(e){return"value-word"===e.type&&["and","or","not"].includes(e.value)},hasComposesNode:function(e){return e.value&&"value-root"===e.value.type&&e.value.group&&"value-value"===e.value.group.type&&"composes"===e.prop.toLowerCase()},hasParensAroundNode:function(e){return e.value&&e.value.group&&e.value.group.group&&"value-paren_group"===e.value.group.group.type&&null!==e.value.group.group.open&&null!==e.value.group.group.close},hasEmptyRawBefore:function(e){return e.raws&&""===e.raws.before},isSCSSNestedPropertyNode:function(e){return!!e.selector&&e.selector.replace(/\/\*.*?\*\//,"").replace(/\/\/.*?\n/,"").trim().endsWith(":")},isDetachedRulesetCallNode:function(e){return e.raws&&e.raws.params&&/^\(\s*\)$/.test(e.raws.params)},isTemplatePlaceholderNode:function(e){return e.name.startsWith("prettier-placeholder")},isTemplatePropNode:function(e){return e.prop.startsWith("@prettier-placeholder")},isPostcssSimpleVarNode:function(e,t){return"$$"===e.value&&"value-func"===e.type&&t&&"value-word"===t.type&&!t.raws.before},isKeyValuePairNode:OO,isKeyValuePairInParenGroupNode:FO,isKeyInValuePairNode:function(e,t){if(!OO(t))return!1;const{groups:n}=t,r=n.indexOf(e);return-1!==r&&NO(n[r+1])},isSCSSMapItemNode:function(e){const t=e.getValue();if(0===t.groups.length)return!1;const n=e.getParentNode(1);if(!(FO(t)||n&&FO(n)))return!1;const r=EO(e,"css-decl");return!!(r&&r.prop&&r.prop.startsWith("$"))||!!FO(n)||"value-func"===n.type},isInlineValueCommentNode:function(e){return"value-comment"===e.type&&e.inline},isHashNode:function(e){return"value-word"===e.type&&"#"===e.value},isLeftCurlyBraceNode:function(e){return"value-word"===e.type&&"{"===e.value},isRightCurlyBraceNode:function(e){return"value-word"===e.type&&"}"===e.value},isWordNode:function(e){return["value-word","value-atword"].includes(e.type)},isColonNode:NO,isMediaAndSupportsKeywords:function(e){return e.value&&["not","and","or"].includes(e.value.toLowerCase())},isColorAdjusterFuncNode:function(e){return"value-func"===e.type&&wO.has(e.value.toLowerCase())},lastLineHasInlineComment:function(e){return/\/\//.test(e.split(/[\n\r]/).pop())},stringifyNode:function e(t){if(t.groups)return(t.open&&t.open.value?t.open.value:"")+t.groups.reduce((n,r,i)=>n+e(r)+("comma_group"===t.groups[0].type&&i!==t.groups.length-1?",":""),"")+(t.close&&t.close.value?t.close.value:"");const n=t.raws&&t.raws.before?t.raws.before:"",r=t.raws&&t.raws.quote?t.raws.quote:"";return n+r+("atword"===t.type?"@":"")+(t.value?t.value:"")+r+(t.unit?t.unit:"")+(t.group?e(t.group):"")+(t.raws&&t.raws.after?t.raws.after:"")},isAtWordPlaceholderNode:function(e){return e&&"value-atword"===e.type&&e.value.startsWith("prettier-placeholder-")},isModuleRuleName:function(e){return CO.has(e)}},PO=function(e,t){let n=0;for(let r=0;r{const s=o[i-1];if(s&&"css-comment"===s.type&&"prettier-ignore"===s.text.trim()){const n=e.getValue();r.push(t.originalText.slice(QF(n),ZF(n)))}else r.push(n());i!==o.length-1&&("css-comment"===o[i+1].type&&!zO(t.originalText,QF(o[i+1]),{backwards:!0})&&!VO(o[i])||"css-atrule"===o[i+1].type&&"else"===o[i+1].name&&"css-comment"!==o[i].type?r.push(" "):(r.push(t.__isHTMLStyleAttribute?YO:XO),WO(t.originalText,e.getValue(),ZF)&&!VO(o[i])&&r.push(XO)))},"nodes"),r}const nN=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gs,rN=new RegExp(nN.source+"|"+`(${/[$@]?[A-Z_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/g.source})?`+`(${/(?:\d*\.\d+|\d+\.?)(?:[Ee][+-]?\d+)?/g.source})`+`(${/[A-Za-z]+/g.source})?`,"g");function iN(e,t){return e.replace(nN,e=>qO(e,t))}function oN(e,t){const n=t.singleQuote?"'":'"';return e.includes('"')||e.includes("'")?e:n+e+n}function sN(e){return e.replace(rN,(e,t,n,r,i)=>!n&&r?aN(r)+lF(i||""):e)}function aN(e){return UO(e).replace(/\.0(?=$|e)/,"")}var uN={print:function(e,t,n){const r=e.getValue();if(!r)return"";if("string"==typeof r)return r;switch(r.type){case"front-matter":return[r.raw,XO];case"css-root":{const i=tN(e,t,n),o=r.raws.after.trim();return[i,o?" "+o:"",oF(i).length>0?XO:""]}case"css-comment":{const e=r.inline||r.raws.inline,n=t.originalText.slice(QF(r),ZF(r));return e?n.trimEnd():n}case"css-rule":return[n("selector"),r.important?" !important":"",r.nodes?[r.selector&&"selector-unknown"===r.selector.type&&XF(r.selector.value)?YO:" ","{",r.nodes.length>0?eF([XO,tN(e,t,n)]):"",XO,"}",DF(r)?";":""]:";"];case"css-decl":{const i=e.getParentNode(),{between:o}=r.raws,s=o.trim(),a=":"===s;let u=NF(r)?iF(n("value")):n("value");return!a&&XF(s)&&(u=eF([XO,tF(u)])),[r.raws.before.replace(/[\s;]/g,""),pF(e)?r.prop:lF(r.prop),s.startsWith("//")?" ":"",s,r.extend?"":" ",vF(t)&&r.extend&&r.selector?["extend(",n("selector"),")"]:"",u,r.raws.important?r.raws.important.replace(/\s*!\s*important/i," !important"):r.important?" !important":"",r.raws.scssDefault?r.raws.scssDefault.replace(/\s*!default/i," !default"):r.scssDefault?" !default":"",r.raws.scssGlobal?r.raws.scssGlobal.replace(/\s*!global/i," !global"):r.scssGlobal?" !global":"",r.nodes?[" {",eF([JO,tN(e,t,n)]),JO,"}"]:RF(r)&&!i.raws.semicolon&&";"!==t.originalText[ZF(r)-1]?"":t.__isHTMLStyleAttribute&&yF(e,r)?nF(";"):";"]}case"css-atrule":{const i=e.getParentNode(),o=BF(r)&&!i.raws.semicolon&&";"!==t.originalText[ZF(r)-1];if(vF(t)){if(r.mixin)return[n("selector"),r.important?" !important":"",o?"":";"];if(r.function)return[r.name,n("params"),o?"":";"];if(r.variable)return["@",r.name,": ",r.value?n("value"):"",r.raws.between.trim()?r.raws.between.trim()+" ":"",r.nodes?["{",eF([r.nodes.length>0?JO:"",tN(e,t,n)]),JO,"}"]:"",o?"":";"]}return["@",jF(r)||r.name.endsWith(":")?r.name:lF(r.name),r.params?[jF(r)?"":BF(r)?""===r.raws.afterName?"":r.name.endsWith(":")?" ":/^\s*\n\s*\n/.test(r.raws.afterName)?[XO,XO]:/^\s*\n/.test(r.raws.afterName)?XO:" ":" ",n("params")]:"",r.selector?eF([" ",n("selector")]):"",r.value?QO([" ",n("value"),bF(r)?IF(r)?" ":YO:""]):"else"===r.name?" ":"",r.nodes?[bF(r)?"":r.selector&&!r.selector.nodes&&"string"==typeof r.selector.value&&XF(r.selector.value)||!r.selector&&"string"==typeof r.params&&XF(r.params)?YO:" ","{",eF([r.nodes.length>0?JO:"",tN(e,t,n)]),JO,"}"]:o?"":";"]}case"media-query-list":{const t=[];return e.each(e=>{const r=e.getValue();"media-query"===r.type&&""===r.value||t.push(n())},"nodes"),QO(eF(KO(YO,t)))}case"media-query":return[KO(" ",e.map(n,"nodes")),yF(e,r)?"":","];case"media-type":return sN(iN(r.value,t));case"media-feature-expression":return r.nodes?["(",...e.map(n,"nodes"),")"]:r.value;case"media-feature":return lF(iN(r.value.replace(/ +/g," "),t));case"media-colon":return[r.value," "];case"media-value":return sN(iN(r.value,t));case"media-keyword":return iN(r.value,t);case"media-url":return iN(r.value.replace(/^url\(\s+/gi,"url(").replace(/\s+\)$/g,")"),t);case"media-unknown":return r.value;case"selector-root":return QO([fF(e,"custom-selector")?[aF(e,"css-atrule").customSelector,YO]:"",KO([",",fF(e,["extend","custom-selector","nest"])?YO:XO],e.map(n,"nodes"))]);case"selector-selector":return QO(eF(e.map(n,"nodes")));case"selector-comment":return r.value;case"selector-string":return iN(r.value,t);case"selector-tag":{const t=e.getParentNode(),n=t&&t.nodes.indexOf(r),i=n&&t.nodes[n-1];return[r.namespace?[!0===r.namespace?"":r.namespace.trim(),"|"]:"","selector-nesting"===i.type?r.value:sN(dF(e,r.value)?r.value.toLowerCase():r.value)]}case"selector-id":return["#",r.value];case"selector-class":return[".",sN(iN(r.value,t))];case"selector-attribute":return["[",r.namespace?[!0===r.namespace?"":r.namespace.trim(),"|"]:"",r.attribute.trim(),r.operator?r.operator:"",r.value?oN(iN(r.value.trim(),t),t):"",r.insensitive?" i":"","]"];case"selector-combinator":if("+"===r.value||">"===r.value||"~"===r.value||">>>"===r.value){const t=e.getParentNode();return["selector-selector"===t.type&&t.nodes[0]===r?"":YO,r.value,yF(e,r)?"":" "]}return[r.value.trim().startsWith("(")?YO:"",sN(iN(r.value.trim(),t))||YO];case"selector-universal":return[r.namespace?[!0===r.namespace?"":r.namespace.trim(),"|"]:"",r.value];case"selector-pseudo":return[lF(r.value),GO(r.nodes)?["(",KO(", ",e.map(n,"nodes")),")"]:""];case"selector-nesting":return r.value;case"selector-unknown":{const n=aF(e,"css-rule");if(n&&n.isSCSSNesterProperty)return sN(iN(lF(r.value),t));const i=e.getParentNode();if(i.raws&&i.raws.selector){const e=QF(i),n=e+i.raws.selector.length;return t.originalText.slice(e,n).trim()}const o=e.getParentNode(1);if("value-paren_group"===i.type&&o&&"value-func"===o.type&&"selector"===o.value){const e=QF(i.open)+1,n=ZF(i.close)-1,r=t.originalText.slice(e,n).trim();return XF(r)?[rF,r]:r}return r.value}case"value-value":case"value-root":return n("group");case"value-comment":return t.originalText.slice(QF(r),ZF(r));case"value-comma_group":{const t=e.getParentNode(),i=e.getParentNode(1),o=uF(e),s=o&&"value-value"===t.type&&("grid"===o||o.startsWith("grid-template")),a=aF(e,"css-atrule"),u=a&&bF(a),l=r.groups.some(e=>UF(e)),c=e.map(n,"groups"),p=[],f=cF(e,"url");let h=!1,d=!1;for(let n=0;n0&&"value-comma_group"===r.groups[0].type&&r.groups[0].groups.length>0&&"value-word"===r.groups[0].groups[0].type&&r.groups[0].groups[0].value.startsWith("data:")))return[r.open?n("open"):"",KO(",",e.map(n,"groups")),r.close?n("close"):""];if(!r.open){const t=e.map(n,"groups"),r=[];for(let e=0;e{const t=e.getValue(),r=n();if(MF(t)&&"value-comma_group"===t.type&&t.groups&&"value-paren_group"!==t.groups[0].type&&t.groups[2]&&"value-paren_group"===t.groups[2].type){const e=oF(r.contents.contents);return e[1]=QO(e[1]),QO(tF(r))}return r},"groups"))]),nF(!a&&gF(t.parser,t.originalText)&&o&&eN(t)?",":""),JO,r.close?n("close"):""],{shouldBreak:o&&!u});return u?tF(l):l}case"value-func":return[r.value,fF(e,"supports")&&KF(r)?" ":"",n("group")];case"value-paren":return r.value;case"value-number":return[aN(r.value),lF(r.unit)];case"value-operator":return r.value;case"value-word":return r.isColor&&r.isHex||mF(r.value)?r.value.toLowerCase():r.value;case"value-colon":{const t=e.getParentNode(),n=t&&t.groups.indexOf(r),i=n&&t.groups[n-1];return[r.value,i&&"string"==typeof i.value&&"\\"===Bn(i.value)||cF(e,"url")?"":YO]}case"value-comma":return[r.value," "];case"value-string":return qO(r.raws.quote+r.value+r.raws.quote,t);case"value-atword":return["@",r.value];case"value-unicode-range":case"value-unknown":return r.value;default:throw new Error("Unknown postcss type "+JSON.stringify(r.type))}},embed:gO,insertPragma:sF,massageAstNode:pO},lN={singleQuote:QA.singleQuote},cN={name:"PostCSS",type:"markup",tmScope:"source.postcss",group:"CSS",extensions:[".pcss",".postcss"],aceMode:"text",languageId:262764437},pN={name:"Less",type:"markup",color:"#1d365d",extensions:[".less"],tmScope:"source.css.less",aceMode:"less",codemirrorMode:"css",codemirrorMimeType:"text/css",languageId:198},fN={name:"SCSS",type:"markup",color:"#c6538c",tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",extensions:[".scss"],languageId:329},hN={languages:[id({name:"CSS",type:"markup",tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",color:"#563d7c",extensions:[".css"],languageId:50},e=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["css"],extensions:[...e.extensions,".wxss"]})),id(cN,()=>({since:"1.4.0",parsers:["css"],vscodeLanguageIds:["postcss"]})),id(pN,()=>({since:"1.4.0",parsers:["less"],vscodeLanguageIds:["less"]})),id(fN,()=>({since:"1.4.0",parsers:["scss"],vscodeLanguageIds:["scss"]}))],options:lN,printers:{postcss:uN},parsers:void 0},dN={locStart:function(e){return e.loc.start.offset},locEnd:function(e){return e.loc.end.offset}};function mN(e,t){if("TextNode"===e.type){const n=e.chars.trim();if(!n)return null;t.chars=n.replace(/[\t\n\f\r ]+/g," ")}"AttrNode"===e.type&&"class"===e.name.toLowerCase()&&delete t.value}mN.ignoredProperties=new Set(["loc","selfClosing"]);var gN=mN;const yN=new Set(["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","isindex","keygen","link","menuitem","meta","nextid","param","source","track","wbr"]);function vN(e){return bN(e,["TextNode"])&&!/\S/.test(e.chars)}function bN(e,t){return e&&t.includes(e.type)}function DN(e,t){return bN(e.getParentNode(0),t)}function wN(e,t){const n=e.getValue(),r=e.getParentNode(0)||{},i=r.children||r.body||r.parts||[],o=i.indexOf(n);return-1!==o&&i[o+t]}function CN(e,t=1){return wN(e,-t)}function xN(e){return wN(e,1)}function EN(e){return bN(e,["MustacheCommentStatement"])&&"string"==typeof e.value&&"prettier-ignore"===e.value.trim()}var _N={getNextNode:xN,getPreviousNode:CN,hasPrettierIgnore:function(e){const t=e.getValue(),n=CN(e,2);return EN(t)||EN(n)},isLastNodeOfSiblings:function(e){const t=e.getValue(),n=e.getParentNode(0);return!(!DN(e,["ElementNode"])||Bn(n.children)!==t)||!(!DN(e,["Block"])||Bn(n.body)!==t)},isNextNodeOfSomeType:function(e,t){return bN(xN(e),t)},isNodeOfSomeType:bN,isParentOfSomeType:DN,isPreviousNodeOfSomeType:function(e,t){return bN(CN(e),t)},isVoid:function(e){return function(e){return bN(e,["ElementNode"])&&"string"==typeof e.tag&&(function(e){return e.toUpperCase()===e}(e.tag[0])||e.tag.includes("."))}(e)&&e.children.every(e=>vN(e))||yN.has(e.tag)},isWhitespaceNode:vN};const{builders:{dedent:kN,fill:TN,group:SN,hardline:AN,ifBreak:ON,indent:FN,join:NN,line:IN,softline:PN},utils:{getDocParts:MN,replaceTextEndOfLine:LN}}=uo,{isNonEmptyArray:jN}=_i,{locStart:BN,locEnd:RN}=dN,{getNextNode:$N,getPreviousNode:HN,hasPrettierIgnore:UN,isLastNodeOfSiblings:qN,isNextNodeOfSomeType:zN,isNodeOfSomeType:VN,isParentOfSomeType:WN,isPreviousNodeOfSomeType:GN,isVoid:KN,isWhitespaceNode:YN}=_N;function XN(e,t){return BN(e)-BN(t)}function JN(e,t,n){const r=e.getValue().children.every(e=>YN(e));return"ignore"===t.htmlWhitespaceSensitivity&&r?"":e.map((e,r)=>{const i=n();return 0===r&&"ignore"===t.htmlWhitespaceSensitivity?[PN,i]:i},"children")}function QN(e){return KN(e)?ON([PN,"/>"],[" />",PN]):ON([PN,">"],">")}function ZN(e){return[!1===e.escaped?"{{{":"{{",e.strip&&e.strip.open?"~":""]}function eI(e){const t=!1===e.escaped?"}}}":"}}";return[e.strip&&e.strip.close?"~":"",t]}function tI(e){return[ZN(e),e.closeStrip.open?"~":"","/"]}function nI(e){const t=eI(e);return[e.closeStrip.close?"~":"",t]}function rI(e){return[ZN(e),e.inverseStrip.open?"~":""]}function iI(e){const t=eI(e);return[e.inverseStrip.close?"~":"",t]}function oI(e,t){const n=e.getValue(),r=function(e){return[ZN(e),e.openStrip.open?"~":"","#"]}(n),i=function(e){const t=eI(e);return[e.openStrip.close?"~":"",t]}(n),o=[bI(e,t)],s=DI(e,t);if(s&&o.push(IN,s),jN(n.program.blockParams)){const e=wI(n.program);o.push(IN,e)}return SN([r,FN(o),PN,i])}function sI(e,t){return["ignore"===t.htmlWhitespaceSensitivity?AN:"",rI(e),"else",iI(e)]}function aI(e,t){const n=e.getParentNode(1);return[rI(n),"else if ",DI(e,t),iI(n)]}function uI(e,t,n){const r=e.getValue();return"ignore"===n.htmlWhitespaceSensitivity?[lI(r)?PN:AN,tI(r),t("path"),nI(r)]:[tI(r),t("path"),nI(r)]}function lI(e){return VN(e,["BlockStatement"])&&e.program.body.every(e=>YN(e))}function cI(e){return VN(e,["BlockStatement"])&&e.inverse}function pI(e,t,n){if(lI(e.getValue()))return"";const r=t("program");return"ignore"===n.htmlWhitespaceSensitivity?FN([AN,r]):FN(r)}function fI(e,t,n){const r=e.getValue(),i=t("inverse"),o="ignore"===n.htmlWhitespaceSensitivity?[AN,i]:i;return function(e){return cI(e)&&1===e.inverse.body.length&&VN(e.inverse.body[0],["BlockStatement"])&&"if"===e.inverse.body[0].path.parts[0]}(r)?o:cI(r)?[sI(r,n),FN(o)]:""}function hI(e){return MN(NN(IN,function(e){return e.split(/[\t\n\f\r ]+/)}(e)))}function dI(e){return(e="string"==typeof e?e:"").split("\n").length-1}function mI(e=0){return new Array(Math.min(e,2)).fill(AN)}function gI(e,t){const n={quote:'"',regex:/"/g},r={quote:"'",regex:/'/g},i=e.singleQuote?r:n,o=i===r?n:r;let s=!1;return(t.includes(i.quote)||t.includes(o.quote))&&(s=(t.match(i.regex)||[]).length>(t.match(o.regex)||[]).length),s?o:i}function yI(e,t){const n=bI(e,t),r=DI(e,t);return r?FN([n,IN,SN(r)]):n}function vI(e,t){const n=bI(e,t),r=DI(e,t);return r?[FN([n,IN,r]),PN]:n}function bI(e,t){return t("path")}function DI(e,t){const n=e.getValue(),r=[];if(n.params.length>0){const n=e.map(t,"params");r.push(...n)}if(n.hash&&n.hash.pairs.length>0){const e=t("hash");r.push(e)}return 0===r.length?"":NN(IN,r)}function wI(e){return["as |",e.blockParams.join(" "),"|"]}var CI={print:function(e,t,n){const r=e.getValue();if(!r)return"";if(UN(e))return t.originalText.slice(BN(r),RN(r));switch(r.type){case"Block":case"Program":case"Template":return SN(e.map(n,"body"));case"ElementNode":{const i=SN(function(e,t){const n=e.getValue(),r=["attributes","modifiers","comments"].filter(e=>jN(n[e])),i=r.flatMap(e=>n[e]).sort(XN);for(const o of r)e.each(e=>{const n=i.indexOf(e.getValue());i.splice(n,1,[IN,t()])},o);return jN(n.blockParams)&&i.push(IN,wI(n)),["<",n.tag,FN(i),QN(n)]}(e,n)),o="ignore"===t.htmlWhitespaceSensitivity&&zN(e,["ElementNode"])?PN:"";if(KN(r))return[i,o];const s=[""];return 0===r.children.length?[i,FN(s),o]:"ignore"===t.htmlWhitespaceSensitivity?[i,FN(JN(e,t,n)),AN,FN(s),o]:[i,FN(SN(JN(e,t,n))),FN(s),o]}case"BlockStatement":{const i=e.getParentNode(1);return i&&i.inverse&&1===i.inverse.body.length&&i.inverse.body[0]===r&&"if"===i.inverse.body[0].path.parts[0]?[aI(e,n),pI(e,n,t),fI(e,n,t)]:[oI(e,n),SN([pI(e,n,t),fI(e,n,t),uI(e,n,t)])]}case"ElementModifierStatement":return SN(["{{",vI(e,n),"}}"]);case"MustacheStatement":return SN([ZN(r),vI(e,n),eI(r)]);case"SubExpression":return SN(["(",yI(e,n),PN,")"]);case"AttrNode":{const e="TextNode"===r.value.type;if(e&&""===r.value.chars&&BN(r.value)===RN(r.value))return r.name;const i=e?gI(t,r.value.chars).quote:"ConcatStatement"===r.value.type?gI(t,r.value.parts.filter(e=>"TextNode"===e.type).map(e=>e.chars).join("")).quote:"",o=n("value");return[r.name,"=",i,"class"===r.name&&i?SN(FN(o)):o,i]}case"ConcatStatement":return e.map(n,"parts");case"Hash":return NN(IN,e.map(n,"pairs"));case"HashPair":return[r.key,"=",n("value")];case"TextNode":{let n=r.chars.replace(/{{/g,"\\{{");const i=function(e){for(let t=0;t<2;t++){const n=e.getParentNode(t);if(n&&"AttrNode"===n.type)return n.name.toLowerCase()}}(e);if(i){if("class"===i){const t=n.trim().split(/\s+/).join(" ");let r=!1,i=!1;return WN(e,["ConcatStatement"])&&(GN(e,["MustacheStatement"])&&/^\s/.test(n)&&(r=!0),zN(e,["MustacheStatement"])&&/\s$/.test(n)&&""!==t&&(i=!0)),[r?IN:"",t,i?IN:""]}return LN(n)}const o=/^[\t\n\f\r ]*$/.test(n),s=!HN(e),a=!$N(e);if("ignore"!==t.htmlWhitespaceSensitivity){const t=/^[\t\n\f\r ]*/,r=/[\t\n\f\r ]*$/,i=a&&WN(e,["Template"]),u=s&&WN(e,["Template"]);if(o){if(u||i)return"";let t=[IN];const r=dI(n);return r&&(t=mI(r)),qN(e)&&(t=t.map(e=>kN(e))),t}const[l]=n.match(t),[c]=n.match(r);let p=[];if(l){p=[IN];const e=dI(l);e&&(p=mI(e)),n=n.replace(t,"")}let f=[];if(c){if(!i){f=[IN];const t=dI(c);t&&(f=mI(t)),qN(e)&&(f=f.map(e=>kN(e)))}n=n.replace(r,"")}return[...p,TN(hI(n)),...f]}const u=dI(n);let l=function(e){return dI(((e="string"==typeof e?e:"").match(/^([^\S\n\r]*[\n\r])+/g)||[])[0]||"")}(n),c=function(e){return dI(((e="string"==typeof e?e:"").match(/([\n\r][^\S\n\r]*)+$/g)||[])[0]||"")}(n);if((s||a)&&o&&WN(e,["Block","ElementNode","Template"]))return"";o&&u?(l=Math.min(u,2),c=0):(zN(e,["BlockStatement","ElementNode"])&&(c=Math.max(c,1)),GN(e,["BlockStatement","ElementNode"])&&(l=Math.max(l,1)));let p="",f="";return 0===c&&zN(e,["MustacheStatement"])&&(f=" "),0===l&&GN(e,["MustacheStatement"])&&(p=" "),s&&(l=0,p=""),a&&(c=0,f=""),n=n.replace(/^[\t\n\f\r ]+/g,p).replace(/[\t\n\f\r ]+$/,f),[...mI(l),TN(hI(n)),...mI(c)]}case"MustacheCommentStatement":{const e=BN(r),n=RN(r),i="~"===t.originalText.charAt(e+2),o="~"===t.originalText.charAt(n-3),s=r.value.includes("}}")?"--":"";return["{{",i?"~":"","!",s,r.value,s,o?"~":"","}}"]}case"PathExpression":return r.original;case"BooleanLiteral":return String(r.value);case"CommentStatement":return["\x3c!--",r.value,"--\x3e"];case"StringLiteral":return function(e,t){const{quote:n,regex:r}=gI(t,e);return[n,e.replace(r,"\\"+n),n]}(r.value,t);case"NumberLiteral":return String(r.value);case"UndefinedLiteral":return"undefined";case"NullLiteral":return"null";default:throw new Error("unknown glimmer type: "+JSON.stringify(r.type))}},massageAstNode:gN},xI={languages:[id({name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",languageId:155},()=>({since:"2.3.0",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}))],printers:{glimmer:CI},parsers:void 0},EI={hasPragma:function(e){return/^\s*#[^\S\n]*@(?:format|prettier)\s*(?:\n|$)/.test(e)},insertPragma:function(e){return"# @format\n\n"+e}},_I={locStart:function(e){return"number"==typeof e.start?e.start:e.loc&&e.loc.start},locEnd:function(e){return"number"==typeof e.end?e.end:e.loc&&e.loc.end}};const{builders:{join:kI,hardline:TI,line:SI,softline:AI,group:OI,indent:FI,ifBreak:NI}}=uo,{isNextLineEmpty:II,isNonEmptyArray:PI}=_i,{insertPragma:MI}=EI,{locStart:LI,locEnd:jI}=_I;function BI(e,t,n){if(0===n.directives.length)return"";const r=kI(SI,e.map(t,"directives"));return"FragmentDefinition"===n.kind||"OperationDefinition"===n.kind?OI([SI,r]):[" ",OI(FI([AI,r]))]}function RI(e,t,n){const r=e.getValue().length;return e.map((e,i)=>{const o=n();return II(t.originalText,e.getValue(),jI)&&in(e),"interfaces");for(let a=0;a{r.push(n()),i!==o.length-1&&(r.push(TI),II(t.originalText,e.getValue(),jI)&&r.push(TI))},"definitions"),[...r,TI]}case"OperationDefinition":{const i="{"!==t.originalText[LI(r)],o=Boolean(r.name);return[i?r.operation:"",i&&o?[" ",n("name")]:"",i&&!o&&PI(r.variableDefinitions)?" ":"",PI(r.variableDefinitions)?OI(["(",FI([AI,kI([NI("",", "),AI],e.map(n,"variableDefinitions"))]),AI,")"]):"",BI(e,n,r),r.selectionSet&&(i||o)?" ":"",n("selectionSet")]}case"FragmentDefinition":return["fragment ",n("name"),PI(r.variableDefinitions)?OI(["(",FI([AI,kI([NI("",", "),AI],e.map(n,"variableDefinitions"))]),AI,")"]):""," on ",n("typeCondition"),BI(e,n,r)," ",n("selectionSet")];case"SelectionSet":return["{",FI([TI,kI(TI,e.call(e=>RI(e,t,n),"selections"))]),TI,"}"];case"Field":return OI([r.alias?[n("alias"),": "]:"",n("name"),r.arguments.length>0?OI(["(",FI([AI,kI([NI("",", "),AI],e.call(e=>RI(e,t,n),"arguments"))]),AI,")"]):"",BI(e,n,r),r.selectionSet?" ":"",n("selectionSet")]);case"Name":return r.value;case"StringValue":return r.block?['"""',TI,kI(TI,r.value.replace(/"""/g,"\\$&").split("\n")),TI,'"""']:['"',r.value.replace(/["\\]/g,"\\$&").replace(/\n/g,"\\n"),'"'];case"IntValue":case"FloatValue":case"EnumValue":return r.value;case"BooleanValue":return r.value?"true":"false";case"NullValue":return"null";case"Variable":return["$",n("name")];case"ListValue":return OI(["[",FI([AI,kI([NI("",", "),AI],e.map(n,"values"))]),AI,"]"]);case"ObjectValue":return OI(["{",t.bracketSpacing&&r.fields.length>0?" ":"",FI([AI,kI([NI("",", "),AI],e.map(n,"fields"))]),AI,NI("",t.bracketSpacing&&r.fields.length>0?" ":""),"}"]);case"ObjectField":case"Argument":return[n("name"),": ",n("value")];case"Directive":return["@",n("name"),r.arguments.length>0?OI(["(",FI([AI,kI([NI("",", "),AI],e.call(e=>RI(e,t,n),"arguments"))]),AI,")"]):""];case"NamedType":return n("name");case"VariableDefinition":return[n("variable"),": ",n("type"),r.defaultValue?[" = ",n("defaultValue")]:"",BI(e,n,r)];case"ObjectTypeExtension":case"ObjectTypeDefinition":return[n("description"),r.description?TI:"","ObjectTypeExtension"===r.kind?"extend ":"","type ",n("name"),r.interfaces.length>0?[" implements ",...$I(e,t,n)]:"",BI(e,n,r),r.fields.length>0?[" {",FI([TI,kI(TI,e.call(e=>RI(e,t,n),"fields"))]),TI,"}"]:""];case"FieldDefinition":return[n("description"),r.description?TI:"",n("name"),r.arguments.length>0?OI(["(",FI([AI,kI([NI("",", "),AI],e.call(e=>RI(e,t,n),"arguments"))]),AI,")"]):"",": ",n("type"),BI(e,n,r)];case"DirectiveDefinition":return[n("description"),r.description?TI:"","directive ","@",n("name"),r.arguments.length>0?OI(["(",FI([AI,kI([NI("",", "),AI],e.call(e=>RI(e,t,n),"arguments"))]),AI,")"]):"",r.repeatable?" repeatable":""," on ",kI(" | ",e.map(n,"locations"))];case"EnumTypeExtension":case"EnumTypeDefinition":return[n("description"),r.description?TI:"","EnumTypeExtension"===r.kind?"extend ":"","enum ",n("name"),BI(e,n,r),r.values.length>0?[" {",FI([TI,kI(TI,e.call(e=>RI(e,t,n),"values"))]),TI,"}"]:""];case"EnumValueDefinition":return[n("description"),r.description?TI:"",n("name"),BI(e,n,r)];case"InputValueDefinition":return[n("description"),r.description?r.description.block?TI:SI:"",n("name"),": ",n("type"),r.defaultValue?[" = ",n("defaultValue")]:"",BI(e,n,r)];case"InputObjectTypeExtension":case"InputObjectTypeDefinition":return[n("description"),r.description?TI:"","InputObjectTypeExtension"===r.kind?"extend ":"","input ",n("name"),BI(e,n,r),r.fields.length>0?[" {",FI([TI,kI(TI,e.call(e=>RI(e,t,n),"fields"))]),TI,"}"]:""];case"SchemaDefinition":return["schema",BI(e,n,r)," {",r.operationTypes.length>0?FI([TI,kI(TI,e.call(e=>RI(e,t,n),"operationTypes"))]):"",TI,"}"];case"OperationTypeDefinition":return[n("operation"),": ",n("type")];case"InterfaceTypeExtension":case"InterfaceTypeDefinition":return[n("description"),r.description?TI:"","InterfaceTypeExtension"===r.kind?"extend ":"","interface ",n("name"),r.interfaces.length>0?[" implements ",...$I(e,t,n)]:"",BI(e,n,r),r.fields.length>0?[" {",FI([TI,kI(TI,e.call(e=>RI(e,t,n),"fields"))]),TI,"}"]:""];case"FragmentSpread":return["...",n("name"),BI(e,n,r)];case"InlineFragment":return["...",r.typeCondition?[" on ",n("typeCondition")]:"",BI(e,n,r)," ",n("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return OI([n("description"),r.description?TI:"",OI(["UnionTypeExtension"===r.kind?"extend ":"","union ",n("name"),BI(e,n,r),r.types.length>0?[" =",NI(""," "),FI([NI([SI," "]),kI([SI,"| "],e.map(n,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[n("description"),r.description?TI:"","ScalarTypeExtension"===r.kind?"extend ":"","scalar ",n("name"),BI(e,n,r)];case"NonNullType":return[n("type"),"!"];case"ListType":return["[",n("type"),"]"];default:throw new Error("unknown graphql type: "+JSON.stringify(r.kind))}},massageAstNode:HI,hasPrettierIgnore:function(e){const t=e.getValue();return t&&Array.isArray(t.comments)&&t.comments.some(e=>"prettier-ignore"===e.value.trim())},insertPragma:MI,printComment:function(e){const t=e.getValue();if("Comment"===t.kind)return"#"+t.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(t))},canAttachComment:function(e){return e.kind&&"Comment"!==e.kind}},qI={bracketSpacing:QA.bracketSpacing},zI={languages:[id({name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",languageId:139},()=>({since:"1.5.0",parsers:["graphql"],vscodeLanguageIds:["graphql"]}))],options:qI,printers:{graphql:UI},parsers:void 0},VI={locStart:function(e){return e.position.start.offset},locEnd:function(e){return e.position.end.offset}};const{getLast:WI}=_i,{locStart:GI,locEnd:KI}=VI,{cjkPattern:YI,kPattern:XI,punctuationPattern:JI}={cjkPattern:"(?:[\\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])?",kPattern:"[\\u1100-\\u11ff\\u3001-\\u3003\\u3008-\\u3011\\u3013-\\u301f\\u302e-\\u3030\\u3037\\u30fb\\u3131-\\u318e\\u3200-\\u321e\\u3260-\\u327e\\ua960-\\ua97c\\uac00-\\ud7a3\\ud7b0-\\ud7c6\\ud7cb-\\ud7fb\\ufe45-\\ufe46\\uff61-\\uff65\\uffa0-\\uffbe\\uffc2-\\uffc7\\uffca-\\uffcf\\uffd2-\\uffd7\\uffda-\\uffdc]",punctuationPattern:"[\\u0021-\\u002f\\u003a-\\u0040\\u005b-\\u0060\\u007b-\\u007e\\u00a1\\u00a7\\u00ab\\u00b6-\\u00b7\\u00bb\\u00bf\\u037e\\u0387\\u055a-\\u055f\\u0589-\\u058a\\u05be\\u05c0\\u05c3\\u05c6\\u05f3-\\u05f4\\u0609-\\u060a\\u060c-\\u060d\\u061b\\u061e-\\u061f\\u066a-\\u066d\\u06d4\\u0700-\\u070d\\u07f7-\\u07f9\\u0830-\\u083e\\u085e\\u0964-\\u0965\\u0970\\u09fd\\u0a76\\u0af0\\u0c77\\u0c84\\u0df4\\u0e4f\\u0e5a-\\u0e5b\\u0f04-\\u0f12\\u0f14\\u0f3a-\\u0f3d\\u0f85\\u0fd0-\\u0fd4\\u0fd9-\\u0fda\\u104a-\\u104f\\u10fb\\u1360-\\u1368\\u1400\\u166e\\u169b-\\u169c\\u16eb-\\u16ed\\u1735-\\u1736\\u17d4-\\u17d6\\u17d8-\\u17da\\u1800-\\u180a\\u1944-\\u1945\\u1a1e-\\u1a1f\\u1aa0-\\u1aa6\\u1aa8-\\u1aad\\u1b5a-\\u1b60\\u1bfc-\\u1bff\\u1c3b-\\u1c3f\\u1c7e-\\u1c7f\\u1cc0-\\u1cc7\\u1cd3\\u2010-\\u2027\\u2030-\\u2043\\u2045-\\u2051\\u2053-\\u205e\\u207d-\\u207e\\u208d-\\u208e\\u2308-\\u230b\\u2329-\\u232a\\u2768-\\u2775\\u27c5-\\u27c6\\u27e6-\\u27ef\\u2983-\\u2998\\u29d8-\\u29db\\u29fc-\\u29fd\\u2cf9-\\u2cfc\\u2cfe-\\u2cff\\u2d70\\u2e00-\\u2e2e\\u2e30-\\u2e4f\\u3001-\\u3003\\u3008-\\u3011\\u3014-\\u301f\\u3030\\u303d\\u30a0\\u30fb\\ua4fe-\\ua4ff\\ua60d-\\ua60f\\ua673\\ua67e\\ua6f2-\\ua6f7\\ua874-\\ua877\\ua8ce-\\ua8cf\\ua8f8-\\ua8fa\\ua8fc\\ua92e-\\ua92f\\ua95f\\ua9c1-\\ua9cd\\ua9de-\\ua9df\\uaa5c-\\uaa5f\\uaade-\\uaadf\\uaaf0-\\uaaf1\\uabeb\\ufd3e-\\ufd3f\\ufe10-\\ufe19\\ufe30-\\ufe52\\ufe54-\\ufe61\\ufe63\\ufe68\\ufe6a-\\ufe6b\\uff01-\\uff03\\uff05-\\uff0a\\uff0c-\\uff0f\\uff1a-\\uff1b\\uff1f-\\uff20\\uff3b-\\uff3d\\uff3f\\uff5b\\uff5d\\uff5f-\\uff65]|\\ud800[\\udd00-\\udd02\\udf9f\\udfd0]|\\ud801[\\udd6f]|\\ud802[\\udc57\\udd1f\\udd3f\\ude50-\\ude58\\ude7f\\udef0-\\udef6\\udf39-\\udf3f\\udf99-\\udf9c]|\\ud803[\\udf55-\\udf59]|\\ud804[\\udc47-\\udc4d\\udcbb-\\udcbc\\udcbe-\\udcc1\\udd40-\\udd43\\udd74-\\udd75\\uddc5-\\uddc8\\uddcd\\udddb\\udddd-\\udddf\\ude38-\\ude3d\\udea9]|\\ud805[\\udc4b-\\udc4f\\udc5b\\udc5d\\udcc6\\uddc1-\\uddd7\\ude41-\\ude43\\ude60-\\ude6c\\udf3c-\\udf3e]|\\ud806[\\udc3b\\udde2\\ude3f-\\ude46\\ude9a-\\ude9c\\ude9e-\\udea2]|\\ud807[\\udc41-\\udc45\\udc70-\\udc71\\udef7-\\udef8\\udfff]|\\ud809[\\udc70-\\udc74]|\\ud81a[\\ude6e-\\ude6f\\udef5\\udf37-\\udf3b\\udf44]|\\ud81b[\\ude97-\\ude9a\\udfe2]|\\ud82f[\\udc9f]|\\ud836[\\ude87-\\ude8b]|\\ud83a[\\udd5e-\\udd5f]"},QI=["liquidNode","inlineCode","emphasis","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"],ZI=[...QI,"tableCell","paragraph","heading"],eP=new RegExp(XI),tP=new RegExp(JI);function nP(e,t){const[,n,r,i]=t.slice(e.position.start.offset,e.position.end.offset).match(/^\s*(\d+)(\.|\))(\s*)/);return{numberText:n,marker:r,leadingSpaces:i}}var rP={mapAst:function(e,t){return function e(n,r,i){const o=Object.assign({},t(n,r,i));return o.children&&(o.children=o.children.map((t,n)=>e(t,n,[o,...i]))),o}(e,null,[])},splitText:function(e,t){const n="non-cjk",r="cj-letter",i="cjk-punctuation",o=[],s=("preserve"===t.proseWrap?e:e.replace(new RegExp(`(${YI})\n(${YI})`,"g"),"$1$2")).split(/([\t\n ]+)/);for(const[u,l]of s.entries()){if(u%2==1){o.push({type:"whitespace",value:/\n/.test(l)?"\n":" "});continue}if((0===u||u===s.length-1)&&""===l)continue;const e=l.split(new RegExp(`(${YI})`));for(const[t,o]of e.entries())(0!==t&&t!==e.length-1||""!==o)&&(t%2!=0?a(tP.test(o)?{type:"word",value:o,kind:i,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0}:{type:"word",value:o,kind:eP.test(o)?"k-letter":r,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1}):""!==o&&a({type:"word",value:o,kind:n,hasLeadingPunctuation:tP.test(o[0]),hasTrailingPunctuation:tP.test(WI(o))}))}return o;function a(e){const t=WI(o);var s,a;t&&"word"===t.type&&(t.kind===n&&e.kind===r&&!t.hasTrailingPunctuation||t.kind===r&&e.kind===n&&!e.hasLeadingPunctuation?o.push({type:"whitespace",value:" "}):(s=n,a=i,t.kind===s&&e.kind===a||t.kind===a&&e.kind===s||[t.value,e.value].some(e=>/\u3000/.test(e))||o.push({type:"whitespace",value:""}))),o.push(e)}},punctuationPattern:JI,getFencedCodeBlockValue:function(e,t){const{value:n}=e;return e.position.end.offset===t.length&&n.endsWith("\n")&&t.endsWith("\n")?n.slice(0,-1):n},getOrderedListItemInfo:nP,hasGitDiffFriendlyOrderedList:function(e,t){if(!e.ordered)return!1;if(e.children.length<2)return!1;const n=Number(nP(e.children[0],t.originalText).numberText),r=Number(nP(e.children[1],t.originalText).numberText);if(0===n&&e.children.length>2){const n=Number(nP(e.children[2],t.originalText).numberText);return 1===r&&1===n}return 1===r},INLINE_NODE_TYPES:QI,INLINE_NODE_WRAPPER_TYPES:ZI,isAutolink:function(e){if(!e||"link"!==e.type||1!==e.children.length)return!1;const t=e.children[0];return t&&GI(e)===GI(t)&&KI(e)===KI(t)}};const{inferParserByLanguage:iP,getMaxContinuousCount:oP}=_i,{builders:{hardline:sP,markAsRoot:aP},utils:{replaceEndOfLine:uP}}=uo,{getFencedCodeBlockValue:lP}=rP;var cP=function(e,t,n,r){const i=e.getValue();if("code"===i.type&&null!==i.lang){const e=iP(i.lang,r);if(e){const t=r.__inJsTemplate?"~":"`",o=t.repeat(Math.max(3,oP(i.value,t)+1)),s=n(lP(i,r.originalText),{parser:e},{stripTrailingHardline:!0});return aP([o,i.lang,i.meta?" "+i.meta:"",sP,uP(s),sP,o])}}switch(i.type){case"front-matter":return dO(i,n);case"importExport":return[n(i.value,{parser:"babel"},{stripTrailingHardline:!0}),sP];case"jsx":return n(`<$>${i.value}`,{parser:"__js_expression",rootMarker:"mdx"},{stripTrailingHardline:!0})}return null};const pP=["format","prettier"];function fP(e){const t=`@(${pP.join("|")})`,n=new RegExp([`\x3c!--\\s*${t}\\s*--\x3e`,`\x3c!--.*\r?\n[\\s\\S]*(^|\n)[^\\S\n]*${t}[^\\S\n]*($|\n)[\\s\\S]*\n.*--\x3e`].join("|"),"m"),r=e.match(n);return r&&0===r.index}var hP={startWithPragma:fP,hasPragma:e=>fP(vO(e).content.trimStart()),insertPragma:e=>{const t=vO(e),n=`\x3c!-- @${pP[0]} --\x3e`;return t.frontMatter?`${t.frontMatter.raw}\n\n${n}\n\n${t.content}`:`${n}\n\n${t.content}`}};const{getOrderedListItemInfo:dP,mapAst:mP,splitText:gP}=rP,yP=/^.$/us;function vP(e,t,n){return mP(e,e=>{if(!e.children)return e;const r=e.children.reduce((e,r)=>{const i=Bn(e);return i&&t(i,r)?e.splice(-1,1,n(i,r)):e.push(r),e},[]);return Object.assign(Object.assign({},e),{},{children:r})})}var bP=function(e,t){return function(e){return vP(e,(e,t)=>"importExport"===e.type&&"importExport"===t.type,(e,t)=>({type:"importExport",value:e.value+"\n\n"+t.value,position:{start:e.position.start,end:t.position.end}}))}(e=function(e){return mP(e,e=>"import"!==e.type&&"export"!==e.type?e:Object.assign(Object.assign({},e),{},{type:"importExport"}))}(e=function(e,t){return mP(e,(e,n,[r])=>{if("text"!==e.type)return e;let{value:i}=e;return"paragraph"===r.type&&(0===n&&(i=i.trimStart()),n===r.children.length-1&&(i=i.trimEnd())),{type:"sentence",position:e.position,children:gP(i,t)}})}(e=function(e,t){return mP(e,(e,t,n)=>{if("list"===e.type&&e.children.length>0){for(let t=0;t1)return!0;const o=n(r);return-1!==o&&(1===e.children.length?o%t.tabWidth==0:o===n(i)&&(o%t.tabWidth==0||dP(i,t.originalText).leadingSpaces.length>1))}}(e=function(e,t){return mP(e,(e,n,r)=>{if("code"===e.type){const n=/^\n?(?: {4,}|\t)/.test(t.originalText.slice(e.position.start.offset,e.position.end.offset));if(e.isIndented=n,n)for(let e=0;e"inlineCode"!==e.type?e:Object.assign(Object.assign({},e),{},{value:e.value.replace(/\s+/g," ")}))}(e=function(e){return vP(e,(e,t)=>"text"===e.type&&"text"===t.type,(e,t)=>({type:"text",value:e.value+t.value,position:{start:e.position.start,end:t.position.end}}))}(e=function(e,t){return mP(e,e=>"text"===e.type&&"*"!==e.value&&"_"!==e.value&&yP.test(e.value)&&e.position.end.offset-e.position.start.offset!==e.value.length?Object.assign(Object.assign({},e),{},{value:t.originalText.slice(e.position.start.offset,e.position.end.offset)}):e)}(e,t))),t),t),t)))};const{isFrontMatterNode:DP}=_i,{startWithPragma:wP}=hP,CP=new Set(["position","raw"]);function xP(e,t,n){return"front-matter"!==e.type&&"code"!==e.type&&"yaml"!==e.type&&"import"!==e.type&&"export"!==e.type&&"jsx"!==e.type||delete t.value,"list"===e.type&&delete t.isAligned,"list"!==e.type&&"listItem"!==e.type||(delete t.spread,delete t.loose),"text"===e.type?null:("inlineCode"===e.type&&(t.value=e.value.replace(/[\t\n ]+/g," ")),"wikiLink"===e.type&&(t.value=e.value.trim().replace(/[\t\n]+/g," ")),"definition"!==e.type&&"linkReference"!==e.type||(t.label=e.label.trim().replace(/[\t\n ]+/g," ").toLowerCase()),"definition"!==e.type&&"link"!==e.type&&"image"!==e.type||!e.title||(t.title=e.title.replace(/\\(["')])/g,"$1")),n&&"root"===n.type&&n.children.length>0&&(n.children[0]===e||DP(n.children[0])&&n.children[1]===e)&&"html"===e.type&&wP(e.value)?null:void 0)}xP.ignoredProperties=CP;var EP=xP;const{getLast:_P,getMinNotPresentContinuousCount:kP,getMaxContinuousCount:TP,getStringWidth:SP,isNonEmptyArray:AP}=_i,{builders:{breakParent:OP,join:FP,line:NP,literalline:IP,markAsRoot:PP,hardline:MP,softline:LP,ifBreak:jP,fill:BP,align:RP,indent:$P,group:HP,hardlineWithoutBreakParent:UP},utils:{normalizeDoc:qP,replaceTextEndOfLine:zP},printer:{printDocToString:VP}}=uo,{insertPragma:WP}=hP,{locStart:GP,locEnd:KP}=VI,{getFencedCodeBlockValue:YP,hasGitDiffFriendlyOrderedList:XP,splitText:JP,punctuationPattern:QP,INLINE_NODE_TYPES:ZP,INLINE_NODE_WRAPPER_TYPES:eM,isAutolink:tM}=rP,nM=new Set(["importExport"]),rM=["heading","tableCell","link","wikiLink"],iM=new Set(["listItem","definition","footnoteDefinition"]);function oM(e,t,n,r){const i=e.getValue(),o=null===i.checked?"":i.checked?"[x] ":"[ ] ";return[o,pM(e,t,n,{processor:(e,i)=>{if(0===i&&"list"!==e.getValue().type)return RP(" ".repeat(o.length),n());const s=" ".repeat(function(e,t,n){return en?n:e}(t.tabWidth-r.length,0,3));return[s,RP(s,n())]}})]}function sM(e,t){return function(e,t,n){let r=-1;for(const i of t.children)if(i.type===e.type&&n(i)?r++:r=-1,i===e)return r}(e,t,t=>t.ordered===e.ordered)}function aM(e,t){const n=Array.isArray(t)?t:[t];let r,i=-1;for(;r=e.getParentNode(++i);)if(n.includes(r.type))return i;return-1}function uM(e,t){const n=aM(e,t);return-1===n?null:e.getParentNode(n)}function lM(e,t,n){if("preserve"===n.proseWrap&&"\n"===t)return MP;const r="always"===n.proseWrap&&!uM(e,rM);return""!==t?r?NP:" ":r?LP:""}function cM(e,t,n){const r=[];let i=null;const{children:o}=e.getValue();for(const[s,a]of o.entries())switch(hM(a)){case"start":null===i&&(i={index:s,offset:a.position.end.offset});break;case"end":null!==i&&(r.push({start:i,end:{index:s,offset:a.position.start.offset}}),i=null)}return pM(e,t,n,{processor:(e,i)=>{if(r.length>0){const e=r[0];if(i===e.start.index)return[o[e.start.index].value,t.originalText.slice(e.start.offset,e.end.offset),o[e.end.index].value];if(e.start.indexn()),s=e.getValue(),a=[];let u;return e.each((e,n)=>{const r=e.getValue(),i=o(e,n);if(!1!==i){const e={parts:a,prevNode:u,parentNode:s,options:t};(function(e,t){const n=0===t.parts.length,r=ZP.includes(e.type),i="html"===e.type&&eM.includes(t.parentNode.type);return!n&&!r&&!i})(r,e)&&(a.push(MP),u&&nM.has(u.type)||(function(e,t){const n=(t.prevNode&&t.prevNode.type)===e.type&&iM.has(e.type),r="listItem"===t.parentNode.type&&!t.parentNode.loose,i=t.prevNode&&"listItem"===t.prevNode.type&&t.prevNode.loose,o="next"===hM(t.prevNode),s="html"===e.type&&t.prevNode&&"html"===t.prevNode.type&&t.prevNode.position.end.line+1===e.position.start.line,a="html"===e.type&&"listItem"===t.parentNode.type&&t.prevNode&&"paragraph"===t.prevNode.type&&t.prevNode.position.end.line+1===e.position.start.line;return i||!(n||r||o||s||a)}(r,e)||dM(r,e))&&a.push(MP),dM(r,e)&&a.push(MP)),a.push(i),u=r}},"children"),i?i(a):a}function fM(e){let t=e;for(;AP(t.children);)t=_P(t.children);return t}function hM(e){if("html"!==e.type)return!1;const t=e.value.match(/^$/);return null!==t&&(t[1]?t[1]:"next")}function dM(e,t){const n=t.prevNode&&"list"===t.prevNode.type,r="code"===e.type&&e.isIndented;return n&&r}function mM(e,t=[]){const n=[" ",...Array.isArray(t)?t:[t]];return new RegExp(n.map(e=>"\\"+e).join("|")).test(e)?`<${e}>`:e}function gM(e,t,n=!0){if(!e)return"";if(n)return" "+gM(e,t,!1);if((e=e.replace(/\\(["')])/g,"$1")).includes('"')&&e.includes("'")&&!e.includes(")"))return`(${e})`;const r=e.split("'").length-1,i=e.split('"').length-1,o=r>i?'"':i>r||t.singleQuote?"'":'"';return`${o}${e=(e=e.replace(/\\/,"\\\\")).replace(new RegExp(`(${o})`,"g"),"\\$1")}${o}`}var yM={preprocess:bP,print:function(e,t,n){const r=e.getValue();if(function(e){const t=uM(e,["linkReference","imageReference"]);return t&&("linkReference"!==t.type||"full"!==t.referenceType)}(e))return JP(t.originalText.slice(r.position.start.offset,r.position.end.offset),t).map(n=>"word"===n.type?n.value:""===n.value?"":lM(e,n.value,t));switch(r.type){case"front-matter":return t.originalText.slice(r.position.start.offset,r.position.end.offset);case"root":return 0===r.children.length?"":[qP(cM(e,t,n)),nM.has(fM(r).type)?"":MP];case"paragraph":return pM(e,t,n,{postprocessor:BP});case"sentence":return pM(e,t,n);case"word":{let t=r.value.replace(/\*/g,"\\$&").replace(new RegExp([`(^|${QP})(_+)`,`(_+)(${QP}|$)`].join("|"),"g"),(e,t,n,r,i)=>(n?`${t}${n}`:`${r}${i}`).replace(/_/g,"\\_"));const n=(e,t,n)=>"sentence"===e.type&&0===n,i=(e,t,n)=>tM(e.children[n-1]);return t!==r.value&&(e.match(void 0,n,i)||e.match(void 0,n,(e,t,n)=>"emphasis"===e.type&&0===n,i))&&(t=t.replace(/^(\\?[*_])+/,e=>e.replace(/\\/g,""))),t}case"whitespace":{const n=e.getParentNode(),i=n.children.indexOf(r),o=n.children[i+1],s=o&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/.test(o.value)?"never":t.proseWrap;return lM(e,r.value,{proseWrap:s})}case"emphasis":{let i;if(tM(r.children[0]))i=t.originalText[r.position.start.offset];else{const t=e.getParentNode(),n=t.children.indexOf(r),o=t.children[n-1],s=t.children[n+1];i=o&&"sentence"===o.type&&o.children.length>0&&"word"===_P(o.children).type&&!_P(o.children).hasTrailingPunctuation||s&&"sentence"===s.type&&s.children.length>0&&"word"===s.children[0].type&&!s.children[0].hasLeadingPunctuation||uM(e,"emphasis")?"*":"_"}return[i,pM(e,t,n),i]}case"strong":return["**",pM(e,t,n),"**"];case"delete":return["~~",pM(e,t,n),"~~"];case"inlineCode":{const e=kP(r.value,"`"),t="`".repeat(e||1),n=e&&!/^\s/.test(r.value)?" ":"";return[t,n,r.value,n,t]}case"wikiLink":{let e="";return e="preserve"===t.proseWrap?r.value:r.value.replace(/[\t\n]+/g," "),["[[",e,"]]"]}case"link":switch(t.originalText[r.position.start.offset]){case"<":{const e="mailto:";return["<",r.url.startsWith(e)&&t.originalText.slice(r.position.start.offset+1,r.position.start.offset+1+e.length)!==e?r.url.slice(e.length):r.url,">"]}case"[":return["[",pM(e,t,n),"](",mM(r.url,")"),gM(r.title,t),")"];default:return t.originalText.slice(r.position.start.offset,r.position.end.offset)}case"image":return["![",r.alt||"","](",mM(r.url,")"),gM(r.title,t),")"];case"blockquote":return["> ",RP("> ",pM(e,t,n))];case"heading":return["#".repeat(r.depth)+" ",pM(e,t,n)];case"code":{if(r.isIndented){const e=" ".repeat(4);return RP(e,[e,...zP(r.value,MP)])}const e=t.__inJsTemplate?"~":"`",n=e.repeat(Math.max(3,TP(r.value,e)+1));return[n,r.lang||"",r.meta?" "+r.meta:"",MP,...zP(YP(r,t.originalText),MP),MP,n]}case"html":{const t=e.getParentNode(),n="root"===t.type&&_P(t.children)===r?r.value.trimEnd():r.value,i=/^$/s.test(n);return zP(n,i?MP:PP(IP))}case"list":{const i=sM(r,e.getParentNode()),o=XP(r,t);return pM(e,t,n,{processor:(e,s)=>{const a=function(){const e=r.ordered?(0===s?r.start:o?1:r.start+s)+(i%2==0?". ":") "):i%2==0?"- ":"* ";return r.isAligned||r.hasIndentedCodeblock?function(e,t){const n=r();return e+" ".repeat(n>=4?0:n);function r(){const n=e.length%t.tabWidth;return 0===n?0:t.tabWidth-n}}(e,t):e}(),u=e.getValue();return 2===u.children.length&&"html"===u.children[1].type&&u.children[0].position.start.column!==u.children[1].position.start.column?[a,oM(e,t,n,a)]:[a,RP(" ".repeat(a.length),oM(e,t,n,a))]}})}case"thematicBreak":{const t=aM(e,"list");return-1===t?"---":sM(e.getParentNode(t),e.getParentNode(t+1))%2==0?"***":"---"}case"linkReference":return["[",pM(e,t,n),"]","full"===r.referenceType?["[",r.identifier,"]"]:"collapsed"===r.referenceType?"[]":""];case"imageReference":switch(r.referenceType){case"full":return["![",r.alt||"","][",r.identifier,"]"];default:return["![",r.alt,"]","collapsed"===r.referenceType?"[]":""]}case"definition":{const e="always"===t.proseWrap?NP:" ";return HP(["[",r.identifier,"]:",$P([e,mM(r.url),null===r.title?"":[e,gM(r.title,t,!1)]])])}case"footnote":return["[^",pM(e,t,n),"]"];case"footnoteReference":return["[^",r.identifier,"]"];case"footnoteDefinition":{const i=e.getParentNode().children[e.getName()+1],o=1===r.children.length&&"paragraph"===r.children[0].type&&("never"===t.proseWrap||"preserve"===t.proseWrap&&r.children[0].position.start.line===r.children[0].position.end.line);return["[^",r.identifier,"]: ",o?pM(e,t,n):HP([RP(" ".repeat(4),pM(e,t,n,{processor:(e,t)=>0===t?HP([LP,n()]):n()})),i&&"footnoteDefinition"===i.type?LP:""])]}case"table":return function(e,t,n){const r=e.getValue(),i=[],o=e.map(e=>e.map((e,r)=>{const o=VP(n(),t).formatted,s=SP(o);return i[r]=Math.max(i[r]||3,s),{text:o,width:s}},"children"),"children"),s=u(!1);if("never"!==t.proseWrap)return[OP,s];const a=u(!0);return[OP,HP(jP(a,s))];function u(e){const t=[c(o[0],e),l(e)];return o.length>1&&t.push(FP(UP,o.slice(1).map(t=>c(t,e)))),FP(UP,t)}function l(e){return`| ${i.map((t,n)=>{const i=r.align[n],o="center"===i||"right"===i?":":"-";return`${"center"===i||"left"===i?":":"-"}${e?"-":"-".repeat(t-2)}${o}`}).join(" | ")} |`}function c(e,t){return`| ${e.map(({text:e,width:n},o)=>{if(t)return e;const s=i[o]-n,a=r.align[o];let u=0;"right"===a?u=s:"center"===a&&(u=Math.floor(s/2));const l=s-u;return`${" ".repeat(u)}${e}${" ".repeat(l)}`}).join(" | ")} |`}}(e,t,n);case"tableCell":return pM(e,t,n);case"break":return/\s/.test(t.originalText[r.position.start.offset])?[" ",PP(IP)]:["\\",MP];case"liquidNode":return zP(r.value,MP);case"importExport":return[r.value,MP];case"jsx":return r.value;case"math":return["$$",MP,r.value?[...zP(r.value,MP),MP]:"","$$"];case"inlineMath":return t.originalText.slice(GP(r),KP(r));case"tableRow":case"listItem":default:throw new Error("Unknown markdown type "+JSON.stringify(r.type))}},embed:cP,massageAstNode:EP,hasPrettierIgnore:function(e){const t=Number(e.getName());return 0!==t&&"next"===hM(e.getParentNode().children[t-1])},insertPragma:WP},vM={proseWrap:QA.proseWrap,singleQuote:QA.singleQuote},bM={name:"Markdown",type:"prose",color:"#083fa1",aliases:["pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".markdown",".mdown",".mdwn",".mdx",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr"],tmScope:"source.gfm",languageId:222},DM={languages:[id(bM,e=>({since:"1.8.0",parsers:["markdown"],vscodeLanguageIds:["markdown"],filenames:[...e.filenames,"README"],extensions:e.extensions.filter(e=>".mdx"!==e)})),id(bM,()=>({name:"MDX",since:"1.15.0",parsers:["mdx"],vscodeLanguageIds:["mdx"],filenames:[],extensions:[".mdx"]}))],options:vM,printers:{mdast:yM},parsers:void 0};const{isFrontMatterNode:wM}=_i,CM=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan"]);function xM(e,t){return"text"===e.type||"comment"===e.type||wM(e)||"yaml"===e.type||"toml"===e.type?null:("attribute"===e.type&&delete t.value,void("docType"===e.type&&delete t.value))}xM.ignoredProperties=CM;var EM=xM,_M={"*":["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","slot","spellcheck","style","tabindex","title","translate"],a:["accesskey","charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","tabindex","target","type"],abbr:["title"],applet:["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"],area:["accesskey","alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","tabindex","target","type"],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],base:["href","target"],basefont:["color","face","size"],bdo:["dir"],blockquote:["cite"],body:["alink","background","bgcolor","link","text","vlink"],br:["clear"],button:["accesskey","autofocus","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","tabindex","type","value"],canvas:["height","width"],caption:["align"],col:["align","char","charoff","span","valign","width"],colgroup:["align","char","charoff","span","valign","width"],data:["value"],del:["cite","datetime"],details:["open"],dfn:["title"],dialog:["open"],dir:["compact"],div:["align"],dl:["compact"],embed:["height","src","type","width"],fieldset:["disabled","form","name"],font:["color","face","size"],form:["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"],frame:["frameborder","longdesc","marginheight","marginwidth","name","noresize","scrolling","src"],frameset:["cols","rows"],h1:["align"],h2:["align"],h3:["align"],h4:["align"],h5:["align"],h6:["align"],head:["profile"],hr:["align","noshade","size","width"],html:["manifest","version"],iframe:["align","allow","allowfullscreen","allowpaymentrequest","allowusermedia","frameborder","height","loading","longdesc","marginheight","marginwidth","name","referrerpolicy","sandbox","scrolling","src","srcdoc","width"],img:["align","alt","border","crossorigin","decoding","height","hspace","ismap","loading","longdesc","name","referrerpolicy","sizes","src","srcset","usemap","vspace","width"],input:["accept","accesskey","align","alt","autocomplete","autofocus","checked","dirname","disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","height","ismap","list","max","maxlength","min","minlength","multiple","name","pattern","placeholder","readonly","required","size","src","step","tabindex","title","type","usemap","value","width"],ins:["cite","datetime"],isindex:["prompt"],label:["accesskey","for","form"],legend:["accesskey","align"],li:["type","value"],link:["as","charset","color","crossorigin","disabled","href","hreflang","imagesizes","imagesrcset","integrity","media","nonce","referrerpolicy","rel","rev","sizes","target","title","type"],map:["name"],menu:["compact"],meta:["charset","content","http-equiv","name","scheme"],meter:["high","low","max","min","optimum","value"],object:["align","archive","border","classid","codebase","codetype","data","declare","form","height","hspace","name","standby","tabindex","type","typemustmatch","usemap","vspace","width"],ol:["compact","reversed","start","type"],optgroup:["disabled","label"],option:["disabled","label","selected","value"],output:["for","form","name"],p:["align"],param:["name","type","value","valuetype"],pre:["width"],progress:["max","value"],q:["cite"],script:["async","charset","crossorigin","defer","integrity","language","nomodule","nonce","referrerpolicy","src","type"],select:["autocomplete","autofocus","disabled","form","multiple","name","required","size","tabindex"],slot:["name"],source:["media","sizes","src","srcset","type"],style:["media","nonce","title","type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],tbody:["align","char","charoff","valign"],td:["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],textarea:["accesskey","autocomplete","autofocus","cols","dirname","disabled","form","maxlength","minlength","name","placeholder","readonly","required","rows","tabindex","wrap"],tfoot:["align","char","charoff","valign"],th:["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],thead:["align","char","charoff","valign"],time:["datetime"],tr:["align","bgcolor","char","charoff","valign"],track:["default","kind","label","src","srclang"],ul:["compact","type"],video:["autoplay","controls","crossorigin","height","loop","muted","playsinline","poster","preload","src","width"]};const{inferParserByLanguage:kM,isFrontMatterNode:TM}=_i,{builders:{line:SM,hardline:AM,join:OM},utils:{getDocParts:FM,replaceTextEndOfLine:NM}}=uo,{CSS_DISPLAY_TAGS:IM,CSS_DISPLAY_DEFAULT:PM,CSS_WHITE_SPACE_TAGS:MM,CSS_WHITE_SPACE_DEFAULT:LM}={CSS_DISPLAY_TAGS:{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"},CSS_DISPLAY_DEFAULT:"inline",CSS_WHITE_SPACE_TAGS:{listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"},CSS_WHITE_SPACE_DEFAULT:"normal"},jM=qM(["a","abbr","acronym","address","applet","area","article","aside","audio","b","base","basefont","bdi","bdo","bgsound","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","command","content","data","datalist","dd","del","details","dfn","dialog","dir","div","dl","dt","element","em","embed","fieldset","figcaption","figure","font","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","image","img","input","ins","isindex","kbd","keygen","label","legend","li","link","listing","main","map","mark","marquee","math","menu","menuitem","meta","meter","multicol","nav","nextid","nobr","noembed","noframes","noscript","object","ol","optgroup","option","output","p","param","picture","plaintext","pre","progress","q","rb","rbc","rp","rt","rtc","ruby","s","samp","script","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","tt","u","ul","var","video","wbr","xmp"]),BM=function(e,t){const n=Object.create(null);for(const[r,i]of Object.entries(e))n[r]=t(i,r);return n}(_M,qM),RM=new Set(["\t","\n","\f","\r"," "]),$M=e=>e.replace(/[\t\n\f\r ]+$/,""),HM=e=>(e=>e.replace(/^[\t\f\r ]*?\n/g,""))($M(e)),UM=e=>e.match(/^[\t\n\f\r ]*/)[0];function qM(e){const t=Object.create(null);for(const n of e)t[n]=!0;return t}function zM(e){return"element"===e.type&&("script"===e.fullName||"style"===e.fullName||"svg:style"===e.fullName||tL(e)&&("script"===e.name||"style"===e.name))}function VM(e){return nL(e).startsWith("pre")}function WM(e){return"element"===e.type&&e.children.length>0&&(["html","head","ul","ol","select"].includes(e.name)||e.cssDisplay.startsWith("table")&&"table-cell"!==e.cssDisplay)}function GM(e){return JM(e)||"element"===e.type&&"br"===e.fullName||KM(e)}function KM(e){return YM(e)&&XM(e)}function YM(e){return e.hasLeadingSpaces&&(e.prev?e.prev.sourceSpan.end.linee.sourceSpan.end.line:"root"===e.parent.type||e.parent.endSourceSpan&&e.parent.endSourceSpan.start.line>e.sourceSpan.end.line)}function JM(e){switch(e.type){case"ieConditionalComment":case"comment":case"directive":return!0;case"element":return["script","select"].includes(e.name)}return!1}function QM(e){const{type:t,lang:n}=e.attrMap;return"module"===t||"text/javascript"===t||"text/babel"===t||"application/javascript"===t||"jsx"===n?"babel":"application/x-typescript"===t||"ts"===n||"tsx"===n?"typescript":"text/markdown"===t?"markdown":"text/html"===t?"html":t&&(t.endsWith("json")||t.endsWith("importmap"))?"json":"text/x-handlebars-template"===t?"glimmer":void 0}function ZM(e){return"block"===e||"list-item"===e||e.startsWith("table")}function eL(e){return nL(e).startsWith("pre")}function tL(e){return"element"===e.type&&!e.hasExplicitNamespace&&!["html","svg"].includes(e.namespace)}function nL(e){return"element"===e.type&&(!e.namespace||tL(e))&&MM[e.name]||LM}function rL(e,t=function(e){let t=Number.POSITIVE_INFINITY;for(const n of e.split("\n")){if(0===n.length)continue;if(!RM.has(n[0]))return 0;const e=UM(n).length;n.length!==e&&ee.slice(t)).join("\n")}const iL=new Set(["template","style","script"]);function oL(e,t){return sL(e,t)&&!iL.has(e.fullName)}function sL(e,t){return"vue"===t.parser&&"element"===e.type&&"root"===e.parent.type&&"html"!==e.fullName.toLowerCase()}function aL(e,t){return sL(e,t)&&(oL(e,t)||e.attrMap.lang&&"html"!==e.attrMap.lang)}var uL={HTML_ELEMENT_ATTRIBUTES:BM,HTML_TAGS:jM,htmlTrim:e=>(e=>e.replace(/^[\t\n\f\r ]+/,""))($M(e)),htmlTrimPreserveIndentation:HM,hasHtmlWhitespace:e=>/[\t\n\f\r ]/.test(e),getLeadingAndTrailingHtmlWhitespace:e=>{const[,t,n,r]=e.match(/^([\t\n\f\r ]*)(.*?)([\t\n\f\r ]*)$/s);return{leadingWhitespace:t,trailingWhitespace:r,text:n}},canHaveInterpolation:function(e){return e.children&&!zM(e)},countChars:function(e,t){let n=0;for(let r=0;r=0;r--){const i=e.stack[r];i&&"object"==typeof i&&!Array.isArray(i)&&t(i)&&n++}return n},dedentString:rL,forceBreakChildren:WM,forceBreakContent:function(e){return WM(e)||"element"===e.type&&e.children.length>0&&(["body","script","style"].includes(e.name)||e.children.some(e=>function(e){return e.children&&e.children.some(e=>"text"!==e.type)}(e)))||e.firstChild&&e.firstChild===e.lastChild&&"text"!==e.firstChild.type&&YM(e.firstChild)&&(!e.lastChild.isTrailingSpaceSensitive||XM(e.lastChild))},forceNextEmptyLine:function(e){return TM(e)||e.next&&e.sourceSpan.end&&e.sourceSpan.end.line+1"svg:foreignObject"===e.fullName))return"svg"===e.name?"inline-block":"block";n=!0}switch(t.htmlWhitespaceSensitivity){case"strict":return"inline";case"ignore":return"block";default:return"vue"===t.parser&&e.parent&&"root"===e.parent.type?"block":"element"===e.type&&(!e.namespace||n||tL(e))&&IM[e.name]||PM}},getNodeCssStyleWhiteSpace:nL,hasPrettierIgnore:function(e){return"attribute"!==e.type&&!!e.parent&&"number"==typeof e.index&&0!==e.index&&function(e){return"comment"===e.type&&"prettier-ignore"===e.value.trim()}(e.parent.children[e.index-1])},inferScriptParser:function(e,t){return"script"!==e.name||e.attrMap.src?"style"===e.name?function(e){const{lang:t}=e.attrMap;return t&&"postcss"!==t&&"css"!==t?"scss"===t?"scss":"less"===t?"less":void 0:"css"}(e):t&&aL(e,t)?QM(e)||!("src"in e.attrMap)&&kM(e.attrMap.lang,t):void 0:e.attrMap.lang||e.attrMap.type?QM(e):"babel"},isVueCustomBlock:oL,isVueNonHtmlBlock:aL,isVueSlotAttribute:function(e){const t=e.fullName;return"#"===t.charAt(0)||"slot-scope"===t||"v-slot"===t||t.startsWith("v-slot:")},isVueSfcBindingsAttribute:function(e,t){const n=e.parent;if(!sL(n,t))return!1;const r=n.fullName,i=e.fullName;return"script"===r&&"setup"===i||"style"===r&&"vars"===i},isDanglingSpaceSensitiveNode:function(e){return t=e.cssDisplay,!(ZM(t)||"inline-block"===t||zM(e));var t},isIndentationSensitiveNode:VM,isLeadingSpaceSensitiveNode:function(e,t){const n=function(){return!TM(e)&&(!("text"!==e.type&&"interpolation"!==e.type||!e.prev||"text"!==e.prev.type&&"interpolation"!==e.prev.type)||!(!e.parent||"none"===e.parent.cssDisplay)&&(!!eL(e.parent)||!(!e.prev&&("root"===e.parent.type||eL(e)&&e.parent||zM(e.parent)||oL(e.parent,t)||(n=e.parent.cssDisplay,ZM(n)||"inline-block"===n)))&&!(e.prev&&!function(e){return!ZM(e)}(e.prev.cssDisplay))));var n}();return n&&!e.prev&&e.parent&&e.parent.tagDefinition&&e.parent.tagDefinition.ignoreFirstLf?"interpolation"===e.type:n},isPreLikeNode:eL,isScriptLikeTag:zM,isTextLikeNode:function(e){return"text"===e.type||"comment"===e.type},isTrailingSpaceSensitiveNode:function(e,t){return!TM(e)&&(!("text"!==e.type&&"interpolation"!==e.type||!e.next||"text"!==e.next.type&&"interpolation"!==e.next.type)||!(!e.parent||"none"===e.parent.cssDisplay)&&(!!eL(e.parent)||!(!e.next&&("root"===e.parent.type||eL(e)&&e.parent||zM(e.parent)||oL(e.parent,t)||(n=e.parent.cssDisplay,ZM(n)||"inline-block"===n)))&&!(e.next&&!function(e){return!ZM(e)}(e.next.cssDisplay))));var n},isWhitespaceSensitiveNode:function(e){return zM(e)||"interpolation"===e.type||VM(e)},isUnknownNamespace:tL,preferHardlineAsLeadingSpaces:function(e){return JM(e)||e.prev&&GM(e.prev)||KM(e)},preferHardlineAsTrailingSpaces:GM,shouldPreserveContent:function(e,t){return!("ieConditionalComment"!==e.type||!e.lastChild||e.lastChild.isSelfClosing||e.lastChild.endSourceSpan)||"ieConditionalComment"===e.type&&!e.complete||!(!eL(e)||!e.children.some(e=>"text"!==e.type&&"interpolation"!==e.type))||!(!aL(e,t)||zM(e)||"interpolation"===e.type)},unescapeQuoteEntities:function(e){return e.replace(/'/g,"'").replace(/"/g,'"')},getTextValueParts:function(e,t=e.value){return e.parent.isWhitespaceSensitive?e.parent.isIndentationSensitive?NM(t):NM(rL(HM(t)),AM):FM(OM(SM,(e=>e.split(/[\t\n\f\r ]+/))(t)))}},lL=i((function(e,t){function n(e){return t.$0<=e&&e<=t.$9} +function r(e){var t=Number(e.version.split(".")[0]);if(t>=2)e.mixin({beforeCreate:r});else{var n=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[r].concat(e.init):r,n.call(this,e)}}function r(){var e=this.$options;e.store?this.$store="function"===typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}n.d(t,"b",(function(){return P})),n.d(t,"c",(function(){return I}));var i="undefined"!==typeof window?window:"undefined"!==typeof e?e:{},o=i.__VUE_DEVTOOLS_GLOBAL_HOOK__;function s(e){o&&(e._devtoolHook=o,o.emit("vuex:init",e),o.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){o.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){o.emit("vuex:action",e,t)}),{prepend:!0}))}function a(e,t){return e.filter(t)[0]}function u(e,t){if(void 0===t&&(t=[]),null===e||"object"!==typeof e)return e;var n=a(t,(function(t){return t.original===e}));if(n)return n.copy;var r=Array.isArray(e)?[]:{};return t.push({original:e,copy:r}),Object.keys(e).forEach((function(n){r[n]=u(e[n],t)})),r}function l(e,t){Object.keys(e).forEach((function(n){return t(e[n],n)}))}function c(e){return null!==e&&"object"===typeof e}function p(e){return e&&"function"===typeof e.then}function f(e,t){return function(){return e(t)}}var h=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var n=e.state;this.state=("function"===typeof n?n():n)||{}},d={namespaced:{configurable:!0}};d.namespaced.get=function(){return!!this._rawModule.namespaced},h.prototype.addChild=function(e,t){this._children[e]=t},h.prototype.removeChild=function(e){delete this._children[e]},h.prototype.getChild=function(e){return this._children[e]},h.prototype.hasChild=function(e){return e in this._children},h.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},h.prototype.forEachChild=function(e){l(this._children,e)},h.prototype.forEachGetter=function(e){this._rawModule.getters&&l(this._rawModule.getters,e)},h.prototype.forEachAction=function(e){this._rawModule.actions&&l(this._rawModule.actions,e)},h.prototype.forEachMutation=function(e){this._rawModule.mutations&&l(this._rawModule.mutations,e)},Object.defineProperties(h.prototype,d);var m=function(e){this.register([],e,!1)};function g(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return void 0;g(e.concat(r),t.getChild(r),n.modules[r])}}m.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},m.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,n){return t=t.getChild(n),e+(t.namespaced?n+"/":"")}),"")},m.prototype.update=function(e){g([],this.root,e)},m.prototype.register=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=new h(t,n);if(0===e.length)this.root=i;else{var o=this.get(e.slice(0,-1));o.addChild(e[e.length-1],i)}t.modules&&l(t.modules,(function(t,i){r.register(e.concat(i),t,n)}))},m.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1],r=t.getChild(n);r&&r.runtime&&t.removeChild(n)},m.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),n=e[e.length-1];return!!t&&t.hasChild(n)};var y;var v=function(e){var t=this;void 0===e&&(e={}),!y&&"undefined"!==typeof window&&window.Vue&&N(window.Vue);var n=e.plugins;void 0===n&&(n=[]);var r=e.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new m(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new y,this._makeLocalGettersCache=Object.create(null);var i=this,o=this,a=o.dispatch,u=o.commit;this.dispatch=function(e,t){return a.call(i,e,t)},this.commit=function(e,t,n){return u.call(i,e,t,n)},this.strict=r;var l=this._modules.root.state;x(this,l,[],this._modules.root),C(this,l),n.forEach((function(e){return e(t)}));var c=void 0!==e.devtools?e.devtools:y.config.devtools;c&&s(this)},b={state:{configurable:!0}};function D(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function w(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;x(e,n,[],e._modules.root,!0),C(e,n,t)}function C(e,t,n){var r=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,o={};l(i,(function(t,n){o[n]=f(t,e),Object.defineProperty(e.getters,n,{get:function(){return e._vm[n]},enumerable:!0})}));var s=y.config.silent;y.config.silent=!0,e._vm=new y({data:{$$state:t},computed:o}),y.config.silent=s,e.strict&&A(e),r&&(n&&e._withCommit((function(){r._data.$$state=null})),y.nextTick((function(){return r.$destroy()})))}function x(e,t,n,r,i){var o=!n.length,s=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[s],e._modulesNamespaceMap[s]=r),!o&&!i){var a=O(t,n.slice(0,-1)),u=n[n.length-1];e._withCommit((function(){y.set(a,u,r.state)}))}var l=r.context=E(e,s,n);r.forEachMutation((function(t,n){var r=s+n;k(e,r,t,l)})),r.forEachAction((function(t,n){var r=t.root?n:s+n,i=t.handler||t;T(e,r,i,l)})),r.forEachGetter((function(t,n){var r=s+n;S(e,r,t,l)})),r.forEachChild((function(r,o){x(e,t,n.concat(o),r,i)}))}function E(e,t,n){var r=""===t,i={dispatch:r?e.dispatch:function(n,r,i){var o=F(n,r,i),s=o.payload,a=o.options,u=o.type;return a&&a.root||(u=t+u),e.dispatch(u,s)},commit:r?e.commit:function(n,r,i){var o=F(n,r,i),s=o.payload,a=o.options,u=o.type;a&&a.root||(u=t+u),e.commit(u,s,a)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return _(e,t)}},state:{get:function(){return O(e.state,n)}}}),i}function _(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,r)===t){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function k(e,t,n,r){var i=e._mutations[t]||(e._mutations[t]=[]);i.push((function(t){n.call(e,r.state,t)}))}function T(e,t,n,r){var i=e._actions[t]||(e._actions[t]=[]);i.push((function(t){var i=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},t);return p(i)||(i=Promise.resolve(i)),e._devtoolHook?i.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):i}))}function S(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(e){return n(r.state,r.getters,e.state,e.getters)})}function A(e){e._vm.$watch((function(){return this._data.$$state}),(function(){0}),{deep:!0,sync:!0})}function O(e,t){return t.reduce((function(e,t){return e[t]}),e)}function F(e,t,n){return c(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}function N(e){y&&e===y||(y=e,r(y))}b.state.get=function(){return this._vm._data.$$state},b.state.set=function(e){0},v.prototype.commit=function(e,t,n){var r=this,i=F(e,t,n),o=i.type,s=i.payload,a=(i.options,{type:o,payload:s}),u=this._mutations[o];u&&(this._withCommit((function(){u.forEach((function(e){e(s)}))})),this._subscribers.slice().forEach((function(e){return e(a,r.state)})))},v.prototype.dispatch=function(e,t){var n=this,r=F(e,t),i=r.type,o=r.payload,s={type:i,payload:o},a=this._actions[i];if(a){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(s,n.state)}))}catch(l){0}var u=a.length>1?Promise.all(a.map((function(e){return e(o)}))):a[0](o);return new Promise((function(e,t){u.then((function(t){try{n._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(s,n.state)}))}catch(l){0}e(t)}),(function(e){try{n._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(s,n.state,e)}))}catch(l){0}t(e)}))}))}},v.prototype.subscribe=function(e,t){return D(e,this._subscribers,t)},v.prototype.subscribeAction=function(e,t){var n="function"===typeof e?{before:e}:e;return D(n,this._actionSubscribers,t)},v.prototype.watch=function(e,t,n){var r=this;return this._watcherVM.$watch((function(){return e(r.state,r.getters)}),t,n)},v.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},v.prototype.registerModule=function(e,t,n){void 0===n&&(n={}),"string"===typeof e&&(e=[e]),this._modules.register(e,t),x(this,this.state,e,this._modules.get(e),n.preserveState),C(this,this.state)},v.prototype.unregisterModule=function(e){var t=this;"string"===typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var n=O(t.state,e.slice(0,-1));y.delete(n,e[e.length-1])})),w(this)},v.prototype.hasModule=function(e){return"string"===typeof e&&(e=[e]),this._modules.isRegistered(e)},v.prototype.hotUpdate=function(e){this._modules.update(e),w(this,!0)},v.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(v.prototype,b);var I=$((function(e,t){var n={};return B(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=this.$store.state,n=this.$store.getters;if(e){var r=H(this.$store,"mapState",e);if(!r)return;t=r.context.state,n=r.context.getters}return"function"===typeof i?i.call(this,t,n):t[i]},n[r].vuex=!0})),n})),P=$((function(e,t){var n={};return B(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.commit;if(e){var o=H(this.$store,"mapMutations",e);if(!o)return;r=o.context.commit}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),M=$((function(e,t){var n={};return B(t).forEach((function(t){var r=t.key,i=t.val;i=e+i,n[r]=function(){if(!e||H(this.$store,"mapGetters",e))return this.$store.getters[i]},n[r].vuex=!0})),n})),L=$((function(e,t){var n={};return B(t).forEach((function(t){var r=t.key,i=t.val;n[r]=function(){var t=[],n=arguments.length;while(n--)t[n]=arguments[n];var r=this.$store.dispatch;if(e){var o=H(this.$store,"mapActions",e);if(!o)return;r=o.context.dispatch}return"function"===typeof i?i.apply(this,[r].concat(t)):r.apply(this.$store,[i].concat(t))}})),n})),j=function(e){return{mapState:I.bind(null,e),mapGetters:M.bind(null,e),mapMutations:P.bind(null,e),mapActions:L.bind(null,e)}};function B(e){return R(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function R(e){return Array.isArray(e)||c(e)}function $(e){return function(t,n){return"string"!==typeof t?(n=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,n)}}function H(e,t,n){var r=e._modulesNamespaceMap[n];return r}function U(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var n=e.filter;void 0===n&&(n=function(e,t,n){return!0});var r=e.transformer;void 0===r&&(r=function(e){return e});var i=e.mutationTransformer;void 0===i&&(i=function(e){return e});var o=e.actionFilter;void 0===o&&(o=function(e,t){return!0});var s=e.actionTransformer;void 0===s&&(s=function(e){return e});var a=e.logMutations;void 0===a&&(a=!0);var l=e.logActions;void 0===l&&(l=!0);var c=e.logger;return void 0===c&&(c=console),function(e){var p=u(e.state);"undefined"!==typeof c&&(a&&e.subscribe((function(e,o){var s=u(o);if(n(e,p,s)){var a=V(),l=i(e),f="mutation "+e.type+a;q(c,f,t),c.log("%c prev state","color: #9E9E9E; font-weight: bold",r(p)),c.log("%c mutation","color: #03A9F4; font-weight: bold",l),c.log("%c next state","color: #4CAF50; font-weight: bold",r(s)),z(c)}p=s})),l&&e.subscribeAction((function(e,n){if(o(e,n)){var r=V(),i=s(e),a="action "+e.type+r;q(c,a,t),c.log("%c action","color: #03A9F4; font-weight: bold",i),z(c)}})))}}function q(e,t,n){var r=n?e.groupCollapsed:e.group;try{r.call(e,t)}catch(i){e.log(t)}}function z(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function V(){var e=new Date;return" @ "+G(e.getHours(),2)+":"+G(e.getMinutes(),2)+":"+G(e.getSeconds(),2)+"."+G(e.getMilliseconds(),3)}function W(e,t){return new Array(t+1).join(e)}function G(e,t){return W("0",t-e.toString().length)+e}var K={Store:v,install:N,version:"3.6.2",mapState:I,mapMutations:P,mapGetters:M,mapActions:L,createNamespacedHelpers:j,createLogger:U};t["a"]=K}).call(this,n("c8ba"))},"2f9a":function(e,t){e.exports=function(){}},"301c":function(e,t,n){n("e198")("asyncIterator")},"30b5":function(e,t,n){"use strict";var r=n("c532");function i(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var s=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),s.push(i(t)+"="+i(e))})))})),o=s.join("&")}if(o){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},"31c5":function(e,t,n){(function(e){e(n("56b3"))})((function(e){"use strict";var t="CodeMirror-activeline",n="CodeMirror-activeline-background",r="CodeMirror-activeline-gutter";function i(e){for(var i=0;ie.length?n:e})),l.value=e.join(p)}else l.value=e.join(n.slice(a,a+l.count));a+=l.count,l.added||(u+=l.count)}}var f=t[s-1];return s>1&&"string"==typeof f.value&&(f.added||f.removed)&&e.equals("",f.value)&&(t[s-2].value+=f.value,t.pop()),t}function r(e){return{newPos:e.newPos,components:e.components.slice(0)}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=t,t.prototype={diff:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.callback;"function"==typeof i&&(o=i,i={}),this.options=i;var s=this;function a(e){return o?(setTimeout((function(){o(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var u=(t=this.removeEmpty(this.tokenize(t))).length,l=e.length,c=1,p=u+l,f=[{newPos:-1,components:[]}],h=this.extractCommon(f[0],t,e,0);if(f[0].newPos+1>=u&&h+1>=l)return a([{value:this.join(t),count:t.length}]);function d(){for(var i=-1*c;i<=c;i+=2){var o=void 0,p=f[i-1],h=f[i+1],d=(h?h.newPos:0)-i;p&&(f[i-1]=void 0);var m=p&&p.newPos+1=u&&d+1>=l)return a(n(s,o.components,t,e,s.useLongestToken));f[i]=o}else f[i]=void 0}c++}if(o)!function e(){setTimeout((function(){if(c>p)return o();d()||e()}),0)}();else for(;c<=p;){var m=d();if(m)return m}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var i=t.length,o=n.length,s=e.newPos,a=s-r,u=0;s+10&&j[0]<4?1:+(j[0]+j[1])),!B&&ge&&(!(j=ge.match(/Edge\/(\d+)/))||j[1]>=74)&&(j=ge.match(/Chrome\/(\d+)/))&&(B=+j[1]);var we=B,Ce=we,xe=A,Ee=!!Object.getOwnPropertySymbols&&!xe((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Ce&&Ce<41})),_e=Ee&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ke=fe,Te=se,Se=he,Ae=_e,Oe=T.Object,Fe=Ae?function(e){return"symbol"==typeof e}:function(e){var t=ke("Symbol");return Te(t)&&Se(t.prototype,Oe(e))},Ne=T.String,Ie=function(e){try{return Ne(e)}catch(e){return"Object"}},Pe=se,Me=Ie,Le=T.TypeError,je=function(e){if(Pe(e))return e;throw Le(Me(e)+" is not a function")},Be=je,Re=function(e,t){var n=e[t];return null==n?void 0:Be(n)},$e=N,He=se,Ue=ue,qe=T.TypeError,ze={exports:{}},Ve=T,We=Object.defineProperty,Ge=function(e,t){try{We(Ve,e,{value:t,configurable:!0,writable:!0})}catch(r){Ve[e]=t}return t},Ke=Ge,Ye="__core-js_shared__",Xe=T[Ye]||Ke(Ye,{}),Je=Xe;(ze.exports=function(e,t){return Je[e]||(Je[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.1",mode:"global",copyright:"© 2021 Denis Pushkarev (zloirock.ru)"});var Qe=ne,Ze=T.Object,et=function(e){return Ze(Qe(e))},tt=et,nt=z({}.hasOwnProperty),rt=Object.hasOwn||function(e,t){return nt(tt(e),t)},it=z,ot=0,st=Math.random(),at=it(1..toString),ut=function(e){return"Symbol("+(void 0===e?"":e)+")_"+at(++ot+st,36)},lt=T,ct=ze.exports,pt=rt,ft=ut,ht=Ee,dt=_e,mt=ct("wks"),gt=lt.Symbol,yt=gt&>.for,vt=dt?gt:gt&>.withoutSetter||ft,bt=function(e){if(!pt(mt,e)||!ht&&"string"!=typeof mt[e]){var t="Symbol."+e;ht&&pt(gt,e)?mt[e]=gt[e]:mt[e]=dt&&yt?yt(t):vt(t)}return mt[e]},Dt=N,wt=ue,Ct=Fe,xt=Re,Et=function(e,t){var n,r;if("string"===t&&He(n=e.toString)&&!Ue(r=$e(n,e)))return r;if(He(n=e.valueOf)&&!Ue(r=$e(n,e)))return r;if("string"!==t&&He(n=e.toString)&&!Ue(r=$e(n,e)))return r;throw qe("Can't convert object to primitive value")},_t=bt,kt=T.TypeError,Tt=_t("toPrimitive"),St=function(e,t){if(!wt(e)||Ct(e))return e;var n,r=xt(e,Tt);if(r){if(void 0===t&&(t="default"),n=Dt(r,e,t),!wt(n)||Ct(n))return n;throw kt("Can't convert object to primitive value")}return void 0===t&&(t="number"),Et(e,t)},At=Fe,Ot=function(e){var t=St(e,"string");return At(t)?t:t+""},Ft=ue,Nt=T.document,It=Ft(Nt)&&Ft(Nt.createElement),Pt=function(e){return It?Nt.createElement(e):{}},Mt=Pt,Lt=!O&&!A((function(){return 7!=Object.defineProperty(Mt("div"),"a",{get:function(){return 7}}).a})),jt=O,Bt=N,Rt=I,$t=R,Ht=oe,Ut=Ot,qt=rt,zt=Lt,Vt=Object.getOwnPropertyDescriptor;S.f=jt?Vt:function(e,t){if(e=Ht(e),t=Ut(t),zt)try{return Vt(e,t)}catch(e){}if(qt(e,t))return $t(!Bt(Rt.f,e,t),e[t])};var Wt={},Gt=T,Kt=ue,Yt=Gt.String,Xt=Gt.TypeError,Jt=function(e){if(Kt(e))return e;throw Xt(Yt(e)+" is not an object")},Qt=O,Zt=Lt,en=Jt,tn=Ot,nn=T.TypeError,rn=Object.defineProperty;Wt.f=Qt?rn:function(e,t,n){if(en(e),t=tn(t),en(n),Zt)try{return rn(e,t,n)}catch(e){}if("get"in n||"set"in n)throw nn("Accessors not supported");return"value"in n&&(e[t]=n.value),e};var on=Wt,sn=R,an=O?function(e,t,n){return on.f(e,t,sn(1,n))}:function(e,t,n){return e[t]=n,e},un={exports:{}},ln=se,cn=Xe,pn=z(Function.toString);ln(cn.inspectSource)||(cn.inspectSource=function(e){return pn(e)});var fn,hn,dn,mn=cn.inspectSource,gn=se,yn=mn,vn=T.WeakMap,bn=gn(vn)&&/native code/.test(yn(vn)),Dn=ze.exports,wn=ut,Cn=Dn("keys"),xn=function(e){return Cn[e]||(Cn[e]=wn(e))},En={},_n=bn,kn=T,Tn=z,Sn=ue,An=an,On=rt,Fn=Xe,Nn=xn,In=En,Pn="Object already initialized",Mn=kn.TypeError,Ln=kn.WeakMap;if(_n||Fn.state){var jn=Fn.state||(Fn.state=new Ln),Bn=Tn(jn.get),Rn=Tn(jn.has),$n=Tn(jn.set);fn=function(e,t){if(Rn(jn,e))throw new Mn(Pn);return t.facade=e,$n(jn,e,t),t},hn=function(e){return Bn(jn,e)||{}},dn=function(e){return Rn(jn,e)}}else{var Hn=Nn("state");In[Hn]=!0,fn=function(e,t){if(On(e,Hn))throw new Mn(Pn);return t.facade=e,An(e,Hn,t),t},hn=function(e){return On(e,Hn)?e[Hn]:{}},dn=function(e){return On(e,Hn)}}var Un={set:fn,get:hn,has:dn,enforce:function(e){return dn(e)?hn(e):fn(e,{})},getterFor:function(e){return function(t){var n;if(!Sn(t)||(n=hn(t)).type!==e)throw Mn("Incompatible receiver, "+e+" required");return n}}},qn=O,zn=rt,Vn=Function.prototype,Wn=qn&&Object.getOwnPropertyDescriptor,Gn=zn(Vn,"name"),Kn=Gn&&"something"===function(){}.name,Yn=Gn&&(!qn||qn&&Wn(Vn,"name").configurable),Xn=T,Jn=se,Qn=rt,Zn=an,er=Ge,tr=mn,nr={EXISTS:Gn,PROPER:Kn,CONFIGURABLE:Yn}.CONFIGURABLE,rr=Un.get,ir=Un.enforce,or=String(String).split("String");(un.exports=function(e,t,n,r){var i,o=!!r&&!!r.unsafe,s=!!r&&!!r.enumerable,a=!!r&&!!r.noTargetGet,u=r&&void 0!==r.name?r.name:t;Jn(n)&&("Symbol("===String(u).slice(0,7)&&(u="["+String(u).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!Qn(n,"name")||nr&&n.name!==u)&&Zn(n,"name",u),(i=ir(n)).source||(i.source=or.join("string"==typeof u?u:""))),e!==Xn?(o?!a&&e[t]&&(s=!0):delete e[t],s?e[t]=n:Zn(e,t,n)):s?e[t]=n:er(t,n)})(Function.prototype,"toString",(function(){return Jn(this)&&rr(this).source||tr(this)}));var sr={},ar=Math.ceil,ur=Math.floor,lr=function(e){var t=+e;return t!=t||0===t?0:(t>0?ur:ar)(t)},cr=lr,pr=Math.max,fr=Math.min,hr=lr,dr=Math.min,mr=function(e){return e>0?dr(hr(e),9007199254740991):0},gr=function(e){return mr(e.length)},yr=oe,vr=function(e,t){var n=cr(e);return n<0?pr(n+t,0):fr(n,t)},br=gr,Dr=function(e){return function(t,n,r){var i,o=yr(t),s=br(o),a=vr(r,s);if(e&&n!=n){for(;s>a;)if((i=o[a++])!=i)return!0}else for(;s>a;a++)if((e||a in o)&&o[a]===n)return e||a||0;return!e&&-1}},wr={includes:Dr(!0),indexOf:Dr(!1)},Cr=rt,xr=oe,Er=wr.indexOf,_r=En,kr=z([].push),Tr=function(e,t){var n,r=xr(e),i=0,o=[];for(n in r)!Cr(_r,n)&&Cr(r,n)&&kr(o,n);for(;t.length>i;)Cr(r,n=t[i++])&&(~Er(o,n)||kr(o,n));return o},Sr=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ar=Tr,Or=Sr.concat("length","prototype");sr.f=Object.getOwnPropertyNames||function(e){return Ar(e,Or)};var Fr={};Fr.f=Object.getOwnPropertySymbols;var Nr=fe,Ir=sr,Pr=Fr,Mr=Jt,Lr=z([].concat),jr=Nr("Reflect","ownKeys")||function(e){var t=Ir.f(Mr(e)),n=Pr.f;return n?Lr(t,n(e)):t},Br=rt,Rr=jr,$r=S,Hr=Wt,Ur=A,qr=se,zr=/#|\.prototype\./,Vr=function(e,t){var n=Gr[Wr(e)];return n==Yr||n!=Kr&&(qr(t)?Ur(t):!!t)},Wr=Vr.normalize=function(e){return String(e).replace(zr,".").toLowerCase()},Gr=Vr.data={},Kr=Vr.NATIVE="N",Yr=Vr.POLYFILL="P",Xr=Vr,Jr=T,Qr=S.f,Zr=an,ei=un.exports,ti=Ge,ni=function(e,t){for(var n=Rr(t),r=Hr.f,i=$r.f,o=0;o0;)e[r]=e[--r];r!==o++&&(e[r]=n)}return e},Di=function(e,t,n,r){for(var i=t.length,o=n.length,s=0,a=0;s3)){if(Bi)return!0;if($i)return $i<603;var e,t,n,r,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)Hi.push({k:t+r,v:n})}for(Hi.sort((function(e,t){return t.v-e.v})),r=0;rIi(n)?1:-1}}(e)),n=i.length,r=0;r1&&void 0!==arguments[1]?arguments[1]:{},n=e.split(/\r\n|[\n\v\f\r\x85]/),r=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],i=[],o=0;function s(){var e={};for(i.push(e);o2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t&&(t=(0,ao.parsePatch)(t)),Array.isArray(t)){if(t.length>1)throw new Error("applyPatch only works with a single input.");t=t[0]}var r,i,o=e.split(/\r\n|[\n\v\f\r\x85]/),s=e.match(/\r\n|[\n\v\f\r\x85]/g)||[],a=t.hunks,u=n.compareLine||function(e,t,n,r){return t===r},l=0,c=n.fuzzFactor||0,p=0,f=0;function h(e,t){for(var n=0;n0?r[0]:" ",s=r.length>0?r.substr(1):r;if(" "===i||"-"===i){if(!u(t+1,o[t],i,s)&&++l>c)return!1;t++}}return!0}for(var d=0;d0?_[0]:" ",T=_.length>0?_.substr(1):_,S=C.linedelimiters[E];if(" "===k)x++;else if("-"===k)o.splice(x,1),s.splice(x,1);else if("+"===k)o.splice(x,0,T),s.splice(x,0,S),x++;else if("\\"===k){var A=C.lines[E-1]?C.lines[E-1][0]:null;"+"===A?r=!0:"-"===A&&(i=!0)}}}if(r)for(;!o[o.length-1];)o.pop(),s.pop();else i&&(o.push(""),s.push("\n"));for(var O=0;Oe.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?u(m.lines.slice(-s.context)):[],c-=f.length,p-=f.length)}(o=f).push.apply(o,ho(i.map((function(e){return(t.added?"+":"-")+e})))),t.added?d+=i.length:h+=i.length}else{if(c)if(i.length<=2*s.context&&e=a.length-2&&i.length<=s.context){var D=/\n$/.test(n),w=/\n$/.test(r),C=0==i.length&&f.length>b.oldLines;!D&&C&&n.length>0&&f.splice(b.oldLines,0,"\\ No newline at end of file"),(D||C)&&w||f.push("\\ No newline at end of file")}l.push(b),c=0,p=0,f=[]}h+=i.length,d+=i.length}},g=0;ge.length)return!1;for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n/g,">")).replace(/"/g,""")}function Vo(e){return{type:"concat",parts:e}}function Wo(e){return{type:"indent",contents:e}}function Go(e,t){return{type:"align",contents:t,n:e}}function Ko(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{type:"group",id:t.id,contents:e,break:Boolean(t.shouldBreak),expandedStates:t.expandedStates}}Object.defineProperty(qo,"__esModule",{value:!0}),qo.convertChangesToXML=function(e){for(var t=[],n=0;n"):r.removed&&t.push(""),t.push(zo(r.value)),r.added?t.push(""):r.removed&&t.push("")}return t.join("")},function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Diff",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"diffChars",{enumerable:!0,get:function(){return n.diffChars}}),Object.defineProperty(e,"diffWords",{enumerable:!0,get:function(){return r.diffWords}}),Object.defineProperty(e,"diffWordsWithSpace",{enumerable:!0,get:function(){return r.diffWordsWithSpace}}),Object.defineProperty(e,"diffLines",{enumerable:!0,get:function(){return i.diffLines}}),Object.defineProperty(e,"diffTrimmedLines",{enumerable:!0,get:function(){return i.diffTrimmedLines}}),Object.defineProperty(e,"diffSentences",{enumerable:!0,get:function(){return s.diffSentences}}),Object.defineProperty(e,"diffCss",{enumerable:!0,get:function(){return u.diffCss}}),Object.defineProperty(e,"diffJson",{enumerable:!0,get:function(){return c.diffJson}}),Object.defineProperty(e,"canonicalize",{enumerable:!0,get:function(){return c.canonicalize}}),Object.defineProperty(e,"diffArrays",{enumerable:!0,get:function(){return p.diffArrays}}),Object.defineProperty(e,"applyPatch",{enumerable:!0,get:function(){return f.applyPatch}}),Object.defineProperty(e,"applyPatches",{enumerable:!0,get:function(){return f.applyPatches}}),Object.defineProperty(e,"parsePatch",{enumerable:!0,get:function(){return h.parsePatch}}),Object.defineProperty(e,"merge",{enumerable:!0,get:function(){return d.merge}}),Object.defineProperty(e,"structuredPatch",{enumerable:!0,get:function(){return m.structuredPatch}}),Object.defineProperty(e,"createTwoFilesPatch",{enumerable:!0,get:function(){return m.createTwoFilesPatch}}),Object.defineProperty(e,"createPatch",{enumerable:!0,get:function(){return m.createPatch}}),Object.defineProperty(e,"convertChangesToDMP",{enumerable:!0,get:function(){return y.convertChangesToDMP}}),Object.defineProperty(e,"convertChangesToXML",{enumerable:!0,get:function(){return v.convertChangesToXML}});var t=function(e){return e&&e.__esModule?e:{default:e}}(o),n=a,r=l,i=g,s=D,u=x,c=Ki,p=to,f=io,h=oo,d=co,m=po,y=Uo,v=qo}(i);const Yo={type:"break-parent"},Xo={type:"line",hard:!0},Jo={type:"line",hard:!0,literal:!0},Qo=Vo([Xo,Yo]),Zo=Vo([Jo,Yo]);var es={concat:Vo,join:function(e,t){const n=[];for(let r=0;r2&&void 0!==arguments[2]?arguments[2]:{};return{type:"if-break",breakContents:e,flatContents:t,groupId:n.groupId}},trim:{type:"trim"},indent:Wo,indentIfBreak:function(e,t){return{type:"indent-if-break",contents:e,groupId:t.groupId,negate:t.negate}},align:Go,addAlignmentToDoc:function(e,t,n){let r=e;if(t>0){for(let e=0;e0&&void 0!==arguments[0]?arguments[0]:{};const 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")};var rs={exports:{}};const is=e=>!Number.isNaN(e)&&e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141);rs.exports=is,rs.exports.default=is;const os=e=>"string"==typeof e?e.replace(ns(),""):e,ss=rs.exports,as=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\u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F6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g},us=e=>{if("string"!=typeof e||0===e.length)return 0;if(0===(e=os(e)).length)return 0;e=e.replace(as()," ");let t=0;for(let n=0;n=127&&r<=159||r>=768&&r<=879||(r>65535&&n++,t+=ss(r)?2:1)}return t};ts.exports=us,ts.exports.default=us;var ls=e=>e[e.length-1];function cs(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ps(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var fs=K,hs=Array.isArray||function(e){return"Array"==fs(e)},ds=je,ms=z(z.bind),gs=function(e,t){return ds(e),void 0===t?e:ms?ms(e,t):function(){return e.apply(t,arguments)}},ys=hs,vs=gr,bs=gs,Ds=T.TypeError,ws=function(e,t,n,r,i,o,s,a){for(var u,l,c=i,p=0,f=!!s&&bs(s,a);p0&&ys(u))l=vs(u),c=ws(e,t,u,l,c,o-1)-1;else{if(c>=9007199254740991)throw Ds("Exceed the acceptable array length");e[c]=u}c++}p++}return c},Cs=ws,xs=z,Es=A,_s=se,ks=hi,Ts=mn,Ss=function(){},As=[],Os=fe("Reflect","construct"),Fs=/^\s*(?:class|function)\b/,Ns=xs(Fs.exec),Is=!Fs.exec(Ss),Ps=function(e){if(!_s(e))return!1;try{return Os(Ss,As,e),!0}catch(e){return!1}},Ms=!Os||Es((function(){var e;return Ps(Ps.call)||!Ps(Object)||!Ps((function(){e=!0}))||e}))?function(e){if(!_s(e))return!1;switch(ks(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}return Is||!!Ns(Fs,Ts(e))}:Ps,Ls=T,js=hs,Bs=Ms,Rs=ue,$s=bt("species"),Hs=Ls.Array,Us=function(e){var t;return js(e)&&(t=e.constructor,(Bs(t)&&(t===Hs||js(t.prototype))||Rs(t)&&null===(t=t[$s]))&&(t=void 0)),void 0===t?Hs:t},qs=function(e,t){return new(Us(e))(0===t?0:t)},zs=Cs,Vs=je,Ws=et,Gs=gr,Ks=qs;ii({target:"Array",proto:!0},{flatMap:function(e){var t,n=Ws(this),r=Gs(n);return Vs(e),(t=Ks(n,0)).length=zs(t,n,n,r,0,1,e,arguments.length>1?arguments[1]:void 0),t}});var Ys={},Xs=Ys,Js=bt("iterator"),Qs=Array.prototype,Zs=hi,ea=Re,ta=Ys,na=bt("iterator"),ra=function(e){if(null!=e)return ea(e,na)||ea(e,"@@iterator")||ta[Zs(e)]},ia=N,oa=je,sa=Jt,aa=Ie,ua=ra,la=T.TypeError,ca=N,pa=Jt,fa=Re,ha=gs,da=N,ma=Jt,ga=Ie,ya=function(e){return void 0!==e&&(Xs.Array===e||Qs[Js]===e)},va=gr,ba=he,Da=function(e,t){var n=arguments.length<2?ua(e):t;if(oa(n))return sa(ia(n,e));throw la(aa(e)+" is not iterable")},wa=ra,Ca=function(e,t,n){var r,i;pa(e);try{if(!(r=fa(e,"return"))){if("throw"===t)throw n;return n}r=ca(r,e)}catch(e){i=!0,r=e}if("throw"===t)throw n;if(i)throw r;return pa(r),n},xa=T.TypeError,Ea=function(e,t){this.stopped=e,this.result=t},_a=Ea.prototype,ka=Ot,Ta=Wt,Sa=R,Aa=function(e,t,n){var r,i,o,s,a,u,l,c=n&&n.that,p=!(!n||!n.AS_ENTRIES),f=!(!n||!n.IS_ITERATOR),h=!(!n||!n.INTERRUPTED),d=ha(t,c),m=function(e){return r&&Ca(r,"normal",e),new Ea(!0,e)},g=function(e){return p?(ma(e),h?d(e[0],e[1],m):d(e[0],e[1])):h?d(e,m):d(e)};if(f)r=e;else{if(!(i=wa(e)))throw xa(ga(e)+" is not iterable");if(ya(i)){for(o=0,s=va(e);s>o;o++)if((a=g(e[o]))&&ba(_a,a))return a;return new Ea(!1)}r=Da(e,i)}for(u=r.next;!(l=da(u,r)).done;){try{a=g(l.value)}catch(e){Ca(r,"throw",e)}if("object"==typeof a&&a&&ba(_a,a))return a}return new Ea(!1)},Oa=function(e,t,n){var r=ka(t);r in e?Ta.f(e,r,Sa(0,n)):e[r]=n};ii({target:"Object",stat:!0},{fromEntries:function(e){var t={};return Aa(e,(function(e,n){Oa(t,e,n)}),{AS_ENTRIES:!0}),t}});var Fa=void 0!==Fa?Fa:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};function Na(){throw new Error("setTimeout has not been defined")}function Ia(){throw new Error("clearTimeout has not been defined")}var Pa=Na,Ma=Ia;function La(e){if(Pa===setTimeout)return setTimeout(e,0);if((Pa===Na||!Pa)&&setTimeout)return Pa=setTimeout,setTimeout(e,0);try{return Pa(e,0)}catch(n){try{return Pa.call(null,e,0)}catch(n){return Pa.call(this,e,0)}}}"function"==typeof Fa.setTimeout&&(Pa=setTimeout),"function"==typeof Fa.clearTimeout&&(Ma=clearTimeout);var ja,Ba=[],Ra=!1,$a=-1;function Ha(){Ra&&ja&&(Ra=!1,ja.length?Ba=ja.concat(Ba):$a=-1,Ba.length&&Ua())}function Ua(){if(!Ra){var e=La(Ha);Ra=!0;for(var t=Ba.length;t;){for(ja=Ba,Ba=[];++$a1)for(var n=1;n{};var iu=ru,ou={SEMVER_SPEC_VERSION:"2.0.0",MAX_LENGTH:256,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,MAX_SAFE_COMPONENT_LENGTH:16},su={exports:{}};!function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n}=ou,r=iu,i=(t=e.exports={}).re=[],o=t.src=[],s=t.t={};let a=0;const u=(e,t,n)=>{const u=a++;r(u,t),s[e]=u,o[u]=t,i[u]=new RegExp(t,n?"g":void 0)};u("NUMERICIDENTIFIER","0|[1-9]\\d*"),u("NUMERICIDENTIFIERLOOSE","[0-9]+"),u("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*"),u("MAINVERSION","(".concat(o[s.NUMERICIDENTIFIER],")\\.")+"(".concat(o[s.NUMERICIDENTIFIER],")\\.")+"(".concat(o[s.NUMERICIDENTIFIER],")")),u("MAINVERSIONLOOSE","(".concat(o[s.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(o[s.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(o[s.NUMERICIDENTIFIERLOOSE],")")),u("PRERELEASEIDENTIFIER","(?:".concat(o[s.NUMERICIDENTIFIER],"|").concat(o[s.NONNUMERICIDENTIFIER],")")),u("PRERELEASEIDENTIFIERLOOSE","(?:".concat(o[s.NUMERICIDENTIFIERLOOSE],"|").concat(o[s.NONNUMERICIDENTIFIER],")")),u("PRERELEASE","(?:-(".concat(o[s.PRERELEASEIDENTIFIER],"(?:\\.").concat(o[s.PRERELEASEIDENTIFIER],")*))")),u("PRERELEASELOOSE","(?:-?(".concat(o[s.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(o[s.PRERELEASEIDENTIFIERLOOSE],")*))")),u("BUILDIDENTIFIER","[0-9A-Za-z-]+"),u("BUILD","(?:\\+(".concat(o[s.BUILDIDENTIFIER],"(?:\\.").concat(o[s.BUILDIDENTIFIER],")*))")),u("FULLPLAIN","v?".concat(o[s.MAINVERSION]).concat(o[s.PRERELEASE],"?").concat(o[s.BUILD],"?")),u("FULL","^".concat(o[s.FULLPLAIN],"$")),u("LOOSEPLAIN","[v=\\s]*".concat(o[s.MAINVERSIONLOOSE]).concat(o[s.PRERELEASELOOSE],"?").concat(o[s.BUILD],"?")),u("LOOSE","^".concat(o[s.LOOSEPLAIN],"$")),u("GTLT","((?:<|>)?=?)"),u("XRANGEIDENTIFIERLOOSE","".concat(o[s.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),u("XRANGEIDENTIFIER","".concat(o[s.NUMERICIDENTIFIER],"|x|X|\\*")),u("XRANGEPLAIN","[v=\\s]*(".concat(o[s.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(o[s.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(o[s.XRANGEIDENTIFIER],")")+"(?:".concat(o[s.PRERELEASE],")?").concat(o[s.BUILD],"?")+")?)?"),u("XRANGEPLAINLOOSE","[v=\\s]*(".concat(o[s.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(o[s.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(o[s.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(o[s.PRERELEASELOOSE],")?").concat(o[s.BUILD],"?")+")?)?"),u("XRANGE","^".concat(o[s.GTLT],"\\s*").concat(o[s.XRANGEPLAIN],"$")),u("XRANGELOOSE","^".concat(o[s.GTLT],"\\s*").concat(o[s.XRANGEPLAINLOOSE],"$")),u("COERCE","".concat("(^|[^\\d])(\\d{1,").concat(n,"})")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:$|[^\\d])"),u("COERCERTL",o[s.COERCE],!0),u("LONETILDE","(?:~>?)"),u("TILDETRIM","(\\s*)".concat(o[s.LONETILDE],"\\s+"),!0),t.tildeTrimReplace="$1~",u("TILDE","^".concat(o[s.LONETILDE]).concat(o[s.XRANGEPLAIN],"$")),u("TILDELOOSE","^".concat(o[s.LONETILDE]).concat(o[s.XRANGEPLAINLOOSE],"$")),u("LONECARET","(?:\\^)"),u("CARETTRIM","(\\s*)".concat(o[s.LONECARET],"\\s+"),!0),t.caretTrimReplace="$1^",u("CARET","^".concat(o[s.LONECARET]).concat(o[s.XRANGEPLAIN],"$")),u("CARETLOOSE","^".concat(o[s.LONECARET]).concat(o[s.XRANGEPLAINLOOSE],"$")),u("COMPARATORLOOSE","^".concat(o[s.GTLT],"\\s*(").concat(o[s.LOOSEPLAIN],")$|^$")),u("COMPARATOR","^".concat(o[s.GTLT],"\\s*(").concat(o[s.FULLPLAIN],")$|^$")),u("COMPARATORTRIM","(\\s*)".concat(o[s.GTLT],"\\s*(").concat(o[s.LOOSEPLAIN],"|").concat(o[s.XRANGEPLAIN],")"),!0),t.comparatorTrimReplace="$1$2$3",u("HYPHENRANGE","^\\s*(".concat(o[s.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(o[s.XRANGEPLAIN],")")+"\\s*$"),u("HYPHENRANGELOOSE","^\\s*(".concat(o[s.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(o[s.XRANGEPLAINLOOSE],")")+"\\s*$"),u("STAR","(<|>)?=?\\s*\\*"),u("GTE0","^\\s*>=\\s*0.0.0\\s*$"),u("GTE0PRE","^\\s*>=\\s*0.0.0-0\\s*$")}(su,su.exports);const au=["includePrerelease","loose","rtl"];var uu=e=>e?"object"!=typeof e?{loose:!0}:au.filter(t=>e[t]).reduce((e,t)=>(e[t]=!0,e),{}):{};const lu=/^[0-9]+$/,cu=(e,t)=>{const n=lu.test(e),r=lu.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:ecu(t,e)};const fu=iu,{MAX_LENGTH:hu,MAX_SAFE_INTEGER:du}=ou,{re:mu,t:gu}=su.exports,yu=uu,{compareIdentifiers:vu}=pu;class bu{constructor(e,t){if(t=yu(t),e instanceof bu){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: ".concat(e));if(e.length>hu)throw new TypeError("version is longer than ".concat(hu," characters"));fu("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const n=e.trim().match(t.loose?mu[gu.LOOSE]:mu[gu.FULL]);if(!n)throw new TypeError("Invalid Version: ".concat(e));if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>du||this.major<0)throw new TypeError("Invalid major version");if(this.minor>du||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>du||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[e]&&(this.prerelease[e]++,e=-2);-1===e&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: ".concat(e))}return this.format(),this.raw=this.version,this}}const Du=bu;var wu=(e,t,n)=>new Du(e,n).compare(new Du(t,n));const Cu=wu;var xu=(e,t,n)=>Cu(e,t,n)<0;const Eu=wu;var _u,ku,Tu,Su,Au,Ou,Fu=(e,t,n)=>Eu(e,t,n)>=0,Nu={exports:{}};!function(e,t){function n(){for(var e=[],t=0;t"string"==typeof e||"function"==typeof e,choices:[{value:"flow",description:"Flow"},{value:"babel",since:"1.16.0",description:"JavaScript"},{value:"babel-flow",since:"1.16.0",description:"Flow"},{value:"babel-ts",since:"2.0.0",description:"TypeScript"},{value:"typescript",since:"1.4.0",description:"TypeScript"},{value:"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:ju,description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin",cliCategory:Pu},pluginSearchDirs:{since:"1.13.0",type:"path",array:!0,default:[{value:[]}],category:ju,description:Iu(Tu||(Tu=ps(["\n Custom directory that contains prettier plugins in node_modules subdirectory.\n Overrides default behavior when plugins are searched relatively to the location of Prettier.\n Multiple values are accepted.\n "]))),exception:e=>"string"==typeof e||"object"==typeof e,cliName:"plugin-search-dir",cliCategory:Pu},printWidth:{since:"0.0.0",category:ju,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:Bu,type:"int",default:Number.POSITIVE_INFINITY,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:Iu(Su||(Su=ps(["\n Format code ending at a given character offset (exclusive).\n The range will extend forwards to the end of the selected statement.\n This option cannot be used with --cursor-offset.\n "]))),cliCategory:Mu},rangeStart:{since:"1.4.0",category:Bu,type:"int",default:0,range:{start:0,end:Number.POSITIVE_INFINITY,step:1},description:Iu(Au||(Au=ps(["\n Format code starting at a given character offset.\n The range will extend backwards to the start of the first line containing the selected statement.\n This option cannot be used with --cursor-offset.\n "]))),cliCategory:Mu},requirePragma:{since:"1.7.0",category:Bu,type:"boolean",default:!1,description:Iu(Ou||(Ou=ps(["\n Require either '@prettier' or '@format' to be present in the file's first docblock comment\n in order for it to be formatted.\n "]))),cliCategory:Lu},tabWidth:{type:"int",category:ju,default:2,description:"Number of spaces per indentation level.",range:{start:0,end:Number.POSITIVE_INFINITY,step:1}},useTabs:{since:"1.0.0",category:ju,type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{since:"2.1.0",category:ju,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."}]}},$u=["cliName","cliCategory","cliDescription"],Hu={compare:wu,lt:xu,gte:Fu},Uu=(e,t)=>Object.entries(e).map(e=>{let[n,r]=e;return Object.assign({[t]:n},r)}),qu=r.version,zu={CATEGORY_CONFIG:Pu,CATEGORY_EDITOR:Mu,CATEGORY_FORMAT:"Format",CATEGORY_OTHER:Lu,CATEGORY_OUTPUT:"Output",CATEGORY_GLOBAL:ju,CATEGORY_SPECIAL:Bu,options:Ru}.options;function Vu(e,t,n){const r=new Set(e.choices.map(e=>e.value));for(const i of t)if(i.parsers)for(const t of i.parsers)if(!r.has(t)){r.add(t);const o=n.find(e=>e.parsers&&e.parsers[t]);let s=i.name;o&&o.name&&(s+=" (plugin: ".concat(o.name,")")),e.choices.push({value:t,description:s})}}var Wu={getSupportInfo:function(){let{plugins:e=[],showUnreleased:t=!1,showDeprecated:n=!1,showInternal:r=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const i=qu.split("-",1)[0],o=e.flatMap(e=>e.languages||[]).filter(a),s=Uu(Object.assign({},...e.map(e=>{let{options:t}=e;return t}),zu),"name").filter(e=>a(e)&&u(e)).sort((e,t)=>e.name===t.name?0:e.name{t=Object.assign({},t),Array.isArray(t.default)&&(t.default=1===t.default.length?t.default[0].value:t.default.filter(a).sort((e,t)=>Hu.compare(t.since,e.since))[0].value),Array.isArray(t.choices)&&(t.choices=t.choices.filter(e=>a(e)&&u(e)),"parser"===t.name&&Vu(t,o,e));const n=Object.fromEntries(e.filter(e=>e.defaultOptions&&void 0!==e.defaultOptions[t.name]).map(e=>[e.name,e.defaultOptions[t.name]]));return Object.assign(Object.assign({},t),{},{pluginDefaults:n})});return{languages:o,options:s};function a(e){return t||!("since"in e)||e.since&&Hu.gte(i,e.since)}function u(e){return n||!("deprecated"in e)||e.deprecated&&Hu.lt(i,e.deprecated)}function l(e){return r?e:cs(e,$u)}}};const Gu=ts.exports,Ku=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},Yu=ls,{getSupportInfo:Xu}=Wu,Ju=/[^\x20-\x7F]/;function Qu(e){return(t,n,r)=>{const i=r&&r.backwards;if(!1===n)return!1;const{length:o}=t;let s=n;for(;s>=0&&s2&&void 0!==arguments[2]?arguments[2]:{};const r=el(e,n.backwards?t-1:t,n),i=ol(e,r,n);return r!==i}function al(e,t){let n=null,r=t;for(;r!==n;)n=r,r=tl(e,r),r=rl(e,r),r=el(e,r);return r=il(e,r),r=ol(e,r),!1!==r&&sl(e,r)}function ul(e,t){let n=null,r=t;for(;r!==n;)n=r,r=el(e,r),r=rl(e,r),r=il(e,r),r=ol(e,r);return r}function ll(e,t,n){return ul(e,n(t))}function cl(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=0;for(let i=n;i(e.match(o.regex)||[]).length?o:i),s}function fl(e,t,n){const r='"'===t?"'":'"',i=e.replace(/\\(.)|(["'])/gs,(e,i,o)=>i===r?i:o===t?"\\"+o:o||(n&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/.test(i)?i:"\\"+i));return t+i+t}function hl(e,t){(e.comments||(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=function(e){const t=e.type||e.kind||"(unknown type)";let n=String(e.name||e.id&&("object"==typeof e.id?e.id.name:e.id)||e.key&&("object"==typeof e.key?e.key.name:e.key)||e.value&&("object"==typeof e.value?"":String(e.value))||e.operator||"");return n.length>20&&(n=n.slice(0,19)+"…"),t+(n?" "+n:"")}(e)}var dl={inferParserByLanguage:function(e,t){const{languages:n}=Xu({plugins:t.plugins}),r=n.find(t=>{let{name:n}=t;return n.toLowerCase()===e})||n.find(t=>{let{aliases:n}=t;return Array.isArray(n)&&n.includes(e)})||n.find(t=>{let{extensions:n}=t;return Array.isArray(n)&&n.includes(".".concat(e))});return r&&r.parsers[0]},getStringWidth:function(e){return e?Ju.test(e)?Gu(e):e.length:0},getMaxContinuousCount:function(e,t){const n=e.match(new RegExp("(".concat(Ku(t),")+"),"g"));return null===n?0:n.reduce((e,n)=>Math.max(e,n.length/t.length),0)},getMinNotPresentContinuousCount:function(e,t){const n=e.match(new RegExp("(".concat(Ku(t),")+"),"g"));if(null===n)return 0;const r=new Map;let i=0;for(const o of n){const e=o.length/t.length;r.set(e,!0),e>i&&(i=e)}for(let o=1;oe[e.length-2],getLast:Yu,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:ul,getNextNonSpaceNonCommentCharacterIndex:ll,getNextNonSpaceNonCommentCharacter:function(e,t,n){return e.charAt(ll(e,t,n))},skip:Qu,skipWhitespace:Zu,skipSpaces:el,skipToLineEnd:tl,skipEverythingButNewLine:nl,skipInlineComment:rl,skipTrailingComment:il,skipNewline:ol,isNextLineEmptyAfterIndex:al,isNextLineEmpty:function(e,t,n){return al(e,n(t))},isPreviousLineEmpty:function(e,t,n){let r=n(t)-1;return r=el(e,r,{backwards:!0}),r=ol(e,r,{backwards:!0}),r=el(e,r,{backwards:!0}),r!==ol(e,r,{backwards:!0})},hasNewline:sl,hasNewlineInRange:function(e,t,n){for(let r=t;r2&&void 0!==arguments[2]?arguments[2]:{};const r=el(e,n.backwards?t-1:t,n);return r!==t},getAlignmentSize:cl,getIndentSize:function(e,t){const n=e.lastIndexOf("\n");return-1===n?0:cl(e.slice(n+1).match(/^[\t ]*/)[0],t)},getPreferredQuote:pl,printString:function(e,t){const n=e.slice(1,-1);return fl(n,"json"===t.parser||"json5"===t.parser&&"preserve"===t.quoteProps&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":pl(n,t.singleQuote?"'":'"').quote,!("css"===t.parser||"less"===t.parser||"scss"===t.parser||t.__embeddedInHtml))},printNumber:function(e){return e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(\d)/,"$1$2$3").replace(/^([+-]?[\d.]+)e[+-]?0+$/,"$1").replace(/^([+-])?\./,"$10.").replace(/(\.\d+?)0+(?=e|$)/,"$1").replace(/\.(?=e|$)/,"")},makeString:fl,addLeadingComment:function(e,t){t.leading=!0,t.trailing=!1,hl(e,t)},addDanglingComment:function(e,t,n){t.leading=!1,t.trailing=!1,n&&(t.marker=n),hl(e,t)},addTrailingComment:function(e,t){t.leading=!1,t.trailing=!0,hl(e,t)},isFrontMatterNode:function(e){return e&&"front-matter"===e.type},getShebang:function(e){if(!e.startsWith("#!"))return"";const t=e.indexOf("\n");return-1===t?e:e.slice(0,t)},isNonEmptyArray:function(e){return Array.isArray(e)&&e.length>0},createGroupIdMapper:function(e){const t=new WeakMap;return function(n){return t.has(n)||t.set(n,Symbol(e)),t.get(n)}}},ml={guessEndOfLine:function(e){const t=e.indexOf("\r");return t>=0?"\n"===e.charAt(t+1)?"crlf":"cr":"lf"},convertEndOfLineToChars:function(e){switch(e){case"cr":return"\r";case"crlf":return"\r\n";default:return"\n"}},countEndOfLineChars:function(e,t){let n;if("\n"===t)n=/\n/g;else if("\r"===t)n=/\r/g;else{if("\r\n"!==t)throw new Error('Unexpected "eol" '.concat(JSON.stringify(t),"."));n=/\r\n/g}const r=e.match(n);return r?r.length:0},normalizeEndOfLine:function(e){return e.replace(/\r\n?/g,"\n")}};const gl=ls,{literalline:yl,join:vl}=es,bl=e=>Array.isArray(e)||e&&"concat"===e.type,Dl=e=>{if(Array.isArray(e))return e;if("concat"!==e.type&&"fill"!==e.type)throw new Error("Expect doc type to be `concat` or `fill`.");return e.parts},wl={};function Cl(e,t,n,r){const i=[e];for(;i.length>0;){const e=i.pop();if(e!==wl){if(n&&i.push(e,wl),!t||!1!==t(e))if(bl(e)||"fill"===e.type){const t=Dl(e);for(let e=t.length-1;e>=0;--e)i.push(t[e])}else if("if-break"===e.type)e.flatContents&&i.push(e.flatContents),e.breakContents&&i.push(e.breakContents);else if("group"===e.type&&e.expandedStates)if(r)for(let t=e.expandedStates.length-1;t>=0;--t)i.push(e.expandedStates[t]);else i.push(e.contents);else e.contents&&i.push(e.contents)}else n(i.pop())}}function xl(e,t){const n=new Map;return r(e);function r(e){if(n.has(e))return n.get(e);const i=function(e){if(Array.isArray(e))return t(e.map(r));if("concat"===e.type||"fill"===e.type){const n=e.parts.map(r);return t(Object.assign(Object.assign({},e),{},{parts:n}))}if("if-break"===e.type){const n=e.breakContents&&r(e.breakContents),i=e.flatContents&&r(e.flatContents);return t(Object.assign(Object.assign({},e),{},{breakContents:n,flatContents:i}))}if("group"===e.type&&e.expandedStates){const n=e.expandedStates.map(r),i=n[0];return t(Object.assign(Object.assign({},e),{},{contents:i,expandedStates:n}))}if(e.contents){const n=r(e.contents);return t(Object.assign(Object.assign({},e),{},{contents:n}))}return t(e)}(e);return n.set(e,i),i}}function El(e,t,n){let r=n,i=!1;return Cl(e,(function(e){const n=t(e);if(void 0!==n&&(i=!0,r=n),i)return!1})),r}function _l(e){return!("group"!==e.type||!e.break)||!("line"!==e.type||!e.hard)||"break-parent"===e.type||void 0}function kl(e){if(e.length>0){const t=gl(e);t.expandedStates||t.break||(t.break="propagated")}return null}function Tl(e){return"line"!==e.type||e.hard?"if-break"===e.type?e.flatContents||"":e:e.soft?"":" "}const Sl=(e,t)=>e&&"line"===e.type&&e.hard&&t&&"break-parent"===t.type;function Al(e){if(!e)return e;if(bl(e)||"fill"===e.type){const t=Dl(e);for(;t.length>1&&Sl(...t.slice(-2));)t.length-=2;if(t.length>0){const e=Al(gl(t));t[t.length-1]=e}return Array.isArray(e)?t:Object.assign(Object.assign({},e),{},{parts:t})}switch(e.type){case"align":case"indent":case"indent-if-break":case"group":case"line-suffix":case"label":{const t=Al(e.contents);return Object.assign(Object.assign({},e),{},{contents:t})}case"if-break":{const t=Al(e.breakContents),n=Al(e.flatContents);return Object.assign(Object.assign({},e),{},{breakContents:t,flatContents:n})}}return e}function Ol(e){return xl(e,e=>function(e){switch(e.type){case"fill":if(e.parts.every(e=>""===e))return"";break;case"group":if(!(e.contents||e.id||e.break||e.expandedStates))return"";if("group"===e.contents.type&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case"align":case"indent":case"indent-if-break":case"line-suffix":if(!e.contents)return"";break;case"if-break":if(!e.flatContents&&!e.breakContents)return""}if(!bl(e))return e;const t=[];for(const n of Dl(e)){if(!n)continue;const[e,...r]=bl(n)?Dl(n):[n];"string"==typeof e&&"string"==typeof gl(t)?t[t.length-1]+=e:t.push(e),t.push(...r)}return 0===t.length?"":1===t.length?t[0]:Array.isArray(e)?t:Object.assign(Object.assign({},e),{},{parts:t})}(e))}function Fl(e){const t=[],n=e.filter(Boolean);for(;n.length>0;){const e=n.shift();e&&(bl(e)?n.unshift(...Dl(e)):t.length>0&&"string"==typeof gl(t)&&"string"==typeof e?t[t.length-1]+=e:t.push(e))}return t}function Nl(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yl;return vl(t,e.split("\n")).parts}function Il(e){if("line"===e.type)return!0}var Pl={isConcat:bl,getDocParts:Dl,willBreak:function(e){return El(e,_l,!1)},traverseDoc:Cl,findInDoc:El,mapDoc:xl,propagateBreaks:function(e){const t=new Set,n=[];Cl(e,(function(e){if("break-parent"===e.type&&kl(n),"group"===e.type){if(n.push(e),t.has(e))return!1;t.add(e)}}),(function(e){"group"===e.type&&n.pop().break&&kl(n)}),!0)},removeLines:function(e){return xl(e,Tl)},stripTrailingHardline:function(e){return Al(Ol(e))},normalizeParts:Fl,normalizeDoc:function(e){return xl(e,e=>Array.isArray(e)?Fl(e):e.parts?Object.assign(Object.assign({},e),{},{parts:Fl(e.parts)}):e)},cleanDoc:Ol,replaceTextEndOfLine:Nl,replaceEndOfLine:function(e){return xl(e,e=>"string"==typeof e&&e.includes("\n")?Nl(e):e)},canBreak:function(e){return El(e,Il,!1)}};const{getStringWidth:Ml,getLast:Ll}=dl,{convertEndOfLineToChars:jl}=ml,{fill:Bl,cursor:Rl,indent:$l}=es,{isConcat:Hl,getDocParts:Ul}=Pl;let ql;function zl(e,t){return Wl(e,{type:"indent"},t)}function Vl(e,t,n){return t===Number.NEGATIVE_INFINITY?e.root||{value:"",length:0,queue:[]}:t<0?Wl(e,{type:"dedent"},n):t?"root"===t.type?Object.assign(Object.assign({},e),{},{root:e}):Wl(e,{type:"string"==typeof t?"stringAlign":"numberAlign",n:t},n):e}function Wl(e,t,n){const r="dedent"===t.type?e.queue.slice(0,-1):[...e.queue,t];let i="",o=0,s=0,a=0;for(const h of r)switch(h.type){case"indent":c(),n.useTabs?u(1):l(n.tabWidth);break;case"stringAlign":c(),i+=h.n,o+=h.n.length;break;case"numberAlign":s+=1,a+=h.n;break;default:throw new Error("Unexpected type '".concat(h.type,"'"))}return p(),Object.assign(Object.assign({},e),{},{value:i,length:o,queue:r});function u(e){i+="\t".repeat(e),o+=n.tabWidth*e}function l(e){i+=" ".repeat(e),o+=e}function c(){n.useTabs?function(){s>0&&u(s),f()}():p()}function p(){a>0&&l(a),f()}function f(){s=0,a=0}}function Gl(e){if(0===e.length)return 0;let t=0;for(;e.length>0&&"string"==typeof Ll(e)&&/^[\t ]*$/.test(Ll(e));)t+=e.pop().length;if(e.length>0&&"string"==typeof Ll(e)){const n=Ll(e).replace(/[\t ]*$/,"");t+=Ll(e).length-n.length,e[e.length-1]=n}return t}function Kl(e,t,n,r,i,o){let s=t.length;const a=[e],u=[];for(;n>=0;){if(0===a.length){if(0===s)return!0;a.push(t[s-1]),s--;continue}const[e,l,c]=a.pop();if("string"==typeof c)u.push(c),n-=Ml(c);else if(Hl(c)){const t=Ul(c);for(let n=t.length-1;n>=0;n--)a.push([e,l,t[n]])}else switch(c.type){case"indent":a.push([zl(e,r),l,c.contents]);break;case"align":a.push([Vl(e,c.n,r),l,c.contents]);break;case"trim":n+=Gl(u);break;case"group":{if(o&&c.break)return!1;const t=c.break?1:l;a.push([e,t,c.expandedStates&&1===t?Ll(c.expandedStates):c.contents]),c.id&&(ql[c.id]=t);break}case"fill":for(let t=c.parts.length-1;t>=0;t--)a.push([e,l,c.parts[t]]);break;case"if-break":case"indent-if-break":{const t=c.groupId?ql[c.groupId]:l;if(1===t){const t="if-break"===c.type?c.breakContents:c.negate?c.contents:$l(c.contents);t&&a.push([e,l,t])}if(2===t){const t="if-break"===c.type?c.flatContents:c.negate?$l(c.contents):c.contents;t&&a.push([e,l,t])}break}case"line":switch(l){case 2:if(!c.hard){c.soft||(u.push(" "),n-=1);break}return!0;case 1:return!0}break;case"line-suffix":i=!0;break;case"line-suffix-boundary":if(i)return!1;break;case"label":a.push([e,l,c.contents])}}return!1}var Yl={printDocToString:function(e,t){ql={};const n=t.printWidth,r=jl(t.endOfLine);let i=0;const o=[[{value:"",length:0,queue:[]},1,e]],s=[];let a=!1,u=[];for(;o.length>0;){const[e,l,c]=o.pop();if("string"==typeof c){const e="\n"!==r?c.replace(/\n/g,r):c;s.push(e),i+=Ml(e)}else if(Hl(c)){const t=Ul(c);for(let n=t.length-1;n>=0;n--)o.push([e,l,t[n]])}else switch(c.type){case"cursor":s.push(Rl.placeholder);break;case"indent":o.push([zl(e,t),l,c.contents]);break;case"align":o.push([Vl(e,c.n,t),l,c.contents]);break;case"trim":i-=Gl(s);break;case"group":switch(l){case 2:if(!a){o.push([e,c.break?1:2,c.contents]);break}case 1:{a=!1;const r=[e,2,c.contents],s=n-i,l=u.length>0;if(!c.break&&Kl(r,o,s,t,l))o.push(r);else if(c.expandedStates){const n=Ll(c.expandedStates);if(c.break){o.push([e,1,n]);break}for(let r=1;r=c.expandedStates.length){o.push([e,1,n]);break}{const n=[e,2,c.expandedStates[r]];if(Kl(n,o,s,t,l)){o.push(n);break}}}}else o.push([e,1,c.contents]);break}}c.id&&(ql[c.id]=Ll(o)[1]);break;case"fill":{const r=n-i,{parts:s}=c;if(0===s.length)break;const[a,p]=s,f=[e,2,a],h=[e,1,a],d=Kl(f,[],r,t,u.length>0,!0);if(1===s.length){d?o.push(f):o.push(h);break}const m=[e,2,p],g=[e,1,p];if(2===s.length){d?o.push(m,f):o.push(g,h);break}s.splice(0,2);const y=[e,l,Bl(s)];Kl([e,2,[a,p,s[0]]],[],r,t,u.length>0,!0)?o.push(y,m,f):d?o.push(y,g,f):o.push(y,g,h);break}case"if-break":case"indent-if-break":{const t=c.groupId?ql[c.groupId]:l;if(1===t){const t="if-break"===c.type?c.breakContents:c.negate?c.contents:$l(c.contents);t&&o.push([e,l,t])}if(2===t){const t="if-break"===c.type?c.flatContents:c.negate?$l(c.contents):c.contents;t&&o.push([e,l,t])}break}case"line-suffix":u.push([e,l,c.contents]);break;case"line-suffix-boundary":u.length>0&&o.push([e,l,{type:"line",hard:!0}]);break;case"line":switch(l){case 2:if(!c.hard){c.soft||(s.push(" "),i+=1);break}a=!0;case 1:if(u.length>0){o.push([e,l,c],...u.reverse()),u=[];break}c.literal?e.root?(s.push(r,e.root.value),i=e.root.length):(s.push(r),i=0):(i-=Gl(s),s.push(r+e.value),i=e.length)}break;case"label":o.push([e,l,c.contents])}0===o.length&&u.length>0&&(o.push(...u.reverse()),u=[])}const l=s.indexOf(Rl.placeholder);if(-1!==l){const e=s.indexOf(Rl.placeholder,l+1),t=s.slice(0,l).join(""),n=s.slice(l+1,e).join("");return{formatted:t+n+s.slice(e+1).join(""),cursorNodeStart:t.length,cursorNodeText:n}}return{formatted:s.join("")}}};const{isConcat:Xl,getDocParts:Jl}=Pl;function Ql(e){if(!e)return"";if(Xl(e)){const t=[];for(const n of Jl(e))if(Xl(n))t.push(...Ql(n).parts);else{const e=Ql(n);""!==e&&t.push(e)}return{type:"concat",parts:t}}return"if-break"===e.type?Object.assign(Object.assign({},e),{},{breakContents:Ql(e.breakContents),flatContents:Ql(e.flatContents)}):"group"===e.type?Object.assign(Object.assign({},e),{},{contents:Ql(e.contents),expandedStates:e.expandedStates&&e.expandedStates.map(Ql)}):"fill"===e.type?{type:"fill",parts:e.parts.map(Ql)}:e.contents?Object.assign(Object.assign({},e),{},{contents:Ql(e.contents)}):e}var Zl={printDocToDebug:function(e){const t=Object.create(null),n=new Set;return function e(t,n,i){if("string"==typeof t)return JSON.stringify(t);if(Xl(t)){const n=Jl(t).map(e).filter(Boolean);return 1===n.length?n[0]:"[".concat(n.join(", "),"]")}if("line"===t.type){const e=Array.isArray(i)&&i[n+1]&&"break-parent"===i[n+1].type;return t.literal?e?"literalline":"literallineWithoutBreakParent":t.hard?e?"hardline":"hardlineWithoutBreakParent":t.soft?"softline":"line"}if("break-parent"===t.type)return Array.isArray(i)&&i[n-1]&&"line"===i[n-1].type&&i[n-1].hard?void 0:"breakParent";if("trim"===t.type)return"trim";if("indent"===t.type)return"indent("+e(t.contents)+")";if("align"===t.type)return t.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+e(t.contents)+")":t.n<0?"dedent("+e(t.contents)+")":"root"===t.n.type?"markAsRoot("+e(t.contents)+")":"align("+JSON.stringify(t.n)+", "+e(t.contents)+")";if("if-break"===t.type)return"ifBreak("+e(t.breakContents)+(t.flatContents?", "+e(t.flatContents):"")+(t.groupId?(t.flatContents?"":', ""')+", { groupId: ".concat(r(t.groupId)," }"):"")+")";if("indent-if-break"===t.type){const n=[];t.negate&&n.push("negate: true"),t.groupId&&n.push("groupId: ".concat(r(t.groupId)));const i=n.length>0?", { ".concat(n.join(", ")," }"):"";return"indentIfBreak(".concat(e(t.contents)).concat(i,")")}if("group"===t.type){const n=[];t.break&&"propagated"!==t.break&&n.push("shouldBreak: true"),t.id&&n.push("id: ".concat(r(t.id)));const i=n.length>0?", { ".concat(n.join(", ")," }"):"";return t.expandedStates?"conditionalGroup([".concat(t.expandedStates.map(t=>e(t)).join(","),"]").concat(i,")"):"group(".concat(e(t.contents)).concat(i,")")}if("fill"===t.type)return"fill([".concat(t.parts.map(t=>e(t)).join(", "),"])");if("line-suffix"===t.type)return"lineSuffix("+e(t.contents)+")";if("line-suffix-boundary"===t.type)return"lineSuffixBoundary";if("label"===t.type)return"label(".concat(JSON.stringify(t.label),", ").concat(e(t.contents),")");throw new Error("Unknown doc type "+t.type)}(Ql(e));function r(e){if("symbol"!=typeof e)return JSON.stringify(String(e));if(e in t)return t[e];const r=String(e).slice(7,-1)||"symbol";for(let i=0;;i++){const o=r+(i>0?" #".concat(i):"");if(!n.has(o))return n.add(o),t[e]="Symbol.for(".concat(JSON.stringify(o),")")}}}},ec={builders:es,printer:Yl,utils:Pl,debug:Zl},tc=n(Object.freeze({__proto__:null,default:{}}));function nc(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var rc=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,ic=function(e){return rc.exec(e).slice(1)};function oc(){for(var e="",t=!1,n=arguments.length-1;n>=-1&&!t;n--){var r=n>=0?arguments[n]:"/";if("string"!=typeof r)throw new TypeError("Arguments to path.resolve must be strings");r&&(e=r+"/"+e,t="/"===r.charAt(0))}return e=nc(dc(e.split("/"),(function(e){return!!e})),!t).join("/"),(t?"/":"")+e||"."}function sc(e){var t=ac(e),n="/"===mc(e,-1);return e=nc(dc(e.split("/"),(function(e){return!!e})),!t).join("/"),e||t||(e="."),e&&n&&(e+="/"),(t?"/":"")+e}function ac(e){return"/"===e.charAt(0)}function uc(){var e=Array.prototype.slice.call(arguments,0);return sc(dc(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))}function lc(e,t){function n(e){for(var t=0;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=oc(e).substr(1),t=oc(t).substr(1);for(var r=n(e.split("/")),i=n(t.split("/")),o=Math.min(r.length,i.length),s=o,a=0;a>18&63]+yc[i>>12&63]+yc[i>>6&63]+yc[63&i]);return o.join("")}function xc(e){var t;Dc||wc();for(var n=e.length,r=n%3,i="",o=[],s=16383,a=0,u=n-r;au?u:a+s));return 1===r?(t=e[n-1],i+=yc[t>>2],i+=yc[t<<4&63],i+="=="):2===r&&(t=(e[n-2]<<8)+e[n-1],i+=yc[t>>10],i+=yc[t>>4&63],i+=yc[t<<2&63],i+="="),o.push(i),o.join("")}function Ec(e,t,n,r,i){var o,s,a=8*i-r-1,u=(1<>1,c=-7,p=n?i-1:0,f=n?-1:1,h=e[t+p];for(p+=f,o=h&(1<<-c)-1,h>>=-c,c+=a;c>0;o=256*o+e[t+p],p+=f,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=r;c>0;s=256*s+e[t+p],p+=f,c-=8);if(0===o)o=1-l;else{if(o===u)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,r),o-=l}return(h?-1:1)*s*Math.pow(2,o-r)}function _c(e,t,n,r,i,o){var s,a,u,l=8*o-i-1,c=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,d=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=c):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+p>=1?f/u:f*Math.pow(2,1-p))*u>=2&&(s++,u/=2),s+p>=c?(a=0,s=c):s+p>=1?(a=(t*u-1)*Math.pow(2,i),s+=p):(a=t*Math.pow(2,p-1)*Math.pow(2,i),s=0));i>=8;e[n+h]=255&a,h+=d,a/=256,i-=8);for(s=s<0;e[n+h]=255&s,h+=d,s/=256,l-=8);e[n+h-d]|=128*m}var kc={}.toString,Tc=Array.isArray||function(e){return"[object Array]"==kc.call(e)};function Sc(){return Oc.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function Ac(e,t){if(Sc()=Sc())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Sc().toString(16)+" bytes");return 0|e}function Lc(e){return!(null==e||!e._isBuffer)}function jc(e,t){if(Lc(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return cp(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return pp(e).length;default:if(r)return cp(e).length;t=(""+t).toLowerCase(),r=!0}}function Bc(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return Zc(this,t,n);case"utf8":case"utf-8":return Yc(this,t,n);case"ascii":return Jc(this,t,n);case"latin1":case"binary":return Qc(this,t,n);case"base64":return Kc(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ep(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function Rc(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function $c(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=Oc.from(t,r)),Lc(t))return 0===t.length?-1:Hc(e,t,n,r,i);if("number"==typeof t)return t&=255,Oc.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):Hc(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function Hc(e,t,n,r,i){var o,s=1,a=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,n/=2}function l(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var c=-1;for(o=n;oa&&(n=a-u),o=n;o>=0;o--){for(var p=!0,f=0;fi&&(r=i):r=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function Kc(e,t,n){return 0===t&&n===e.length?xc(e):xc(e.slice(t,n))}function Yc(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:l>223?3:l>191?2:1;if(i+p<=n)switch(p){case 1:l<128&&(c=l);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&l)<<6|63&o)>127&&(c=u);break;case 3:o=e[i+1],s=e[i+2],128==(192&o)&&128==(192&s)&&(u=(15&l)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(c=u);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(u=(15&l)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(c=u)}null===c?(c=65533,p=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=p}return function(e){var t=e.length;if(t<=Xc)return String.fromCharCode.apply(String,e);for(var n="",r=0;r0&&(e=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(e+=" ... ")),""},Oc.prototype.compare=function(e,t,n,r,i){if(!Lc(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0),a=Math.min(o,s),u=this.slice(r,i),l=e.slice(t,n),c=0;ci)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return Uc(this,e,t,n);case"utf8":case"utf-8":return qc(this,e,t,n);case"ascii":return zc(this,e,t,n);case"latin1":case"binary":return Vc(this,e,t,n);case"base64":return Wc(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Gc(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},Oc.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Xc=4096;function Jc(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function np(e,t,n,r,i,o){if(!Lc(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function rp(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function ip(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function op(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function sp(e,t,n,r,i){return i||op(e,0,n,4),_c(e,t,n,r,23,4),n+4}function ap(e,t,n,r,i){return i||op(e,0,n,8),_c(e,t,n,r,52,8),n+8}Oc.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},Oc.prototype.readUInt8=function(e,t){return t||tp(e,1,this.length),this[e]},Oc.prototype.readUInt16LE=function(e,t){return t||tp(e,2,this.length),this[e]|this[e+1]<<8},Oc.prototype.readUInt16BE=function(e,t){return t||tp(e,2,this.length),this[e]<<8|this[e+1]},Oc.prototype.readUInt32LE=function(e,t){return t||tp(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Oc.prototype.readUInt32BE=function(e,t){return t||tp(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Oc.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||tp(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},Oc.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||tp(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},Oc.prototype.readInt8=function(e,t){return t||tp(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Oc.prototype.readInt16LE=function(e,t){t||tp(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},Oc.prototype.readInt16BE=function(e,t){t||tp(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},Oc.prototype.readInt32LE=function(e,t){return t||tp(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Oc.prototype.readInt32BE=function(e,t){return t||tp(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Oc.prototype.readFloatLE=function(e,t){return t||tp(e,4,this.length),Ec(this,e,!0,23,4)},Oc.prototype.readFloatBE=function(e,t){return t||tp(e,4,this.length),Ec(this,e,!1,23,4)},Oc.prototype.readDoubleLE=function(e,t){return t||tp(e,8,this.length),Ec(this,e,!0,52,8)},Oc.prototype.readDoubleBE=function(e,t){return t||tp(e,8,this.length),Ec(this,e,!1,52,8)},Oc.prototype.writeUIntLE=function(e,t,n,r){e=+e,t|=0,n|=0,r||np(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},Oc.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||np(this,e,t,1,255,0),Oc.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Oc.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||np(this,e,t,2,65535,0),Oc.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):rp(this,e,t,!0),t+2},Oc.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||np(this,e,t,2,65535,0),Oc.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):rp(this,e,t,!1),t+2},Oc.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||np(this,e,t,4,4294967295,0),Oc.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):ip(this,e,t,!0),t+4},Oc.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||np(this,e,t,4,4294967295,0),Oc.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):ip(this,e,t,!1),t+4},Oc.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);np(this,e,t,n,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o>0)-a&255;return t+n},Oc.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);np(this,e,t,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s>>0)-a&255;return t+n},Oc.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||np(this,e,t,1,127,-128),Oc.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Oc.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||np(this,e,t,2,32767,-32768),Oc.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):rp(this,e,t,!0),t+2},Oc.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||np(this,e,t,2,32767,-32768),Oc.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):rp(this,e,t,!1),t+2},Oc.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||np(this,e,t,4,2147483647,-2147483648),Oc.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):ip(this,e,t,!0),t+4},Oc.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||np(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Oc.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):ip(this,e,t,!1),t+4},Oc.prototype.writeFloatLE=function(e,t,n){return sp(this,e,t,!0,n)},Oc.prototype.writeFloatBE=function(e,t,n){return sp(this,e,t,!1,n)},Oc.prototype.writeDoubleLE=function(e,t,n){return ap(this,e,t,!0,n)},Oc.prototype.writeDoubleBE=function(e,t,n){return ap(this,e,t,!1,n)},Oc.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!Oc.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function pp(e){return function(e){var t,n,r,i,o,s;Dc||wc();var a=e.length;if(a%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===e[a-2]?2:"="===e[a-1]?1:0,s=new bc(3*a/4-o),r=o>0?a-4:a;var u=0;for(t=0,n=0;t>16&255,s[u++]=i>>8&255,s[u++]=255&i;return 2===o?(i=vc[e.charCodeAt(t)]<<2|vc[e.charCodeAt(t+1)]>>4,s[u++]=255&i):1===o&&(i=vc[e.charCodeAt(t)]<<10|vc[e.charCodeAt(t+1)]<<4|vc[e.charCodeAt(t+2)]>>2,s[u++]=i>>8&255,s[u++]=255&i),s}(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(up,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function fp(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function hp(e){return null!=e&&(!!e._isBuffer||dp(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&dp(e.slice(0,0))}(e))}function dp(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}const mp=tc;var gp=class{constructor(e,t){(t=t||{}).readChunk||(t.readChunk=1024),t.newLineCharacter?t.newLineCharacter=t.newLineCharacter.charCodeAt(0):t.newLineCharacter=10,this.fd="number"==typeof e?e:mp.openSync(e,"r"),this.options=t,this.newLineCharacter=t.newLineCharacter,this.reset()}_searchInBuffer(e,t){let n=-1;for(let r=0;r<=e.length;r++)if(e[r]===t){n=r;break}return n}reset(){this.eofReached=!1,this.linesCache=[],this.fdPosition=0}close(){mp.closeSync(this.fd),this.fd=null}_extractLines(e){let t;const n=[];let r=0,i=0;for(;;){let o=e[r++];if(o===this.newLineCharacter)t=e.slice(i,r),n.push(t),i=r;else if(void 0===o)break}let o=e.slice(i,r);return o.length&&n.push(o),n}_readChunk(e){let t,n=0;const r=[];do{const e=new Oc(this.options.readChunk);t=mp.readSync(this.fd,e,0,this.options.readChunk,this.fdPosition),n+=t,this.fdPosition=this.fdPosition+t,r.push(e)}while(t&&-1===this._searchInBuffer(r[r.length-1],this.options.newLineCharacter));let i=Oc.concat(r);return t=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function kp(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function Tp(e){return this instanceof Tp?(this.v=e,this):new Tp(e)}var Sp=Object.freeze({__proto__:null,__extends:function(e,t){function n(){this.constructor=e}xp(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},get __assign(){return Ep},__rest:function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},__param:function(e,t){return function(n,r){t(n,r,e)}},__metadata:function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},__awaiter:function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function s(e){try{u(r.next(e))}catch(e){o(e)}}function a(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}u((r=r.apply(e,t||[])).next())}))},__generator:function(e,t){var n,r,i,o,s={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function a(o){return function(a){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,r=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(i=s.trys,!((i=i.length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){s=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]1||a(e,t)}))})}function a(e,t){try{(n=i[e](t)).value instanceof Tp?Promise.resolve(n.value.v).then(u,l):c(o[0][2],n)}catch(e){c(o[0][3],e)}var n}function u(e){a("next",e)}function l(e){a("throw",e)}function c(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}},__asyncDelegator:function(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:Tp(e[r](t)),done:"return"===r}:i?i(t):t}:i}},__asyncValues:function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=_p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}},__makeTemplateObject:function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e},__importStar:function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},__importDefault:function(e){return e&&e.__esModule?e:{default:e}},__classPrivateFieldGet:function(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)},__classPrivateFieldSet:function(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}}),Ap={},Op={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.apiDescriptor={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(t){if(null===t||"object"!=typeof t)return JSON.stringify(t);if(Array.isArray(t))return"[".concat(t.map(t=>e.apiDescriptor.value(t)).join(", "),"]");const n=Object.keys(t);return 0===n.length?"{}":"{ ".concat(n.map(n=>"".concat(e.apiDescriptor.key(n),": ").concat(e.apiDescriptor.value(t[n]))).join(", ")," }")},pair:t=>{let{key:n,value:r}=t;return e.apiDescriptor.value({[n]:r})}}}(Op),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Sp.__exportStar(Op,e)}(Ap);var Fp={},Np={},Ip={},Pp={exports:{}},Mp=/[|\\{}()[\]^$+*?.]/g,Lp=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(Mp,"\\$&")},jp={exports:{}},Bp={exports:{}},Rp={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},$p={};for(var Hp in Rp)Rp.hasOwnProperty(Hp)&&($p[Rp[Hp]]=Hp);var Up=Bp.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var qp in Up)if(Up.hasOwnProperty(qp)){if(!("channels"in Up[qp]))throw new Error("missing channels property: "+qp);if(!("labels"in Up[qp]))throw new Error("missing channel labels property: "+qp);if(Up[qp].labels.length!==Up[qp].channels)throw new Error("channel and label counts mismatch: "+qp);var zp=Up[qp].channels,Vp=Up[qp].labels;delete Up[qp].channels,delete Up[qp].labels,Object.defineProperty(Up[qp],"channels",{value:zp}),Object.defineProperty(Up[qp],"labels",{value:Vp})}Up.rgb.hsl=function(e){var t,n,r=e[0]/255,i=e[1]/255,o=e[2]/255,s=Math.min(r,i,o),a=Math.max(r,i,o),u=a-s;return a===s?t=0:r===a?t=(i-o)/u:i===a?t=2+(o-r)/u:o===a&&(t=4+(r-i)/u),(t=Math.min(60*t,360))<0&&(t+=360),n=(s+a)/2,[t,100*(a===s?0:n<=.5?u/(a+s):u/(2-a-s)),100*n]},Up.rgb.hsv=function(e){var t,n,r,i,o,s=e[0]/255,a=e[1]/255,u=e[2]/255,l=Math.max(s,a,u),c=l-Math.min(s,a,u),p=function(e){return(l-e)/6/c+.5};return 0===c?i=o=0:(o=c/l,t=p(s),n=p(a),r=p(u),s===l?i=r-n:a===l?i=1/3+t-r:u===l&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*l]},Up.rgb.hwb=function(e){var t=e[0],n=e[1],r=e[2];return[Up.rgb.hsl(e)[0],1/255*Math.min(t,Math.min(n,r))*100,100*(r=1-1/255*Math.max(t,Math.max(n,r)))]},Up.rgb.cmyk=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255;return[100*((1-n-(t=Math.min(1-n,1-r,1-i)))/(1-t)||0),100*((1-r-t)/(1-t)||0),100*((1-i-t)/(1-t)||0),100*t]},Up.rgb.keyword=function(e){var t=$p[e];if(t)return t;var n,r,i,o=1/0;for(var s in Rp)if(Rp.hasOwnProperty(s)){var a=Rp[s],u=(r=e,i=a,Math.pow(r[0]-i[0],2)+Math.pow(r[1]-i[1],2)+Math.pow(r[2]-i[2],2));u.04045?Math.pow((t+.055)/1.055,2.4):t/12.92)+.3576*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.1805*(r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92)),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},Up.rgb.lab=function(e){var t=Up.rgb.xyz(e),n=t[0],r=t[1],i=t[2];return r/=100,i/=108.883,n=(n/=95.047)>.008856?Math.pow(n,1/3):7.787*n+16/116,[116*(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116)-16,500*(n-r),200*(r-(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116))]},Up.hsl.rgb=function(e){var t,n,r,i,o,s=e[0]/360,a=e[1]/100,u=e[2]/100;if(0===a)return[o=255*u,o,o];t=2*u-(n=u<.5?u*(1+a):u+a-u*a),i=[0,0,0];for(var l=0;l<3;l++)(r=s+1/3*-(l-1))<0&&r++,r>1&&r--,o=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,i[l]=255*o;return i},Up.hsl.hsv=function(e){var t=e[0],n=e[1]/100,r=e[2]/100,i=n,o=Math.max(r,.01);return n*=(r*=2)<=1?r:2-r,i*=o<=1?o:2-o,[t,100*(0===r?2*i/(o+i):2*n/(r+n)),(r+n)/2*100]},Up.hsv.rgb=function(e){var t=e[0]/60,n=e[1]/100,r=e[2]/100,i=Math.floor(t)%6,o=t-Math.floor(t),s=255*r*(1-n),a=255*r*(1-n*o),u=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,u,s];case 1:return[a,r,s];case 2:return[s,r,u];case 3:return[s,a,r];case 4:return[u,s,r];case 5:return[r,s,a]}},Up.hsv.hsl=function(e){var t,n,r,i=e[0],o=e[1]/100,s=e[2]/100,a=Math.max(s,.01);return r=(2-o)*s,n=o*a,[i,100*(n=(n/=(t=(2-o)*a)<=1?t:2-t)||0),100*(r/=2)]},Up.hwb.rgb=function(e){var t,n,r,i,o,s,a,u=e[0]/360,l=e[1]/100,c=e[2]/100,p=l+c;switch(p>1&&(l/=p,c/=p),r=6*u-(t=Math.floor(6*u)),0!=(1&t)&&(r=1-r),i=l+r*((n=1-c)-l),t){default:case 6:case 0:o=n,s=i,a=l;break;case 1:o=i,s=n,a=l;break;case 2:o=l,s=n,a=i;break;case 3:o=l,s=i,a=n;break;case 4:o=i,s=l,a=n;break;case 5:o=n,s=l,a=i}return[255*o,255*s,255*a]},Up.cmyk.rgb=function(e){var t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},Up.xyz.rgb=function(e){var t,n,r,i=e[0]/100,o=e[1]/100,s=e[2]/100;return n=-.9689*i+1.8758*o+.0415*s,r=.0557*i+-.204*o+1.057*s,t=(t=3.2406*i+-1.5372*o+-.4986*s)>.0031308?1.055*Math.pow(t,1/2.4)-.055:12.92*t,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:12.92*n,r=r>.0031308?1.055*Math.pow(r,1/2.4)-.055:12.92*r,[255*(t=Math.min(Math.max(0,t),1)),255*(n=Math.min(Math.max(0,n),1)),255*(r=Math.min(Math.max(0,r),1))]},Up.xyz.lab=function(e){var t=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,t=(t/=95.047)>.008856?Math.pow(t,1/3):7.787*t+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(t-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]},Up.lab.xyz=function(e){var t,n,r,i=e[0];t=e[1]/500+(n=(i+16)/116),r=n-e[2]/200;var o=Math.pow(n,3),s=Math.pow(t,3),a=Math.pow(r,3);return n=o>.008856?o:(n-16/116)/7.787,t=s>.008856?s:(t-16/116)/7.787,r=a>.008856?a:(r-16/116)/7.787,[t*=95.047,n*=100,r*=108.883]},Up.lab.lch=function(e){var t,n=e[0],r=e[1],i=e[2];return(t=360*Math.atan2(i,r)/2/Math.PI)<0&&(t+=360),[n,Math.sqrt(r*r+i*i),t]},Up.lch.lab=function(e){var t,n=e[0],r=e[1];return t=e[2]/360*2*Math.PI,[n,r*Math.cos(t),r*Math.sin(t)]},Up.rgb.ansi16=function(e){var t=e[0],n=e[1],r=e[2],i=1 in arguments?arguments[1]:Up.rgb.hsv(e)[2];if(0===(i=Math.round(i/50)))return 30;var o=30+(Math.round(r/255)<<2|Math.round(n/255)<<1|Math.round(t/255));return 2===i&&(o+=60),o},Up.hsv.ansi16=function(e){return Up.rgb.ansi16(Up.hsv.rgb(e),e[2])},Up.rgb.ansi256=function(e){var t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},Up.ansi16.rgb=function(e){var t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),[t=t/10.5*255,t,t];var n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},Up.ansi256.rgb=function(e){if(e>=232){var t=10*(e-232)+8;return[t,t,t]}var n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},Up.rgb.hex=function(e){var t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},Up.hex.rgb=function(e){var t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];var n=t[0];3===t[0].length&&(n=n.split("").map((function(e){return e+e})).join(""));var r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},Up.rgb.hcg=function(e){var t,n=e[0]/255,r=e[1]/255,i=e[2]/255,o=Math.max(Math.max(n,r),i),s=Math.min(Math.min(n,r),i),a=o-s;return t=a<=0?0:o===n?(r-i)/a%6:o===r?2+(i-n)/a:4+(n-r)/a+4,t/=6,[360*(t%=1),100*a,100*(a<1?s/(1-a):0)]},Up.hsl.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=1,i=0;return(r=n<.5?2*t*n:2*t*(1-n))<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},Up.hsv.hcg=function(e){var t=e[1]/100,n=e[2]/100,r=t*n,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},Up.hcg.rgb=function(e){var t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];var i,o=[0,0,0],s=t%1*6,a=s%1,u=1-a;switch(Math.floor(s)){case 0:o[0]=1,o[1]=a,o[2]=0;break;case 1:o[0]=u,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=a;break;case 3:o[0]=0,o[1]=u,o[2]=1;break;case 4:o[0]=a,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=u}return i=(1-n)*r,[255*(n*o[0]+i),255*(n*o[1]+i),255*(n*o[2]+i)]},Up.hcg.hsv=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t),r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},Up.hcg.hsl=function(e){var t=e[1]/100,n=e[2]/100*(1-t)+.5*t,r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},Up.hcg.hwb=function(e){var t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},Up.hwb.hcg=function(e){var t=e[1]/100,n=1-e[2]/100,r=n-t,i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},Up.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},Up.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},Up.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},Up.gray.hsl=Up.gray.hsv=function(e){return[0,0,e[0]]},Up.gray.hwb=function(e){return[0,100,e[0]]},Up.gray.cmyk=function(e){return[0,0,0,e[0]]},Up.gray.lab=function(e){return[e[0],0,0]},Up.gray.hex=function(e){var t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},Up.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};var Wp=Bp.exports;function Gp(e){var t=function(){for(var e={},t=Object.keys(Wp),n=t.length,r=0;r1&&(t=Array.prototype.slice.call(arguments));var n=e(t);if("object"==typeof n)for(var r=n.length,i=0;i1&&(t=Array.prototype.slice.call(arguments)),e(t))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)}))}));var Zp,ef=Qp;function tf(){if(void 0===Zp){var e=new ArrayBuffer(2),t=new Uint8Array(e),n=new Uint16Array(e);if(t[0]=1,t[1]=2,258===n[0])Zp="BE";else{if(513!==n[0])throw new Error("unable to figure out endianess");Zp="LE"}}return Zp}function nf(){return void 0!==Fa.location?Fa.location.hostname:""}function rf(){return[]}function of(){return 0}function sf(){return Number.MAX_VALUE}function af(){return Number.MAX_VALUE}function uf(){return[]}function lf(){return"Browser"}function cf(){return void 0!==Fa.navigator?Fa.navigator.appVersion:""}function pf(){}function ff(){}function hf(){return"javascript"}function df(){return"browser"}function mf(){return"/tmp"}!function(e){const t=ef,n=(e,n)=>function(){const r=e.apply(t,arguments);return"[".concat(r+n,"m")},r=(e,n)=>function(){const r=e.apply(t,arguments);return"[".concat(38+n,";5;").concat(r,"m")},i=(e,n)=>function(){const r=e.apply(t,arguments);return"[".concat(38+n,";2;").concat(r[0],";").concat(r[1],";").concat(r[2],"m")};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,o={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};o.color.grey=o.color.gray;for(const t of Object.keys(o)){const n=o[t];for(const t of Object.keys(n)){const r=n[t];o[t]={open:"[".concat(r[0],"m"),close:"[".concat(r[1],"m")},n[t]=o[t],e.set(r[0],r[1])}Object.defineProperty(o,t,{value:n,enumerable:!1}),Object.defineProperty(o,"codes",{value:e,enumerable:!1})}const s=e=>e,a=(e,t,n)=>[e,t,n];o.color.close="",o.bgColor.close="",o.color.ansi={ansi:n(s,0)},o.color.ansi256={ansi256:r(s,0)},o.color.ansi16m={rgb:i(a,0)},o.bgColor.ansi={ansi:n(s,10)},o.bgColor.ansi256={ansi256:r(s,10)},o.bgColor.ansi16m={rgb:i(a,10)};for(let u of Object.keys(t)){if("object"!=typeof t[u])continue;const e=t[u];"ansi16"===u&&(u="ansi"),"ansi16"in e&&(o.color.ansi[u]=n(e.ansi16,0),o.bgColor.ansi[u]=n(e.ansi16,10)),"ansi256"in e&&(o.color.ansi256[u]=r(e.ansi256,0),o.bgColor.ansi256[u]=r(e.ansi256,10)),"rgb"in e&&(o.color.ansi16m[u]=i(e.rgb,0),o.bgColor.ansi16m[u]=i(e.rgb,10))}return o}})}(jp);var gf=mf,yf={EOL:"\n",arch:hf,platform:df,tmpdir:gf,tmpDir:mf,networkInterfaces:pf,getNetworkInterfaces:ff,release:cf,type:lf,cpus:uf,totalmem:af,freemem:sf,uptime:of,loadavg:rf,hostname:nf,endianness:tf},vf=n(Object.freeze({__proto__:null,endianness:tf,hostname:nf,loadavg:rf,uptime:of,freemem:sf,totalmem:af,cpus:uf,type:lf,release:cf,networkInterfaces:pf,getNetworkInterfaces:ff,arch:hf,platform:df,tmpDir:mf,tmpdir:gf,EOL:"\n",default:yf}));const bf=vf,Df=(e,t)=>{t=t||nu.argv;const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),i=t.indexOf("--");return-1!==r&&(-1===i||r=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in wf)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in wf)||"codeship"===wf.CI_NAME?1:t;if("TEAMCITY_VERSION"in wf)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(wf.TEAMCITY_VERSION)?1:0;if("truecolor"===wf.COLORTERM)return 3;if("TERM_PROGRAM"in wf){const e=parseInt((wf.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(wf.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(wf.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(wf.TERM)||"COLORTERM"in wf?1:(wf.TERM,t)}(e);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(t)}Df("no-color")||Df("no-colors")||Df("color=false")?Cf=!1:(Df("color")||Df("colors")||Df("color=true")||Df("color=always"))&&(Cf=!0),"FORCE_COLOR"in wf&&(Cf=0===wf.FORCE_COLOR.length||0!==parseInt(wf.FORCE_COLOR,10));var Ef={supportsColor:xf,stdout:xf(nu.stdout),stderr:xf(nu.stderr)};const _f=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,kf=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,Tf=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Sf=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Af=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function Of(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):Af.get(e)||e}function Ff(e,t){const n=[],r=t.trim().split(/\s*,\s*/g);let i;for(const o of r)if(isNaN(o)){if(!(i=o.match(Tf)))throw new Error("Invalid Chalk template style argument: ".concat(o," (in style '").concat(e,"')"));n.push(i[2].replace(Sf,(e,t,n)=>t?Of(t):n))}else n.push(Number(o));return n}function Nf(e){kf.lastIndex=0;const t=[];let n;for(;null!==(n=kf.exec(e));){const e=n[1];if(n[2]){const r=Ff(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function If(e,t){const n={};for(const i of t)for(const e of i.styles)n[e[0]]=i.inverse?null:e.slice(1);let r=e;for(const i of Object.keys(n))if(Array.isArray(n[i])){if(!(i in r))throw new Error("Unknown Chalk style: ".concat(i));r=n[i].length>0?r[i].apply(r,n[i]):r[i]}return r}var Pf=(e,t)=>{const n=[],r=[];let i=[];if(t.replace(_f,(t,o,s,a,u,l)=>{if(o)i.push(Of(o));else if(a){const t=i.join("");i=[],r.push(0===n.length?t:If(e,n)(t)),n.push({inverse:s,styles:Nf(a)})}else if(u){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");r.push(If(e,n)(i.join(""))),i=[],n.pop()}else i.push(l)}),r.push(i.join("")),n.length>0){const e="Chalk template literal is missing ".concat(n.length," closing bracket").concat(1===n.length?"":"s"," (`}`)");throw new Error(e)}return r.join("")};!function(e){const t=Lp,n=jp.exports,r=Ef.stdout,i=Pf,o="win32"===nu.platform&&!(nu.env.TERM||"").toLowerCase().startsWith("xterm"),s=["ansi","ansi","ansi256","ansi16m"],a=new Set(["gray"]),u=Object.create(null);function l(e,t){t=t||{};const n=r?r.level:0;e.level=void 0===t.level?n:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function c(e){if(!this||!(this instanceof c)||this.template){const t={};return l(t,e),t.template=function(){const e=[].slice.call(arguments);return d.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,c.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=c,t.template}l(this,e)}o&&(n.blue.open="");for(const m of Object.keys(n))n[m].closeRe=new RegExp(t(n[m].close),"g"),u[m]={get(){const e=n[m];return f.call(this,this._styles?this._styles.concat(e):[e],this._empty,m)}};u.visible={get(){return f.call(this,this._styles||[],!0,"visible")}},n.color.closeRe=new RegExp(t(n.color.close),"g");for(const m of Object.keys(n.color.ansi))a.has(m)||(u[m]={get(){const e=this.level;return function(){const t=n.color[s[e]][m].apply(null,arguments),r={open:t,close:n.color.close,closeRe:n.color.closeRe};return f.call(this,this._styles?this._styles.concat(r):[r],this._empty,m)}}});n.bgColor.closeRe=new RegExp(t(n.bgColor.close),"g");for(const m of Object.keys(n.bgColor.ansi))a.has(m)||(u["bg"+m[0].toUpperCase()+m.slice(1)]={get(){const e=this.level;return function(){const t=n.bgColor[s[e]][m].apply(null,arguments),r={open:t,close:n.bgColor.close,closeRe:n.bgColor.closeRe};return f.call(this,this._styles?this._styles.concat(r):[r],this._empty,m)}}});const p=Object.defineProperties(()=>{},u);function f(e,t,n){const r=function(){return h.apply(r,arguments)};r._styles=e,r._empty=t;const i=this;return Object.defineProperty(r,"level",{enumerable:!0,get:()=>i.level,set(e){i.level=e}}),Object.defineProperty(r,"enabled",{enumerable:!0,get:()=>i.enabled,set(e){i.enabled=e}}),r.hasGrey=this.hasGrey||"gray"===n||"grey"===n,r.__proto__=p,r}function h(){const e=arguments,t=e.length;let r=String(arguments[0]);if(0===t)return"";if(t>1)for(let n=1;n{let{descriptor:r}=n;const i=["".concat(Mf.default.yellow("string"==typeof e?r.key(e):r.pair(e))," is deprecated")];return t&&i.push("we now treat it as ".concat(Mf.default.blue("string"==typeof t?r.key(t):r.pair(t)))),i.join("; ")+"."},function(e){Object.defineProperty(e,"__esModule",{value:!0}),Sp.__exportStar(Ip,e)}(Np);var Lf={},jf={};Object.defineProperty(jf,"__esModule",{value:!0});const Bf=Pp.exports;jf.commonInvalidHandler=(e,t,n)=>["Invalid ".concat(Bf.default.red(n.descriptor.key(e))," value."),"Expected ".concat(Bf.default.blue(n.schemas[e].expected(n)),","),"but received ".concat(Bf.default.red(n.descriptor.value(t)),".")].join(" "),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Sp.__exportStar(jf,e)}(Lf);var Rf={},$f={},Hf=[],Uf=[];Object.defineProperty($f,"__esModule",{value:!0});const qf=Pp.exports,zf=function(e,t){if(e===t)return 0;var n=e;e.length>t.length&&(e=t,t=n);var r=e.length,i=t.length;if(0===r)return i;if(0===i)return r;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-i);)r--,i--;if(0===r)return i;for(var o,s,a,u,l=0;ls?u>s?s+1:u:u>a?a+1:u;return s};$f.levenUnknownHandler=(e,t,n)=>{let{descriptor:r,logger:i,schemas:o}=n;const s=["Ignored unknown option ".concat(qf.default.yellow(r.pair({key:e,value:t})),".")],a=Object.keys(o).sort().find(t=>zf(e,t)<3);a&&s.push("Did you mean ".concat(qf.default.blue(r.key(a)),"?")),i.warn(s.join(" "))},function(e){Object.defineProperty(e,"__esModule",{value:!0}),Sp.__exportStar($f,e)}(Rf),function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=Sp;t.__exportStar(Np,e),t.__exportStar(Lf,e),t.__exportStar(Rf,e)}(Fp);var Vf={},Wf={},Gf={};Object.defineProperty(Gf,"__esModule",{value:!0});const Kf=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function Yf(e,t){const n=new e(t),r=Object.create(n);for(const i of Kf)i in t&&(r[i]=Jf(t[i],n,Xf.prototype[i].length));return r}Gf.createSchema=Yf;class Xf{constructor(e){this.name=e.name}static create(e){return Yf(this,e)}default(e){}expected(e){return"nothing"}validate(e,t){return!1}deprecated(e,t){return!1}forward(e,t){}redirect(e,t){}overlap(e,t,n){return e}preprocess(e,t){return e}postprocess(e,t){return e}}function Jf(e,t,n){return"function"==typeof e?function(){for(var r=arguments.length,i=new Array(r),o=0;oe}Gf.Schema=Xf,Object.defineProperty(Wf,"__esModule",{value:!0});const Qf=Gf;class Zf extends Qf.Schema{constructor(e){super(e),this._sourceName=e.sourceName}expected(e){return e.schemas[this._sourceName].expected(e)}validate(e,t){return t.schemas[this._sourceName].validate(e,t)}redirect(e,t){return this._sourceName}}Wf.AliasSchema=Zf;var eh={};Object.defineProperty(eh,"__esModule",{value:!0});const th=Gf;class nh extends th.Schema{expected(){return"anything"}validate(){return!0}}eh.AnySchema=nh;var rh={};Object.defineProperty(rh,"__esModule",{value:!0});const ih=Sp,oh=Gf;class sh extends oh.Schema{constructor(e){var{valueSchema:t,name:n=t.name}=e,r=ih.__rest(e,["valueSchema","name"]);super(Object.assign({},r,{name:n})),this._valueSchema=t}expected(e){return"an array of ".concat(this._valueSchema.expected(e))}validate(e,t){if(!Array.isArray(e))return!1;const n=[];for(const r of e){const e=t.normalizeValidateResult(this._valueSchema.validate(r,t),r);!0!==e&&n.push(e.value)}return 0===n.length||{value:n}}deprecated(e,t){const n=[];for(const r of e){const e=t.normalizeDeprecatedResult(this._valueSchema.deprecated(r,t),r);!1!==e&&n.push(...e.map(e=>{let{value:t}=e;return{value:[t]}}))}return n}forward(e,t){const n=[];for(const r of e){const e=t.normalizeForwardResult(this._valueSchema.forward(r,t),r);n.push(...e.map(ah))}return n}redirect(e,t){const n=[],r=[];for(const i of e){const e=t.normalizeRedirectResult(this._valueSchema.redirect(i,t),i);"remain"in e&&n.push(e.remain),r.push(...e.redirect.map(ah))}return 0===n.length?{redirect:r}:{redirect:r,remain:n}}overlap(e,t){return e.concat(t)}}function ah(e){let{from:t,to:n}=e;return{from:[t],to:n}}rh.ArraySchema=sh;var uh={};Object.defineProperty(uh,"__esModule",{value:!0});const lh=Gf;class ch extends lh.Schema{expected(){return"true or false"}validate(e){return"boolean"==typeof e}}uh.BooleanSchema=ch;var ph={},fh={};function hh(e,t){return"string"==typeof e||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function dh(e,t){return void 0===e?[]:Array.isArray(e)?e.map(e=>hh(e,t)):[hh(e,t)]}Object.defineProperty(fh,"__esModule",{value:!0}),fh.recordFromArray=function(e,t){const n=Object.create(null);for(const r of e){const e=r[t];if(n[e])throw new Error("Duplicate ".concat(t," ").concat(JSON.stringify(e)));n[e]=r}return n},fh.mapFromArray=function(e,t){const n=new Map;for(const r of e){const e=r[t];if(n.has(e))throw new Error("Duplicate ".concat(t," ").concat(JSON.stringify(e)));n.set(e,r)}return n},fh.createAutoChecklist=function(){const e=Object.create(null);return t=>{const n=JSON.stringify(t);return!!e[n]||(e[n]=!0,!1)}},fh.partition=function(e,t){const n=[],r=[];for(const i of e)t(i)?n.push(i):r.push(i);return[n,r]},fh.isInt=function(e){return e===Math.floor(e)},fh.comparePrimitive=function(e,t){if(e===t)return 0;const n=typeof e,r=typeof t,i=["undefined","object","boolean","number","string"];return n!==r?i.indexOf(n)-i.indexOf(r):"string"!==n?Number(e)-Number(t):e.localeCompare(t)},fh.normalizeDefaultResult=function(e){return void 0===e?{}:e},fh.normalizeValidateResult=function(e,t){return!0===e||(!1===e?{value:t}:e)},fh.normalizeDeprecatedResult=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!1!==e&&(!0===e?!!n||[{value:t}]:"value"in e?[e]:0!==e.length&&e)},fh.normalizeTransferResult=hh,fh.normalizeForwardResult=dh,fh.normalizeRedirectResult=function(e,t){const n=dh("object"==typeof e&&"redirect"in e?e.redirect:e,t);return 0===n.length?{remain:t,redirect:n}:"object"==typeof e&&"remain"in e?{remain:e.remain,redirect:n}:{redirect:n}},Object.defineProperty(ph,"__esModule",{value:!0});const mh=Gf,gh=fh;class yh extends mh.Schema{constructor(e){super(e),this._choices=gh.mapFromArray(e.choices.map(e=>e&&"object"==typeof e?e:{value:e}),"value")}expected(e){let{descriptor:t}=e;const n=Array.from(this._choices.keys()).map(e=>this._choices.get(e)).filter(e=>!e.deprecated).map(e=>e.value).sort(gh.comparePrimitive).map(t.value),r=n.slice(0,-2),i=n.slice(-2);return r.concat(i.join(" or ")).join(", ")}validate(e){return this._choices.has(e)}deprecated(e){const t=this._choices.get(e);return!(!t||!t.deprecated)&&{value:e}}forward(e){const t=this._choices.get(e);return t?t.forward:void 0}redirect(e){const t=this._choices.get(e);return t?t.redirect:void 0}}ph.ChoiceSchema=yh;var vh={},bh={};Object.defineProperty(bh,"__esModule",{value:!0});const Dh=Gf;class wh extends Dh.Schema{expected(){return"a number"}validate(e,t){return"number"==typeof e}}bh.NumberSchema=wh,Object.defineProperty(vh,"__esModule",{value:!0});const Ch=fh,xh=bh;class Eh extends xh.NumberSchema{expected(){return"an integer"}validate(e,t){return!0===t.normalizeValidateResult(super.validate(e,t),e)&&Ch.isInt(e)}}vh.IntegerSchema=Eh;var _h={};Object.defineProperty(_h,"__esModule",{value:!0});const kh=Gf;class Th extends kh.Schema{expected(){return"a string"}validate(e){return"string"==typeof e}}_h.StringSchema=Th,function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=Sp;t.__exportStar(Wf,e),t.__exportStar(eh,e),t.__exportStar(rh,e),t.__exportStar(uh,e),t.__exportStar(ph,e),t.__exportStar(vh,e),t.__exportStar(bh,e),t.__exportStar(_h,e)}(Vf);var Sh={},Ah={};Object.defineProperty(Ah,"__esModule",{value:!0});const Oh=Op,Fh=Ip,Nh=Lf,Ih=$f;Ah.defaultDescriptor=Oh.apiDescriptor,Ah.defaultUnknownHandler=Ih.levenUnknownHandler,Ah.defaultInvalidHandler=Nh.commonInvalidHandler,Ah.defaultDeprecatedHandler=Fh.commonDeprecatedHandler,Object.defineProperty(Sh,"__esModule",{value:!0});const Ph=Ah,Mh=fh;Sh.normalize=(e,t,n)=>new Lh(t,n).normalize(e);class Lh{constructor(e,t){const{logger:n=console,descriptor:r=Ph.defaultDescriptor,unknown:i=Ph.defaultUnknownHandler,invalid:o=Ph.defaultInvalidHandler,deprecated:s=Ph.defaultDeprecatedHandler}=t||{};this._utils={descriptor:r,logger:n||{warn:()=>{}},schemas:Mh.recordFromArray(e,"name"),normalizeDefaultResult:Mh.normalizeDefaultResult,normalizeDeprecatedResult:Mh.normalizeDeprecatedResult,normalizeForwardResult:Mh.normalizeForwardResult,normalizeRedirectResult:Mh.normalizeRedirectResult,normalizeValidateResult:Mh.normalizeValidateResult},this._unknownHandler=i,this._invalidHandler=o,this._deprecatedHandler=s,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=Mh.createAutoChecklist()}normalize(e){const t={},n=[e],r=()=>{for(;0!==n.length;){const e=n.shift(),r=this._applyNormalization(e,t);n.push(...r)}};r();for(const i of Object.keys(this._utils.schemas)){const e=this._utils.schemas[i];if(!(i in t)){const t=Mh.normalizeDefaultResult(e.default(this._utils));"value"in t&&n.push({[i]:t.value})}}r();for(const i of Object.keys(this._utils.schemas)){const e=this._utils.schemas[i];i in t&&(t[i]=e.postprocess(t[i],this._utils))}return t}_applyNormalization(e,t){const n=[],[r,i]=Mh.partition(Object.keys(e),e=>e in this._utils.schemas);for(const o of r){const r=this._utils.schemas[o],i=r.preprocess(e[o],this._utils),s=Mh.normalizeValidateResult(r.validate(i,this._utils),i);if(!0!==s){const{value:e}=s,t=this._invalidHandler(o,e,this._utils);throw"string"==typeof t?new Error(t):t}const a=e=>{let{from:t,to:r}=e;n.push("string"==typeof r?{[r]:t}:{[r.key]:r.value})},u=e=>{let{value:t,redirectTo:n}=e;const s=Mh.normalizeDeprecatedResult(r.deprecated(t,this._utils),i,!0);if(!1!==s)if(!0===s)this._hasDeprecationWarned(o)||this._utils.logger.warn(this._deprecatedHandler(o,n,this._utils));else for(const{value:r}of s){const e={key:o,value:r};if(!this._hasDeprecationWarned(e)){const t="string"==typeof n?{key:n,value:r}:n;this._utils.logger.warn(this._deprecatedHandler(e,t,this._utils))}}};Mh.normalizeForwardResult(r.forward(i,this._utils),i).forEach(a);const l=Mh.normalizeRedirectResult(r.redirect(i,this._utils),i);if(l.redirect.forEach(a),"remain"in l){const e=l.remain;t[o]=o in t?r.overlap(t[o],e,this._utils):e,u({value:e})}for(const{from:e,to:t}of l.redirect)u({value:e,redirectTo:t})}for(const o of i){const r=e[o],i=this._unknownHandler(o,r,this._utils);if(i)for(const e of Object.keys(i)){const r={[e]:i[e]};e in this._utils.schemas?n.push(r):Object.assign(t,r)}}return n}}Sh.Normalizer=Lh,function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=Sp;t.__exportStar(Ap,e),t.__exportStar(Fp,e),t.__exportStar(Vf,e),t.__exportStar(Sh,e),t.__exportStar(Gf,e)}(Cp);var jh={exports:{}};const Bh=[],Rh=[],$h=(e,t)=>{if(e===t)return 0;const n=e;e.length>t.length&&(e=t,t=n);let r=e.length,i=t.length;for(;r>0&&e.charCodeAt(~-r)===t.charCodeAt(~-i);)r--,i--;let o,s,a,u,l=0;for(;ls?u>s?s+1:u:u>a?a+1:u;return s};jh.exports=$h,jh.exports.default=$h;var Hh={exports:{}};const Uh={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},qh={};for(const t of Object.keys(Uh))qh[Uh[t]]=t;const zh={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var Vh=zh;for(const t of Object.keys(zh)){if(!("channels"in zh[t]))throw new Error("missing channels property: "+t);if(!("labels"in zh[t]))throw new Error("missing channel labels property: "+t);if(zh[t].labels.length!==zh[t].channels)throw new Error("channel and label counts mismatch: "+t);const{channels:e,labels:n}=zh[t];delete zh[t].channels,delete zh[t].labels,Object.defineProperty(zh[t],"channels",{value:e}),Object.defineProperty(zh[t],"labels",{value:n})}zh.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),o=Math.max(t,n,r),s=o-i;let a,u;o===i?a=0:t===o?a=(n-r)/s:n===o?a=2+(r-t)/s:r===o&&(a=4+(t-n)/s),a=Math.min(60*a,360),a<0&&(a+=360);const l=(i+o)/2;return u=o===i?0:l<=.5?s/(o+i):s/(2-o-i),[a,100*u,100*l]},zh.rgb.hsv=function(e){let t,n,r,i,o;const s=e[0]/255,a=e[1]/255,u=e[2]/255,l=Math.max(s,a,u),c=l-Math.min(s,a,u),p=function(e){return(l-e)/6/c+.5};return 0===c?(i=0,o=0):(o=c/l,t=p(s),n=p(a),r=p(u),s===l?i=r-n:a===l?i=1/3+t-r:u===l&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[360*i,100*o,100*l]},zh.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const i=zh.rgb.hsl(e)[0],o=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[i,100*o,100*r]},zh.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(1-t,1-n,1-r);return[100*((1-t-i)/(1-i)||0),100*((1-n-i)/(1-i)||0),100*((1-r-i)/(1-i)||0),100*i]},zh.rgb.keyword=function(e){const t=qh[e];if(t)return t;let n,r=1/0;for(const s of Object.keys(Uh)){const t=(o=Uh[s],((i=e)[0]-o[0])**2+(i[1]-o[1])**2+(i[2]-o[2])**2);t.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,[100*(.4124*t+.3576*n+.1805*r),100*(.2126*t+.7152*n+.0722*r),100*(.0193*t+.1192*n+.9505*r)]},zh.rgb.lab=function(e){const t=zh.rgb.xyz(e);let n=t[0],r=t[1],i=t[2];return n/=95.047,r/=100,i/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116,[116*r-16,500*(n-r),200*(r-i)]},zh.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let i,o,s;if(0===n)return s=255*r,[s,s,s];i=r<.5?r*(1+n):r+n-r*n;const a=2*r-i,u=[0,0,0];for(let l=0;l<3;l++)o=t+1/3*-(l-1),o<0&&o++,o>1&&o--,s=6*o<1?a+6*(i-a)*o:2*o<1?i:3*o<2?a+(i-a)*(2/3-o)*6:a,u[l]=255*s;return u},zh.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,i=n;const o=Math.max(r,.01);return r*=2,n*=r<=1?r:2-r,i*=o<=1?o:2-o,[t,100*(0===r?2*i/(o+i):2*n/(r+n)),(r+n)/2*100]},zh.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const i=Math.floor(t)%6,o=t-Math.floor(t),s=255*r*(1-n),a=255*r*(1-n*o),u=255*r*(1-n*(1-o));switch(r*=255,i){case 0:return[r,u,s];case 1:return[a,r,s];case 2:return[s,r,u];case 3:return[s,a,r];case 4:return[u,s,r];case 5:return[r,s,a]}},zh.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01);let o,s;s=(2-n)*r;const a=(2-n)*i;return o=n*i,o/=a<=1?a:2-a,o=o||0,s/=2,[t,100*o,100*s]},zh.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const i=n+r;let o;i>1&&(n/=i,r/=i);const s=Math.floor(6*t),a=1-r;o=6*t-s,0!=(1&s)&&(o=1-o);const u=n+o*(a-n);let l,c,p;switch(s){default:case 6:case 0:l=a,c=u,p=n;break;case 1:l=u,c=a,p=n;break;case 2:l=n,c=a,p=u;break;case 3:l=n,c=u,p=a;break;case 4:l=u,c=n,p=a;break;case 5:l=a,c=n,p=u}return[255*l,255*c,255*p]},zh.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100;return[255*(1-Math.min(1,t*(1-i)+i)),255*(1-Math.min(1,n*(1-i)+i)),255*(1-Math.min(1,r*(1-i)+i))]},zh.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let i,o,s;return i=3.2406*t+-1.5372*n+-.4986*r,o=-.9689*t+1.8758*n+.0415*r,s=.0557*t+-.204*n+1.057*r,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,s=s>.0031308?1.055*s**(1/2.4)-.055:12.92*s,i=Math.min(Math.max(0,i),1),o=Math.min(Math.max(0,o),1),s=Math.min(Math.max(0,s),1),[255*i,255*o,255*s]},zh.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];return t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,[116*n-16,500*(t-n),200*(n-r)]},zh.lab.xyz=function(e){let t,n,r;n=(e[0]+16)/116,t=e[1]/500+n,r=n-e[2]/200;const i=n**3,o=t**3,s=r**3;return n=i>.008856?i:(n-16/116)/7.787,t=o>.008856?o:(t-16/116)/7.787,r=s>.008856?s:(r-16/116)/7.787,t*=95.047,n*=100,r*=108.883,[t,n,r]},zh.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let i;return i=360*Math.atan2(r,n)/2/Math.PI,i<0&&(i+=360),[t,Math.sqrt(n*n+r*r),i]},zh.lch.lab=function(e){const t=e[0],n=e[1],r=e[2]/360*2*Math.PI;return[t,n*Math.cos(r),n*Math.sin(r)]},zh.rgb.ansi16=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const[n,r,i]=e;let o=null===t?zh.rgb.hsv(e)[2]:t;if(o=Math.round(o/50),0===o)return 30;let s=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return 2===o&&(s+=60),s},zh.hsv.ansi16=function(e){return zh.rgb.ansi16(zh.hsv.rgb(e),e[2])},zh.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},zh.ansi16.rgb=function(e){let t=e%10;if(0===t||7===t)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=.5*(1+~~(e>50));return[(1&t)*n*255,(t>>1&1)*n*255,(t>>2&1)*n*255]},zh.ansi256.rgb=function(e){if(e>=232){const t=10*(e-232)+8;return[t,t,t]}let t;return e-=16,[Math.floor(e/36)/5*255,Math.floor((t=e%36)/6)/5*255,t%6/5*255]},zh.rgb.hex=function(e){const t=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(t.length)+t},zh.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];3===t[0].length&&(n=n.split("").map(e=>e+e).join(""));const r=parseInt(n,16);return[r>>16&255,r>>8&255,255&r]},zh.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),o=Math.min(Math.min(t,n),r),s=i-o;let a,u;return a=s<1?o/(1-s):0,u=s<=0?0:i===t?(n-r)/s%6:i===n?2+(r-t)/s:4+(t-n)/s,u/=6,u%=1,[360*u,100*s,100*a]},zh.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let i=0;return r<1&&(i=(n-.5*r)/(1-r)),[e[0],100*r,100*i]},zh.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},zh.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(0===n)return[255*r,255*r,255*r];const i=[0,0,0],o=t%1*6,s=o%1,a=1-s;let u=0;switch(Math.floor(o)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=a,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=a,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=a}return u=(1-n)*r,[255*(n*i[0]+u),255*(n*i[1]+u),255*(n*i[2]+u)]},zh.hcg.hsv=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);let r=0;return n>0&&(r=t/n),[e[0],100*r,100*n]},zh.hcg.hsl=function(e){const t=e[1]/100,n=e[2]/100*(1-t)+.5*t;let r=0;return n>0&&n<.5?r=t/(2*n):n>=.5&&n<1&&(r=t/(2*(1-n))),[e[0],100*r,100*n]},zh.hcg.hwb=function(e){const t=e[1]/100,n=t+e[2]/100*(1-t);return[e[0],100*(n-t),100*(1-n)]},zh.hwb.hcg=function(e){const t=e[1]/100,n=1-e[2]/100,r=n-t;let i=0;return r<1&&(i=(n-r)/(1-r)),[e[0],100*r,100*i]},zh.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},zh.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},zh.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},zh.gray.hsl=function(e){return[0,0,e[0]]},zh.gray.hsv=zh.gray.hsl,zh.gray.hwb=function(e){return[0,100,e[0]]},zh.gray.cmyk=function(e){return[0,0,0,e[0]]},zh.gray.lab=function(e){return[e[0],0,0]},zh.gray.hex=function(e){const t=255&Math.round(e[0]/100*255),n=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(n.length)+n},zh.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const Wh=Vh;function Gh(e){const t=function(){const e={},t=Object.keys(Wh);for(let n=t.length,r=0;r{Qh[e]={},Object.defineProperty(Qh[e],"channels",{value:Xh[e].channels}),Object.defineProperty(Qh[e],"labels",{value:Xh[e].labels});const t=Jh(e);Object.keys(t).forEach(n=>{const r=t[n];Qh[e][n]=function(e){const t=function(){for(var t=arguments.length,n=new Array(t),r=0;r1&&(n=i);const o=e(n);if("object"==typeof o)for(let e=o.length,s=0;s1&&(n=i),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}(r)})});var Zh=Qh;function ed(){return!1}function td(){throw new Error("tty.ReadStream is not implemented")}function nd(){throw new Error("tty.ReadStream is not implemented")}!function(e){const t=(e,t)=>function(){const n=e(...arguments);return"[".concat(n+t,"m")},n=(e,t)=>function(){const n=e(...arguments);return"[".concat(38+t,";5;").concat(n,"m")},r=(e,t)=>function(){const n=e(...arguments);return"[".concat(38+t,";2;").concat(n[0],";").concat(n[1],";").concat(n[2],"m")},i=e=>e,o=(e,t,n)=>[e,t,n],s=(e,t,n)=>{Object.defineProperty(e,t,{get:()=>{const r=n();return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0}),r},enumerable:!0,configurable:!0})};let a;const u=(e,t,n,r)=>{void 0===a&&(a=Zh);const i=r?10:0,o={};for(const[s,u]of Object.entries(a)){const r="ansi16"===s?"ansi":s;s===t?o[r]=e(n,i):"object"==typeof u&&(o[r]=e(u[t],i))}return o};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,a={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};a.color.gray=a.color.blackBright,a.bgColor.bgGray=a.bgColor.bgBlackBright,a.color.grey=a.color.blackBright,a.bgColor.bgGrey=a.bgColor.bgBlackBright;for(const[t,n]of Object.entries(a)){for(const[t,r]of Object.entries(n))a[t]={open:"[".concat(r[0],"m"),close:"[".concat(r[1],"m")},n[t]=a[t],e.set(r[0],r[1]);Object.defineProperty(a,t,{value:n,enumerable:!1})}return Object.defineProperty(a,"codes",{value:e,enumerable:!1}),a.color.close="",a.bgColor.close="",s(a.color,"ansi",()=>u(t,"ansi16",i,!1)),s(a.color,"ansi256",()=>u(n,"ansi256",i,!1)),s(a.color,"ansi16m",()=>u(r,"rgb",o,!1)),s(a.bgColor,"ansi",()=>u(t,"ansi16",i,!0)),s(a.bgColor,"ansi256",()=>u(n,"ansi256",i,!0)),s(a.bgColor,"ansi16m",()=>u(r,"rgb",o,!0)),a}})}(Hh);var rd={isatty:ed,ReadStream:td,WriteStream:nd};const id=vf,od=n(Object.freeze({__proto__:null,isatty:ed,ReadStream:td,WriteStream:nd,default:rd})),sd=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:nu.argv;const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),i=t.indexOf("--");return-1!==r&&(-1===i||r=2,has16m:e>=3}}function cd(e,t){if(0===ud)return 0;if(sd("color=16m")||sd("color=full")||sd("color=truecolor"))return 3;if(sd("color=256"))return 2;if(e&&!t&&void 0===ud)return 0;const n=ud||0;if("dumb"===ad.TERM)return n;if("win32"===nu.platform){const e=id.release().split(".");return Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in ad)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE"].some(e=>e in ad)||"codeship"===ad.CI_NAME?1:n;if("TEAMCITY_VERSION"in ad)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ad.TEAMCITY_VERSION)?1:0;if("truecolor"===ad.COLORTERM)return 3;if("TERM_PROGRAM"in ad){const e=parseInt((ad.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ad.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ad.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ad.TERM)||"COLORTERM"in ad?1:n}sd("no-color")||sd("no-colors")||sd("color=false")||sd("color=never")?ud=0:(sd("color")||sd("colors")||sd("color=true")||sd("color=always"))&&(ud=1),"FORCE_COLOR"in ad&&(ud="true"===ad.FORCE_COLOR?1:"false"===ad.FORCE_COLOR?0:0===ad.FORCE_COLOR.length?1:Math.min(parseInt(ad.FORCE_COLOR,10),3));var pd={supportsColor:function(e){return ld(cd(e,e&&e.isTTY))},stdout:ld(cd(!0,od.isatty(1))),stderr:ld(cd(!0,od.isatty(2)))},fd={stringReplaceAll:(e,t,n)=>{let r=e.indexOf(t);if(-1===r)return e;const i=t.length;let o=0,s="";do{s+=e.substr(o,r-o)+t+n,o=r+i,r=e.indexOf(t,o)}while(-1!==r);return s+=e.substr(o),s},stringEncaseCRLFWithFirstIndex:(e,t,n,r)=>{let i=0,o="";do{const s="\r"===e[r-1];o+=e.substr(i,(s?r-1:r)-i)+t+(s?"\r\n":"\n")+n,i=r+1,r=e.indexOf("\n",i)}while(-1!==r);return o+=e.substr(i),o}};const hd=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,dd=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,md=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,gd=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,yd=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function vd(e){const t="u"===e[0],n="{"===e[1];return t&&!n&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):t&&n?String.fromCodePoint(parseInt(e.slice(2,-1),16)):yd.get(e)||e}function bd(e,t){const n=[],r=t.trim().split(/\s*,\s*/g);let i;for(const o of r){const t=Number(o);if(Number.isNaN(t)){if(!(i=o.match(md)))throw new Error("Invalid Chalk template style argument: ".concat(o," (in style '").concat(e,"')"));n.push(i[2].replace(gd,(e,t,n)=>t?vd(t):n))}else n.push(t)}return n}function Dd(e){dd.lastIndex=0;const t=[];let n;for(;null!==(n=dd.exec(e));){const e=n[1];if(n[2]){const r=bd(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function wd(e,t){const n={};for(const i of t)for(const e of i.styles)n[e[0]]=i.inverse?null:e.slice(1);let r=e;for(const[i,o]of Object.entries(n))if(Array.isArray(o)){if(!(i in r))throw new Error("Unknown Chalk style: ".concat(i));r=o.length>0?r[i](...o):r[i]}return r}var Cd=(e,t)=>{const n=[],r=[];let i=[];if(t.replace(hd,(t,o,s,a,u,l)=>{if(o)i.push(vd(o));else if(a){const t=i.join("");i=[],r.push(0===n.length?t:wd(e,n)(t)),n.push({inverse:s,styles:Dd(a)})}else if(u){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");r.push(wd(e,n)(i.join(""))),i=[],n.pop()}else i.push(l)}),r.push(i.join("")),n.length>0){const e="Chalk template literal is missing ".concat(n.length," closing bracket").concat(1===n.length?"":"s"," (`}`)");throw new Error(e)}return r.join("")};const xd=Hh.exports,{stdout:Ed,stderr:_d}=pd,{stringReplaceAll:kd,stringEncaseCRLFWithFirstIndex:Td}=fd,{isArray:Sd}=Array,Ad=["ansi","ansi","ansi256","ansi16m"],Od=Object.create(null);class Fd{constructor(e){return Nd(e)}}const Nd=e=>{const t={};return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");const n=Ed?Ed.level:0;e.level=void 0===t.level?n:t.level}(t,e),t.template=function(){for(var e=arguments.length,n=new Array(e),r=0;r{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},t.template.Instance=Fd,t.template};function Id(e){return Nd(e)}for(const[t,tY]of Object.entries(xd))Od[t]={get(){const e=jd(this,Ld(tY.open,tY.close,this._styler),this._isEmpty);return Object.defineProperty(this,t,{value:e}),e}};Od.visible={get(){const e=jd(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};const Pd=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(const t of Pd)Od[t]={get(){const{level:e}=this;return function(){const n=Ld(xd.color[Ad[e]][t](...arguments),xd.color.close,this._styler);return jd(this,n,this._isEmpty)}}};for(const t of Pd)Od["bg"+t[0].toUpperCase()+t.slice(1)]={get(){const{level:e}=this;return function(){const n=Ld(xd.bgColor[Ad[e]][t](...arguments),xd.bgColor.close,this._styler);return jd(this,n,this._isEmpty)}}};const Md=Object.defineProperties(()=>{},Object.assign(Object.assign({},Od),{},{level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}})),Ld=(e,t,n)=>{let r,i;return void 0===n?(r=e,i=t):(r=n.openAll+e,i=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:i,parent:n}},jd=(e,t,n)=>{const r=function(){for(var e=arguments.length,t=new Array(e),n=0;n{if(e.level<=0||!t)return e._isEmpty?"":t;let n=e._styler;if(void 0===n)return t;const{openAll:r,closeAll:i}=n;if(-1!==t.indexOf(""))for(;void 0!==n;)t=kd(t,n.close,n.open),n=n.parent;const o=t.indexOf("\n");return-1!==o&&(t=Td(t,i,r,o)),r+t+i};let Rd;const $d=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r1===e.length?"-".concat(e):"--".concat(e),value:e=>zd.apiDescriptor.value(e),pair:e=>{let{key:t,value:n}=e;return!1===n?"--no-".concat(t):!0===n?Kd.key(t):""===n?"".concat(Kd.key(t)," without an argument"):"".concat(Kd.key(t),"=").concat(n)}};class Yd extends zd.ChoiceSchema{constructor(e){let{name:t,flags:n}=e;super({name:t,choices:n}),this._flags=[...n].sort()}preprocess(e,t){if("string"==typeof e&&e.length>0&&!this._flags.includes(e)){const n=this._flags.find(t=>Vd(t,e)<3);if(n)return t.logger.warn(["Unknown flag ".concat(Wd.yellow(t.descriptor.value(e)),","),"did you mean ".concat(Wd.blue(t.descriptor.value(n)),"?")].join(" ")),n}return e}expected(){return"a flag"}}let Xd;function Jd(e,t){let{logger:n,isCLI:r=!1,passThrough:i=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const o=i?Array.isArray(i)?(e,t)=>i.includes(e)?{[e]:t}:void 0:(e,t)=>({[e]:t}):(e,t,n)=>{const r=cs(n.schemas,qd);return zd.levenUnknownHandler(e,t,Object.assign(Object.assign({},n),{},{schemas:r}))},s=r?Kd:zd.apiDescriptor,a=Qd(t,{isCLI:r}),u=new zd.Normalizer(a,{logger:n,unknown:o,descriptor:s}),l=!1!==n;l&&Xd&&(u._hasDeprecationWarned=Xd);const c=u.normalize(e);return l&&(Xd=u._hasDeprecationWarned),c}function Qd(e,t){let{isCLI:n}=t;const r=[];n&&r.push(zd.AnySchema.create({name:"_"}));for(const i of e)r.push(Zd(i,{isCLI:n,optionInfos:e})),i.alias&&n&&r.push(zd.AliasSchema.create({name:i.alias,sourceName:i.name}));return r}function Zd(e,t){let n,{isCLI:r,optionInfos:i}=t;const o={name:e.name},s={};switch(e.type){case"int":n=zd.IntegerSchema,r&&(o.preprocess=e=>Number(e));break;case"string":case"path":n=zd.StringSchema;break;case"choice":n=zd.ChoiceSchema,o.choices=e.choices.map(t=>"object"==typeof t&&t.redirect?Object.assign(Object.assign({},t),{},{redirect:{to:{key:e.name,value:t.redirect}}}):t);break;case"boolean":n=zd.BooleanSchema;break;case"flag":n=Yd,o.flags=i.flatMap(e=>[e.alias,e.description&&e.name,e.oppositeDescription&&"no-".concat(e.name)].filter(Boolean));break;default:throw new Error("Unexpected type ".concat(e.type))}if(e.exception?o.validate=(t,n,r)=>e.exception(t)||n.validate(t,r):o.validate=(e,t,n)=>void 0===e||t.validate(e,n),e.redirect&&(s.redirect=t=>t?{to:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(s.deprecated=!0),r&&!e.array){const e=o.preprocess||(e=>e);o.preprocess=(t,n,r)=>n.preprocess(e(Array.isArray(t)?Gd(t):t),r)}return e.array?zd.ArraySchema.create(Object.assign(Object.assign(Object.assign({},r?{preprocess:e=>Array.isArray(e)?e:[e]}:{}),s),{},{valueSchema:n.create(o)})):n.create(Object.assign(Object.assign({},o),s))}var em={normalizeApiOptions:function(e,t,n){return Jd(e,t,n)},normalizeCliOptions:function(e,t,n){return Jd(e,t,Object.assign({isCLI:!0},n))}};const{isNonEmptyArray:tm}=dl;function nm(e,t){const{ignoreDecorators:n}=t||{};if(!n){const t=e.declaration&&e.declaration.decorators||e.decorators;if(tm(t))return nm(t[0])}return e.range?e.range[0]:e.start}function rm(e){return e.range?e.range[1]:e.end}function im(e,t){return nm(e)===nm(t)}var om={locStart:nm,locEnd:rm,hasSameLocStart:im,hasSameLoc:function(e,t){return im(e,t)&&function(e,t){return rm(e)===rm(t)}(e,t)}},sm={},am={},um={};Object.defineProperty(um,"__esModule",{value:!0}),um.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g,um.matchToToken=function(e){var t={type:"invalid",value:e[0],closed:void 0};return e[1]?(t.type="string",t.closed=!(!e[3]&&!e[4])):e[5]?t.type="comment":e[6]?(t.type="comment",t.closed=!!e[7]):e[8]?t.type="regex":e[9]?t.type="number":e[10]?t.type="name":e[11]?t.type="punctuator":e[12]&&(t.type="whitespace"),t};var lm={},cm={};Object.defineProperty(cm,"__esModule",{value:!0}),cm.isIdentifierStart=vm,cm.isIdentifierChar=bm,cm.isIdentifierName=function(e){let t=!0;for(let n=0;ne)return!1;if(n+=t[r+1],n>=e)return!0}return!1}function vm(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&hm.test(String.fromCharCode(e)):ym(e,mm)))}function bm(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&dm.test(String.fromCharCode(e)):ym(e,mm)||ym(e,gm))))}var Dm={};Object.defineProperty(Dm,"__esModule",{value:!0}),Dm.isReservedWord=km,Dm.isStrictReservedWord=Tm,Dm.isStrictBindOnlyReservedWord=Sm,Dm.isStrictBindReservedWord=function(e,t){return Tm(e,t)||Sm(e)},Dm.isKeyword=function(e){return xm.has(e)};const wm=["implements","interface","let","package","private","protected","public","static","yield"],Cm=["eval","arguments"],xm=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),Em=new Set(wm),_m=new Set(Cm);function km(e,t){return t&&"await"===e||"enum"===e}function Tm(e,t){return km(e,t)||Em.has(e)}function Sm(e){return _m.has(e)}!function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isIdentifierName",{enumerable:!0,get:function(){return t.isIdentifierName}}),Object.defineProperty(e,"isIdentifierChar",{enumerable:!0,get:function(){return t.isIdentifierChar}}),Object.defineProperty(e,"isIdentifierStart",{enumerable:!0,get:function(){return t.isIdentifierStart}}),Object.defineProperty(e,"isReservedWord",{enumerable:!0,get:function(){return n.isReservedWord}}),Object.defineProperty(e,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return n.isStrictBindOnlyReservedWord}}),Object.defineProperty(e,"isStrictBindReservedWord",{enumerable:!0,get:function(){return n.isStrictBindReservedWord}}),Object.defineProperty(e,"isStrictReservedWord",{enumerable:!0,get:function(){return n.isStrictReservedWord}}),Object.defineProperty(e,"isKeyword",{enumerable:!0,get:function(){return n.isKeyword}});var t=cm,n=Dm}(lm);var Am={exports:{}},Om=/[|\\{}()[\]^$+*?.]/g,Fm=function(e){if("string"!=typeof e)throw new TypeError("Expected a string");return e.replace(Om,"\\$&")};const Nm=vf,Im=(e,t)=>{t=t||nu.argv;const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),i=t.indexOf("--");return-1!==r&&(-1===i||r=8&&Number(e[0])>=10&&Number(e[2])>=10586?Number(e[2])>=14931?3:2:1}if("CI"in Pm)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some(e=>e in Pm)||"codeship"===Pm.CI_NAME?1:t;if("TEAMCITY_VERSION"in Pm)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(Pm.TEAMCITY_VERSION)?1:0;if("truecolor"===Pm.COLORTERM)return 3;if("TERM_PROGRAM"in Pm){const e=parseInt((Pm.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(Pm.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(Pm.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(Pm.TERM)||"COLORTERM"in Pm?1:(Pm.TERM,t)}(e);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(t)}Im("no-color")||Im("no-colors")||Im("color=false")?Mm=!1:(Im("color")||Im("colors")||Im("color=true")||Im("color=always"))&&(Mm=!0),"FORCE_COLOR"in Pm&&(Mm=0===Pm.FORCE_COLOR.length||0!==parseInt(Pm.FORCE_COLOR,10));var jm={supportsColor:Lm,stdout:Lm(nu.stdout),stderr:Lm(nu.stderr)};const Bm=/(?:\\(u[a-f\d]{4}|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Rm=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,$m=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,Hm=/\\(u[a-f\d]{4}|x[a-f\d]{2}|.)|([^\\])/gi,Um=new Map([["n","\n"],["r","\r"],["t","\t"],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e",""],["a",""]]);function qm(e){return"u"===e[0]&&5===e.length||"x"===e[0]&&3===e.length?String.fromCharCode(parseInt(e.slice(1),16)):Um.get(e)||e}function zm(e,t){const n=[],r=t.trim().split(/\s*,\s*/g);let i;for(const o of r)if(isNaN(o)){if(!(i=o.match($m)))throw new Error("Invalid Chalk template style argument: ".concat(o," (in style '").concat(e,"')"));n.push(i[2].replace(Hm,(e,t,n)=>t?qm(t):n))}else n.push(Number(o));return n}function Vm(e){Rm.lastIndex=0;const t=[];let n;for(;null!==(n=Rm.exec(e));){const e=n[1];if(n[2]){const r=zm(e,n[2]);t.push([e].concat(r))}else t.push([e])}return t}function Wm(e,t){const n={};for(const i of t)for(const e of i.styles)n[e[0]]=i.inverse?null:e.slice(1);let r=e;for(const i of Object.keys(n))if(Array.isArray(n[i])){if(!(i in r))throw new Error("Unknown Chalk style: ".concat(i));r=n[i].length>0?r[i].apply(r,n[i]):r[i]}return r}var Gm=(e,t)=>{const n=[],r=[];let i=[];if(t.replace(Bm,(t,o,s,a,u,l)=>{if(o)i.push(qm(o));else if(a){const t=i.join("");i=[],r.push(0===n.length?t:Wm(e,n)(t)),n.push({inverse:s,styles:Vm(a)})}else if(u){if(0===n.length)throw new Error("Found extraneous } in Chalk template literal");r.push(Wm(e,n)(i.join(""))),i=[],n.pop()}else i.push(l)}),r.push(i.join("")),n.length>0){const e="Chalk template literal is missing ".concat(n.length," closing bracket").concat(1===n.length?"":"s"," (`}`)");throw new Error(e)}return r.join("")};!function(e){const t=Fm,n=jp.exports,r=jm.stdout,i=Gm,o="win32"===nu.platform&&!(nu.env.TERM||"").toLowerCase().startsWith("xterm"),s=["ansi","ansi","ansi256","ansi16m"],a=new Set(["gray"]),u=Object.create(null);function l(e,t){t=t||{};const n=r?r.level:0;e.level=void 0===t.level?n:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function c(e){if(!this||!(this instanceof c)||this.template){const t={};return l(t,e),t.template=function(){const e=[].slice.call(arguments);return d.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,c.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=c,t.template}l(this,e)}o&&(n.blue.open="");for(const m of Object.keys(n))n[m].closeRe=new RegExp(t(n[m].close),"g"),u[m]={get(){const e=n[m];return f.call(this,this._styles?this._styles.concat(e):[e],this._empty,m)}};u.visible={get(){return f.call(this,this._styles||[],!0,"visible")}},n.color.closeRe=new RegExp(t(n.color.close),"g");for(const m of Object.keys(n.color.ansi))a.has(m)||(u[m]={get(){const e=this.level;return function(){const t=n.color[s[e]][m].apply(null,arguments),r={open:t,close:n.color.close,closeRe:n.color.closeRe};return f.call(this,this._styles?this._styles.concat(r):[r],this._empty,m)}}});n.bgColor.closeRe=new RegExp(t(n.bgColor.close),"g");for(const m of Object.keys(n.bgColor.ansi))a.has(m)||(u["bg"+m[0].toUpperCase()+m.slice(1)]={get(){const e=this.level;return function(){const t=n.bgColor[s[e]][m].apply(null,arguments),r={open:t,close:n.bgColor.close,closeRe:n.bgColor.closeRe};return f.call(this,this._styles?this._styles.concat(r):[r],this._empty,m)}}});const p=Object.defineProperties(()=>{},u);function f(e,t,n){const r=function(){return h.apply(r,arguments)};r._styles=e,r._empty=t;const i=this;return Object.defineProperty(r,"level",{enumerable:!0,get:()=>i.level,set(e){i.level=e}}),Object.defineProperty(r,"enabled",{enumerable:!0,get:()=>i.enabled,set(e){i.enabled=e}}),r.hasGrey=this.hasGrey||"gray"===n||"grey"===n,r.__proto__=p,r}function h(){const e=arguments,t=e.length;let r=String(arguments[0]);if(0===t)return"";if(t>1)for(let n=1;n1&&void 0!==arguments[1]?arguments[1]:{};if(rg(t)){const n=ig(t);return ng(Qm(n),e)}return e},am.getChalk=ig,am.shouldHighlight=rg;var Km=um,Ym=lm,Xm=Am.exports;const Jm=new Set(["as","async","from","get","of","set"]);function Qm(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.grey,invalid:e.white.bgRed.bold}}const Zm=/\r\n|[\n\r\u2028\u2029]/,eg=/^[()[\]{}]$/;let tg;{const e=/^[a-z][\w-]*$/i,t=function(t,n,r){if("name"===t.type){if((0,Ym.isKeyword)(t.value)||(0,Ym.isStrictReservedWord)(t.value,!0)||Jm.has(t.value))return"keyword";if(e.test(t.value)&&("<"===r[n-1]||"t(e)).join("\n"):i}return n}function rg(e){return!!Xm.supportsColor||e.forceColor}function ig(e){return e.forceColor?new Xm.constructor({enabled:!0,level:1}):Xm}Object.defineProperty(sm,"__esModule",{value:!0}),sm.codeFrameColumns=cg,sm.default=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!sg){sg=!0;const e="Passing lineNumber and colNumber is deprecated to @babel/code-frame. Please use `codeFrameColumns`.";nu.emitWarning?nu.emitWarning(e,"DeprecationWarning"):(new Error(e).name="DeprecationWarning",console.warn(new Error(e)))}const i={start:{column:n=Math.max(n,0),line:t}};return cg(e,i,r)};var og=am;let sg=!1;function ag(e){return{gutter:e.grey,marker:e.red.bold,message:e.red.bold}}const ug=/\r\n|[\n\r\u2028\u2029]/;function lg(e,t,n){const r=Object.assign({column:0,line:-1},e.start),i=Object.assign({},r,e.end),{linesAbove:o=2,linesBelow:s=3}=n||{},a=r.line,u=r.column,l=i.line,c=i.column;let p=Math.max(a-(o+1),0),f=Math.min(t.length,l+s);-1===a&&(p=0),-1===l&&(f=t.length);const h=l-a,d={};if(h)for(let m=0;m<=h;m++){const e=m+a;if(u)if(0===m){const n=t[e-1].length;d[e]=[u,n-u+1]}else if(m===h)d[e]=[0,c];else{const n=t[e-m].length;d[e]=[0,n]}else d[e]=!0}else d[a]=u===c?!u||[u,0]:[u,c-u];return{start:p,end:f,markerLines:d}}function cg(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=(n.highlightCode||n.forceColor)&&(0,og.shouldHighlight)(n),i=(0,og.getChalk)(n),o=ag(i),s=(e,t)=>r?e(t):t,a=e.split(ug),{start:u,end:l,markerLines:c}=lg(t,a,n),p=t.start&&"number"==typeof t.start.column,f=String(l).length,h=r?(0,og.default)(e,n):e;let d=h.split(ug,l).slice(u,l).map((e,t)=>{const r=u+1+t,i=" ".concat(r).slice(-f),a=" ".concat(i," |"),l=c[r],p=!c[r+1];if(l){let t="";if(Array.isArray(l)){const r=e.slice(0,Math.max(l[0]-1,0)).replace(/[^\t]/g," "),i=l[1]||1;t=["\n ",s(o.gutter,a.replace(/\d/g," "))," ",r,s(o.marker,"^").repeat(i)].join(""),p&&n.message&&(t+=" "+s(o.message,n.message))}return[s(o.marker,">"),s(o.gutter,a),e.length>0?" ".concat(e):"",t].join("")}return" ".concat(s(o.gutter,a)).concat(e.length>0?" ".concat(e):"")}).join("\n");return n.message&&!p&&(d="".concat(" ".repeat(f+1)).concat(n.message,"\n").concat(d)),r?i.reset(d):d}const{ConfigError:pg}=wp,fg=om,{locStart:hg,locEnd:dg}=fg,mg=Object.getOwnPropertyNames,gg=Object.getOwnPropertyDescriptor;function yg(e){const t={};for(const n of e.plugins)if(n.parsers)for(const e of mg(n.parsers))Object.defineProperty(t,e,gg(n.parsers,e));return t}function vg(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yg(e);if("function"==typeof e.parser)return{parse:e.parser,astFormat:"estree",locStart:hg,locEnd:dg};if("string"==typeof e.parser){if(Object.prototype.hasOwnProperty.call(t,e.parser))return t[e.parser];throw new pg("Couldn't resolve parser \"".concat(e.parser,'". Parsers must be explicitly added to the standalone bundle.'))}}var bg={parse:function(e,t){const n=yg(t),r=Object.defineProperties({},Object.fromEntries(Object.keys(n).map(e=>[e,{enumerable:!0,get:()=>n[e].parse}]))),i=vg(t,n);try{return i.preprocess&&(e=i.preprocess(e,t)),{text:e,ast:i.parse(e,r,t)}}catch(t){const{loc:n}=t;if(n){const{codeFrameColumns:r}=sm;throw t.codeFrame=r(e,n,{highlightCode:!0}),t.message+="\n"+t.codeFrame,t}throw t.stack}},resolveParser:vg};const Dg=tc,wg=gc,Cg=gp,{UndefinedParserError:xg}=wp,{getSupportInfo:Eg}=Wu,_g=em,{resolveParser:kg}=bg,Tg={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null};function Sg(e){const{astFormat:t}=e;if(!t)throw new Error("getPlugin() requires astFormat to be set");const n=e.plugins.find(e=>e.printers&&e.printers[t]);if(!n)throw new Error("Couldn't find plugin for AST format \"".concat(t,'"'));return n}function Ag(e,t){const n=wg.basename(e).toLowerCase(),r=Eg({plugins:t}).languages.filter(e=>null!==e.since);let i=r.find(e=>e.extensions&&e.extensions.some(e=>n.endsWith(e))||e.filenames&&e.filenames.some(e=>e.toLowerCase()===n));if(!i&&!n.includes(".")){const t=function(e){if("string"!=typeof e)return"";let t;try{t=Dg.openSync(e,"r")}catch{return""}try{const e=new Cg(t).next().toString("utf8"),n=e.match(/^#!\/(?:usr\/)?bin\/env\s+(\S+)/);if(n)return n[1];const r=e.match(/^#!\/(?:usr\/(?:local\/)?)?bin\/(\S+)/);return r?r[1]:""}catch{return""}finally{try{Dg.closeSync(t)}catch{}}}(e);i=r.find(e=>e.interpreters&&e.interpreters.includes(t))}return i&&i.parsers[0]}var Og={normalize:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Object.assign({},e),r=Eg({plugins:e.plugins,showUnreleased:!0,showDeprecated:!0}).options,i=Object.assign(Object.assign({},Tg),Object.fromEntries(r.filter(e=>void 0!==e.default).map(e=>[e.name,e.default])));if(!n.parser)if(n.filepath){if(n.parser=Ag(n.filepath,n.plugins),!n.parser)throw new xg("No parser could be inferred for file: ".concat(n.filepath))}else(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."),n.parser="babel";const o=kg(_g.normalizeApiOptions(n,[r.find(e=>"parser"===e.name)],{passThrough:!0,logger:!1}));n.astFormat=o.astFormat,n.locEnd=o.locEnd,n.locStart=o.locStart;const s=Sg(n);n.printer=s.printers[n.astFormat];const a=Object.fromEntries(r.filter(e=>e.pluginDefaults&&void 0!==e.pluginDefaults[s.name]).map(e=>[e.name,e.pluginDefaults[s.name]])),u=Object.assign(Object.assign({},i),a);for(const[l,c]of Object.entries(u))null!==n[l]&&void 0!==n[l]||(n[l]=c);return"json"===n.parser&&(n.trailingComma="none"),_g.normalizeApiOptions(n,r,Object.assign({passThrough:Object.keys(Tg)},t))},hiddenDefaults:Tg,inferParser:Ag},Fg=function e(t,n,r){if(Array.isArray(t))return t.map(t=>e(t,n,r)).filter(Boolean);if(!t||"object"!=typeof t)return t;const i=n.printer.massageAstNode;let o;o=i&&i.ignoredProperties?i.ignoredProperties:new Set;const s={};for(const[a,u]of Object.entries(t))o.has(a)||"function"==typeof u||(s[a]=e(u,n,t));if(i){const e=i(t,s,r);if(null===e)return;if(e)return e}return s},Ng="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e};function Ig(e,t){var n={seen:[],stylize:Mg};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),Rg(t)?n.showHidden=t:t&&Xg(n,t),Ug(n.showHidden)&&(n.showHidden=!1),Ug(n.depth)&&(n.depth=2),Ug(n.colors)&&(n.colors=!1),Ug(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=Pg),Lg(n,e,n.depth)}function Pg(e,t){var n=Ig.styles[t];return n?"["+Ig.colors[n][0]+"m"+e+"["+Ig.colors[n][1]+"m":e}function Mg(e,t){return e}function Lg(e,t,n){if(e.customInspect&&t&&Gg(t.inspect)&&t.inspect!==Ig&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(n,e);return Hg(r)||(r=Lg(e,r,n)),r}var i=function(e,t){if(Ug(t))return e.stylize("undefined","undefined");if(Hg(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return r=t,"number"==typeof r?e.stylize(""+t,"number"):Rg(t)?e.stylize(""+t,"boolean"):$g(t)?e.stylize("null","null"):void 0;var r}(e,t);if(i)return i;var o=Object.keys(t),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(o);if(e.showHidden&&(o=Object.getOwnPropertyNames(t)),Wg(t)&&(o.indexOf("message")>=0||o.indexOf("description")>=0))return jg(t);if(0===o.length){if(Gg(t)){var a=t.name?": "+t.name:"";return e.stylize("[Function"+a+"]","special")}if(qg(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(Vg(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Wg(t))return jg(t)}var u,l,c="",p=!1,f=["{","}"];return u=t,Array.isArray(u)&&(p=!0,f=["[","]"]),Gg(t)&&(c=" [Function"+(t.name?": "+t.name:"")+"]"),qg(t)&&(c=" "+RegExp.prototype.toString.call(t)),Vg(t)&&(c=" "+Date.prototype.toUTCString.call(t)),Wg(t)&&(c=" "+jg(t)),0!==o.length||p&&0!=t.length?n<0?qg(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),l=p?function(e,t,n,r,i){for(var o=[],s=0,a=t.length;s60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(l,c,f)):f[0]+c+f[1]}function jg(e){return"["+Error.prototype.toString.call(e)+"]"}function Bg(e,t,n,r,i,o){var s,a,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?a=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(a=e.stylize("[Setter]","special")),Jg(r,i)||(s="["+i+"]"),a||(e.seen.indexOf(u.value)<0?(a=$g(n)?Lg(e,u.value,null):Lg(e,u.value,n-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map((function(e){return" "+e})).join("\n").substr(2):"\n"+a.split("\n").map((function(e){return" "+e})).join("\n")):a=e.stylize("[Circular]","special")),Ug(s)){if(o&&i.match(/^\d+$/))return a;(s=JSON.stringify(""+i)).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 Rg(e){return"boolean"==typeof e}function $g(e){return null===e}function Hg(e){return"string"==typeof e}function Ug(e){return void 0===e}function qg(e){return zg(e)&&"[object RegExp]"===Yg(e)}function zg(e){return"object"==typeof e&&null!==e}function Vg(e){return zg(e)&&"[object Date]"===Yg(e)}function Wg(e){return zg(e)&&("[object Error]"===Yg(e)||e instanceof Error)}function Gg(e){return"function"==typeof e}function Kg(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function Yg(e){return Object.prototype.toString.call(e)}function Xg(e,t){if(!t||!zg(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function Jg(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Qg(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i=0){var s=r.indexOf("\n",o+1);r=r.substring(s+1)}this.stack=r}}}function cy(e,t){return"string"==typeof e?e.length=0;a--)if(u[a]!==l[a])return!1;for(a=u.length-1;a>=0;a--)if(!vy(e[s=u[a]],t[s],n,r))return!1;return!0}(e,t,n,r))}return n?e===t:e==t}function by(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function Dy(e,t,n){vy(e,t,!1)&&fy(e,t,n,"notDeepEqual",Dy)}function wy(e,t,n){vy(e,t,!0)&&fy(e,t,n,"notDeepStrictEqual",wy)}function Cy(e,t,n){e!==t&&fy(e,t,n,"===",Cy)}function xy(e,t,n){e===t&&fy(e,t,n,"!==",xy)}function Ey(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function _y(e,t,n,r){var i;if("function"!=typeof t)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),i=function(e){var t;try{e()}catch(e){t=e}return t}(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!i&&fy(i,n,"Missing expected exception"+r);var o="string"==typeof r,s=!e&&i&&!n;if((!e&&Wg(i)&&o&&Ey(i,n)||s)&&fy(i,n,"Got unwanted exception"+r),e&&i&&n&&!Ey(i,n)||!e&&i)throw i}function ky(e,t,n){_y(!0,e,t,n)}function Ty(e,t,n){_y(!1,e,t,n)}function Sy(e){if(e)throw e}sy.AssertionError=ly,Ng(ly,Error),sy.fail=fy,sy.ok=hy,sy.equal=dy,sy.notEqual=my,sy.deepEqual=gy,sy.deepStrictEqual=yy,sy.notDeepEqual=Dy,sy.notDeepStrictEqual=wy,sy.strictEqual=Cy,sy.notStrictEqual=xy,sy.throws=ky,sy.doesNotThrow=Ty,sy.ifError=Sy;var Ay=n(Object.freeze({__proto__:null,default:sy,AssertionError:ly,fail:fy,ok:hy,assert:hy,equal:dy,notEqual:my,deepEqual:gy,deepStrictEqual:yy,notDeepEqual:Dy,notDeepStrictEqual:wy,strictEqual:Cy,notStrictEqual:xy,throws:ky,doesNotThrow:Ty,ifError:Sy}));const Oy=Ay,{builders:{line:Fy,hardline:Ny,breakParent:Iy,indent:Py,lineSuffix:My,join:Ly,cursor:jy}}=ec,{hasNewline:By,skipNewline:Ry,skipSpaces:$y,isPreviousLineEmpty:Hy,addLeadingComment:Uy,addDanglingComment:qy,addTrailingComment:zy}=dl,Vy=new WeakMap;function Wy(e,t,n){if(!e)return;const{printer:r,locStart:i,locEnd:o}=t;if(n){if(r.canAttachComment&&r.canAttachComment(e)){let t;for(t=n.length-1;t>=0&&!(i(n[t])<=i(e)&&o(n[t])<=o(e));--t);return void n.splice(t+1,0,e)}}else if(Vy.has(e))return Vy.get(e);const s=r.getCommentChildNodes&&r.getCommentChildNodes(e,t)||"object"==typeof e&&Object.entries(e).filter(e=>{let[t]=e;return"enclosingNode"!==t&&"precedingNode"!==t&&"followingNode"!==t&&"tokens"!==t&&"comments"!==t}).map(e=>{let[,t]=e;return t});if(s){n||(n=[],Vy.set(e,n));for(const e of s)Wy(e,t,n);return n}}function Gy(e,t,n,r){const{locStart:i,locEnd:o}=n,s=i(t),a=o(t),u=Wy(e,n);let l,c,p=0,f=u.length;for(;p>1,r=u[e],h=i(r),d=o(r);if(h<=s&&a<=d)return Gy(r,t,n,r);if(d<=s)l=r,p=e+1;else{if(!(a<=h))throw new Error("Comment location overlaps with node location");c=r,f=e}}if(r&&"TemplateLiteral"===r.type){const{quasis:e}=r,i=ev(e,t,n);l&&ev(e,l,n)!==i&&(l=null),c&&ev(e,c,n)!==i&&(c=null)}return{enclosingNode:r,precedingNode:l,followingNode:c}}const Ky=()=>!1,Yy=e=>!/[\S\n\u2028\u2029]/.test(e);function Xy(e,t,n,r){const{comment:i,precedingNode:o}=n[r],{locStart:s,locEnd:a}=t;let u=s(i);if(o)for(let l=r-1;l>=0;l--){const{comment:t,precedingNode:r}=n[l];if(r!==o||!Yy(e.slice(a(t),u)))break;u=s(t)}return By(e,u,{backwards:!0})}function Jy(e,t,n,r){const{comment:i,followingNode:o}=n[r],{locStart:s,locEnd:a}=t;let u=a(i);if(o)for(let l=r+1;l0;--u){const{comment:r,precedingNode:s,followingNode:c}=e[u-1];Oy.strictEqual(s,i),Oy.strictEqual(c,o);const p=t.slice(n.locEnd(r),l);if(!a.test(p))break;l=n.locStart(r)}for(const[c,{comment:p}]of e.entries())c1&&c.comments.sort((e,t)=>n.locStart(e)-n.locStart(t));e.length=0}function Zy(e,t){return e.getValue().printed=!0,t.printer.printComment(e,t)}function ev(e,t,n){const r=n.locStart(t)-1;for(let i=1;i!n.has(e)));const o=r===t.cursorNode;if(0===i.length){const e=o?jy:"";return{leading:e,trailing:e}}const s=[],a=[];return e.each(()=>{const r=e.getValue();if(n&&n.has(r))return;const{leading:i,trailing:o}=r;i?s.push(function(e,t){const n=e.getValue(),r=[Zy(e,t)],{printer:i,originalText:o,locStart:s,locEnd:a}=t;if(i.isBlockComment&&i.isBlockComment(n)){const e=By(o,a(n))?By(o,s(n),{backwards:!0})?Ny:Fy:" ";r.push(e)}else r.push(Ny);const u=Ry(o,$y(o,a(n)));return!1!==u&&By(o,u)&&r.push(Ny),r}(e,t)):o&&a.push(function(e,t){const n=e.getValue(),r=Zy(e,t),{printer:i,originalText:o,locStart:s}=t,a=i.isBlockComment&&i.isBlockComment(n);if(By(o,s(n),{backwards:!0})){const e=Hy(o,n,s);return My([Ny,e?Ny:"",r])}let u=[" ",r];return a||(u=[My(u),Iy]),u}(e,t))},"comments"),o&&(s.unshift(jy),a.push(jy)),{leading:s,trailing:a}}var nv={attach:function(e,t,n,r){if(!Array.isArray(e))return;const i=[],{locStart:o,locEnd:s,printer:{handleComments:a={}}}=r,{avoidAstMutation:u,ownLine:l=Ky,endOfLine:c=Ky,remaining:p=Ky}=a,f=e.map((i,o)=>Object.assign(Object.assign({},Gy(t,i,r)),{},{comment:i,text:n,options:r,ast:t,isLastComment:e.length-1===o}));for(const[h,d]of f.entries()){const{comment:e,precedingNode:t,enclosingNode:n,followingNode:r,text:a,options:m,ast:g,isLastComment:y}=d;if("json"===m.parser||"json5"===m.parser||"__js_expression"===m.parser||"__vue_expression"===m.parser){if(o(e)-o(g)<=0){Uy(g,e);continue}if(s(e)-s(g)>=0){zy(g,e);continue}}let v;if(u?v=[d]:(e.enclosingNode=n,e.precedingNode=t,e.followingNode=r,v=[e,a,m,g,y]),Xy(a,m,f,h))e.placement="ownLine",l(...v)||(r?Uy(r,e):t?zy(t,e):qy(n||g,e));else if(Jy(a,m,f,h))e.placement="endOfLine",c(...v)||(t?zy(t,e):r?Uy(r,e):qy(n||g,e));else if(e.placement="remaining",p(...v));else if(t&&r){const e=i.length;e>0&&i[e-1].followingNode!==r&&Qy(i,a,m),i.push(d)}else t?zy(t,e):r?Uy(r,e):qy(n||g,e)}if(Qy(i,n,r),!u)for(const h of e)delete h.precedingNode,delete h.enclosingNode,delete h.followingNode},printComments:function(e,t,n,r){const{leading:i,trailing:o}=tv(e,n,r);return i||o?[i,t,o]:t},printCommentsSeparately:tv,printDanglingComments:function(e,t,n,r){const i=[],o=e.getValue();return o&&o.comments?(e.each(()=>{const n=e.getValue();n.leading||n.trailing||r&&!r(n)||i.push(Zy(e,t))},"comments"),0===i.length?"":n?Ly(Ny,i):Py([Ny,Ly(Ny,i)])):""},getSortedChildNodes:Wy,ensureAllCommentsPrinted:function(e){if(e)for(const t of e){if(!t.printed)throw new Error('Comment "'+t.value.trim()+'" was not printed. Please report this error!');delete t.printed}}};const rv=ls;function iv(e,t){const n=ov(e.stack,t);return-1===n?null:e.stack[n]}function ov(e,t){for(let n=e.length-1;n>=0;n-=2){const r=e[n];if(r&&!Array.isArray(r)&&--t<0)return n}return-1}var sv=class{constructor(e){this.stack=[e]}getName(){const{stack:e}=this,{length:t}=e;return t>1?e[t-2]:null}getValue(){return rv(this.stack)}getNode(){return iv(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)}getParentNode(){return iv(this,(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)+1)}call(e){const{stack:t}=this,{length:n}=t;let r=rv(t);for(var i=arguments.length,o=new Array(i>1?i-1:0),s=1;s1&&void 0!==arguments[1]?arguments[1]:0;const n=ov(this.stack,t+1),r=this.stack.splice(n+1),i=e(this);return this.stack.push(...r),i}each(e){const{stack:t}=this,{length:n}=t;let r=rv(t);for(var i=arguments.length,o=new Array(i>1?i-1:0),s=1;s1?n-1:0),i=1;i{t[r]=e(n,r,i)},...r),t}try(e){const{stack:t}=this,n=[...t];try{return e()}finally{t.length=0,t.push(...n)}}match(){let e=this.stack.length-1,t=null,n=this.stack[e--];for(var r=arguments.length,i=new Array(r),o=0;ofunction(e,t,n,r){let{stripTrailingHardline:i=!1}=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};const o=uv(Object.assign(Object.assign(Object.assign({},n),t),{},{parentParser:n.parser,originalText:e}),{passThrough:!0}),s=bg.parse(e,o),{ast:a}=s;e=s.text;const u=a.comments;delete a.comments,lv.attach(u,a,e,o),o[Symbol.for("comments")]=u||[],o[Symbol.for("tokens")]=a.tokens||[];const l=r(a,o);return lv.ensureAllCommentsPrinted(u),i?"string"==typeof l?l.replace(/(?:\r?\n)*$/,""):av(l):l}(e,t,n,r,i),n)}};const pv=sv,{builders:{hardline:fv,addAlignmentToDoc:hv},utils:{propagateBreaks:dv}}=ec,{printComments:mv}=nv,gv=cv;function yv(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const{printer:r}=t;r.preprocess&&(e=r.preprocess(e,t));const i=new Map,o=new pv(e);let s=a();return n>0&&(s=hv([fv,s],n,t.tabWidth)),dv(s),s;function a(e,t){return void 0===e||e===o?u(t):Array.isArray(e)?o.call(()=>u(t),...e):o.call(()=>u(t),e)}function u(e){const n=o.getValue(),r=n&&"object"==typeof n&&void 0===e;if(r&&i.has(n))return i.get(n);const s=vv(o,t,a,e);return r&&i.set(n,s),s}}function vv(t,n,r,i){const o=t.getValue(),{printer:s}=n;let a,u;if(s.hasPrettierIgnore&&s.hasPrettierIgnore(t))({doc:a,printedComments:u}=function(e,t){const{originalText:n,[Symbol.for("comments")]:r,locStart:i,locEnd:o}=t,s=i(e),a=o(e),u=new Set;for(const l of r)i(l)>=s&&o(l)<=a&&(l.printed=!0,u.add(l));return{doc:n.slice(s,a),printedComments:u}}(o,n));else{if(o)try{a=gv.printSubtree(t,r,n,yv)}catch(t){if(e.PRETTIER_DEBUG)throw t}a||(a=s.print(t,n,r,i))}return s.willPrintOwnComments&&s.willPrintOwnComments(t,n)||(a=mv(t,a,n,u)),a}var bv=yv;const Dv=Ay,wv=nv;function Cv(e){let t=e.length-1;for(;;){const n=e[t];if(!n||"Program"!==n.type&&"File"!==n.type)break;t--}return e.slice(0,t+1)}function xv(e,t,n,r){let i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],o=arguments.length>5?arguments[5]:void 0;const{locStart:s,locEnd:a}=n,u=s(e),l=a(e);if(!(t>l||tr);const a=e.slice(r,i).search(/\S/),u=-1===a;if(!u)for(r+=a;i>r&&!/\S/.test(e[i-1]);--i);const l=xv(n,r,t,(e,n)=>kv(t,e,n),[],"rangeStart"),c=u?l:xv(n,i,t,e=>kv(t,e),[],"rangeEnd");if(!l||!c)return{rangeStart:0,rangeEnd:0};let p,f;if((e=>{let{parser:t}=e;return"json"===t||"json5"===t||"json-stringify"===t})(t)){const e=function(e,t){const n=[e.node,...e.parentNodes],r=new Set([t.node,...t.parentNodes]);return n.find(e=>Ev.has(e.type)&&r.has(e))}(l,c);p=e,f=e}else({startNode:p,endNode:f}=function(e,t,n){let{locStart:r,locEnd:i}=n,o=e.node,s=t.node;if(o===s)return{startNode:o,endNode:s};const a=r(e.node);for(const l of Cv(t.parentNodes)){if(!(r(l)>=a))break;s=l}const u=i(t.node);for(const l of Cv(e.parentNodes)){if(!(i(l)<=u))break;o=l}return{startNode:o,endNode:s}}(l,c,t));return{rangeStart:Math.min(o(p),o(f)),rangeEnd:Math.max(s(p),s(f))}},findNodeAtOffset:xv};const Sv=i,{printer:{printDocToString:Av},debug:{printDocToDebug:Ov}}=ec,{getAlignmentSize:Fv}=dl,{guessEndOfLine:Nv,convertEndOfLineToChars:Iv,countEndOfLineChars:Pv,normalizeEndOfLine:Mv}=ml,Lv=Og.normalize,jv=Fg,Bv=nv,Rv=bg,$v=bv,Hv=Tv,Uv=Symbol("cursor");function qv(e,t,n){const r=t.comments;return r&&(delete t.comments,Bv.attach(r,t,e,n)),n[Symbol.for("comments")]=r||[],n[Symbol.for("tokens")]=t.tokens||[],n.originalText=e,r}function zv(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(!e||0===e.trim().length)return{formatted:"",cursorOffset:-1,comments:[]};const{ast:r,text:i}=Rv.parse(e,t);if(t.cursorOffset>=0){const e=Hv.findNodeAtOffset(r,t.cursorOffset,t);e&&e.node&&(t.cursorNode=e.node)}const o=qv(i,r,t),s=$v(r,t,n),a=Av(s,t);if(Bv.ensureAllCommentsPrinted(o),n>0){const e=a.formatted.trim();void 0!==a.cursorNodeStart&&(a.cursorNodeStart-=a.formatted.indexOf(e)),a.formatted=e+Iv(t.endOfLine)}if(t.cursorOffset>=0){let e,n,r,s,u;if(t.cursorNode&&a.cursorNodeText?(e=t.locStart(t.cursorNode),n=i.slice(e,t.locEnd(t.cursorNode)),r=t.cursorOffset-e,s=a.cursorNodeStart,u=a.cursorNodeText):(e=0,n=i,r=t.cursorOffset,s=0,u=a.formatted),n===u)return{formatted:a.formatted,cursorOffset:s+r,comments:o};const l=[...n];l.splice(r,0,Uv);const c=[...u],p=Sv.diffArrays(l,c);let f=s;for(const t of p)if(t.removed){if(t.value.includes(Uv))break}else f+=t.count;return{formatted:a.formatted,cursorOffset:f,comments:o}}return{formatted:a.formatted,cursorOffset:-1,comments:o}}function Vv(e,t,n){return"number"!=typeof t||Number.isNaN(t)||t<0||t>e.length?n:t}function Wv(e,t){let{cursorOffset:n,rangeStart:r,rangeEnd:i}=t;return n=Vv(e,n,-1),r=Vv(e,r,0),i=Vv(e,i,e.length),Object.assign(Object.assign({},t),{},{cursorOffset:n,rangeStart:r,rangeEnd:i})}function Gv(e,t){let{cursorOffset:n,rangeStart:r,rangeEnd:i,endOfLine:o}=Wv(e,t);const s="\ufeff"===e.charAt(0);if(s&&(e=e.slice(1),n--,r--,i--),"auto"===o&&(o=Nv(e)),e.includes("\r")){const t=t=>Pv(e.slice(0,Math.max(t,0)),"\r\n");n-=t(n),r-=t(r),i-=t(i),e=Mv(e)}return{hasBOM:s,text:e,options:Wv(e,Object.assign(Object.assign({},t),{},{cursorOffset:n,rangeStart:r,rangeEnd:i,endOfLine:o}))}}function Kv(e,t){const n=Rv.resolveParser(t);return!n.hasPragma||n.hasPragma(e)}function Yv(e,t){let n,{hasBOM:r,text:i,options:o}=Gv(e,Lv(t));return o.rangeStart>=o.rangeEnd&&""!==i||o.requirePragma&&!Kv(i,o)?{formatted:e,cursorOffset:t.cursorOffset,comments:[]}:(o.rangeStart>0||o.rangeEndi&&t.cursorOffset<=o?t.cursorOffset-i:-1,endOfLine:"lf"}),l),p=c.formatted.trimEnd();let{cursorOffset:f}=t;f>o?f+=p.length-s.length:c.cursorOffset>=0&&(f=c.cursorOffset+i);let h=r.slice(0,i)+p+r.slice(o);if("lf"!==t.endOfLine){const e=Iv(t.endOfLine);f>=0&&"\r\n"===e&&(f+=Pv(h.slice(0,f),"\n")),h=h.replace(/\n/g,e)}return{formatted:h,cursorOffset:f,comments:c.comments}}(i,o):(!o.requirePragma&&o.insertPragma&&o.printer.insertPragma&&!Kv(i,o)&&(i=o.printer.insertPragma(i)),n=zv(i,o)),r&&(n.formatted="\ufeff"+n.formatted,n.cursorOffset>=0&&n.cursorOffset++),n)}var Xv={formatWithCursor:Yv,parse(e,t,n){const{text:r,options:i}=Gv(e,Lv(t)),o=Rv.parse(r,i);return n&&(o.ast=jv(o.ast,i)),o},formatAST(e,t){t=Lv(t);const n=$v(e,t);return Av(n,t)},formatDoc:(e,t)=>Yv(Ov(e),Object.assign(Object.assign({},t),{},{parser:"__js_expression"})).formatted,printToDoc(e,t){t=Lv(t);const{ast:n,text:r}=Rv.parse(e,t);return qv(r,n,t),$v(n,t)},printDocToString:(e,t)=>Av(e,Lv(t))};const{getMaxContinuousCount:Jv,getStringWidth:Qv,getAlignmentSize:Zv,getIndentSize:eb,skip:tb,skipWhitespace:nb,skipSpaces:rb,skipNewline:ib,skipToLineEnd:ob,skipEverythingButNewLine:sb,skipInlineComment:ab,skipTrailingComment:ub,hasNewline:lb,hasNewlineInRange:cb,hasSpaces:pb,isNextLineEmpty:fb,isNextLineEmptyAfterIndex:hb,isPreviousLineEmpty:db,getNextNonSpaceNonCommentCharacterIndex:mb,makeString:gb,addLeadingComment:yb,addDanglingComment:vb,addTrailingComment:bb}=dl;var Db={getMaxContinuousCount:Jv,getStringWidth:Qv,getAlignmentSize:Zv,getIndentSize:eb,skip:tb,skipWhitespace:nb,skipSpaces:rb,skipNewline:ib,skipToLineEnd:ob,skipEverythingButNewLine:sb,skipInlineComment:ab,skipTrailingComment:ub,hasNewline:lb,hasNewlineInRange:cb,hasSpaces:pb,isNextLineEmpty:fb,isNextLineEmptyAfterIndex:hb,isPreviousLineEmpty:db,getNextNonSpaceNonCommentCharacterIndex:mb,makeString:gb,addLeadingComment:yb,addDanglingComment:vb,addTrailingComment:bb};const wb=["languageId"];var Cb=function(e,t){const{languageId:n}=e,r=cs(e,wb);return Object.assign(Object.assign({linguistLanguageId:n},r),t(e))},xb={},Eb={exports:{}};!function(){function e(e){if(null==e)return!1;switch(e.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 t(e){switch(e.type){case"IfStatement":return null!=e.alternate?e.alternate:e.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return e.body}return null}Eb.exports={isExpression:function(e){if(null==e)return!1;switch(e.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},isStatement:e,isIterationStatement:function(e){if(null==e)return!1;switch(e.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1},isSourceElement:function(t){return e(t)||null!=t&&"FunctionDeclaration"===t.type},isProblematicIfStatement:function(e){var n;if("IfStatement"!==e.type)return!1;if(null==e.alternate)return!1;n=e.consequent;do{if("IfStatement"===n.type&&null==n.alternate)return!0;n=t(n)}while(n);return!1},trailingStatement:t}}();var _b={exports:{}};!function(){var e,t,n,r,i,o;function s(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(Math.floor((e-65536)/1024)+55296)+String.fromCharCode((e-65536)%1024+56320)}for(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\u0A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0D57\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\uAB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-\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-\u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F57\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]/},n=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279],r=new Array(128),o=0;o<128;++o)r[o]=o>=97&&o<=122||o>=65&&o<=90||36===o||95===o;for(i=new Array(128),o=0;o<128;++o)i[o]=o>=97&&o<=122||o>=65&&o<=90||o>=48&&o<=57||36===o||95===o;_b.exports={isDecimalDigit:function(e){return 48<=e&&e<=57},isHexDigit:function(e){return 48<=e&&e<=57||97<=e&&e<=102||65<=e&&e<=70},isOctalDigit:function(e){return e>=48&&e<=55},isWhiteSpace:function(e){return 32===e||9===e||11===e||12===e||160===e||e>=5760&&n.indexOf(e)>=0},isLineTerminator:function(e){return 10===e||13===e||8232===e||8233===e},isIdentifierStartES5:function(e){return e<128?r[e]:t.NonAsciiIdentifierStart.test(s(e))},isIdentifierPartES5:function(e){return e<128?i[e]:t.NonAsciiIdentifierPart.test(s(e))},isIdentifierStartES6:function(t){return t<128?r[t]:e.NonAsciiIdentifierStart.test(s(t))},isIdentifierPartES6:function(t){return t<128?i[t]:e.NonAsciiIdentifierPart.test(s(t))}}}();var kb={exports:{}};!function(){var e=_b.exports;function t(e,t){return!(!t&&"yield"===e)&&n(e,t)}function n(e,t){if(t&&function(e){switch(e){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}(e))return!0;switch(e.length){case 2:return"if"===e||"in"===e||"do"===e;case 3:return"var"===e||"for"===e||"new"===e||"try"===e;case 4:return"this"===e||"else"===e||"case"===e||"void"===e||"with"===e||"enum"===e;case 5:return"while"===e||"break"===e||"catch"===e||"throw"===e||"const"===e||"yield"===e||"class"===e||"super"===e;case 6:return"return"===e||"typeof"===e||"delete"===e||"switch"===e||"export"===e||"import"===e;case 7:return"default"===e||"finally"===e||"extends"===e;case 8:return"function"===e||"continue"===e||"debugger"===e;case 10:return"instanceof"===e;default:return!1}}function r(e,n){return"null"===e||"true"===e||"false"===e||t(e,n)}function i(e,t){return"null"===e||"true"===e||"false"===e||n(e,t)}function o(t){var n,r,i;if(0===t.length)return!1;if(i=t.charCodeAt(0),!e.isIdentifierStartES5(i))return!1;for(n=1,r=t.length;n=r)return!1;if(!(56320<=(o=t.charCodeAt(n))&&o<=57343))return!1;i=1024*(i-55296)+(o-56320)+65536}if(!s(i))return!1;s=e.isIdentifierPartES6}return!0}kb.exports={isKeywordES5:t,isKeywordES6:n,isReservedWordES5:r,isReservedWordES6:i,isRestrictedWord:function(e){return"eval"===e||"arguments"===e},isIdentifierNameES5:o,isIdentifierNameES6:s,isIdentifierES5:function(e,t){return o(e)&&!r(e,t)},isIdentifierES6:function(e,t){return s(e)&&!i(e,t)}}}(),xb.ast=Eb.exports,xb.code=_b.exports,xb.keyword=kb.exports;const Tb=xb.keyword.isIdentifierNameES5,{getLast:Sb,hasNewline:Ab,skipWhitespace:Ob,isNonEmptyArray:Fb,isNextLineEmptyAfterIndex:Nb,getStringWidth:Ib}=dl,{locStart:Pb,locEnd:Mb,hasSameLocStart:Lb}=om,jb="(?:(?=.)\\s)",Bb=new RegExp("^".concat(jb,"*:")),Rb=new RegExp("^".concat(jb,"*::"));function $b(e){return"Block"===e.type||"CommentBlock"===e.type||"MultiLine"===e.type}function Hb(e){return"Line"===e.type||"CommentLine"===e.type||"SingleLine"===e.type||"HashbangComment"===e.type||"HTMLOpen"===e.type||"HTMLClose"===e.type}const Ub=new Set(["ExportDefaultDeclaration","ExportDefaultSpecifier","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration"]);function qb(e){return e&&Ub.has(e.type)}function zb(e){return"NumericLiteral"===e.type||"Literal"===e.type&&"number"==typeof e.value}function Vb(e){return"StringLiteral"===e.type||"Literal"===e.type&&"string"==typeof e.value}function Wb(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type}function Gb(e){return eD(e)&&"Identifier"===e.callee.type&&("async"===e.callee.name||"inject"===e.callee.name||"fakeAsync"===e.callee.name)}function Kb(e){return"JSXElement"===e.type||"JSXFragment"===e.type}function Yb(e){return"get"===e.kind||"set"===e.kind}function Xb(e){return Yb(e)||Lb(e,e.value)}const Jb=new Set(["BinaryExpression","LogicalExpression","NGPipeExpression"]),Qb=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"]),Zb=/^(?:skip|[fx]?(?:it|describe|test))$/;function eD(e){return e&&("CallExpression"===e.type||"OptionalCallExpression"===e.type)}function tD(e){return e&&("MemberExpression"===e.type||"OptionalMemberExpression"===e.type)}function nD(e){return/^(?:\d+|\d+\.\d+)$/.test(e)}function rD(e){return e.quasis.some(e=>e.value.raw.includes("\n"))}function iD(e){return e.extra?e.extra.raw:e.raw}const oD={"==":!0,"!=":!0,"===":!0,"!==":!0},sD={"*":!0,"/":!0,"%":!0},aD={">>":!0,">>>":!0,"<<":!0},uD={};for(const[t,tY]of[["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].entries())for(const e of tY)uD[e]=t;function lD(e){return uD[e]}const cD=new WeakMap;function pD(e){if(cD.has(e))return cD.get(e);const 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),cD.set(e,t),t}const fD=new WeakMap;function hD(e){if(fD.has(e))return fD.get(e);let t=e.arguments;return"ImportExpression"===e.type&&(t=[e.source],e.attributes&&t.push(e.attributes)),fD.set(e,t),t}function dD(e){return"prettier-ignore"===e.value.trim()&&!e.unignore}function mD(e){return e&&(e.prettierIgnore||vD(e,gD.PrettierIgnore))}const gD={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},yD=(e,t)=>{if("function"==typeof e&&(t=e,e=0),e||t)return(n,r,i)=>!(e&gD.Leading&&!n.leading||e&gD.Trailing&&!n.trailing||e&gD.Dangling&&(n.leading||n.trailing)||e&gD.Block&&!$b(n)||e&gD.Line&&!Hb(n)||e&gD.First&&0!==r||e&gD.Last&&r!==i.length-1||e&gD.PrettierIgnore&&!dD(n)||t&&!t(n))};function vD(e,t,n){if(!e||!Fb(e.comments))return!1;const r=yD(t,n);return!r||e.comments.some(r)}function bD(e,t,n){if(!e||!Array.isArray(e.comments))return[];const r=yD(t,n);return r?e.comments.filter(r):e.comments}function DD(e){return eD(e)||"NewExpression"===e.type||"ImportExpression"===e.type}var wD={getFunctionParameters:pD,iterateFunctionParametersPath:function(e,t){const n=e.getValue();let r=0;const i=e=>t(e,r++);n.this&&e.call(i,"this"),Array.isArray(n.parameters)?e.each(i,"parameters"):Array.isArray(n.params)&&e.each(i,"params"),n.rest&&e.call(i,"rest")},getCallArguments:hD,iterateCallArgumentsPath:function(e,t){const n=e.getValue();"ImportExpression"===n.type?(e.call(e=>t(e,0),"source"),n.attributes&&e.call(e=>t(e,1),"attributes")):e.each(t,"arguments")},hasRestParameter:function(e){if(e.rest)return!0;const t=pD(e);return t.length>0&&"RestElement"===Sb(t).type},getLeftSide:function(e){return e.expressions?e.expressions[0]:e.left||e.test||e.callee||e.object||e.tag||e.argument||e.expression},getLeftSidePathName:function(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.")},getParentExportDeclaration:function(e){const t=e.getParentNode();return"declaration"===e.getName()&&qb(t)?t:null},getTypeScriptMappedTypeModifier:function(e,t){return"+"===e?"+"+t:"-"===e?"-"+t:t},hasFlowAnnotationComment:function(e){return Fb(e)&&$b(e[0])&&Rb.test(e[0].value)},hasFlowShorthandAnnotationComment:function(e){return e.extra&&e.extra.parenthesized&&Fb(e.trailingComments)&&$b(e.trailingComments[0])&&Bb.test(e.trailingComments[0].value)},hasLeadingOwnLineComment:function(e,t){return Kb(t)?mD(t):vD(t,gD.Leading,t=>Ab(e,Mb(t)))},hasNakedLeftSide:function(e){return"AssignmentExpression"===e.type||"BinaryExpression"===e.type||"LogicalExpression"===e.type||"NGPipeExpression"===e.type||"ConditionalExpression"===e.type||eD(e)||tD(e)||"SequenceExpression"===e.type||"TaggedTemplateExpression"===e.type||"BindExpression"===e.type||"UpdateExpression"===e.type&&!e.prefix||"TSAsExpression"===e.type||"TSNonNullExpression"===e.type},hasNode:function e(t,n){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t))return t.some(t=>e(t,n));const r=n(t);return"boolean"==typeof r?r:Object.values(t).some(t=>e(t,n))},hasIgnoreComment:function(e){return mD(e.getValue())},hasNodeIgnoreComment:mD,identity:function(e){return e},isBinaryish:function(e){return Jb.has(e.type)},isBlockComment:$b,isCallLikeExpression:DD,isEnabledHackPipeline:function(e){return Boolean(e.__isUsingHackPipeline)},isLineComment:Hb,isPrettierIgnoreComment:dD,isCallExpression:eD,isMemberExpression:tD,isExportDeclaration:qb,isFlowAnnotationComment:function(e,t){const n=Pb(t),r=Ob(e,Mb(t));return!1!==r&&"/*"===e.slice(n,n+2)&&"*/"===e.slice(r,r+2)},isFunctionCompositionArgs:function(e){if(e.length<=1)return!1;let t=0;for(const n of e)if(Wb(n)){if(t+=1,t>1)return!0}else if(eD(n))for(const e of n.arguments)if(Wb(e))return!0;return!1},isFunctionNotation:Xb,isFunctionOrArrowExpression:Wb,isGetterOrSetter:Yb,isJestEachTemplateLiteral:function(e,t){const n=/^[fx]?(?:describe|it|test)$/;return"TaggedTemplateExpression"===t.type&&t.quasi===e&&"MemberExpression"===t.tag.type&&"Identifier"===t.tag.property.type&&"each"===t.tag.property.name&&("Identifier"===t.tag.object.type&&n.test(t.tag.object.name)||"MemberExpression"===t.tag.object.type&&"Identifier"===t.tag.object.property.type&&("only"===t.tag.object.property.name||"skip"===t.tag.object.property.name)&&"Identifier"===t.tag.object.object.type&&n.test(t.tag.object.object.name))},isJsxNode:Kb,isLiteral:function(e){return"BooleanLiteral"===e.type||"DirectiveLiteral"===e.type||"Literal"===e.type||"NullLiteral"===e.type||"NumericLiteral"===e.type||"BigIntLiteral"===e.type||"DecimalLiteral"===e.type||"RegExpLiteral"===e.type||"StringLiteral"===e.type||"TemplateLiteral"===e.type||"TSTypeLiteral"===e.type||"JSXText"===e.type},isLongCurriedCallExpression:function(e){const t=e.getValue(),n=e.getParentNode();return eD(t)&&eD(n)&&n.callee===t&&t.arguments.length>n.arguments.length&&n.arguments.length>0},isSimpleCallArgument:function e(t,n){if(n>=2)return!1;const r=t=>e(t,n+1),i="Literal"===t.type&&"regex"in t&&t.regex.pattern||"RegExpLiteral"===t.type&&t.pattern;return!(i&&Ib(i)>5)&&("Literal"===t.type||"BigIntLiteral"===t.type||"DecimalLiteral"===t.type||"BooleanLiteral"===t.type||"NullLiteral"===t.type||"NumericLiteral"===t.type||"RegExpLiteral"===t.type||"StringLiteral"===t.type||"Identifier"===t.type||"ThisExpression"===t.type||"Super"===t.type||"PrivateName"===t.type||"PrivateIdentifier"===t.type||"ArgumentPlaceholder"===t.type||"Import"===t.type||("TemplateLiteral"===t.type?t.quasis.every(e=>!e.value.raw.includes("\n"))&&t.expressions.every(r):"ObjectExpression"===t.type?t.properties.every(e=>!e.computed&&(e.shorthand||e.value&&r(e.value))):"ArrayExpression"===t.type?t.elements.every(e=>null===e||r(e)):DD(t)?("ImportExpression"===t.type||e(t.callee,n))&&hD(t).every(r):tD(t)?e(t.object,n)&&e(t.property,n):"UnaryExpression"!==t.type||"!"!==t.operator&&"-"!==t.operator?"TSNonNullExpression"===t.type&&e(t.expression,n):e(t.argument,n)))},isMemberish:function(e){return tD(e)||"BindExpression"===e.type&&Boolean(e.object)},isNumericLiteral:zb,isSignedNumericLiteral:function(e){return"UnaryExpression"===e.type&&("+"===e.operator||"-"===e.operator)&&zb(e.argument)},isObjectProperty:function(e){return e&&("ObjectProperty"===e.type||"Property"===e.type&&!e.method&&"init"===e.kind)},isObjectType:function(e){return"ObjectTypeAnnotation"===e.type||"TSTypeLiteral"===e.type||"TSMappedType"===e.type},isObjectTypePropertyAFunction:function(e){return!("ObjectTypeProperty"!==e.type&&"ObjectTypeInternalSlot"!==e.type||"FunctionTypeAnnotation"!==e.value.type||e.static||Xb(e))},isSimpleType:function(e){return!!e&&(!("GenericTypeAnnotation"!==e.type&&"TSTypeReference"!==e.type||e.typeParameters)||!!Qb.has(e.type))},isSimpleNumber:nD,isSimpleTemplateLiteral:function(e){let t="expressions";"TSTemplateLiteralType"===e.type&&(t="types");const n=e[t];return 0!==n.length&&n.every(e=>{if(vD(e))return!1;if("Identifier"===e.type||"ThisExpression"===e.type)return!0;if(tD(e)){let t=e;for(;tD(t);){if("Identifier"!==t.property.type&&"Literal"!==t.property.type&&"StringLiteral"!==t.property.type&&"NumericLiteral"!==t.property.type)return!1;if(t=t.object,vD(t))return!1}return"Identifier"===t.type||"ThisExpression"===t.type}return!1})},isStringLiteral:Vb,isStringPropSafeToUnquote:function(e,t){return"json"!==t.parser&&Vb(e.key)&&iD(e.key).slice(1,-1)===e.key.value&&(Tb(e.key.value)&&!("babel-ts"===t.parser&&"ClassProperty"===e.type||"typescript"===t.parser&&"PropertyDefinition"===e.type)||nD(e.key.value)&&String(Number(e.key.value))===e.key.value&&("babel"===t.parser||"espree"===t.parser||"meriyah"===t.parser||"__babel_estree"===t.parser))},isTemplateOnItsOwnLine:function(e,t){return("TemplateLiteral"===e.type&&rD(e)||"TaggedTemplateExpression"===e.type&&rD(e.quasi))&&!Ab(t,Pb(e),{backwards:!0})},isTestCall:function e(t,n){if("CallExpression"!==t.type)return!1;if(1===t.arguments.length){if(Gb(t)&&n&&e(n))return Wb(t.arguments[0]);if(function(e){return"Identifier"===e.callee.type&&/^(?:before|after)(?:Each|All)$/.test(e.callee.name)&&1===e.arguments.length}(t))return Gb(t.arguments[0])}else if((2===t.arguments.length||3===t.arguments.length)&&("Identifier"===t.callee.type&&Zb.test(t.callee.name)||function(e){return tD(e.callee)&&"Identifier"===e.callee.object.type&&"Identifier"===e.callee.property.type&&Zb.test(e.callee.object.name)&&("only"===e.callee.property.name||"skip"===e.callee.property.name)}(t))&&(function(e){return"TemplateLiteral"===e.type}(t.arguments[0])||Vb(t.arguments[0])))return!(t.arguments[2]&&!zb(t.arguments[2]))&&((2===t.arguments.length?Wb(t.arguments[1]):function(e){return"FunctionExpression"===e.type||"ArrowFunctionExpression"===e.type&&"BlockStatement"===e.body.type}(t.arguments[1])&&pD(t.arguments[1]).length<=1)||Gb(t.arguments[1]));return!1},isTheOnlyJsxElementInMarkdown:function(e,t){if("markdown"!==e.parentParser&&"mdx"!==e.parentParser)return!1;const n=t.getNode();if(!n.expression||!Kb(n.expression))return!1;const r=t.getParentNode();return"Program"===r.type&&1===r.body.length},isTSXFile:function(e){return e.filepath&&/\.tsx$/i.test(e.filepath)},isTypeAnnotationAFunction:function(e){return!("TypeAnnotation"!==e.type&&"TSTypeAnnotation"!==e.type||"FunctionTypeAnnotation"!==e.typeAnnotation.type||e.static||Lb(e,e.typeAnnotation))},isNextLineEmpty:(e,t)=>{let{originalText:n}=t;return Nb(n,Mb(e))},needsHardlineAfterDanglingComment:function(e){if(!vD(e))return!1;const t=Sb(bD(e,gD.Dangling));return t&&!$b(t)},rawText:iD,shouldPrintComma:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"es5";return"es5"===e.trailingComma&&"es5"===t||"all"===e.trailingComma&&("all"===t||"es5"===t)},isBitwiseOperator:function(e){return Boolean(aD[e])||"|"===e||"^"===e||"&"===e},shouldFlatten:function(e,t){return lD(t)===lD(e)&&"**"!==e&&(!oD[e]||!oD[t])&&!("%"===t&&sD[e]||"%"===e&&sD[t])&&(t===e||!sD[t]||!sD[e])&&(!aD[e]||!aD[t])},startsWithNoLookaheadToken:function e(t,n){switch((t=function(e){for(;e.left;)e=e.left;return e}(t)).type){case"FunctionExpression":case"ClassExpression":case"DoExpression":return n;case"ObjectExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return e(t.object,n);case"TaggedTemplateExpression":return"FunctionExpression"!==t.tag.type&&e(t.tag,n);case"CallExpression":case"OptionalCallExpression":return"FunctionExpression"!==t.callee.type&&e(t.callee,n);case"ConditionalExpression":return e(t.test,n);case"UpdateExpression":return!t.prefix&&e(t.argument,n);case"BindExpression":return t.object&&e(t.object,n);case"SequenceExpression":return e(t.expressions[0],n);case"TSAsExpression":case"TSNonNullExpression":return e(t.expression,n);default:return!1}},getPrecedence:lD,hasComment:vD,getComments:bD,CommentCheckFlags:gD};const CD=ls,{getStringWidth:xD,getIndentSize:ED}=dl,{builders:{join:_D,hardline:kD,softline:TD,group:SD,indent:AD,align:OD,lineSuffixBoundary:FD,addAlignmentToDoc:ND},printer:{printDocToString:ID},utils:{mapDoc:PD}}=ec,{isBinaryish:MD,isJestEachTemplateLiteral:LD,isSimpleTemplateLiteral:jD,hasComment:BD,isMemberExpression:RD}=wD;function $D(e){return e.replace(/([\\`]|\${)/g,"\\$1")}var HD={printTemplateLiteral:function(e,t,n){const r=e.getValue();if("TemplateLiteral"===r.type&&LD(r,e.getParentNode())){const r=function(e,t,n){const r=e.getNode(),i=r.quasis[0].value.raw.trim().split(/\s*\|\s*/);if(i.length>1||i.some(e=>e.length>0)){t.__inJestEach=!0;const o=e.map(n,"expressions");t.__inJestEach=!1;const s=[],a=o.map(e=>"${"+ID(e,Object.assign(Object.assign({},t),{},{printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"})).formatted+"}"),u=[{hasLineBreak:!1,cells:[]}];for(let e=1;ee.cells.length)),c=Array.from({length:l}).fill(0),p=[{cells:i},...u.filter(e=>e.cells.length>0)];for(const{cells:e}of p.filter(e=>!e.hasLineBreak))for(const[t,n]of e.entries())c[t]=Math.max(c[t],xD(n));return s.push(FD,"`",AD([kD,_D(kD,p.map(e=>_D(" | ",e.cells.map((t,n)=>e.hasLineBreak?t:t+" ".repeat(c[n]-xD(t))))))]),kD,"`"),s}}(e,n,t);if(r)return r}let i="expressions";"TSTemplateLiteralType"===r.type&&(i="types");const o=[];let s=e.map(t,i);const a=jD(r);return a&&(s=s.map(e=>ID(e,Object.assign(Object.assign({},n),{},{printWidth:Number.POSITIVE_INFINITY})).formatted)),o.push(FD,"`"),e.each(e=>{const u=e.getName();if(o.push(t()),ufunction(e,t){const n=e.getValue();let r=t();return BD(n)&&(r=SD([AD([TD,r]),TD])),["${",r,FD,"}"]}(e,t),"expressions")},escapeTemplateCharacters:function(e,t){return PD(e,e=>"string"==typeof e?t?e.replace(/(\\*)`/g,"$1$1\\`"):$D(e):e)},uncookTemplateElementValue:$D};const{builders:{indent:UD,softline:qD,literalline:zD,dedentToRoot:VD}}=ec,{escapeTemplateCharacters:WD}=HD;var GD=function(e,t,n){let r=e.getValue().quasis[0].value.raw.replace(/((?:\\\\)*)\\`/g,(e,t)=>"\\".repeat(t.length/2)+"`");const i=function(e){const t=e.match(/^([^\S\n]*)\S/m);return null===t?"":t[1]}(r),o=""!==i;o&&(r=r.replace(new RegExp("^".concat(i),"gm"),""));const s=WD(n(r,{parser:"markdown",__inJsTemplate:!0},{stripTrailingHardline:!0}),!0);return["`",o?UD([qD,s]):[zD,VD(s)],qD,"`"]};const{isNonEmptyArray:KD}=dl,{builders:{indent:YD,hardline:XD,softline:JD},utils:{mapDoc:QD,replaceEndOfLine:ZD,cleanDoc:ew}}=ec,{printTemplateExpressions:tw}=HD;var nw=function(e,t,n){const r=e.getValue(),i=r.quasis.map(e=>e.value.raw);let o=0;return function(e,t,n){if(1===t.quasis.length&&!t.quasis[0].value.raw.trim())return"``";const r=function(e,t){if(!KD(t))return e;let n=0;const r=QD(ew(e),e=>"string"==typeof e&&e.includes("@prettier-placeholder")?e.split(/@prettier-placeholder-(\d+)-id/).map((e,r)=>r%2==0?ZD(e):(n++,t[e])):e);return t.length===n?r:null}(e,n);if(!r)throw new Error("Couldn't insert all the expressions");return["`",YD([XD,r]),JD,"`"]}(n(i.reduce((e,t,n)=>0===n?t:e+"@prettier-placeholder-"+o+++"-id"+t,""),{parser:"scss"},{stripTrailingHardline:!0}),r,tw(e,t))};const{builders:{indent:rw,join:iw,hardline:ow}}=ec,{escapeTemplateCharacters:sw,printTemplateExpressions:aw}=HD;function uw(e){const t=[];let n=!1;const r=e.map(e=>e.trim());for(const[i,o]of r.entries())""!==o&&(""===r[i-1]&&n?t.push([ow,o]):t.push(o),n=!0);return 0===t.length?null:iw(ow,t)}var lw=function(e,t,n){const r=e.getValue(),i=r.quasis.length;if(1===i&&""===r.quasis[0].value.raw.trim())return"``";const o=aw(e,t),s=[];for(let a=0;a2&&""===l[0].trim()&&""===l[1].trim(),h=c>2&&""===l[c-1].trim()&&""===l[c-2].trim(),d=l.every(e=>/^\s*(?:#[^\n\r]*)?$/.test(e));if(!t&&/#[^\n\r]*$/.test(l[c-1]))return null;let m=null;m=d?uw(l):n(u,{parser:"graphql"},{stripTrailingHardline:!0}),m?(m=sw(m,!1),!e&&f&&s.push(""),s.push(m),!t&&h&&s.push("")):e||t||!f||s.push(""),p&&s.push(p)}return["`",rw([ow,iw(ow,s)]),ow,"`"]};const{builders:{indent:cw,line:pw,hardline:fw,group:hw},utils:{mapDoc:dw}}=ec,{printTemplateExpressions:mw,uncookTemplateElementValue:gw}=HD;let yw=0;var vw=function(e,t,n,r,i){let{parser:o}=i;const s=e.getValue(),a=yw;yw=yw+1>>>0;const u=e=>"PRETTIER_HTML_PLACEHOLDER_".concat(e,"_").concat(a,"_IN_JS"),l=s.quasis.map((e,t,n)=>t===n.length-1?e.value.cooked:e.value.cooked+u(t)).join(""),c=mw(e,t);if(0===c.length&&0===l.trim().length)return"``";const p=new RegExp(u("(\\d+)"),"g");let f=0;const h=n(l,{parser:o,__onHtmlRoot(e){f=e.children.length}},{stripTrailingHardline:!0}),d=dw(h,e=>{if("string"!=typeof e)return e;const t=[],n=e.split(p);for(let i=0;i1?cw(hw(d)):hw(d),g,"`"])};const{hasComment:bw,CommentCheckFlags:Dw,isObjectProperty:ww}=wD,Cw=GD,xw=nw,Ew=lw,_w=vw;function kw(e){return function(e){const t=e.getValue(),n=e.getParentNode(),r=e.getParentNode(1);return r&&t.quasis&&"JSXExpressionContainer"===n.type&&"JSXElement"===r.type&&"style"===r.openingElement.name.name&&r.openingElement.attributes.some(e=>"jsx"===e.name.name)||n&&"TaggedTemplateExpression"===n.type&&"Identifier"===n.tag.type&&"css"===n.tag.name||n&&"TaggedTemplateExpression"===n.type&&"MemberExpression"===n.tag.type&&"css"===n.tag.object.name&&("global"===n.tag.property.name||"resolve"===n.tag.property.name)}(e)||function(e){const t=e.getParentNode();if(!t||"TaggedTemplateExpression"!==t.type)return!1;const n="ParenthesizedExpression"===t.tag.type?t.tag.expression:t.tag;switch(n.type){case"MemberExpression":return Sw(n.object)||Aw(n);case"CallExpression":return Sw(n.callee)||"MemberExpression"===n.callee.type&&("MemberExpression"===n.callee.object.type&&(Sw(n.callee.object.object)||Aw(n.callee.object))||"CallExpression"===n.callee.object.type&&Sw(n.callee.object.callee));case"Identifier":return"css"===n.name;default:return!1}}(e)||function(e){const t=e.getParentNode(),n=e.getParentNode(1);return n&&"JSXExpressionContainer"===t.type&&"JSXAttribute"===n.type&&"JSXIdentifier"===n.name.type&&"css"===n.name.name}(e)||function(e){return e.match(e=>"TemplateLiteral"===e.type,(e,t)=>"ArrayExpression"===e.type&&"elements"===t,(e,t)=>ww(e)&&"Identifier"===e.key.type&&"styles"===e.key.name&&"value"===t,...Tw)}(e)?"css":function(e){const t=e.getValue(),n=e.getParentNode();return Ow(t,"GraphQL")||n&&("TaggedTemplateExpression"===n.type&&("MemberExpression"===n.tag.type&&"graphql"===n.tag.object.name&&"experimental"===n.tag.property.name||"Identifier"===n.tag.type&&("gql"===n.tag.name||"graphql"===n.tag.name))||"CallExpression"===n.type&&"Identifier"===n.callee.type&&"graphql"===n.callee.name)}(e)?"graphql":function(e){return Ow(e.getValue(),"HTML")||e.match(e=>"TemplateLiteral"===e.type,(e,t)=>"TaggedTemplateExpression"===e.type&&"Identifier"===e.tag.type&&"html"===e.tag.name&&"quasi"===t)}(e)?"html":function(e){return e.match(e=>"TemplateLiteral"===e.type,(e,t)=>ww(e)&&"Identifier"===e.key.type&&"template"===e.key.name&&"value"===t,...Tw)}(e)?"angular":function(e){const t=e.getValue(),n=e.getParentNode();return n&&"TaggedTemplateExpression"===n.type&&1===t.quasis.length&&"Identifier"===n.tag.type&&("md"===n.tag.name||"markdown"===n.tag.name)}(e)?"markdown":void 0}const Tw=[(e,t)=>"ObjectExpression"===e.type&&"properties"===t,(e,t)=>"CallExpression"===e.type&&"Identifier"===e.callee.type&&"Component"===e.callee.name&&"arguments"===t,(e,t)=>"Decorator"===e.type&&"expression"===t];function Sw(e){return"Identifier"===e.type&&"styled"===e.name}function Aw(e){return/^[A-Z]/.test(e.object.name)&&"extend"===e.property.name}function Ow(e,t){return bw(e,Dw.Block|Dw.Leading,e=>{let{value:n}=e;return n===" ".concat(t," ")})}var Fw=function(e,t,n,r){const i=e.getValue();if("TemplateLiteral"!==i.type||function(e){let{quasis:t}=e;return t.some(e=>{let{value:{cooked:t}}=e;return null===t})}(i))return;const o=kw(e);return o?"markdown"===o?Cw(e,t,n):"css"===o?xw(e,t,n):"graphql"===o?Ew(e,t,n):"html"===o||"angular"===o?_w(e,t,n,r,{parser:o}):void 0:void 0};const{isBlockComment:Nw}=wD,Iw=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),Pw=e=>{for(const t of e.quasis)delete t.value};function Mw(e,t,n){if("Program"===e.type&&delete t.sourceType,"BigIntLiteral"!==e.type&&"BigIntLiteralTypeAnnotation"!==e.type||t.value&&(t.value=t.value.toLowerCase()),"BigIntLiteral"!==e.type&&"Literal"!==e.type||t.bigint&&(t.bigint=t.bigint.toLowerCase()),"DecimalLiteral"===e.type&&(t.value=Number(t.value)),"Literal"===e.type&&t.decimal&&(t.decimal=Number(t.decimal)),"EmptyStatement"===e.type)return null;if("JSXText"===e.type)return null;if("JSXExpressionContainer"===e.type&&("Literal"===e.expression.type||"StringLiteral"===e.expression.type)&&" "===e.expression.value)return null;if("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"!==e.type||"object"!=typeof e.key||!e.key||"Literal"!==e.key.type&&"NumericLiteral"!==e.key.type&&"StringLiteral"!==e.key.type&&"Identifier"!==e.key.type||delete t.key,"JSXElement"===e.type&&"style"===e.openingElement.name.name&&e.openingElement.attributes.some(e=>"jsx"===e.name.name))for(const{type:i,expression:o}of t.children)"JSXExpressionContainer"===i&&"TemplateLiteral"===o.type&&Pw(o);"JSXAttribute"===e.type&&"css"===e.name.name&&"JSXExpressionContainer"===e.value.type&&"TemplateLiteral"===e.value.expression.type&&Pw(t.value.expression),"JSXAttribute"===e.type&&e.value&&"Literal"===e.value.type&&/["']|"|'/.test(e.value.value)&&(t.value.value=t.value.value.replace(/["']|"|'/g,'"'));const r=e.expression||e.callee;if("Decorator"===e.type&&"CallExpression"===r.type&&"Component"===r.callee.name&&1===r.arguments.length){const n=e.expression.arguments[0].properties;for(const[e,r]of t.expression.arguments[0].properties.entries())switch(n[e].key.name){case"styles":"ArrayExpression"===r.value.type&&Pw(r.value.elements[0]);break;case"template":"TemplateLiteral"===r.value.type&&Pw(r.value)}}if("TaggedTemplateExpression"!==e.type||"MemberExpression"!==e.tag.type&&("Identifier"!==e.tag.type||"gql"!==e.tag.name&&"graphql"!==e.tag.name&&"css"!==e.tag.name&&"md"!==e.tag.name&&"markdown"!==e.tag.name&&"html"!==e.tag.name)&&"CallExpression"!==e.tag.type||Pw(t.quasi),"TemplateLiteral"===e.type){const r=e.leadingComments&&e.leadingComments.some(e=>Nw(e)&&["GraphQL","HTML"].some(t=>e.value===" ".concat(t," ")));(r||"CallExpression"===n.type&&"graphql"===n.callee.name||!e.leadingComments)&&Pw(t)}return"InterpreterDirective"===e.type&&(t.value=t.value.trimEnd()),"TSIntersectionType"!==e.type&&"TSUnionType"!==e.type||1!==e.types.length?void 0:t.types[0]}Mw.ignoredProperties=Iw;var Lw=Mw,jw={},Bw={exports:{}};const Rw=e=>{if("string"!=typeof e)throw new TypeError("Expected a string");const t=e.match(/(?:\r?\n)/g)||[];if(0===t.length)return;const n=t.filter(e=>"\r\n"===e).length;return n>t.length-n?"\r\n":"\n"};function $w(){const e=vf;return $w=function(){return e},e}function Hw(){const e=function(e){return e&&e.__esModule?e:{default:e}}(Bw.exports);return Hw=function(){return e},e}Bw.exports=Rw,Bw.exports.graceful=e=>"string"==typeof e&&Rw(e)||"\n",Object.defineProperty(jw,"__esModule",{value:!0}),jw.extract=function(e){const t=e.match(zw);return t?t[0].trimLeft():""},jw.strip=function(e){const t=e.match(zw);return t&&t[0]?e.substring(t[0].length):e},jw.parse=function(e){return Jw(e).pragmas},jw.parseWithComments=Jw,jw.print=function(e){let{comments:t="",pragmas:n={}}=e;const r=(0,Hw().default)(t)||$w().EOL,i=" *",o=Object.keys(n),s=o.map(e=>Qw(e,n[e])).reduce((e,t)=>e.concat(t),[]).map(e=>" * "+e+r).join("");if(!t){if(0===o.length)return"";if(1===o.length&&!Array.isArray(n[o[0]])){const e=n[o[0]];return"".concat("/**"," ").concat(Qw(o[0],e)[0]).concat(" */")}}const a=t.split(r).map(e=>"".concat(i," ").concat(e)).join(r)+r;return"/**"+r+(t?a:"")+(t&&o.length?i+r:"")+s+" */"};const Uw=/\*\/$/,qw=/^\/\*\*/,zw=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Vw=/(^|\s+)\/\/([^\r\n]*)/g,Ww=/^(\r?\n)+/,Gw=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,Kw=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,Yw=/(\r?\n|^) *\* ?/g,Xw=[];function Jw(e){const t=(0,Hw().default)(e)||$w().EOL;e=e.replace(qw,"").replace(Uw,"").replace(Yw,"$1");let n="";for(;n!==e;)n=e,e=e.replace(Gw,"".concat(t,"$1 $2").concat(t));e=e.replace(Ww,"").trimRight();const r=Object.create(null),i=e.replace(Kw,"").replace(Ww,"").trimRight();let o;for(;o=Kw.exec(e);){const e=o[2].replace(Vw,"");"string"==typeof r[o[1]]||Array.isArray(r[o[1]])?r[o[1]]=Xw.concat(r[o[1]],e):r[o[1]]=e}return{comments:i,pragmas:r}}function Qw(e,t){return Xw.concat(t).map(t=>"@".concat(e," ").concat(t).trim())}const{parseWithComments:Zw,strip:eC,extract:tC,print:nC}=jw,{getShebang:rC}=dl,{normalizeEndOfLine:iC}=ml;function oC(e){const t=rC(e);t&&(e=e.slice(t.length+1));const n=tC(e),{pragmas:r,comments:i}=Zw(n);return{shebang:t,text:e,pragmas:r,comments:i}}var sC={hasPragma:function(e){const t=Object.keys(oC(e).pragmas);return t.includes("prettier")||t.includes("format")},insertPragma:function(e){const{shebang:t,text:n,pragmas:r,comments:i}=oC(e),o=eC(n),s=nC({pragmas:Object.assign({format:""},r),comments:i.trimStart()});return(t?"".concat(t,"\n"):"")+iC(s)+(o.startsWith("\n")?"\n":"\n\n")+o}};const{getLast:aC,hasNewline:uC,getNextNonSpaceNonCommentCharacterIndexWithStartIndex:lC,getNextNonSpaceNonCommentCharacter:cC,hasNewlineInRange:pC,addLeadingComment:fC,addTrailingComment:hC,addDanglingComment:dC,getNextNonSpaceNonCommentCharacterIndex:mC,isNonEmptyArray:gC}=dl,{isBlockComment:yC,getFunctionParameters:vC,isPrettierIgnoreComment:bC,isJsxNode:DC,hasFlowShorthandAnnotationComment:wC,hasFlowAnnotationComment:CC,hasIgnoreComment:xC,isCallLikeExpression:EC,getCallArguments:_C,isCallExpression:kC,isMemberExpression:TC,isObjectProperty:SC,getComments:AC,CommentCheckFlags:OC}=wD,{locStart:FC,locEnd:NC}=om;function IC(e,t){const n=(e.body||e.properties).find(e=>{let{type:t}=e;return"EmptyStatement"!==t});n?fC(n,t):dC(e,t)}function PC(e,t){"BlockStatement"===e.type?IC(e,t):fC(e,t)}function MC(e){let{comment:t,followingNode:n}=e;return!(!n||!cx(t))&&(fC(n,t),!0)}function LC(e){let{comment:t,precedingNode:n,enclosingNode:r,followingNode:i,text:o}=e;return!(!r||"IfStatement"!==r.type||!i)&&(")"===cC(o,t,NC)?(hC(n,t),!0):n===r.consequent&&i===r.alternate?("BlockStatement"===n.type?hC(n,t):dC(r,t),!0):"BlockStatement"===i.type?(IC(i,t),!0):"IfStatement"===i.type?(PC(i.consequent,t),!0):r.consequent===i&&(fC(i,t),!0))}function jC(e){let{comment:t,precedingNode:n,enclosingNode:r,followingNode:i,text:o}=e;return!(!r||"WhileStatement"!==r.type||!i)&&(")"===cC(o,t,NC)?(hC(n,t),!0):"BlockStatement"===i.type?(IC(i,t),!0):r.body===i&&(fC(i,t),!0))}function BC(e){let{comment:t,precedingNode:n,enclosingNode:r,followingNode:i}=e;return!(!r||"TryStatement"!==r.type&&"CatchClause"!==r.type||!i)&&("CatchClause"===r.type&&n?(hC(n,t),!0):"BlockStatement"===i.type?(IC(i,t),!0):"TryStatement"===i.type?(PC(i.finalizer,t),!0):"CatchClause"===i.type&&(PC(i.body,t),!0))}function RC(e){let{comment:t,enclosingNode:n,followingNode:r}=e;return!(!TC(n)||!r||"Identifier"!==r.type)&&(fC(n,t),!0)}function $C(e){let{comment:t,precedingNode:n,enclosingNode:r,followingNode:i,text:o}=e;const s=n&&!pC(o,NC(n),FC(t));return!(n&&s||!r||"ConditionalExpression"!==r.type&&"TSConditionalType"!==r.type||!i)&&(fC(i,t),!0)}function HC(e){let{comment:t,precedingNode:n,enclosingNode:r}=e;return!(!SC(r)||!r.shorthand||r.key!==n||"AssignmentPattern"!==r.value.type)&&(hC(r.value.left,t),!0)}function UC(e){let{comment:t,precedingNode:n,enclosingNode:r,followingNode:i}=e;if(r&&("ClassDeclaration"===r.type||"ClassExpression"===r.type||"DeclareClass"===r.type||"DeclareInterface"===r.type||"InterfaceDeclaration"===r.type||"TSInterfaceDeclaration"===r.type)){if(gC(r.decorators)&&(!i||"Decorator"!==i.type))return hC(aC(r.decorators),t),!0;if(r.body&&i===r.body)return IC(r.body,t),!0;if(i)for(const e of["implements","extends","mixins"])if(r[e]&&i===r[e][0])return!n||n!==r.id&&n!==r.typeParameters&&n!==r.superClass?dC(r,t,e):hC(n,t),!0}return!1}function qC(e){let{comment:t,precedingNode:n,enclosingNode:r,text:i}=e;return(r&&n&&("Property"===r.type||"TSDeclareMethod"===r.type||"TSAbstractMethodDefinition"===r.type)&&"Identifier"===n.type&&r.key===n&&":"!==cC(i,n,NC)||!(!n||!r||"Decorator"!==n.type||"ClassMethod"!==r.type&&"ClassProperty"!==r.type&&"PropertyDefinition"!==r.type&&"TSAbstractPropertyDefinition"!==r.type&&"TSAbstractMethodDefinition"!==r.type&&"TSDeclareMethod"!==r.type&&"MethodDefinition"!==r.type))&&(hC(n,t),!0)}function zC(e){let{comment:t,precedingNode:n,enclosingNode:r,text:i}=e;return"("===cC(i,t,NC)&&!(!n||!r||"FunctionDeclaration"!==r.type&&"FunctionExpression"!==r.type&&"ClassMethod"!==r.type&&"MethodDefinition"!==r.type&&"ObjectMethod"!==r.type)&&(hC(n,t),!0)}function VC(e){let{comment:t,enclosingNode:n,text:r}=e;if(!n||"ArrowFunctionExpression"!==n.type)return!1;const i=mC(r,t,NC);return!1!==i&&"=>"===r.slice(i,i+2)&&(dC(n,t),!0)}function WC(e){let{comment:t,enclosingNode:n,text:r}=e;return")"===cC(r,t,NC)&&(n&&(lx(n)&&0===vC(n).length||EC(n)&&0===_C(n).length)?(dC(n,t),!0):!(!n||"MethodDefinition"!==n.type&&"TSAbstractMethodDefinition"!==n.type||0!==vC(n.value).length)&&(dC(n.value,t),!0))}function GC(e){let{comment:t,precedingNode:n,enclosingNode:r,followingNode:i,text:o}=e;if(n&&"FunctionTypeParam"===n.type&&r&&"FunctionTypeAnnotation"===r.type&&i&&"FunctionTypeParam"!==i.type)return hC(n,t),!0;if(n&&("Identifier"===n.type||"AssignmentPattern"===n.type)&&r&&lx(r)&&")"===cC(o,t,NC))return hC(n,t),!0;if(r&&"FunctionDeclaration"===r.type&&i&&"BlockStatement"===i.type){const e=(()=>{const e=vC(r);if(e.length>0)return lC(o,NC(aC(e)));const t=lC(o,NC(r.id));return!1!==t&&lC(o,t+1)})();if(FC(t)>e)return IC(i,t),!0}return!1}function KC(e){let{comment:t,enclosingNode:n}=e;return!(!n||"ImportSpecifier"!==n.type)&&(fC(n,t),!0)}function YC(e){let{comment:t,enclosingNode:n}=e;return!(!n||"LabeledStatement"!==n.type)&&(fC(n,t),!0)}function XC(e){let{comment:t,enclosingNode:n}=e;return!(!n||"ContinueStatement"!==n.type&&"BreakStatement"!==n.type||n.label)&&(hC(n,t),!0)}function JC(e){let{comment:t,precedingNode:n,enclosingNode:r}=e;return!!(kC(r)&&n&&r.callee===n&&r.arguments.length>0)&&(fC(r.arguments[0],t),!0)}function QC(e){let{comment:t,precedingNode:n,enclosingNode:r,followingNode:i}=e;return!r||"UnionTypeAnnotation"!==r.type&&"TSUnionType"!==r.type?(i&&("UnionTypeAnnotation"===i.type||"TSUnionType"===i.type)&&bC(t)&&(i.types[0].prettierIgnore=!0,t.unignore=!0),!1):(bC(t)&&(i.prettierIgnore=!0,t.unignore=!0),!!n&&(hC(n,t),!0))}function ZC(e){let{comment:t,enclosingNode:n}=e;return!!SC(n)&&(fC(n,t),!0)}function ex(e){let{comment:t,enclosingNode:n,followingNode:r,ast:i,isLastComment:o}=e;return i&&i.body&&0===i.body.length?(o?dC(i,t):fC(i,t),!0):n&&"Program"===n.type&&0===n.body.length&&!gC(n.directives)?(o?dC(n,t):fC(n,t),!0):!(!r||"Program"!==r.type||0!==r.body.length||!n||"ModuleExpression"!==n.type)&&(dC(r,t),!0)}function tx(e){let{comment:t,enclosingNode:n}=e;return!(!n||"ForInStatement"!==n.type&&"ForOfStatement"!==n.type)&&(fC(n,t),!0)}function nx(e){let{comment:t,precedingNode:n,enclosingNode:r,text:i}=e;return!!(n&&"ImportSpecifier"===n.type&&r&&"ImportDeclaration"===r.type&&uC(i,NC(t)))&&(hC(n,t),!0)}function rx(e){let{comment:t,enclosingNode:n}=e;return!(!n||"AssignmentPattern"!==n.type)&&(fC(n,t),!0)}function ix(e){let{comment:t,enclosingNode:n}=e;return!(!n||"TypeAlias"!==n.type)&&(fC(n,t),!0)}function ox(e){let{comment:t,enclosingNode:n,followingNode:r}=e;return!(!n||"VariableDeclarator"!==n.type&&"AssignmentExpression"!==n.type||!r||"ObjectExpression"!==r.type&&"ArrayExpression"!==r.type&&"TemplateLiteral"!==r.type&&"TaggedTemplateExpression"!==r.type&&!yC(t))&&(fC(r,t),!0)}function sx(e){let{comment:t,enclosingNode:n,followingNode:r,text:i}=e;return!(r||!n||"TSMethodSignature"!==n.type&&"TSDeclareFunction"!==n.type&&"TSAbstractMethodDefinition"!==n.type||";"!==cC(i,t,NC))&&(hC(n,t),!0)}function ax(e){let{comment:t,enclosingNode:n,followingNode:r}=e;if(bC(t)&&n&&"TSMappedType"===n.type&&r&&"TSTypeParameter"===r.type&&r.constraint)return n.prettierIgnore=!0,t.unignore=!0,!0}function ux(e){let{comment:t,precedingNode:n,enclosingNode:r,followingNode:i}=e;return!(!r||"TSMappedType"!==r.type)&&(i&&"TSTypeParameter"===i.type&&i.name?(fC(i.name,t),!0):!(!n||"TSTypeParameter"!==n.type||!n.constraint)&&(hC(n.constraint,t),!0))}function lx(e){return"ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type||"FunctionDeclaration"===e.type||"ObjectMethod"===e.type||"ClassMethod"===e.type||"TSDeclareFunction"===e.type||"TSCallSignatureDeclaration"===e.type||"TSConstructSignatureDeclaration"===e.type||"TSMethodSignature"===e.type||"TSConstructorType"===e.type||"TSFunctionType"===e.type||"TSDeclareMethod"===e.type}function cx(e){return yC(e)&&"*"===e.value[0]&&/@type\b/.test(e.value)}var px={handleOwnLineComment:function(e){return[ax,GC,RC,LC,jC,BC,UC,KC,tx,QC,ex,nx,rx,qC,YC].some(t=>t(e))},handleEndOfLineComment:function(e){return[MC,GC,$C,KC,LC,jC,BC,UC,YC,JC,ZC,ex,ix,ox].some(t=>t(e))},handleRemainingComment:function(e){return[ax,LC,jC,HC,WC,qC,ex,VC,zC,ux,XC,sx].some(t=>t(e))},isTypeCastComment:cx,getCommentChildNodes:function(e,t){if(("typescript"===t.parser||"flow"===t.parser||"espree"===t.parser||"meriyah"===t.parser||"__babel_estree"===t.parser)&&"MethodDefinition"===e.type&&e.value&&"FunctionExpression"===e.value.type&&0===vC(e.value).length&&!e.value.returnType&&!gC(e.value.typeParameters)&&e.value.body)return[...e.decorators||[],e.key,e.value.body]},willPrintOwnComments:function(e){const t=e.getValue(),n=e.getParentNode();return(t&&(DC(t)||wC(t)||kC(n)&&(e=>CC(AC(e,OC.Leading))||CC(AC(e,OC.Trailing)))(t))||n&&("JSXSpreadAttribute"===n.type||"JSXSpreadChild"===n.type||"UnionTypeAnnotation"===n.type||"TSUnionType"===n.type||("ClassDeclaration"===n.type||"ClassExpression"===n.type)&&n.superClass===t))&&(!xC(e)||"UnionTypeAnnotation"===n.type||"TSUnionType"===n.type)}};const fx=ls,{getFunctionParameters:hx,getLeftSidePathName:dx,hasFlowShorthandAnnotationComment:mx,hasNakedLeftSide:gx,hasNode:yx,isBitwiseOperator:vx,startsWithNoLookaheadToken:bx,shouldFlatten:Dx,getPrecedence:wx,isCallExpression:Cx,isMemberExpression:xx,isObjectProperty:Ex}=wD;function _x(e,t){const n=e.getParentNode();if(!n)return!1;const r=e.getName(),i=e.getNode();if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&function(e){return"ObjectExpression"===e.type}(i)&&kx(e))return!0;if(function(e){return"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"===e.type}(i))return!1;if("flow"!==t.parser&&mx(e.getValue()))return!0;if("Identifier"===i.type)return!!(i.extra&&i.extra.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/.test(i.name))||"left"===r&&"async"===i.name&&"ForOfStatement"===n.type&&!n.await;switch(n.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if("superClass"===r&&("ArrowFunctionExpression"===i.type||"AssignmentExpression"===i.type||"AwaitExpression"===i.type||"BinaryExpression"===i.type||"ConditionalExpression"===i.type||"LogicalExpression"===i.type||"NewExpression"===i.type||"ObjectExpression"===i.type||"ParenthesizedExpression"===i.type||"SequenceExpression"===i.type||"TaggedTemplateExpression"===i.type||"UnaryExpression"===i.type||"UpdateExpression"===i.type||"YieldExpression"===i.type||"TSNonNullExpression"===i.type))return!0;break;case"ExportDefaultDeclaration":return Tx(e,t)||"SequenceExpression"===i.type;case"Decorator":if("expression"===r){let e=!1,n=!1,r=i;for(;r;)switch(r.type){case"MemberExpression":n=!0,r=r.object;break;case"CallExpression":if(n||e)return"typescript"!==t.parser;e=!0,r=r.callee;break;case"Identifier":return!1;case"TaggedTemplateExpression":return"typescript"!==t.parser;default:return!0}return!0}break;case"ExpressionStatement":if(bx(i,!0))return!0;break;case"ArrowFunctionExpression":if("body"===r&&"SequenceExpression"!==i.type&&bx(i,!1))return!0}switch(i.type){case"UpdateExpression":if("UnaryExpression"===n.type)return i.prefix&&("++"===i.operator&&"+"===n.operator||"--"===i.operator&&"-"===n.operator);case"UnaryExpression":switch(n.type){case"UnaryExpression":return i.operator===n.operator&&("+"===i.operator||"-"===i.operator);case"BindExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"BinaryExpression":return"left"===r&&"**"===n.operator;default:return!1}case"BinaryExpression":if("UpdateExpression"===n.type)return!0;if("in"===i.operator&&function(e){let t=0,n=e.getValue();for(;n;){const r=e.getParentNode(t++);if(r&&"ForStatement"===r.type&&r.init===n)return!0;n=r}return!1}(e))return!0;if("|>"===i.operator&&i.extra&&i.extra.parenthesized){const t=e.getParentNode(1);if("BinaryExpression"===t.type&&"|>"===t.operator)return!0}case"TSTypeAssertion":case"TSAsExpression":case"LogicalExpression":switch(n.type){case"TSAsExpression":return"TSAsExpression"!==i.type;case"ConditionalExpression":return"TSAsExpression"===i.type;case"CallExpression":case"NewExpression":case"OptionalCallExpression":return"callee"===r;case"ClassExpression":case"ClassDeclaration":return"superClass"===r;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"object"===r;case"AssignmentExpression":case"AssignmentPattern":return"left"===r&&("TSTypeAssertion"===i.type||"TSAsExpression"===i.type);case"LogicalExpression":if("LogicalExpression"===i.type)return n.operator!==i.operator;case"BinaryExpression":{const{operator:e,type:t}=i;if(!e&&"TSTypeAssertion"!==t)return!0;const o=wx(e),s=n.operator,a=wx(s);return a>o||"right"===r&&a===o||a===o&&!Dx(s,e)||(a"===n.operator);default:return!1}case"TSConditionalType":if("extendsType"===r&&"TSConditionalType"===n.type)return!0;case"TSFunctionType":case"TSConstructorType":if("checkType"===r&&"TSConditionalType"===n.type)return!0;case"TSUnionType":case"TSIntersectionType":if(("TSUnionType"===n.type||"TSIntersectionType"===n.type)&&n.types.length>1&&(!i.types||i.types.length>1))return!0;case"TSInferType":if("TSInferType"===i.type&&"TSRestType"===n.type)return!1;case"TSTypeOperator":return"TSArrayType"===n.type||"TSOptionalType"===n.type||"TSRestType"===n.type||"objectType"===r&&"TSIndexedAccessType"===n.type||"TSTypeOperator"===n.type||"TSTypeAnnotation"===n.type&&e.getParentNode(1).type.startsWith("TSJSDoc");case"ArrayTypeAnnotation":return"NullableTypeAnnotation"===n.type;case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return"ArrayTypeAnnotation"===n.type||"NullableTypeAnnotation"===n.type||"IntersectionTypeAnnotation"===n.type||"UnionTypeAnnotation"===n.type||"objectType"===r&&("IndexedAccessType"===n.type||"OptionalIndexedAccessType"===n.type);case"NullableTypeAnnotation":return"ArrayTypeAnnotation"===n.type||"objectType"===r&&("IndexedAccessType"===n.type||"OptionalIndexedAccessType"===n.type);case"FunctionTypeAnnotation":{const t="NullableTypeAnnotation"===n.type?e.getParentNode(1):n;return"UnionTypeAnnotation"===t.type||"IntersectionTypeAnnotation"===t.type||"ArrayTypeAnnotation"===t.type||"objectType"===r&&("IndexedAccessType"===t.type||"OptionalIndexedAccessType"===t.type)||"NullableTypeAnnotation"===t.type||"FunctionTypeParam"===n.type&&null===n.name&&hx(i).some(e=>e.typeAnnotation&&"NullableTypeAnnotation"===e.typeAnnotation.type)}case"OptionalIndexedAccessType":return"objectType"===r&&"IndexedAccessType"===n.type;case"TypeofTypeAnnotation":return"objectType"===r&&("IndexedAccessType"===n.type||"OptionalIndexedAccessType"===n.type);case"StringLiteral":case"NumericLiteral":case"Literal":if("string"==typeof i.value&&"ExpressionStatement"===n.type&&!n.directive){const t=e.getParentNode(1);return"Program"===t.type||"BlockStatement"===t.type}return"object"===r&&"MemberExpression"===n.type&&"number"==typeof i.value;case"AssignmentExpression":{const t=e.getParentNode(1);return"body"===r&&"ArrowFunctionExpression"===n.type||("key"!==r||"ClassProperty"!==n.type&&"PropertyDefinition"!==n.type||!n.computed)&&("init"!==r&&"update"!==r||"ForStatement"!==n.type)&&("ExpressionStatement"===n.type?"ObjectPattern"===i.left.type:("key"!==r||"TSPropertySignature"!==n.type)&&"AssignmentExpression"!==n.type&&("SequenceExpression"!==n.type||!t||"ForStatement"!==t.type||t.init!==n&&t.update!==n)&&("value"!==r||"Property"!==n.type||!t||"ObjectPattern"!==t.type||!t.properties.includes(n))&&"NGChainedExpression"!==n.type)}case"ConditionalExpression":switch(n.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"callee"===r;case"ConditionalExpression":return"test"===r;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;default:return!1}case"FunctionExpression":switch(n.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(n.type){case"BinaryExpression":return"|>"!==n.operator||i.extra&&i.extra.parenthesized;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return"callee"===r;case"MemberExpression":case"OptionalMemberExpression":return"object"===r;case"TSAsExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":return!0;case"ConditionalExpression":return"test"===r;default:return!1}case"ClassExpression":return"NewExpression"===n.type&&"callee"===r;case"OptionalMemberExpression":case"OptionalCallExpression":{const t=e.getParentNode(1);if("object"===r&&"MemberExpression"===n.type||"callee"===r&&("CallExpression"===n.type||"NewExpression"===n.type)||"TSNonNullExpression"===n.type&&"MemberExpression"===t.type&&t.object===n)return!0}case"CallExpression":case"MemberExpression":case"TaggedTemplateExpression":case"TSNonNullExpression":if("callee"===r&&("BindExpression"===n.type||"NewExpression"===n.type)){let e=i;for(;e;)switch(e.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":e=e.object;break;case"TaggedTemplateExpression":e=e.tag;break;case"TSNonNullExpression":e=e.expression;break;default:return!1}}return!1;case"BindExpression":return"callee"===r&&("BindExpression"===n.type||"NewExpression"===n.type)||"object"===r&&xx(n);case"NGPipeExpression":return!("NGRoot"===n.type||"NGMicrosyntaxExpression"===n.type||"ObjectProperty"===n.type&&(!i.extra||!i.extra.parenthesized)||"ArrayExpression"===n.type||Cx(n)&&n.arguments[r]===i||"right"===r&&"NGPipeExpression"===n.type||"property"===r&&"MemberExpression"===n.type||"AssignmentExpression"===n.type);case"JSXFragment":case"JSXElement":return"callee"===r||"left"===r&&"BinaryExpression"===n.type&&"<"===n.operator||"ArrayExpression"!==n.type&&"ArrowFunctionExpression"!==n.type&&"AssignmentExpression"!==n.type&&"AssignmentPattern"!==n.type&&"BinaryExpression"!==n.type&&"NewExpression"!==n.type&&"ConditionalExpression"!==n.type&&"ExpressionStatement"!==n.type&&"JsExpressionRoot"!==n.type&&"JSXAttribute"!==n.type&&"JSXElement"!==n.type&&"JSXExpressionContainer"!==n.type&&"JSXFragment"!==n.type&&"LogicalExpression"!==n.type&&!Cx(n)&&!Ex(n)&&"ReturnStatement"!==n.type&&"ThrowStatement"!==n.type&&"TypeCastExpression"!==n.type&&"VariableDeclarator"!==n.type&&"YieldExpression"!==n.type;case"TypeAnnotation":return"returnType"===r&&"ArrowFunctionExpression"===n.type&&function(e){return yx(e,e=>"ObjectTypeAnnotation"===e.type&&yx(e,e=>"FunctionTypeAnnotation"===e.type||void 0)||void 0)}(i)}return!1}function kx(e){const t=e.getValue(),n=e.getParentNode(),r=e.getName();switch(n.type){case"NGPipeExpression":if("number"==typeof r&&n.arguments[r]===t&&n.arguments.length-1===r)return e.callParent(kx);break;case"ObjectProperty":if("value"===r){const t=e.getParentNode(1);return fx(t.properties)===n}break;case"BinaryExpression":case"LogicalExpression":if("right"===r)return e.callParent(kx);break;case"ConditionalExpression":if("alternate"===r)return e.callParent(kx);break;case"UnaryExpression":if(n.prefix)return e.callParent(kx)}return!1}function Tx(e,t){const n=e.getValue(),r=e.getParentNode();return"FunctionExpression"===n.type||"ClassExpression"===n.type?"ExportDefaultDeclaration"===r.type||!_x(e,t):!(!gx(n)||"ExportDefaultDeclaration"!==r.type&&_x(e,t))&&e.call(e=>Tx(e,t),...dx(e,n))}var Sx=_x,Ax=function(e,t){switch(t.parser){case"json":case"json5":case"json-stringify":case"__js_expression":case"__vue_expression":return Object.assign(Object.assign({},e),{},{type:t.parser.startsWith("__")?"JsExpressionRoot":"JsonRoot",node:e,comments:[],rootMarker:t.rootMarker});default:return e}};const{builders:{join:Ox,line:Fx,group:Nx,softline:Ix,indent:Px}}=ec;var Mx={isVueEventBindingExpression:function e(t){switch(t.type){case"MemberExpression":switch(t.property.type){case"Identifier":case"NumericLiteral":case"StringLiteral":return e(t.object)}return!1;case"Identifier":return!0;default:return!1}},printHtmlBinding:function(e,t,n){const r=e.getValue();if(t.__onHtmlBindingRoot&&null===e.getName()&&t.__onHtmlBindingRoot(r,t),"File"===r.type)return t.__isVueForBindingLeft?e.call(e=>{const t=Ox([",",Fx],e.map(n,"params")),{params:r}=e.getValue();return 1===r.length?t:["(",Px([Ix,Nx(t)]),Ix,")"]},"program","body",0):t.__isVueBindings?e.call(e=>Ox([",",Fx],e.map(n,"params")),"program","body",0):void 0}};const{printComments:Lx}=nv,{getLast:jx}=dl,{builders:{join:Bx,line:Rx,softline:$x,group:Hx,indent:Ux,align:qx,ifBreak:zx,indentIfBreak:Vx},utils:{cleanDoc:Wx,getDocParts:Gx,isConcat:Kx}}=ec,{hasLeadingOwnLineComment:Yx,isBinaryish:Xx,isJsxNode:Jx,shouldFlatten:Qx,hasComment:Zx,CommentCheckFlags:eE,isCallExpression:tE,isMemberExpression:nE,isObjectProperty:rE,isEnabledHackPipeline:iE}=wD;let oE=0;function sE(e,t,n,r,i){const o=e.getValue();if(!Xx(o))return[Hx(t())];let s=[];Qx(o.operator,o.left.operator)?s=e.call(e=>sE(e,t,n,!0,i),"left"):s.push(Hx(t("left")));const a=aE(o),u=("|>"===o.operator||"NGPipeExpression"===o.type||"|"===o.operator&&"__vue_expression"===n.parser)&&!Yx(n.originalText,o.right),l="NGPipeExpression"===o.type?"|":o.operator,c="NGPipeExpression"===o.type&&o.arguments.length>0?Hx(Ux([$x,": ",Bx([$x,":",zx(" ")],e.map(t,"arguments").map(e=>qx(2,Hx(e))))])):"";let p;if(a)p=[l," ",t("right"),c];else{const r=iE(n)&&"|>"===l?e.call(e=>sE(e,t,n,!0,i),"right"):t("right");p=[u?Rx:"",l,u?" ":Rx,r,c]}const f=e.getParentNode(),h=Zx(o.left,eE.Trailing|eE.Line),d=h||!(i&&"LogicalExpression"===o.type)&&f.type!==o.type&&o.left.type!==o.type&&o.right.type!==o.type;if(s.push(u?"":" ",d?Hx(p,{shouldBreak:h}):p),r&&Zx(o)){const t=Wx(Lx(e,s,n));return Kx(t)||"fill"===t.type?Gx(t):[t]}return s}function aE(e){return"LogicalExpression"===e.type&&("ObjectExpression"===e.right.type&&e.right.properties.length>0||"ArrayExpression"===e.right.type&&e.right.elements.length>0||!!Jx(e.right))}var uE={printBinaryishExpression:function(e,t,n){const r=e.getValue(),i=e.getParentNode(),o=e.getParentNode(1),s=r!==i.body&&("IfStatement"===i.type||"WhileStatement"===i.type||"SwitchStatement"===i.type||"DoWhileStatement"===i.type),a=iE(t)&&"|>"===r.operator,u=sE(e,n,t,!1,s);if(s)return u;if(a)return Hx(u);if(tE(i)&&i.callee===r||"UnaryExpression"===i.type||nE(i)&&!i.computed)return Hx([Ux([$x,...u]),$x]);const l="ReturnStatement"===i.type||"ThrowStatement"===i.type||"JSXExpressionContainer"===i.type&&"JSXAttribute"===o.type||"|"!==r.operator&&"JsExpressionRoot"===i.type||"NGPipeExpression"!==r.type&&("NGRoot"===i.type&&"__ng_binding"===t.parser||"NGMicrosyntaxExpression"===i.type&&"NGMicrosyntax"===o.type&&1===o.body.length)||r===i.body&&"ArrowFunctionExpression"===i.type||r!==i.body&&"ForStatement"===i.type||"ConditionalExpression"===i.type&&"ReturnStatement"!==o.type&&"ThrowStatement"!==o.type&&!tE(o)||"TemplateLiteral"===i.type,c="AssignmentExpression"===i.type||"VariableDeclarator"===i.type||"ClassProperty"===i.type||"PropertyDefinition"===i.type||"TSAbstractPropertyDefinition"===i.type||"ClassPrivateProperty"===i.type||rE(i),p=Xx(r.left)&&Qx(r.operator,r.left.operator);if(l||aE(r)&&!p||!aE(r)&&c)return Hx(u);if(0===u.length)return"";const f=Jx(r.right),h=u.findIndex(e=>"string"!=typeof e&&!Array.isArray(e)&&"group"===e.type),d=u.slice(0,-1===h?1:h+1),m=u.slice(d.length,f?-1:void 0),g=Symbol("logicalChain-"+ ++oE),y=Hx([...d,Ux(m)],{id:g});if(!f)return y;const v=jx(u);return Hx([y,Vx(v,{groupId:g})])},shouldInlineLogicalExpression:aE};const{builders:{join:lE,line:cE,group:pE}}=ec,{hasNode:fE,hasComment:hE,getComments:dE}=wD,{printBinaryishExpression:mE}=uE;function gE(e,t,n){return"NGMicrosyntaxKeyedExpression"===e.type&&"of"===e.key.name&&1===t&&"NGMicrosyntaxLet"===n.body[0].type&&null===n.body[0].value}var yE={printAngular:function(e,t,n){const r=e.getValue();if(r.type.startsWith("NG"))switch(r.type){case"NGRoot":return[n("node"),hE(r.node)?" //"+dE(r.node)[0].value.trimEnd():""];case"NGPipeExpression":return mE(e,t,n);case"NGChainedExpression":return pE(lE([";",cE],e.map(e=>function(e){return fE(e.getValue(),e=>{switch(e.type){case void 0:return!1;case"CallExpression":case"OptionalCallExpression":case"AssignmentExpression":return!0}})}(e)?n():["(",n(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGQuotedExpression":return[r.prefix,": ",r.value.trim()];case"NGMicrosyntax":return e.map((e,t)=>[0===t?"":gE(e.getValue(),t,r)?" ":[";",cE],n()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/i.test(r.name)?r.name:JSON.stringify(r.name);case"NGMicrosyntaxExpression":return[n("expression"),null===r.alias?"":[" as ",n("alias")]];case"NGMicrosyntaxKeyedExpression":{const t=e.getName(),i=e.getParentNode(),o=gE(r,t,i)||(1===t&&("then"===r.key.name||"else"===r.key.name)||2===t&&"else"===r.key.name&&"NGMicrosyntaxKeyedExpression"===i.body[t-1].type&&"then"===i.body[t-1].key.name)&&"NGMicrosyntaxExpression"===i.body[0].type;return[n("key"),o?" ":": ",n("expression")]}case"NGMicrosyntaxLet":return["let ",n("key"),null===r.value?"":[" = ",n("value")]];case"NGMicrosyntaxAs":return[n("key")," as ",n("alias")];default:throw new Error("Unknown Angular node type: ".concat(JSON.stringify(r.type),"."))}}};const{printComments:vE,printDanglingComments:bE}=nv,{builders:{line:DE,hardline:wE,softline:CE,group:xE,indent:EE,conditionalGroup:_E,fill:kE,ifBreak:TE,lineSuffixBoundary:SE,join:AE},utils:{willBreak:OE}}=ec,{getLast:FE,getPreferredQuote:NE}=dl,{isJsxNode:IE,rawText:PE,isLiteral:ME,isCallExpression:LE,isStringLiteral:jE,isBinaryish:BE,hasComment:RE,CommentCheckFlags:$E,hasNodeIgnoreComment:HE}=wD,UE=Sx,{willPrintOwnComments:qE}=px,zE=e=>""===e||e===DE||e===wE||e===CE;function VE(e,t,n){const r=e.getValue();if("JSXElement"===r.type&&function(e){if(0===e.children.length)return!0;if(e.children.length>1)return!1;const t=e.children[0];return ME(t)&&!ZE(t)}(r))return[n("openingElement"),n("closingElement")];const i="JSXElement"===r.type?n("openingElement"):n("openingFragment"),o="JSXElement"===r.type?n("closingElement"):n("closingFragment");if(1===r.children.length&&"JSXExpressionContainer"===r.children[0].type&&("TemplateLiteral"===r.children[0].expression.type||"TaggedTemplateExpression"===r.children[0].expression.type))return[i,...e.map(n,"children"),o];r.children=r.children.map(e=>function(e){return"JSXExpressionContainer"===e.type&&ME(e.expression)&&" "===e.expression.value&&!RE(e.expression)}(e)?{type:"JSXText",value:" ",raw:" "}:e);const s=r.children.some(IE),a=r.children.filter(e=>"JSXExpressionContainer"===e.type).length>1,u="JSXElement"===r.type&&r.openingElement.attributes.length>1;let l=OE(i)||s||u||a;const c="mdx"===e.getParentNode().rootMarker,p=t.singleQuote?"{' '}":'{" "}',f=c?" ":TE([p,CE]," "),h=function(e,t,n,r,i){const o=[];return e.each((e,t,s)=>{const a=e.getValue();if(ME(a)){const e=PE(a);if(ZE(a)){const n=e.split(XE);if(""===n[0]){if(o.push(""),n.shift(),/\n/.test(n[0])){const e=s[t+1];o.push(GE(i,n[1],a,e))}else o.push(r);n.shift()}let u;if(""===FE(n)&&(n.pop(),u=n.pop()),0===n.length)return;for(const[e,t]of n.entries())e%2==1?o.push(DE):o.push(t);if(void 0!==u)if(/\n/.test(u)){const e=s[t+1];o.push(GE(i,FE(o),a,e))}else o.push(r);else{const e=s[t+1];o.push(WE(i,FE(o),a,e))}}else/\n/.test(e)?e.match(/\n/g).length>1&&o.push("",wE):o.push("",r)}else{const e=n();o.push(e);const r=s[t+1];if(r&&ZE(r)){const e=QE(PE(r)).split(XE)[0];o.push(WE(i,e,a,r))}else o.push(wE)}},"children"),o}(e,0,n,f,r.openingElement&&r.openingElement.name&&"fbt"===r.openingElement.name.name),d=r.children.some(e=>ZE(e));for(let v=h.length-2;v>=0;v--){const e=""===h[v]&&""===h[v+1],t=h[v]===wE&&""===h[v+1]&&h[v+2]===wE,n=(h[v]===CE||h[v]===wE)&&""===h[v+1]&&h[v+2]===f,r=h[v]===f&&""===h[v+1]&&(h[v+2]===CE||h[v+2]===wE),i=h[v]===f&&""===h[v+1]&&h[v+2]===f,o=h[v]===CE&&""===h[v+1]&&h[v+2]===wE||h[v]===wE&&""===h[v+1]&&h[v+2]===CE;t&&d||e||n||i||o?h.splice(v,2):r&&h.splice(v+1,2)}for(;h.length>0&&zE(FE(h));)h.pop();for(;h.length>1&&zE(h[0])&&zE(h[1]);)h.shift(),h.shift();const m=[];for(const[v,b]of h.entries()){if(b===f){if(1===v&&""===h[v-1]){if(2===h.length){m.push(p);continue}m.push([p,wE]);continue}if(v===h.length-1){m.push(p);continue}if(""===h[v-1]&&h[v-2]===wE){m.push(p);continue}}m.push(b),OE(b)&&(l=!0)}const g=d?kE(m):xE(m,{shouldBreak:!0});if(c)return g;const y=xE([i,EE([wE,g]),wE,o]);return l?y:_E([xE([i,...h,o]),y])}function WE(e,t,n,r){return e?"":"JSXElement"===n.type&&!n.closingElement||r&&"JSXElement"===r.type&&!r.closingElement?1===t.length?CE:wE:CE}function GE(e,t,n,r){return e?wE:1===t.length?"JSXElement"===n.type&&!n.closingElement||r&&"JSXElement"===r.type&&!r.closingElement?wE:CE:wE}function KE(e,t,n){return function(e,t,n){const r=e.getParentNode();if(!r)return t;if({ArrayExpression:!0,JSXAttribute:!0,JSXElement:!0,JSXExpressionContainer:!0,JSXFragment:!0,ExpressionStatement:!0,CallExpression:!0,OptionalCallExpression:!0,ConditionalExpression:!0,JsExpressionRoot:!0}[r.type])return t;const i=e.match(void 0,e=>"ArrowFunctionExpression"===e.type,LE,e=>"JSXExpressionContainer"===e.type),o=UE(e,n);return xE([o?"":TE("("),EE([CE,t]),CE,o?"":TE(")")],{shouldBreak:i})}(e,vE(e,VE(e,t,n),t),t)}function YE(e,t,n){const r=e.getValue();return["{",e.call(e=>{const r=["...",n()],i=e.getValue();return RE(i)&&qE(e)?[EE([CE,vE(e,r,t)]),CE]:r},"JSXSpreadAttribute"===r.type?"argument":"expression"),"}"]}const XE=new RegExp("([ \n\r\t]+)"),JE=new RegExp("[^ \n\r\t]"),QE=e=>e.replace(new RegExp("(?:^"+XE.source+"|"+XE.source+"$)"),"");function ZE(e){return ME(e)&&(JE.test(PE(e))||!/\n/.test(PE(e)))}var e_={hasJsxIgnoreComment:function(e){const t=e.getValue(),n=e.getParentNode();if(!(n&&t&&IE(t)&&IE(n)))return!1;let r=null;for(let i=n.children.indexOf(t);i>0;i--){const e=n.children[i-1];if("JSXText"!==e.type||ZE(e)){r=e;break}}return r&&"JSXExpressionContainer"===r.type&&"JSXEmptyExpression"===r.expression.type&&HE(r.expression)},printJsx:function(e,t,n){const r=e.getValue();if(r.type.startsWith("JSX"))switch(r.type){case"JSXAttribute":return function(e,t,n){const r=e.getValue(),i=[];if(i.push(n("name")),r.value){let e;if(jE(r.value)){let n=PE(r.value).slice(1,-1).replace(/'/g,"'").replace(/"/g,'"');const{escaped:i,quote:o,regex:s}=NE(n,t.jsxSingleQuote?"'":'"');n=n.replace(s,i),e=[o,n,o]}else e=n("value");i.push("=",e)}return i}(e,t,n);case"JSXIdentifier":return String(r.name);case"JSXNamespacedName":return AE(":",[n("namespace"),n("name")]);case"JSXMemberExpression":return AE(".",[n("object"),n("property")]);case"JSXSpreadAttribute":return YE(e,t,n);case"JSXSpreadChild":return YE(e,t,n);case"JSXExpressionContainer":return function(e,t,n){const r=e.getValue(),i=e.getParentNode(0),o="JSXEmptyExpression"===r.expression.type||!RE(r.expression)&&("ArrayExpression"===r.expression.type||"ObjectExpression"===r.expression.type||"ArrowFunctionExpression"===r.expression.type||LE(r.expression)||"FunctionExpression"===r.expression.type||"TemplateLiteral"===r.expression.type||"TaggedTemplateExpression"===r.expression.type||"DoExpression"===r.expression.type||IE(i)&&("ConditionalExpression"===r.expression.type||BE(r.expression)));return xE(o?["{",n("expression"),SE,"}"]:["{",EE([CE,n("expression")]),CE,SE,"}"])}(e,0,n);case"JSXFragment":case"JSXElement":return KE(e,t,n);case"JSXOpeningElement":return function(e,t,n){const r=e.getValue(),i=r.name&&RE(r.name)||r.typeParameters&&RE(r.typeParameters);if(r.selfClosing&&0===r.attributes.length&&!i)return["<",n("name"),n("typeParameters")," />"];if(r.attributes&&1===r.attributes.length&&r.attributes[0].value&&jE(r.attributes[0].value)&&!r.attributes[0].value.value.includes("\n")&&!i&&!RE(r.attributes[0]))return xE(["<",n("name"),n("typeParameters")," ",...e.map(n,"attributes"),r.selfClosing?" />":">"]);const o=r.attributes.length>0&&RE(FE(r.attributes),$E.Trailing),s=0===r.attributes.length&&!i||(t.bracketSameLine||t.jsxBracketSameLine)&&(!i||r.attributes.length>0)&&!o,a=r.attributes&&r.attributes.some(e=>e.value&&jE(e.value)&&e.value.value.includes("\n"));return xE(["<",n("name"),n("typeParameters"),EE(e.map(()=>[DE,n()],"attributes")),r.selfClosing?DE:s?">":CE,r.selfClosing?"/>":s?"":">"],{shouldBreak:a})}(e,t,n);case"JSXClosingElement":return function(e,t,n){const r=e.getValue(),i=[];i.push(""),i}(e,0,n);case"JSXOpeningFragment":case"JSXClosingFragment":return function(e,t){const n=e.getValue(),r=RE(n),i=RE(n,$E.Line),o="JSXOpeningFragment"===n.type;return[o?"<":""]}(e,t);case"JSXEmptyExpression":return function(e,t){const n=e.getValue(),r=RE(n,$E.Line);return[bE(e,t,!r),r?wE:""]}(e,t);case"JSXText":throw new Error("JSXTest should be handled by JSXElement");default:throw new Error("Unknown JSX node type: ".concat(JSON.stringify(r.type),"."))}}},t_=Cs,n_=et,r_=gr,i_=lr,o_=qs;ii({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=n_(this),n=r_(t),r=o_(t,0);return r.length=t_(r,t,t,n,0,void 0===e?1:i_(e)),r}});var s_,a_=Tr,u_=Sr,l_=Object.keys||function(e){return a_(e,u_)},c_=Wt,p_=Jt,f_=oe,h_=l_,d_=O?Object.defineProperties:function(e,t){p_(e);for(var n,r=f_(t),i=h_(t),o=i.length,s=0;o>s;)c_.f(e,n=i[s++],r[n]);return e},m_=fe("document","documentElement"),g_=Jt,y_=d_,v_=Sr,b_=En,D_=m_,w_=Pt,C_=xn("IE_PROTO"),x_=function(){},E_=function(e){return"