!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Waline=t():e.Waline=t()}(this,(function(){return(()=>{var e={41:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(609),o=n.n(r)()((function(e){return e[1]}));o.push([e.id,':root{--waline-font-size: 16px;--waline-white: #fff;--waline-light-grey: #999;--waline-dark-grey: #666;--waline-theme-color: #27ae60;--waline-active-color: #2ecc71;--waline-text-color: #444;--waline-bgcolor: #fff;--waline-bgcolor-light: #f8f8f8;--waline-bgcolor-hover: #f0f0f0;--waline-border-color: #ddd;--waline-disable-bgcolor: #f8f8f8;--waline-disable-color: #000;--waline-code-bgcolor: #282c34;--waline-bq-color: #f0f0f0;--waline-avatar-size: 3.25rem;--waline-mobile-avatar-size: calc(var(--waline-avatar-size) * 9 / 13);--waline-badge-color: #3498db;--waline-badge-font-size: 0.775em;--waline-info-bgcolor: #f8f8f8;--waline-info-color: #999;--waline-info-font-size: 0.625em;--waline-border: 1px solid var(--waline-border-color);--waline-avatar-radius: 50%;--waline-box-shadow: none}.v[data-class=v]{font-size:var(--waline-font-size);text-align:left}.v[data-class=v] *{box-sizing:content-box;line-height:1.75}.v[data-class=v] p{color:var(--waline-text-color)}.v[data-class=v] a{position:relative;display:inline-block;color:var(--waline-theme-color);text-decoration:none;cursor:pointer}.v[data-class=v] a:hover{color:var(--waline-active-color)}.v[data-class=v] img{max-width:100%;max-height:400px;border:none}.v[data-class=v] hr{margin:.825em 0;border-style:dashed;border-color:var(--waline-bgcolor-light)}.v[data-class=v] code,.v[data-class=v] pre{margin:0;padding:.2em .4em;border-radius:3px;background:var(--waline-bgcolor-light);font-size:85%}.v[data-class=v] pre{overflow:auto;padding:10px;line-height:1.45}.v[data-class=v] pre::-webkit-scrollbar{width:6px;height:6px}.v[data-class=v] pre::-webkit-scrollbar-track-piece:horizontal{-webkit-border-radius:6px;border-radius:6px;background:rgba(0,0,0,.1)}.v[data-class=v] pre::-webkit-scrollbar-thumb:horizontal{width:6px;-webkit-border-radius:6px;border-radius:6px;background:var(--waline-theme-color)}.v[data-class=v] pre code{padding:0;background:transparent;color:var(--waline-text-color);white-space:pre-wrap;word-break:keep-all}.v[data-class=v] blockquote{margin:.5em 0;padding:.5em 0 .5em 1em;border-left:8px solid var(--waline-bq-color);color:var(--waline-dark-grey)}.v[data-class=v] blockquote>p{margin:0}.v[data-class=v] ol,.v[data-class=v] ul{margin-left:1.25em;padding:0}.v[data-class=v] input[type=checkbox],.v[data-class=v] input[type=radio]{display:inline-block;vertical-align:middle;margin-top:-2px}.v[data-class=v] .vbtn{display:inline-block;vertical-align:middle;min-width:2.5em;margin-bottom:0;padding:.5em 1em;border:1px solid var(--waline-border-color);border-radius:.5em;background:transparent;color:var(--waline-text-color);font-weight:400;font-size:.75em;line-height:1.5;text-align:center;white-space:nowrap;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;transition-duration:.4s;touch-action:manipulation}.v[data-class=v] .vbtn:hover,.v[data-class=v] .vbtn:active{border-color:var(--waline-theme-color);color:var(--waline-theme-color)}.v[data-class=v] .vbtn:disabled{border-color:var(--waline-border-color);background:var(--waline-disable-bgcolor);color:var(--waline-disable-color);cursor:not-allowed}.v[data-class=v] .vbtn.primary{border-color:var(--waline-theme-color);background:var(--waline-theme-color);color:var(--waline-white)}.v[data-class=v] .vbtn.primary:hover,.v[data-class=v] .vbtn.primary:active{border-color:var(--waline-active-color);background:var(--waline-active-color);color:var(--waline-white)}.v[data-class=v] .vbtn.primary:disabled{border-color:var(--waline-border-color);background:var(--waline-disable-bgcolor);color:var(--waline-disable-color);cursor:not-allowed}.v[data-class=v] .vloading{text-align:center}.v[data-class=v] .vloading svg{margin:0 auto}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes pulse{50%{background:#dcdcdc}}.v[data-class=v] .vcomment{position:relative;display:flex;margin-bottom:.75em}.v[data-class=v] .vclose{position:absolute;top:-4px;right:-4px;padding:0;border:none;background:transparent;line-height:1;cursor:pointer}.v[data-class=v] .vlogin-info{max-width:80px;margin-top:.75em;text-align:center}.v[data-class=v] .vlogout-btn{position:absolute;top:-10px;right:-10px;padding:3px;border:none;background:transparent;line-height:0;cursor:pointer}.v[data-class=v] .vavatar{position:relative;width:var(--waline-avatar-size);height:var(--waline-avatar-size);margin:0 auto;border:var(--waline-border);border-radius:var(--waline-avatar-radius)}@media(max-width: 720px){.v[data-class=v] .vavatar{width:var(--waline-mobile-avatar-size);height:var(--waline-mobile-avatar-size)}}.v[data-class=v] .vavatar img{width:100%;height:100%;border-radius:var(--waline-avatar-radius)}.v[data-class=v] .vlogin-nick{display:block;color:var(--waline-theme-color);font-size:.75em;word-break:break-all}.v[data-class=v] .vpanel{position:relative;width:100%;flex-shrink:1;margin:.5em;border:var(--waline-border);border-radius:.75em;background:var(--waline-bgcolor);box-shadow:var(--waline-box-shadow)}.v[data-class=v] .vheader{display:flex;padding:0 4px;border-bottom:2px dashed var(--waline-border-color);border-top-left-radius:.75em;border-top-right-radius:.75em;overflow:hidden}@media(max-width: 580px){.v[data-class=v] .vheader{display:block}}.v[data-class=v] .vheader .vheader-item{display:flex;flex:1}@media(max-width: 580px){.v[data-class=v] .vheader .vheader-item:not(:last-child){border-bottom:2px dashed var(--waline-border-color)}}.v[data-class=v] .vheader.vheader-1 .vheader-item{width:100%}.v[data-class=v] .vheader.vheader-2 .vheader-item{width:50%}@media(max-width: 580px){.v[data-class=v] .vheader.vheader-2 .vheader-item{flex:0;width:100%}}.v[data-class=v] .vheader.vheader-3 .vheader-item{width:33.33%}@media(max-width: 580px){.v[data-class=v] .vheader.vheader-3 .vheader-item{width:100%}}.v[data-class=v] .vheader label{min-width:40px;padding:.75em .5em;color:var(--waline-text-color);font-size:.75em;text-align:center}.v[data-class=v] .vheader input{flex:1;width:0;padding:.5em;background:transparent;font-size:.625em;resize:none}.v[data-class=v] .veditor,.v[data-class=v] .vinput{max-width:100%;border:none;color:var(--waline-text-color);outline:none;transition:all .25s ease}.v[data-class=v] .veditor:focus,.v[data-class=v] .vinput:focus{background:var(--waline-bgcolor-light)}.v[data-class=v] .veditor{position:relative;width:calc(100% - 1em);min-height:8.75em;margin:.75em .5em;border-radius:.5em;background:transparent;font-size:.875em;resize:vertical}.v[data-class=v] .vpreview{padding:0 .5em .5em}.v[data-class=v] .vpreview h4{margin:.25em;font-weight:bold;font-size:.9375em}.v[data-class=v] .vpreview .vcontent{min-height:1.25em;padding:.25em;border:var(--waline-border);border-radius:.25em}.v[data-class=v] .vpreview .vcontent>*:first-child{margin-top:0}.v[data-class=v] .vpreview .vcontent>*:last-child{margin-bottom:0}.v[data-class=v] .vfooter{position:relative;display:flex;flex-wrap:wrap;margin:.5em .75em}.v[data-class=v] .vactions{display:flex;flex:2;align-items:center}.v[data-class=v] .vaction{width:1.5em;height:1.5em;border:none;margin:2px;padding:0;background:transparent;font-size:16px;cursor:pointer;color:var(--waline-text-color);display:inline-flex;justify-content:center;align-items:center}.v[data-class=v] .vaction:hover{color:var(--waline-theme-color)}.v[data-class=v] .vaction.actived{color:var(--waline-active-color)}.v[data-class=v] #waline-image-upload{display:none}.v[data-class=v] #waline-image-upload:focus+label{color:var(--waline-text-color)}.v[data-class=v] #waline-image-upload:focus-visible+label{outline:-webkit-focus-ring-color auto 1px}.v[data-class=v] .vinfo{display:flex;flex:3;align-items:center;justify-content:flex-end}.v[data-class=v] .vinfo .vtext-number{color:var(--waline-info-color);font-size:.75em}.v[data-class=v] .vinfo .vtext-number .illegal{color:red}.v[data-class=v] .vinfo button{margin-left:.75em}.v[data-class=v] .vinfo button svg{display:block;margin:0 auto;line-height:18px}.v[data-class=v] .vemoji-popup{position:absolute;top:100%;left:1.25em;z-index:10;max-width:526px;border:var(--waline-border);border-radius:6px;background:var(--waline-bgcolor);box-shadow:var(--waline-box-shadow);visibility:hidden;opacity:0;transform:scale(0.9, 0.9);transform-origin:0 0;transition:transform .2s ease-out,opacity .2s ease-out}.v[data-class=v] .vemoji-popup.display{visibility:visible;opacity:1;transform:none}.v[data-class=v] .vemoji-popup button{display:inline-block;vertical-align:middle;background:transparent;width:2em;margin:.125em;padding:0;border-width:0;font-size:inherit;line-height:2;text-align:center;cursor:pointer}.v[data-class=v] .vemoji-popup button:hover{background:var(--waline-bgcolor-hover)}.v[data-class=v] .vemoji-popup .vemoji{display:inline-block;vertical-align:middle;max-width:1.5em;max-height:1.5em}.v[data-class=v] .vemoji-popup .vtab-wrapper{max-height:145px;overflow-y:auto;padding:.5em}.v[data-class=v] .vemoji-popup .vtab-wrapper::-webkit-scrollbar{width:6px;height:6px}.v[data-class=v] .vemoji-popup .vtab-wrapper::-webkit-scrollbar-track-piece:vertical{-webkit-border-radius:6px;border-radius:6px;background:rgba(0,0,0,.1)}.v[data-class=v] .vemoji-popup .vtab-wrapper::-webkit-scrollbar-thumb:vertical{width:6px;-webkit-border-radius:6px;border-radius:6px;background:var(--waline-theme-color)}.v[data-class=v] .vemoji-popup .vtabs{position:relative;height:2em;padding:0 6px}.v[data-class=v] .vemoji-popup .vtabs::before{content:" ";position:absolute;z-index:2;left:0;top:0;right:0;height:1px;background:var(--waline-border-color)}.v[data-class=v] .vemoji-popup .vtab{position:relative;margin:0;padding:0 .5em}.v[data-class=v] .vemoji-popup .vtab.active{z-index:3;background:var(--waline-bgcolor);border:1px solid var(--waline-border-color);border-top-width:0;border-bottom-left-radius:6px;border-bottom-right-radius:6px}.v[data-class=v] .vcards .vitem{position:relative;display:flex;padding:.5em}.v[data-class=v] .vcards .vitem .vuser{width:var(--waline-avatar-size);height:var(--waline-avatar-size);margin-right:.75em;border-radius:var(--waline-avatar-radius);box-shadow:var(--waline-box-shadow)}@media(max-width: 720px){.v[data-class=v] .vcards .vitem .vuser{width:var(--waline-mobile-avatar-size);height:var(--waline-mobile-avatar-size)}}.v[data-class=v] .vcards .vitem:last-child .vcard{border-bottom:none}.v[data-class=v] .vcards .vcard .vitem{padding:0}.v[data-class=v] .vcard{flex:1;width:0;padding-bottom:.5em;border-bottom:1px dashed var(--waline-border-color)}.v[data-class=v] .vcard:first-child{margin-left:1em}.v[data-class=v] .vcard .vhead{line-height:1.5}.v[data-class=v] .vcard .vhead .vnick{position:relative;display:inline-block;margin-right:.5em;font-weight:bold;font-size:.875em;line-height:1;text-decoration:none;cursor:pointer}.v[data-class=v] .vcard .vhead span.vnick{color:var(--waline-dark-grey)}.v[data-class=v] .vcard .vhead .vbadge{display:inline-block;margin-right:.5em;padding:0 .3em;border-radius:3px;background:var(--waline-badge-color);color:var(--waline-white);font-size:var(--waline-badge-font-size)}.v[data-class=v] .vcard .vhead .vtime{margin-right:.875em;color:var(--waline-info-color);font-size:.75em}.v[data-class=v] .vcard .vhead .vreply{float:right;cursor:pointer;padding:4px;border:none;background:transparent;color:var(--waline-text-color);line-height:1;transition:color .2s ease}.v[data-class=v] .vcard .vhead .vreply:hover{color:var(--waline-theme-color)}.v[data-class=v] .vcard .vhead .vreply.active{color:var(--waline-active-color)}.v[data-class=v] .vcard .vmeta{position:relative;line-height:1}.v[data-class=v] .vcard .vmeta>span{display:inline-block;margin-right:.25em;padding:2px 4px;border-radius:.2em;background:var(--waline-info-bgcolor);color:var(--waline-info-color);font-size:var(--waline-info-font-size);line-height:1.5}@media(max-width: 520px){.v[data-class=v] .vcard .vmeta>span{display:none}}.v[data-class=v] .vcard .vmeta>span:empty{display:none}.v[data-class=v] .vcard .vcontent{position:relative;margin-bottom:.75em;padding-top:.625em;font-size:.875em;line-height:2;word-wrap:break-word;word-break:break-all}.v[data-class=v] .vcard .vcontent.expand{overflow:hidden;max-height:8em;cursor:pointer}.v[data-class=v] .vcard .vcontent.expand::before{content:"";position:absolute;top:0;bottom:3.15em;left:0;z-index:999;display:block;width:100%;background:-webkit-gradient(linear, left top, left bottom, from(#000), to(rgba(255, 255, 255, 0.9)));background:linear-gradient(180deg, #000, rgba(255, 255, 255, 0.9))}.v[data-class=v] .vcard .vcontent.expand::after{content:attr(data-expand);position:absolute;bottom:0;left:0;z-index:999;display:block;width:100%;height:3.15em;background:rgba(255,255,255,.9);color:#828586;line-height:3.15em;text-align:center}.v[data-class=v] .vcard .vcontent>*:first-child{margin-top:0}.v[data-class=v] .vcard .vcontent>*:last-child{margin-bottom:0}.v[data-class=v] .vcard .vquote{border-left:1px dashed rgba(237,237,237,.5)}.v[data-class=v] .vcard .vquote .vuser{width:var(--waline-mobile-avatar-size);height:var(--waline-mobile-avatar-size)}.v[data-class=v] .vclose-icon{color:var(--waline-border-color)}.v[data-class=v] .vcontent .vemoji{display:inline-block;vertical-align:middle;width:1.25em;margin:.25em}.v[data-class=v] .vcontent .vtex{background:var(--waline-info-bgcolor);color:var(--waline-info-color)}.v[data-class=v] .vcontent span.vtex{display:inline-block;margin-right:.25em;padding:2px 4px;border-radius:.2em;font-size:var(--waline-info-font-size);line-height:1.5}.v[data-class=v] .vcontent p.vtex{text-align:center}.v[data-class=v] .vcontent .katex-display{padding-top:.2em;padding-bottom:.2em;overflow:auto hidden;-webkit-overflow-scrolling:touch}.v[data-class=v] .vcontent .katex-display::-webkit-scrollbar{height:3px}.v[data-class=v] .vcontent .katex-error{color:red}.v[data-class=v] .vcount{padding:.375em;font-weight:bold;font-size:1.25em}.v[data-class=v] .vempty{overflow:auto;padding:1.25em;color:var(--waline-text-color);text-align:center}.v[data-class=v] .vmore{text-align:center}.v[data-class=v] .vmore button{margin:1em 0}.v[data-class=v] .vpower{padding:.5em 0;color:var(--waline-light-grey);font-size:var(--waline-info-font-size);text-align:right}.v[data-class=v] pre,.v[data-class=v] pre[class*=language-]{line-height:1.4;padding:1rem 1.25rem;margin:.75rem 0;background:var(--waline-code-bgcolor);border-radius:6px;overflow:auto}.v[data-class=v] pre code,.v[data-class=v] pre[class*=language-] code{color:#bbb;padding:0;background:transparent !important;border-radius:0}.v[data-class=v] code[class*=language-],.v[data-class=v] pre[class*=language-]{color:#ccc;background:none;font-family:Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}.v[data-class=v] pre[class*=language-]{overflow:auto}.v[data-class=v] :not(pre)>code[class*=language-],.v[data-class=v] pre[class*=language-]{background:#2d2d2d}.v[data-class=v] :not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.v[data-class=v] .token.comment,.v[data-class=v] .token.block-comment,.v[data-class=v] .token.prolog,.v[data-class=v] .token.doctype,.v[data-class=v] .token.cdata{color:#999}.v[data-class=v] .token.punctuation{color:#ccc}.v[data-class=v] .token.tag,.v[data-class=v] .token.attr-name,.v[data-class=v] .token.namespace,.v[data-class=v] .token.deleted{color:#e2777a}.v[data-class=v] .token.function-name{color:#6196cc}.v[data-class=v] .token.boolean,.v[data-class=v] .token.number,.v[data-class=v] .token.function{color:#f08d49}.v[data-class=v] .token.property,.v[data-class=v] .token.class-name,.v[data-class=v] .token.constant,.v[data-class=v] .token.symbol{color:#f8c555}.v[data-class=v] .token.selector,.v[data-class=v] .token.important,.v[data-class=v] .token.atrule,.v[data-class=v] .token.keyword,.v[data-class=v] .token.builtin{color:#cc99cd}.v[data-class=v] .token.string,.v[data-class=v] .token.char,.v[data-class=v] .token.attr-value,.v[data-class=v] .token.regex,.v[data-class=v] .token.variable{color:#7ec699}.v[data-class=v] .token.operator,.v[data-class=v] .token.entity,.v[data-class=v] .token.url{color:#67cdcc}.v[data-class=v] .token.important,.v[data-class=v] .token.bold{font-weight:bold}.v[data-class=v] .token.italic{font-style:italic}.v[data-class=v] .token.entity{cursor:help}.v[data-class=v] .token.inserted{color:green}.waline-widget-item p{display:inline}',""]);const a=o},609:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(r)for(var a=0;a'+e+""}(n);if("<"===t)return"<";var r;i[t]?r=i[t]:(r=o[a],i[t]=r);var l=''+t+"";return a=++a%o.length,l}))}}()},917:function(e){e.exports=function(){"use strict";function e(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r={exports:{}};function o(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}r.exports={defaults:{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1},getDefaults:o,changeDefaults:function(e){r.exports.defaults=e}};var a=/[&<>"']/,i=/[&<>"']/g,l=/[<>"']|&(?!#?\w+;)/,s=/[<>"']|&(?!#?\w+;)/g,u={"&":"&","<":"<",">":">",'"':""","'":"'"},c=function(e){return u[e]};var d=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function p(e){return e.replace(d,(function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""}))}var h=/(^|[^\[])\^/g;var f=/[^\w:]/g,v=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;var m={},g=/^[^:]+:\/*[^/]*$/,b=/^([^:]+:)[\s\S]*$/,D=/^([^:]+:\/*[^/]*)[\s\S]*$/;function y(e,t){m[" "+e]||(g.test(e)?m[" "+e]=e+"/":m[" "+e]=w(e,"/",!0));var n=-1===(e=m[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(b,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(D,"$1")+t:e+t}function w(e,t,n){var r=e.length;if(0===r)return"";for(var o=0;o=0&&"\\"===n[o];)r=!r;return r?"|":" |"})).split(/ \|/),r=0;if(n.length>t)n.splice(t);else for(;n.length1;)1&t&&(n+=e),t>>=1,e+=e;return n+e},T=r.exports.defaults,I=B,L=_,R=k,O=S;function j(e,t,n){var r=t.href,o=t.title?R(t.title):null,a=e[1].replace(/\\([\[\]])/g,"$1");return"!"!==e[0].charAt(0)?{type:"link",raw:n,href:r,title:o,text:a}:{type:"image",raw:n,href:r,title:o,text:R(a)}}var M=function(){function e(e){this.options=e||T}var t=e.prototype;return t.space=function(e){var t=this.rules.block.newline.exec(e);if(t)return t[0].length>1?{type:"space",raw:t[0]}:{raw:"\n"}},t.code=function(e){var t=this.rules.block.code.exec(e);if(t){var n=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:I(n,"\n")}}},t.fences=function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],r=function(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var r=n[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null===t?e:t[0].length>=r.length?e.slice(r.length):e})).join("\n")}(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim():t[2],text:r}}},t.heading=function(e){var t=this.rules.block.heading.exec(e);if(t){var n=t[2].trim();if(/#$/.test(n)){var r=I(n,"#");this.options.pedantic?n=r.trim():r&&!/ $/.test(r)||(n=r.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n}}},t.nptable=function(e){var t=this.rules.block.nptable.exec(e);if(t){var n={type:"table",header:L(t[1].replace(/^ *| *\| *$/g,"")),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:t[3]?t[3].replace(/\n$/,"").split("\n"):[],raw:t[0]};if(n.header.length===n.align.length){var r,o=n.align.length;for(r=0;r ?/gm,"");return{type:"blockquote",raw:t[0],text:n}}},t.list=function(e){var t=this.rules.block.list.exec(e);if(t){var n,r,o,a,i,l,s,u,c,d=t[0],p=t[2],h=p.length>1,f={type:"list",raw:d,ordered:h,start:h?+p.slice(0,-1):"",loose:!1,items:[]},v=t[0].match(this.rules.block.item),m=!1,g=v.length;o=this.rules.block.listItemStart.exec(v[0]);for(var b=0;bo[1].length:a[1].length>=o[0].length||a[1].length>3){v.splice(b,2,v[b]+(!this.options.pedantic&&a[1].length/i.test(r[0])&&(t=!1),!n&&/^<(pre|code|kbd|script)(\s|>)/i.test(r[0])?n=!0:n&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(r[0])&&(n=!1),{type:this.options.sanitize?"text":"html",raw:r[0],inLink:t,inRawBlock:n,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(r[0]):R(r[0]):r[0]}},t.link=function(e){var t=this.rules.inline.link.exec(e);if(t){var n=t[2].trim();if(!this.options.pedantic&&/^$/.test(n))return;var r=I(n.slice(0,-1),"\\");if((n.length-r.length)%2==0)return}else{var o=O(t[2],"()");if(o>-1){var a=(0===t[0].indexOf("!")?5:4)+t[1].length+o;t[2]=t[2].substring(0,o),t[0]=t[0].substring(0,a).trim(),t[3]=""}}var i=t[2],l="";if(this.options.pedantic){var s=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(i);s&&(i=s[1],l=s[3])}else l=t[3]?t[3].slice(1,-1):"";return i=i.trim(),/^$/.test(n)?i.slice(1):i.slice(1,-1)),j(t,{href:i?i.replace(this.rules.inline._escapes,"$1"):i,title:l?l.replace(this.rules.inline._escapes,"$1"):l},t[0])}},t.reflink=function(e,t){var n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){var r=(n[2]||n[1]).replace(/\s+/g," ");if(!(r=t[r.toLowerCase()])||!r.href){var o=n[0].charAt(0);return{type:"text",raw:o,text:o}}return j(n,r,n[0])}},t.emStrong=function(e,t,n){void 0===n&&(n="");var r=this.rules.inline.emStrong.lDelim.exec(e);if(r&&(!r[3]||!n.match(/(?:[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\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\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08C7\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\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\u1369-\u137C\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\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\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\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\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-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\u9FFC\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7BF\uA7C2-\uA7CA\uA7F5-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\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-\uAB69\uAB70-\uABE2\uABF0-\uABF9\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\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDF00-\uDF1A\uDF30-\uDF3B]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82C[\uDC00-\uDD1E\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD834[\uDEE0-\uDEF3\uDF60-\uDF78]|\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]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\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]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDD\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])/))){var o=r[1]||r[2]||"";if(!o||o&&(""===n||this.rules.inline.punctuation.exec(n))){var a,i,l=r[0].length-1,s=l,u=0,c="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(c.lastIndex=0,t=t.slice(-1*e.length+l);null!=(r=c.exec(t));)if(a=r[1]||r[2]||r[3]||r[4]||r[5]||r[6])if(i=a.length,r[3]||r[4])s+=i;else if(!((r[5]||r[6])&&l%3)||(l+i)%3){if(!((s-=i)>0))return i=Math.min(i,i+s+u),Math.min(l,i)%2?{type:"em",raw:e.slice(0,l+r.index+i+1),text:e.slice(1,l+r.index+i)}:{type:"strong",raw:e.slice(0,l+r.index+i+1),text:e.slice(2,l+r.index+i-1)}}else u+=i}}},t.codespan=function(e){var t=this.rules.inline.code.exec(e);if(t){var n=t[2].replace(/\n/g," "),r=/[^ ]/.test(n),o=/^ /.test(n)&&/ $/.test(n);return r&&o&&(n=n.substring(1,n.length-1)),n=R(n,!0),{type:"codespan",raw:t[0],text:n}}},t.br=function(e){var t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}},t.del=function(e){var t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2]}},t.autolink=function(e,t){var n,r,o=this.rules.inline.autolink.exec(e);if(o)return r="@"===o[2]?"mailto:"+(n=R(this.options.mangle?t(o[1]):o[1])):n=R(o[1]),{type:"link",raw:o[0],text:n,href:r,tokens:[{type:"text",raw:n,text:n}]}},t.url=function(e,t){var n;if(n=this.rules.inline.url.exec(e)){var r,o;if("@"===n[2])o="mailto:"+(r=R(this.options.mangle?t(n[0]):n[0]));else{var a;do{a=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(a!==n[0]);r=R(n[0]),o="www."===n[1]?"http://"+r:r}return{type:"link",raw:n[0],text:r,href:o,tokens:[{type:"text",raw:r,text:r}]}}},t.inlineText=function(e,t,n){var r,o=this.rules.inline.text.exec(e);if(o)return r=t?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(o[0]):R(o[0]):o[0]:R(this.options.smartypants?n(o[0]):o[0]),{type:"text",raw:o[0],text:r}},e}(),U=E,P=C,N=F,V={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?:\n+|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3})(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?! {0,3}bull )\n*|\s*$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *\n? *([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,nptable:U,table:U,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};V.def=P(V.def).replace("label",V._label).replace("title",V._title).getRegex(),V.bullet=/(?:[*+-]|\d{1,9}[.)])/,V.item=/^( *)(bull) ?[^\n]*(?:\n(?! *bull ?)[^\n]*)*/,V.item=P(V.item,"gm").replace(/bull/g,V.bullet).getRegex(),V.listItemStart=P(/^( *)(bull) */).replace("bull",V.bullet).getRegex(),V.list=P(V.list).replace(/bull/g,V.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+V.def.source+")").getRegex(),V._tag="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",V._comment=/|$)/,V.html=P(V.html,"i").replace("comment",V._comment).replace("tag",V._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),V.paragraph=P(V._paragraph).replace("hr",V.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",V._tag).getRegex(),V.blockquote=P(V.blockquote).replace("paragraph",V.paragraph).getRegex(),V.normal=N({},V),V.gfm=N({},V.normal,{nptable:"^ *([^|\\n ].*\\|.*)\\n {0,3}([-:]+ *\\|[-| :]*)(?:\\n((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)",table:"^ *\\|(.+)\\n {0,3}\\|?( *[-:]+[-| :]*)(?:\\n *((?:(?!\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),V.gfm.nptable=P(V.gfm.nptable).replace("hr",V.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",V._tag).getRegex(),V.gfm.table=P(V.gfm.table).replace("hr",V.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",V._tag).getRegex(),V.pedantic=N({},V.normal,{html:P("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?\\1> *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",V._comment).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:U,paragraph:P(V.normal._paragraph).replace("hr",V.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",V.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});var q={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:U,tag:"^comment|^[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/\_\_[^_*]*?\*[^_*]*?\_\_|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/\*\*[^_*]*?\_[^_*]*?\*\*|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:U,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~"};q.punctuation=P(q.punctuation).replace(/punctuation/g,q._punctuation).getRegex(),q.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,q.escapedEmSt=/\\\*|\\_/g,q._comment=P(V._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),q.emStrong.lDelim=P(q.emStrong.lDelim).replace(/punct/g,q._punctuation).getRegex(),q.emStrong.rDelimAst=P(q.emStrong.rDelimAst,"g").replace(/punct/g,q._punctuation).getRegex(),q.emStrong.rDelimUnd=P(q.emStrong.rDelimUnd,"g").replace(/punct/g,q._punctuation).getRegex(),q._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,q._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,q._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,q.autolink=P(q.autolink).replace("scheme",q._scheme).replace("email",q._email).getRegex(),q._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,q.tag=P(q.tag).replace("comment",q._comment).replace("attribute",q._attribute).getRegex(),q._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,q._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,q._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,q.link=P(q.link).replace("label",q._label).replace("href",q._href).replace("title",q._title).getRegex(),q.reflink=P(q.reflink).replace("label",q._label).getRegex(),q.reflinkSearch=P(q.reflinkSearch,"g").replace("reflink",q.reflink).replace("nolink",q.nolink).getRegex(),q.normal=N({},q),q.pedantic=N({},q.normal,{strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:P(/^!?\[(label)\]\((.*?)\)/).replace("label",q._label).getRegex(),reflink:P(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",q._label).getRegex()}),q.gfm=N({},q.normal,{escape:P(q.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\.5&&(n="x"+n.toString(16)),r+=""+n+";";return r}var Q=function(){function t(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||Z,this.options.tokenizer=this.options.tokenizer||new W,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options;var t={block:J.normal,inline:K.normal};this.options.pedantic?(t.block=J.pedantic,t.inline=K.pedantic):this.options.gfm&&(t.block=J.gfm,this.options.breaks?t.inline=K.breaks:t.inline=K.gfm),this.tokenizer.rules=t}t.lex=function(e,n){return new t(n).lex(e)},t.lexInline=function(e,n){return new t(n).inlineTokens(e)};var n,r,o,a=t.prototype;return a.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),this.blockTokens(e,this.tokens,!0),this.inline(this.tokens),this.tokens},a.blockTokens=function(e,t,n){var r,o,a,i,l,s,u=this;for(void 0===t&&(t=[]),void 0===n&&(n=!0),this.options.pedantic&&(e=e.replace(/^ +$/gm,""));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((function(n){return!!(r=n.call(u,e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)}))))if(r=this.tokenizer.space(e))e=e.substring(r.raw.length),r.type&&t.push(r);else if(r=this.tokenizer.code(e))e=e.substring(r.raw.length),(i=t[t.length-1])&&"paragraph"===i.type?(i.raw+="\n"+r.raw,i.text+="\n"+r.text):t.push(r);else if(r=this.tokenizer.fences(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.heading(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.nptable(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.hr(e))e=e.substring(r.raw.length),t.push(r);else if(r=this.tokenizer.blockquote(e))e=e.substring(r.raw.length),r.tokens=this.blockTokens(r.text,[],n),t.push(r);else if(r=this.tokenizer.list(e)){for(e=e.substring(r.raw.length),a=r.items.length,o=0;o=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(l=e.substring(0,t+1))}(),n&&(r=this.tokenizer.paragraph(l)))i=t[t.length-1],s&&"paragraph"===i.type?(i.raw+="\n"+r.raw,i.text+="\n"+r.text):t.push(r),s=l.length!==e.length,e=e.substring(r.raw.length);else if(r=this.tokenizer.text(e))e=e.substring(r.raw.length),(i=t[t.length-1])&&"text"===i.type?(i.raw+="\n"+r.raw,i.text+="\n"+r.text):t.push(r);else if(e){var c="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(c);break}throw new Error(c)}return t},a.inline=function(e){var t,n,r,o,a,i,l=e.length;for(t=0;t0)for(;null!=(s=this.tokenizer.rules.inline.reflinkSearch.exec(d));)p.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(d=d.slice(0,s.index)+"["+X("a",s[0].length-2)+"]"+d.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(s=this.tokenizer.rules.inline.blockSkip.exec(d));)d=d.slice(0,s.index)+"["+X("a",s[0].length-2)+"]"+d.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(s=this.tokenizer.rules.inline.escapedEmSt.exec(d));)d=d.slice(0,s.index)+"++"+d.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(u||(c=""),u=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((function(n){return!!(o=n.call(l,e,t))&&(e=e.substring(o.raw.length),t.push(o),!0)}))))if(o=this.tokenizer.escape(e))e=e.substring(o.raw.length),t.push(o);else if(o=this.tokenizer.tag(e,n,r))e=e.substring(o.raw.length),n=o.inLink,r=o.inRawBlock,(a=t[t.length-1])&&"text"===o.type&&"text"===a.type?(a.raw+=o.raw,a.text+=o.text):t.push(o);else if(o=this.tokenizer.link(e))e=e.substring(o.raw.length),"link"===o.type&&(o.tokens=this.inlineTokens(o.text,[],!0,r)),t.push(o);else if(o=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(o.raw.length),a=t[t.length-1],"link"===o.type?(o.tokens=this.inlineTokens(o.text,[],!0,r),t.push(o)):a&&"text"===o.type&&"text"===a.type?(a.raw+=o.raw,a.text+=o.text):t.push(o);else if(o=this.tokenizer.emStrong(e,d,c))e=e.substring(o.raw.length),o.tokens=this.inlineTokens(o.text,[],n,r),t.push(o);else if(o=this.tokenizer.codespan(e))e=e.substring(o.raw.length),t.push(o);else if(o=this.tokenizer.br(e))e=e.substring(o.raw.length),t.push(o);else if(o=this.tokenizer.del(e))e=e.substring(o.raw.length),o.tokens=this.inlineTokens(o.text,[],n,r),t.push(o);else if(o=this.tokenizer.autolink(e,G))e=e.substring(o.raw.length),t.push(o);else if(n||!(o=this.tokenizer.url(e,G))){if(i=e,this.options.extensions&&this.options.extensions.startInline&&function(){var t=1/0,n=e.slice(1),r=void 0;l.options.extensions.startInline.forEach((function(e){"number"==typeof(r=e.call(this,n))&&r>=0&&(t=Math.min(t,r))})),t<1/0&&t>=0&&(i=e.substring(0,t+1))}(),o=this.tokenizer.inlineText(i,r,Y))e=e.substring(o.raw.length),"_"!==o.raw.slice(-1)&&(c=o.raw.slice(-1)),u=!0,(a=t[t.length-1])&&"text"===a.type?(a.raw+=o.raw,a.text+=o.text):t.push(o);else if(e){var h="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(h);break}throw new Error(h)}}else e=e.substring(o.raw.length),t.push(o);return t},n=t,o=[{key:"rules",get:function(){return{block:J,inline:K}}}],(r=null)&&e(n.prototype,r),o&&e(n,o),t}(),ee=r.exports.defaults,te=A,ne=k,re=function(){function e(e){this.options=e||ee}var t=e.prototype;return t.code=function(e,t,n){var r=(t||"").match(/\S*/)[0];if(this.options.highlight){var o=this.options.highlight(e,r);null!=o&&o!==e&&(n=!0,e=o)}return e=e.replace(/\n$/,"")+"\n",r?''+(n?e:ne(e,!0))+"
\n":""+(n?e:ne(e,!0))+"
\n"},t.blockquote=function(e){return"\n"+e+"
\n"},t.html=function(e){return e},t.heading=function(e,t,n,r){return this.options.headerIds?"\n":""+e+"\n"},t.hr=function(){return this.options.xhtml?"
\n":"
\n"},t.list=function(e,t,n){var r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+""+r+">\n"},t.listitem=function(e){return""+e+"\n"},t.checkbox=function(e){return" "},t.paragraph=function(e){return""+e+"
\n"},t.table=function(e,t){return t&&(t=""+t+""),"\n"},t.tablerow=function(e){return"\n"+e+"
\n"},t.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' align="'+t.align+'">':"<"+n+">")+e+""+n+">\n"},t.strong=function(e){return""+e+""},t.em=function(e){return""+e+""},t.codespan=function(e){return""+e+"
"},t.br=function(){return this.options.xhtml?"
":"
"},t.del=function(e){return""+e+""},t.link=function(e,t,n){if(null===(e=te(this.options.sanitize,this.options.baseUrl,e)))return n;var r='"+n+""},t.image=function(e,t,n){if(null===(e=te(this.options.sanitize,this.options.baseUrl,e)))return n;var r='":">")},t.text=function(e){return e},e}(),oe=function(){function e(){}var t=e.prototype;return t.strong=function(e){return e},t.em=function(e){return e},t.codespan=function(e){return e},t.del=function(e){return e},t.html=function(e){return e},t.text=function(e){return e},t.link=function(e,t,n){return""+n},t.image=function(e,t,n){return""+n},t.br=function(){return""},e}(),ae=function(){function e(){this.seen={}}var t=e.prototype;return t.serialize=function(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")},t.getNextSafeSlug=function(e,t){var n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do{n=e+"-"+ ++r}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n},t.slug=function(e,t){void 0===t&&(t={});var n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)},e}(),ie=re,le=oe,se=ae,ue=r.exports.defaults,ce=x,de=Q,pe=function(){function e(e){this.options=e||ue,this.options.renderer=this.options.renderer||new ie,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new le,this.slugger=new se}e.parse=function(t,n){return new e(n).parse(t)},e.parseInline=function(t,n){return new e(n).parseInline(t)};var t=e.prototype;return t.parse=function(e,t){void 0===t&&(t=!0);var n,r,o,a,i,l,s,u,c,d,p,h,f,v,m,g,b,D,y,w="",k=e.length;for(n=0;n0&&"text"===m.tokens[0].type?(m.tokens[0].text=D+" "+m.tokens[0].text,m.tokens[0].tokens&&m.tokens[0].tokens.length>0&&"text"===m.tokens[0].tokens[0].type&&(m.tokens[0].tokens[0].text=D+" "+m.tokens[0].tokens[0].text)):m.tokens.unshift({type:"text",text:D}):v+=D),v+=this.parse(m.tokens,f),c+=this.renderer.listitem(v,b,g);w+=this.renderer.list(c,p,h);continue;case"html":w+=this.renderer.html(d.text);continue;case"paragraph":w+=this.renderer.paragraph(this.parseInline(d.tokens));continue;case"text":for(c=d.tokens?this.parseInline(d.tokens):d.text;n+1An error occurred:
"+De(e.message+"",!0)+"
";throw e}}return xe.options=xe.setOptions=function(e){return ge(xe.defaults,e),we(xe.defaults),xe},xe.getDefaults=ye,xe.defaults=ke,xe.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;rAn error occurred:"+De(e.message+"",!0)+"
";throw e}},xe.Parser=pe,xe.parser=pe.parse,xe.Renderer=fe,xe.TextRenderer=ve,xe.Lexer=de,xe.lexer=de.lex,xe.Tokenizer=he,xe.Slugger=me,xe.parse=xe,xe}()},2:e=>{"use strict";var t={};e.exports=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}},62:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t),t}},36:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r=n.css,o=n.media,a=n.sourceMap;o?e.setAttribute("media",o):e.removeAttribute("media"),a&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(r,e)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var a=t[r]={id:r,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};return(()=>{"use strict";function e(e,t){const n=Object.create(null),r=e.split(",");for(let e=0;e!!n[e.toLowerCase()]:e=>!!n[e]}n.d(r,{default:()=>li});const t=e("Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt"),o=e("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function a(e){if(C(e)){const t={};for(let n=0;n{if(e){const n=e.split(l);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function u(e){let t="";if(B(e))t=e;else if(C(e))for(let n=0;nc(e,t)))}const p=e=>null==e?"":z(e)?JSON.stringify(e,h,2):String(e),h=(e,t)=>A(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:E(t)?{[`Set(${t.size})`]:[...t.values()]}:!z(t)||C(t)||L(t)?t:String(t),f={},v=[],m=()=>{},g=()=>!1,b=/^on[^a-z]/,D=e=>b.test(e),y=e=>e.startsWith("onUpdate:"),w=Object.assign,k=Object.prototype.hasOwnProperty,x=(e,t)=>k.call(e,t),C=Array.isArray,A=e=>"[object Map]"===I(e),E=e=>"[object Set]"===I(e),F=e=>e instanceof Date,_=e=>"function"==typeof e,B=e=>"string"==typeof e,S=e=>"symbol"==typeof e,z=e=>null!==e&&"object"==typeof e,$=e=>z(e)&&_(e.then)&&_(e.catch),T=Object.prototype.toString,I=e=>T.call(e),L=e=>"[object Object]"===I(e),R=e=>B(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,O=e(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),j=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},M=/-(\w)/g,U=j((e=>e.replace(M,((e,t)=>t?t.toUpperCase():"")))),P=/\B([A-Z])/g,N=j((e=>e.replace(P,"-$1").toLowerCase())),V=j((e=>e.charAt(0).toUpperCase()+e.slice(1))),q=j((e=>e?`on${V(e)}`:"")),H=(e,t)=>e!==t&&(e==e||t==t),W=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},J=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let K;const X=()=>K||(K="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{}),Y=new WeakMap,G=[];let Q;const ee=Symbol(""),te=Symbol("");function ne(e,t=f){(function(e){return e&&!0===e._isEffect})(e)&&(e=e.raw);const n=function(e,t){const n=function(){if(!n.active)return e();if(!G.includes(n)){ae(n);try{return le.push(ie),ie=!0,G.push(n),Q=n,e()}finally{G.pop(),ue(),Q=G[G.length-1]}}};return n.id=oe++,n.allowRecurse=!!t.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=e,n.deps=[],n.options=t,n}(e,t);return t.lazy||n(),n}function re(e){e.active&&(ae(e),e.options.onStop&&e.options.onStop(),e.active=!1)}let oe=0;function ae(e){const{deps:t}=e;if(t.length){for(let n=0;n{e&&e.forEach((e=>{(e!==Q||e.allowRecurse)&&l.add(e)}))};if("clear"===t)i.forEach(s);else if("length"===n&&C(e))i.forEach(((e,t)=>{("length"===t||t>=r)&&s(e)}));else switch(void 0!==n&&s(i.get(n)),t){case"add":C(e)?R(n)&&s(i.get("length")):(s(i.get(ee)),A(e)&&s(i.get(te)));break;case"delete":C(e)||(s(i.get(ee)),A(e)&&s(i.get(te)));break;case"set":A(e)&&s(i.get(ee))}l.forEach((e=>{e.options.scheduler?e.options.scheduler(e):e()}))}const pe=e("__proto__,__v_isRef,__isVue"),he=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(S)),fe=De(),ve=De(!1,!0),me=De(!0),ge=be();function be(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{const n=Array.prototype[t];e[t]=function(...e){const t=rt(this);for(let e=0,n=this.length;e{const n=Array.prototype[t];e[t]=function(...e){se();const t=n.apply(this,e);return ue(),t}})),e}function De(e=!1,t=!1){return function(n,r,o){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_raw"===r&&o===(e?t?Xe:Ke:t?Je:Ze).get(n))return n;const a=C(n);if(!e&&a&&x(ge,r))return Reflect.get(ge,r,o);const i=Reflect.get(n,r,o);return(S(r)?he.has(r):pe(r))?i:(e||ce(n,0,r),t?i:it(i)?a&&R(r)?i:i.value:z(i)?e?Ge(i):Ye(i):i)}}function ye(e=!1){return function(t,n,r,o){let a=t[n];if(!e&&(r=rt(r),a=rt(a),!C(t)&&it(a)&&!it(r)))return a.value=r,!0;const i=C(t)&&R(n)?Number(n)!0,deleteProperty:(e,t)=>!0},xe=w({},we,{get:ve,set:ye(!0)}),Ce=e=>z(e)?Ye(e):e,Ae=e=>z(e)?Ge(e):e,Ee=e=>e,Fe=e=>Reflect.getPrototypeOf(e);function _e(e,t,n=!1,r=!1){const o=rt(e=e.__v_raw),a=rt(t);t!==a&&!n&&ce(o,0,t),!n&&ce(o,0,a);const{has:i}=Fe(o),l=r?Ee:n?Ae:Ce;return i.call(o,t)?l(e.get(t)):i.call(o,a)?l(e.get(a)):void(e!==o&&e.get(t))}function Be(e,t=!1){const n=this.__v_raw,r=rt(n),o=rt(e);return e!==o&&!t&&ce(r,0,e),!t&&ce(r,0,o),e===o?n.has(e):n.has(e)||n.has(o)}function Se(e,t=!1){return e=e.__v_raw,!t&&ce(rt(e),0,ee),Reflect.get(e,"size",e)}function ze(e){e=rt(e);const t=rt(this);return Fe(t).has.call(t,e)||(t.add(e),de(t,"add",e,e)),this}function $e(e,t){t=rt(t);const n=rt(this),{has:r,get:o}=Fe(n);let a=r.call(n,e);a||(e=rt(e),a=r.call(n,e));const i=o.call(n,e);return n.set(e,t),a?H(t,i)&&de(n,"set",e,t):de(n,"add",e,t),this}function Te(e){const t=rt(this),{has:n,get:r}=Fe(t);let o=n.call(t,e);o||(e=rt(e),o=n.call(t,e)),r&&r.call(t,e);const a=t.delete(e);return o&&de(t,"delete",e,void 0),a}function Ie(){const e=rt(this),t=0!==e.size,n=e.clear();return t&&de(e,"clear",void 0,void 0),n}function Le(e,t){return function(n,r){const o=this,a=o.__v_raw,i=rt(a),l=t?Ee:e?Ae:Ce;return!e&&ce(i,0,ee),a.forEach(((e,t)=>n.call(r,l(e),l(t),o)))}}function Re(e,t,n){return function(...r){const o=this.__v_raw,a=rt(o),i=A(a),l="entries"===e||e===Symbol.iterator&&i,s="keys"===e&&i,u=o[e](...r),c=n?Ee:t?Ae:Ce;return!t&&ce(a,0,s?te:ee),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:l?[c(e[0]),c(e[1])]:c(e),done:t}},[Symbol.iterator](){return this}}}}function Oe(e){return function(...t){return"delete"!==e&&this}}function je(){const e={get(e){return _e(this,e)},get size(){return Se(this)},has:Be,add:ze,set:$e,delete:Te,clear:Ie,forEach:Le(!1,!1)},t={get(e){return _e(this,e,!1,!0)},get size(){return Se(this)},has:Be,add:ze,set:$e,delete:Te,clear:Ie,forEach:Le(!1,!0)},n={get(e){return _e(this,e,!0)},get size(){return Se(this,!0)},has(e){return Be.call(this,e,!0)},add:Oe("add"),set:Oe("set"),delete:Oe("delete"),clear:Oe("clear"),forEach:Le(!0,!1)},r={get(e){return _e(this,e,!0,!0)},get size(){return Se(this,!0)},has(e){return Be.call(this,e,!0)},add:Oe("add"),set:Oe("set"),delete:Oe("delete"),clear:Oe("clear"),forEach:Le(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((o=>{e[o]=Re(o,!1,!1),n[o]=Re(o,!0,!1),t[o]=Re(o,!1,!0),r[o]=Re(o,!0,!0)})),[e,n,t,r]}const[Me,Ue,Pe,Ne]=je();function Ve(e,t){const n=t?e?Ne:Pe:e?Ue:Me;return(t,r,o)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(x(n,r)&&r in t?n:t,r,o)}const qe={get:Ve(!1,!1)},He={get:Ve(!1,!0)},We={get:Ve(!0,!1)},Ze=new WeakMap,Je=new WeakMap,Ke=new WeakMap,Xe=new WeakMap;function Ye(e){return e&&e.__v_isReadonly?e:Qe(e,!1,we,qe,Ze)}function Ge(e){return Qe(e,!0,ke,We,Ke)}function Qe(e,t,n,r,o){if(!z(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const a=o.get(e);if(a)return a;const i=(l=e).__v_skip||!Object.isExtensible(l)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>I(e).slice(8,-1))(l));var l;if(0===i)return e;const s=new Proxy(e,2===i?r:n);return o.set(e,s),s}function et(e){return tt(e)?et(e.__v_raw):!(!e||!e.__v_isReactive)}function tt(e){return!(!e||!e.__v_isReadonly)}function nt(e){return et(e)||tt(e)}function rt(e){return e&&rt(e.__v_raw)||e}function ot(e){return Z(e,"__v_skip",!0),e}const at=e=>z(e)?Ye(e):e;function it(e){return Boolean(e&&!0===e.__v_isRef)}function lt(e){return function(e,t=!1){return it(e)?e:new st(e,t)}(e)}class st{constructor(e,t){this._rawValue=e,this._shallow=t,this.__v_isRef=!0,this._value=t?e:at(e)}get value(){return ce(rt(this),0,"value"),this._value}set value(e){H(rt(e),this._rawValue)&&(this._rawValue=e,this._value=this._shallow?e:at(e),de(rt(this),"set","value",e))}}const ut={get:(e,t,n)=>{return it(r=Reflect.get(e,t,n))?r.value:r;var r},set:(e,t,n,r)=>{const o=e[t];return it(o)&&!it(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function ct(e){return et(e)?e:new Proxy(e,ut)}class dt{constructor(e,t,n){this._setter=t,this._dirty=!0,this.__v_isRef=!0,this.effect=ne(e,{lazy:!0,scheduler:()=>{this._dirty||(this._dirty=!0,de(rt(this),"set","value"))}}),this.__v_isReadonly=n}get value(){const e=rt(this);return e._dirty&&(e._value=this.effect(),e._dirty=!1),ce(e,0,"value"),e._value}set value(e){this._setter(e)}}function pt(e,t,n,r){let o;try{o=r?e(...r):e()}catch(e){ft(e,t,n)}return o}function ht(e,t,n,r){if(_(e)){const o=pt(e,t,n,r);return o&&$(o)&&o.catch((e=>{ft(e,t,n)})),o}const o=[];for(let a=0;a>>1;It(gt[e])-1?gt.splice(t,0,e):gt.push(e),St()}}function St(){vt||mt||(mt=!0,Et=At.then(Lt))}function zt(e,t,n,r){C(e)?n.push(...e):t&&t.includes(e,e.allowRecurse?r+1:r)||n.push(e),St()}function $t(e,t=null){if(Dt.length){for(Ft=t,yt=[...new Set(Dt)],Dt.length=0,wt=0;wtIt(e)-It(t))),Ct=0;Ctnull==e.id?1/0:e.id;function Lt(e){mt=!1,vt=!0,$t(e),gt.sort(((e,t)=>It(e)-It(t)));try{for(bt=0;bt{Rt&&Rt.emit(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}function Pt(e,t,...n){const r=e.vnode.props||f;let o=n;const a=t.startsWith("update:"),i=a&&t.slice(7);if(i&&i in r){const e=`${"modelValue"===i?"model":i}Modifiers`,{number:t,trim:a}=r[e]||f;a?o=n.map((e=>e.trim())):t&&(o=n.map(J))}let l;__VUE_PROD_DEVTOOLS__&&function(e,t,n){Rt&&Rt.emit("component:emit",e.appContext.app,e,t,n)}(e,t,o);let s=r[l=q(t)]||r[l=q(U(t))];!s&&a&&(s=r[l=q(N(t))]),s&&ht(s,e,6,o);const u=r[l+"Once"];if(u){if(e.emitted){if(e.emitted[l])return}else e.emitted={};e.emitted[l]=!0,ht(u,e,6,o)}}function Nt(e,t,n=!1){const r=t.emitsCache,o=r.get(e);if(void 0!==o)return o;const a=e.emits;let i={};return a?(C(a)?a.forEach((e=>i[e]=null)):w(i,a),r.set(e,i),i):(r.set(e,null),null)}function Vt(e,t){return!(!e||!D(t))&&(t=t.slice(2).replace(/Once$/,""),x(e,t[0].toLowerCase()+t.slice(1))||x(e,N(t))||x(e,t))}Object.create(null),Object.create(null);let qt=null,Ht=null;function Wt(e){const t=qt;return qt=e,Ht=e&&e.type.__scopeId||null,t}function Zt(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:a,propsOptions:[i],slots:l,attrs:s,emit:u,render:c,renderCache:d,data:p,setupState:h,ctx:f,inheritAttrs:v}=e;let m;const g=Wt(e);try{let e;if(4&n.shapeFlag){const t=o||r;m=ur(c.call(t,t,d,a,h,p,f)),e=s}else{const n=t;m=ur(n.length>1?n(a,{attrs:s,slots:l,emit:u}):n(a,null)),e=t.props?s:Jt(s)}let g=m;if(e&&!1!==v){const t=Object.keys(e),{shapeFlag:n}=g;t.length&&(1&n||6&n)&&(i&&t.some(y)&&(e=Kt(e,i)),g=ir(g,e))}n.dirs&&(g.dirs=g.dirs?g.dirs.concat(n.dirs):n.dirs),n.transition&&(g.transition=n.transition),m=g}catch(t){Jn.length=0,ft(t,e,1),m=ar(Wn)}return Wt(g),m}const Jt=e=>{let t;for(const n in e)("class"===n||"style"===n||D(n))&&((t||(t={}))[n]=e[n]);return t},Kt=(e,t)=>{const n={};for(const r in e)y(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function Xt(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;o1)return n&&_(t)?t.call(r.proxy):t}}const Gt={};function Qt(e,t,n){return function(e,t,{immediate:n,deep:r,flush:o,onTrack:a,onTrigger:i}=f,l=Dr){let s,u,c=!1,d=!1;if(it(e)?(s=()=>e.value,c=!!e._shallow):et(e)?(s=()=>e,r=!0):C(e)?(d=!0,c=e.some(et),s=()=>e.map((e=>it(e)?e.value:et(e)?en(e):_(e)?pt(e,l,2):void 0))):s=_(e)?t?()=>pt(e,l,2):()=>{if(!l||!l.isUnmounted)return u&&u(),ht(e,l,3,[p])}:m,t&&r){const e=s;s=()=>en(e())}let p=e=>{u=b.options.onStop=()=>{pt(e,l,4)}},h=d?[]:Gt;const v=()=>{if(b.active)if(t){const e=b();(r||c||(d?e.some(((e,t)=>H(e,h[t]))):H(e,h)))&&(u&&u(),ht(t,l,3,[e,h===Gt?void 0:h,p]),h=e)}else b()};let g;v.allowRecurse=!!t,g="sync"===o?v:"post"===o?()=>Ln(v,l&&l.suspense):()=>{!l||l.isMounted?function(e){zt(e,yt,Dt,wt)}(v):v()};const b=ne(s,{lazy:!0,onTrack:a,onTrigger:i,scheduler:g});return Fr(b,l),t?n?v():h=b():"post"===o?Ln(b,l&&l.suspense):b(),()=>{re(b),l&&((e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)})(l.effects,b)}}(e,t,n)}function en(e,t=new Set){if(!z(e)||t.has(e)||e.__v_skip)return e;if(t.add(e),it(e))en(e.value,t);else if(C(e))for(let n=0;n{en(e,t)}));else if(L(e))for(const n in e)en(e[n],t);return e}const tn=[Function,Array],nn={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:tn,onEnter:tn,onAfterEnter:tn,onEnterCancelled:tn,onBeforeLeave:tn,onLeave:tn,onAfterLeave:tn,onLeaveCancelled:tn,onBeforeAppear:tn,onAppear:tn,onAfterAppear:tn,onAppearCancelled:tn},setup(e,{slots:t}){const n=yr(),r=function(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return fn((()=>{e.isMounted=!0})),vn((()=>{e.isUnmounting=!0})),e}();let o;return()=>{const a=t.default&&un(t.default(),!0);if(!a||!a.length)return;const i=rt(e),{mode:l}=i,s=a[0];if(r.isLeaving)return an(s);const u=ln(s);if(!u)return an(s);const c=on(u,i,r,n);sn(u,c);const d=n.subTree,p=d&&ln(d);let h=!1;const{getTransitionKey:f}=u.type;if(f){const e=f();void 0===o?o=e:e!==o&&(o=e,h=!0)}if(p&&p.type!==Wn&&(!tr(u,p)||h)){const e=on(p,i,r,n);if(sn(p,e),"out-in"===l)return r.isLeaving=!0,e.afterLeave=()=>{r.isLeaving=!1,n.update()},an(s);"in-out"===l&&u.type!==Wn&&(e.delayLeave=(e,t,n)=>{rn(r,p)[String(p.key)]=p,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=n})}return s}}};function rn(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function on(e,t,n,r){const{appear:o,mode:a,persisted:i=!1,onBeforeEnter:l,onEnter:s,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:d,onLeave:p,onAfterLeave:h,onLeaveCancelled:f,onBeforeAppear:v,onAppear:m,onAfterAppear:g,onAppearCancelled:b}=t,D=String(e.key),y=rn(n,e),w=(e,t)=>{e&&ht(e,r,9,t)},k={mode:a,persisted:i,beforeEnter(t){let r=l;if(!n.isMounted){if(!o)return;r=v||l}t._leaveCb&&t._leaveCb(!0);const a=y[D];a&&tr(e,a)&&a.el._leaveCb&&a.el._leaveCb(),w(r,[t])},enter(e){let t=s,r=u,a=c;if(!n.isMounted){if(!o)return;t=m||s,r=g||u,a=b||c}let i=!1;const l=e._enterCb=t=>{i||(i=!0,w(t?a:r,[e]),k.delayedLeave&&k.delayedLeave(),e._enterCb=void 0)};t?(t(e,l),t.length<=1&&l()):l()},leave(t,r){const o=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return r();w(d,[t]);let a=!1;const i=t._leaveCb=n=>{a||(a=!0,r(),w(n?f:h,[t]),t._leaveCb=void 0,y[o]===e&&delete y[o])};y[o]=e,p?(p(t,i),p.length<=1&&i()):i()},clone:e=>on(e,t,n,r)};return k}function an(e){if(pn(e))return(e=ir(e)).children=null,e}function ln(e){return pn(e)?e.children?e.children[0]:void 0:e}function sn(e,t){6&e.shapeFlag&&e.component?sn(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function un(e,t=!1){let n=[],r=0;for(let o=0;o1)for(let e=0;e!!e.type.__asyncLoader,pn=e=>e.type.__isKeepAlive;RegExp,RegExp;const hn=e=>(t,n=Dr)=>(!xr||"sp"===e)&&function(e,t,n=Dr,r=!1){if(n){const o=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...r)=>{if(n.isUnmounted)return;se(),wr(n);const o=ht(t,n,e,r);return wr(null),ue(),o});return r?o.unshift(a):o.push(a),a}}(e,t,n),fn=(hn("bm"),hn("m")),vn=(hn("bu"),hn("u"),hn("bum")),mn=hn("um");function gn(e,t,n,r){const[o,a]=e.propsOptions;let i,l=!1;if(t)for(let s in t){if(O(s))continue;const u=t[s];let c;o&&x(o,c=U(s))?a&&a.includes(c)?(i||(i={}))[c]=u:n[c]=u:Vt(e.emitsOptions,s)||u!==r[s]&&(r[s]=u,l=!0)}if(a){const t=rt(n),r=i||f;for(let i=0;i-1,r[1]=n<0||e-1||x(r,"default"))&&l.push(t)}}}const s=[i,l];return r.set(e,s),s}function yn(e){return"$"!==e[0]}function wn(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:""}function kn(e,t){return wn(e)===wn(t)}function xn(e,t){return C(t)?t.findIndex((t=>kn(t,e))):_(t)&&kn(t,e)?0:-1}hn("sp"),hn("rtg"),hn("rtc");const Cn=e=>"_"===e[0]||"$stable"===e,An=e=>C(e)?e.map(ur):[ur(e)],En=(e,t,n)=>{const r=function(e,t=qt,n){if(!t)return e;if(e._n)return e;const r=(...n)=>{r._d&&Gn(-1);const o=Wt(t),a=e(...n);return Wt(o),r._d&&Gn(1),__VUE_PROD_DEVTOOLS__&&jt(t),a};return r._n=!0,r._c=!0,r._d=!0,r}((e=>An(t(e))),n);return r._c=!1,r},Fn=(e,t,n)=>{const r=e._ctx;for(const n in e){if(Cn(n))continue;const o=e[n];if(_(o))t[n]=En(0,o,r);else if(null!=o){const e=An(o);t[n]=()=>e}}},_n=(e,t)=>{const n=An(t);e.slots.default=()=>n};function Bn(e,t){if(null===qt)return e;const n=qt.proxy,r=e.dirs||(e.dirs=[]);for(let e=0;e(a.has(e)||(e&&_(e.install)?(a.add(e),e.install(l,...t)):_(e)&&(a.add(e),e(l,...t))),l),mixin:e=>l,component:(e,t)=>t?(o.components[e]=t,l):o.components[e],directive:(e,t)=>t?(o.directives[e]=t,l):o.directives[e],mount(a,s,u){if(!i){const c=ar(n,r);return c.appContext=o,s&&t?t(c,a):e(c,a,u),i=!0,l._container=a,a.__vue_app__=l,__VUE_PROD_DEVTOOLS__&&(l._instance=c.component,function(e,t){Rt&&Rt.emit("app:init",e,t,{Fragment:qn,Text:Hn,Comment:Wn,Static:Zn})}(l,Sr)),c.component.proxy}},unmount(){i&&(e(null,l._container),__VUE_PROD_DEVTOOLS__&&(l._instance=null,function(e){Rt&&Rt.emit("app:unmount",e)}(l)),delete l._container.__vue_app__)},provide:(e,t)=>(o.provides[e]=t,l)};return l}}const In={scheduler:Bt,allowRecurse:!0},Ln=function(e,t){t&&t.pendingBranch?C(e)?t.effects.push(...e):t.effects.push(e):zt(e,xt,kt,Ct)},Rn=(e,t,n,r,o=!1)=>{if(C(e))return void e.forEach(((e,a)=>Rn(e,t&&(C(t)?t[a]:t),n,r,o)));if(dn(r)&&!o)return;const a=4&r.shapeFlag?Er(r.component)||r.component.proxy:r.el,i=o?null:a,{i:l,r:s}=e,u=t&&t.r,c=l.refs===f?l.refs={}:l.refs,d=l.setupState;if(null!=u&&u!==s&&(B(u)?(c[u]=null,x(d,u)&&(d[u]=null)):it(u)&&(u.value=null)),B(s)){const e=()=>{c[s]=i,x(d,s)&&(d[s]=i)};i?(e.id=-1,Ln(e,n)):e()}else if(it(s)){const e=()=>{s.value=i};i?(e.id=-1,Ln(e,n)):e()}else _(s)&&pt(s,l,12,[i,c])};function On(e,t){if(function(){let e=!1;"boolean"!=typeof __VUE_PROD_DEVTOOLS__&&(!0,X().__VUE_PROD_DEVTOOLS__=!1)}(),__VUE_PROD_DEVTOOLS__){const e=X();e.__VUE__=!0,n=e.__VUE_DEVTOOLS_GLOBAL_HOOK__,Rt=n}var n;const{insert:r,remove:o,patchProp:a,forcePatchProp:i,createElement:l,createText:s,createComment:u,setText:c,setElementText:d,parentNode:p,nextSibling:h,setScopeId:g=m,cloneNode:b,insertStaticContent:D}=e,y=(e,t,n,r=null,o=null,a=null,i=!1,l=null,s=!1)=>{e&&!tr(e,t)&&(r=te(e),K(e,o,a,!0),e=null),-2===t.patchFlag&&(s=!1,t.dynamicChildren=null);const{type:u,ref:c,shapeFlag:d}=t;switch(u){case Hn:k(e,t,n,r);break;case Wn:C(e,t,n,r);break;case Zn:null==e&&A(t,n,r,i);break;case qn:I(e,t,n,r,o,a,i,l,s);break;default:1&d?E(e,t,n,r,o,a,i,l,s):6&d?L(e,t,n,r,o,a,i,l,s):(64&d||128&d)&&u.process(e,t,n,r,o,a,i,l,s,ae)}null!=c&&o&&Rn(c,e&&e.ref,a,t||e,!t)},k=(e,t,n,o)=>{if(null==e)r(t.el=s(t.children),n,o);else{const n=t.el=e.el;t.children!==e.children&&c(n,t.children)}},C=(e,t,n,o)=>{null==e?r(t.el=u(t.children||""),n,o):t.el=e.el},A=(e,t,n,r)=>{const o=D(e.children,t,n,r,e.staticCache);e.el||(e.staticCache=o),e.el=o[0],e.anchor=o[o.length-1]},E=(e,t,n,r,o,a,i,l,s)=>{i=i||"svg"===t.type,null==e?F(t,n,r,o,a,i,l,s):S(e,t,o,a,i,l,s)},F=(e,t,n,o,i,s,u,c)=>{let p,h;const{type:f,props:v,shapeFlag:m,transition:g,patchFlag:D,dirs:y}=e;if(e.el&&void 0!==b&&-1===D)p=e.el=b(e.el);else{if(p=e.el=l(e.type,s,v&&v.is,v),8&m?d(p,e.children):16&m&&B(e.children,p,null,o,i,s&&"foreignObject"!==f,u,c||!!e.dynamicChildren),y&&Sn(e,null,o,"created"),v){for(const t in v)O(t)||a(p,t,null,v[t],s,e.children,o,i,ee);(h=v.onVnodeBeforeMount)&&jn(h,o,e)}_(p,e,e.scopeId,u,o)}__VUE_PROD_DEVTOOLS__&&(Object.defineProperty(p,"__vnode",{value:e,enumerable:!1}),Object.defineProperty(p,"__vueParentComponent",{value:o,enumerable:!1})),y&&Sn(e,null,o,"beforeMount");const w=(!i||i&&!i.pendingBranch)&&g&&!g.persisted;w&&g.beforeEnter(p),r(p,t,n),((h=v&&v.onVnodeMounted)||w||y)&&Ln((()=>{h&&jn(h,o,e),w&&g.enter(p),y&&Sn(e,null,o,"mounted")}),i)},_=(e,t,n,r,o)=>{if(n&&g(e,n),r)for(let t=0;t{for(let u=s;u{const u=t.el=e.el;let{patchFlag:c,dynamicChildren:p,dirs:h}=t;c|=16&e.patchFlag;const v=e.props||f,m=t.props||f;let g;if((g=m.onVnodeBeforeUpdate)&&jn(g,n,t,e),h&&Sn(t,e,n,"beforeUpdate"),c>0){if(16&c)T(u,t,v,m,n,r,o);else if(2&c&&v.class!==m.class&&a(u,"class",null,m.class,o),4&c&&a(u,"style",v.style,m.style,o),8&c){const l=t.dynamicProps;for(let t=0;t{g&&jn(g,n,t,e),h&&Sn(t,e,n,"updated")}),r)},z=(e,t,n,r,o,a,i)=>{for(let l=0;l{if(n!==r){for(const u in r){if(O(u))continue;const c=r[u],d=n[u];(c!==d||i&&i(e,u))&&a(e,u,d,c,s,t.children,o,l,ee)}if(n!==f)for(const i in n)O(i)||i in r||a(e,i,n[i],null,s,t.children,o,l,ee)}},I=(e,t,n,o,a,i,l,u,c)=>{const d=t.el=e?e.el:s(""),p=t.anchor=e?e.anchor:s("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:v}=t;f&&(c=!0),v&&(u=u?u.concat(v):v),null==e?(r(d,n,o),r(p,n,o),B(t.children,n,p,a,i,l,u,c)):h>0&&64&h&&f&&e.dynamicChildren?(z(e.dynamicChildren,f,n,a,i,l,u),(null!=t.key||a&&t===a.subTree)&&Mn(e,t,!0)):V(e,t,n,p,a,i,l,u,c)},L=(e,t,n,r,o,a,i,l,s)=>{t.slotScopeIds=l,null==e?512&t.shapeFlag?o.ctx.activate(t,n,r,i,s):R(t,n,r,o,a,i,s):j(e,t,s)},R=(e,t,n,r,o,a,i)=>{const l=e.component=function(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||gr,a={uid:br++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,update:null,render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,effects:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Dn(r,o),emitsOptions:Nt(r,o),emit:null,emitted:null,propsDefaults:f,inheritAttrs:r.inheritAttrs,ctx:f,data:f,props:f,attrs:f,slots:f,refs:f,setupState:f,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=Pt.bind(null,a),a}(e,r,o);if(pn(e)&&(l.ctx.renderer=ae),function(e,t=!1){xr=t;const{props:n,children:r}=e.vnode,o=kr(e);(function(e,t,n,r=!1){const o={},a={};Z(a,nr,1),e.propsDefaults=Object.create(null),gn(e,t,o,a);for(const t in e.propsOptions[0])t in o||(o[t]=void 0);n?e.props=r?o:Qe(o,!1,xe,He,Je):e.type.props?e.props=o:e.props=a,e.attrs=a})(e,n,o,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=rt(t),Z(t,"_",n)):Fn(t,e.slots={})}else e.slots={},t&&_n(e,t);Z(e.slots,nr,1)})(e,r);o&&function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ot(new Proxy(e.ctx,vr));const{setup:r}=n;if(r){const n=e.setupContext=r.length>1?function(e){const t=t=>{e.exposed=t||{}};return{attrs:e.attrs,slots:e.slots,emit:e.emit,expose:t}}(e):null;Dr=e,se();const o=pt(r,e,0,[e.props,n]);if(ue(),Dr=null,$(o)){const n=()=>{Dr=null};if(o.then(n,n),t)return o.then((n=>{Cr(e,n,t)})).catch((t=>{ft(t,e,0)}));e.asyncDep=o}else Cr(e,o,t)}else Ar(e)}(e,t);xr=!1}(l),l.asyncDep){if(o&&o.registerDep(l,M),!e.el){const e=l.subTree=ar(Wn);C(null,e,t,n)}}else M(l,e,t,n,o,a,i)},j=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:o,component:a}=e,{props:i,children:l,patchFlag:s}=t,u=a.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&s>=0))return!(!o&&!l||l&&l.$stable)||r!==i&&(r?!i||Xt(r,i,u):!!i);if(1024&s)return!0;if(16&s)return r?Xt(r,i,u):!!i;if(8&s){const e=t.dynamicProps;for(let t=0;tbt&>.splice(t,1)}(r.update),r.update()}else t.component=e.component,t.el=e.el,r.vnode=t},M=(e,t,n,r,o,a,i)=>{e.update=ne((function(){if(e.isMounted){let t,{next:n,bu:r,u:l,parent:s,vnode:u}=e,c=n;n?(n.el=u.el,P(e,n,i)):n=u,r&&W(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&jn(t,s,n,u);const d=Zt(e),h=e.subTree;e.subTree=d,y(h,d,p(h.el),te(h),e,o,a),n.el=d.el,null===c&&function({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}(e,d.el),l&&Ln(l,o),(t=n.props&&n.props.onVnodeUpdated)&&Ln((()=>jn(t,s,n,u)),o),__VUE_PROD_DEVTOOLS__&&jt(e)}else{let i;const{el:l,props:s}=t,{bm:u,m:c,parent:d}=e;if(u&&W(u),(i=s&&s.onVnodeBeforeMount)&&jn(i,d,t),l&&le){const n=()=>{e.subTree=Zt(e),le(l,e.subTree,e,o,null)};dn(t)?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const i=e.subTree=Zt(e);y(null,i,n,r,e,o,a),t.el=i.el}if(c&&Ln(c,o),i=s&&s.onVnodeMounted){const e=t;Ln((()=>jn(i,d,e)),o)}256&t.shapeFlag&&e.a&&Ln(e.a,o),e.isMounted=!0,__VUE_PROD_DEVTOOLS__&&Ot(e),t=n=r=null}}),In)},P=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,r){const{props:o,attrs:a,vnode:{patchFlag:i}}=e,l=rt(o),[s]=e.propsOptions;let u=!1;if(!(r||i>0)||16&i){let r;gn(e,t,o,a)&&(u=!0);for(const a in l)t&&(x(t,a)||(r=N(a))!==a&&x(t,r))||(s?!n||void 0===n[a]&&void 0===n[r]||(o[a]=bn(s,l,a,void 0,e,!0)):delete o[a]);if(a!==l)for(const e in a)t&&x(t,e)||(delete a[e],u=!0)}else if(8&i){const n=e.vnode.dynamicProps;for(let r=0;r{const{vnode:r,slots:o}=e;let a=!0,i=f;if(32&r.shapeFlag){const e=t._;e?n&&1===e?a=!1:(w(o,t),n||1!==e||delete o._):(a=!t.$stable,Fn(t,o)),i=t}else t&&(_n(e,t),i={default:1});if(a)for(const e in o)Cn(e)||e in i||delete o[e]})(e,t.children,n),se(),$t(void 0,e.update),ue()},V=(e,t,n,r,o,a,i,l,s=!1)=>{const u=e&&e.children,c=e?e.shapeFlag:0,p=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void H(u,p,n,r,o,a,i,l,s);if(256&h)return void q(u,p,n,r,o,a,i,l,s)}8&f?(16&c&&ee(u,o,a),p!==u&&d(n,p)):16&c?16&f?H(u,p,n,r,o,a,i,l,s):ee(u,o,a,!0):(8&c&&d(n,""),16&f&&B(p,n,r,o,a,i,l,s))},q=(e,t,n,r,o,a,i,l,s)=>{t=t||v;const u=(e=e||v).length,c=t.length,d=Math.min(u,c);let p;for(p=0;pc?ee(e,o,a,!0,!1,d):B(t,n,r,o,a,i,l,s,d)},H=(e,t,n,r,o,a,i,l,s)=>{let u=0;const c=t.length;let d=e.length-1,p=c-1;for(;u<=d&&u<=p;){const r=e[u],c=t[u]=s?cr(t[u]):ur(t[u]);if(!tr(r,c))break;y(r,c,n,null,o,a,i,l,s),u++}for(;u<=d&&u<=p;){const r=e[d],u=t[p]=s?cr(t[p]):ur(t[p]);if(!tr(r,u))break;y(r,u,n,null,o,a,i,l,s),d--,p--}if(u>d){if(u<=p){const e=p+1,d=ep)for(;u<=d;)K(e[u],o,a,!0),u++;else{const h=u,f=u,m=new Map;for(u=f;u<=p;u++){const e=t[u]=s?cr(t[u]):ur(t[u]);null!=e.key&&m.set(e.key,u)}let g,b=0;const D=p-f+1;let w=!1,k=0;const x=new Array(D);for(u=0;u=D){K(r,o,a,!0);continue}let c;if(null!=r.key)c=m.get(r.key);else for(g=f;g<=p;g++)if(0===x[g-f]&&tr(r,t[g])){c=g;break}void 0===c?K(r,o,a,!0):(x[c-f]=u+1,c>=k?k=c:w=!0,y(r,t[c],n,null,o,a,i,l,s),b++)}const C=w?function(e){const t=e.slice(),n=[0];let r,o,a,i,l;const s=e.length;for(r=0;r0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,i=n[a-1];a-- >0;)n[a]=i,i=t[i];return n}(x):v;for(g=C.length-1,u=D-1;u>=0;u--){const e=f+u,d=t[e],p=e+1{const{el:i,type:l,transition:s,children:u,shapeFlag:c}=e;if(6&c)J(e.component.subTree,t,n,o);else if(128&c)e.suspense.move(t,n,o);else if(64&c)l.move(e,t,n,ae);else if(l!==qn)if(l!==Zn)if(2!==o&&1&c&&s)if(0===o)s.beforeEnter(i),r(i,t,n),Ln((()=>s.enter(i)),a);else{const{leave:e,delayLeave:o,afterLeave:a}=s,l=()=>r(i,t,n),u=()=>{e(i,(()=>{l(),a&&a()}))};o?o(i,l,u):u()}else r(i,t,n);else(({el:e,anchor:t},n,o)=>{let a;for(;e&&e!==t;)a=h(e),r(e,n,o),e=a;r(t,n,o)})(e,t,n);else{r(i,t,n);for(let e=0;e{const{type:a,props:i,ref:l,children:s,dynamicChildren:u,shapeFlag:c,patchFlag:d,dirs:p}=e;if(null!=l&&Rn(l,null,n,e,!0),256&c)return void t.ctx.deactivate(e);const h=1&c&&p;let f;if((f=i&&i.onVnodeBeforeUnmount)&&jn(f,t,e),6&c)Q(e.component,n,r);else{if(128&c)return void e.suspense.unmount(n,r);h&&Sn(e,null,t,"beforeUnmount"),64&c?e.type.remove(e,t,n,o,ae,r):u&&(a!==qn||d>0&&64&d)?ee(u,t,n,!1,!0):(a===qn&&(128&d||256&d)||!o&&16&c)&&ee(s,t,n),r&&Y(e)}((f=i&&i.onVnodeUnmounted)||h)&&Ln((()=>{f&&jn(f,t,e),h&&Sn(e,null,t,"unmounted")}),n)},Y=e=>{const{type:t,el:n,anchor:r,transition:a}=e;if(t===qn)return void G(n,r);if(t===Zn)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=h(e),o(e),e=n;o(t)})(e);const i=()=>{o(n),a&&!a.persisted&&a.afterLeave&&a.afterLeave()};if(1&e.shapeFlag&&a&&!a.persisted){const{leave:t,delayLeave:r}=a,o=()=>t(n,i);r?r(e.el,i,o):o()}else i()},G=(e,t)=>{let n;for(;e!==t;)n=h(e),o(e),e=n;o(t)},Q=(e,t,n)=>{const{bum:r,effects:o,update:a,subTree:i,um:l}=e;if(r&&W(r),o)for(let e=0;e{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve()),__VUE_PROD_DEVTOOLS__&&Mt(e)},ee=(e,t,n,r=!1,o=!1,a=0)=>{for(let i=a;i6&e.shapeFlag?te(e.component.subTree):128&e.shapeFlag?e.suspense.next():h(e.anchor||e.el),oe=(e,t,n)=>{null==e?t._vnode&&K(t._vnode,null,null,!0):y(t._vnode||null,e,t,null,null,null,n),Tt(),t._vnode=e},ae={p:y,um:K,m:J,r:Y,mt:R,mc:B,pc:V,pbc:z,n:te,o:e};let ie,le;return t&&([ie,le]=t(ae)),{render:oe,hydrate:ie,createApp:Tn(oe,ie)}}function jn(e,t,n,r=null){ht(e,t,7,[n,r])}function Mn(e,t,n=!1){const r=e.children,o=t.children;if(C(r)&&C(o))for(let e=0;e0?Kn||v:null,Jn.pop(),Kn=Jn[Jn.length-1]||null,Yn>0&&Kn&&Kn.push(a),a}function er(e){return!!e&&!0===e.__v_isVNode}function tr(e,t){return e.type===t.type&&e.key===t.key}const nr="__vInternal",rr=({key:e})=>null!=e?e:null,or=({ref:e})=>null!=e?B(e)||it(e)||_(e)?{i:qt,r:e}:e:null,ar=function(e,t=null,n=null,r=0,o=null,i=!1){if(e&&e!==Nn||(e=Wn),er(e)){const r=ir(e,t,!0);return n&&dr(r,n),r}if(l=e,_(l)&&"__vccOpts"in l&&(e=e.__vccOpts),t){(nt(t)||nr in t)&&(t=w({},t));let{class:e,style:n}=t;e&&!B(e)&&(t.class=u(e)),z(n)&&(nt(n)&&!C(n)&&(n=w({},n)),t.style=a(n))}var l;const s=B(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:z(e)?4:_(e)?2:0,c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&rr(t),ref:t&&or(t),scopeId:Ht,slotScopeIds:null,children:null,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,shapeFlag:s,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null};return dr(c,n),128&s&&e.normalize(c),Yn>0&&!i&&Kn&&(r>0||6&s)&&32!==r&&Kn.push(c),c};function ir(e,t,n=!1){const{props:r,ref:o,patchFlag:i,children:l}=e,s=t?function(...e){const t=w({},e[0]);for(let n=1;ne?kr(e)?Er(e)||e.proxy:hr(e.parent):null,fr=w(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>hr(e.parent),$root:e=>hr(e.root),$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>()=>Bt(e.update),$nextTick:e=>_t.bind(e.proxy),$watch:e=>m}),vr={get({_:e},t){const{ctx:n,setupState:r,data:o,props:a,accessCache:i,type:l,appContext:s}=e;let u;if("$"!==t[0]){const l=i[t];if(void 0!==l)switch(l){case 0:return r[t];case 1:return o[t];case 3:return n[t];case 2:return a[t]}else{if(r!==f&&x(r,t))return i[t]=0,r[t];if(o!==f&&x(o,t))return i[t]=1,o[t];if((u=e.propsOptions[0])&&x(u,t))return i[t]=2,a[t];if(n!==f&&x(n,t))return i[t]=3,n[t];i[t]=4}}const c=fr[t];let d,p;return c?("$attrs"===t&&ce(e,0,t),c(e)):(d=l.__cssModules)&&(d=d[t])?d:n!==f&&x(n,t)?(i[t]=3,n[t]):(p=s.config.globalProperties,x(p,t)?p[t]:void 0)},set({_:e},t,n){const{data:r,setupState:o,ctx:a}=e;if(o!==f&&x(o,t))o[t]=n;else if(r!==f&&x(r,t))r[t]=n;else if(x(e.props,t))return!1;return!("$"===t[0]&&t.slice(1)in e||(a[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:a}},i){let l;return void 0!==n[i]||e!==f&&x(e,i)||t!==f&&x(t,i)||(l=a[0])&&x(l,i)||x(r,i)||x(fr,i)||x(o.config.globalProperties,i)}},mr=w({},vr,{get(e,t){if(t!==Symbol.unscopables)return vr.get(e,t,e)},has:(e,n)=>"_"!==n[0]&&!t(n)}),gr=zn();let br=0,Dr=null;const yr=()=>Dr||qt,wr=e=>{Dr=e};function kr(e){return 4&e.vnode.shapeFlag}let xr=!1;function Cr(e,t,n){_(t)?e.render=t:z(t)&&(__VUE_PROD_DEVTOOLS__&&(e.devtoolsRawSetupState=t),e.setupState=ct(t)),Ar(e)}function Ar(e,t,n){const r=e.type;e.render||(e.render=r.render||m,e.render._rc&&(e.withProxy=new Proxy(e.ctx,mr)))}function Er(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ct(ot(e.exposed)),{get:(t,n)=>n in t?t[n]:n in fr?fr[n](e):void 0}))}function Fr(e,t=Dr){t&&(t.effects||(t.effects=[])).push(e)}function _r(e){const t=function(e){let t,n;return _(e)?(t=e,n=m):(t=e.get,n=e.set),new dt(t,n,_(e)||!e.set)}(e);return Fr(t.effect),t}function Br(e,t,n){const r=arguments.length;return 2===r?z(t)&&!C(t)?er(t)?ar(e,null,[t]):ar(e,t):ar(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&er(n)&&(n=[n]),ar(e,t,n))}Symbol("");const Sr="3.1.4",zr="http://www.w3.org/2000/svg",$r="undefined"!=typeof document?document:null,Tr={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?$r.createElementNS(zr,e):$r.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&o.setAttribute("multiple",r.multiple),o},createText:e=>$r.createTextNode(e),createComment:e=>$r.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>$r.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,r,o){if(o){let e,r,a=0,i=o.length;for(;aLr(e,t,n)));else if(t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=Or[t];if(n)return n;let r=U(t);if("filter"!==r&&r in e)return Or[t]=r;r=V(r);for(let n=0;ndocument.createEvent("Event").timeStamp&&(Mr=()=>performance.now());const e=navigator.userAgent.match(/firefox\/(\d+)/i);Ur=!!(e&&Number(e[1])<=53)}let Pr=0;const Nr=Promise.resolve(),Vr=()=>{Pr=0};function qr(e,t,n,r){e.addEventListener(t,n,r)}const Hr=/(?:Once|Passive|Capture)$/,Wr=/^on[a-z]/,Zr="transition",Jr="animation",Kr=(e,{slots:t})=>Br(nn,function(e){const t={};for(const n in e)n in Xr||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:r,duration:o,enterFromClass:a=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:s=a,appearActiveClass:u=i,appearToClass:c=l,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,f=function(e){if(null==e)return null;if(z(e))return[Qr(e.enter),Qr(e.leave)];{const t=Qr(e);return[t,t]}}(o),v=f&&f[0],m=f&&f[1],{onBeforeEnter:g,onEnter:b,onEnterCancelled:D,onLeave:y,onLeaveCancelled:k,onBeforeAppear:x=g,onAppear:C=b,onAppearCancelled:A=D}=t,E=(e,t,n)=>{to(e,t?c:l),to(e,t?u:i),n&&n()},F=(e,t)=>{to(e,h),to(e,p),t&&t()},_=e=>(t,n)=>{const o=e?C:b,i=()=>E(t,e,n);Yr(o,[t,i]),no((()=>{to(t,e?s:a),eo(t,e?c:l),Gr(o)||oo(t,r,v,i)}))};return w(t,{onBeforeEnter(e){Yr(g,[e]),eo(e,a),eo(e,i)},onBeforeAppear(e){Yr(x,[e]),eo(e,s),eo(e,u)},onEnter:_(!1),onAppear:_(!0),onLeave(e,t){const n=()=>F(e,t);eo(e,d),document.body.offsetHeight,eo(e,p),no((()=>{to(e,d),eo(e,h),Gr(y)||oo(e,r,m,n)})),Yr(y,[e,n])},onEnterCancelled(e){E(e,!1),Yr(D,[e])},onAppearCancelled(e){E(e,!0),Yr(A,[e])},onLeaveCancelled(e){F(e),Yr(k,[e])}})}(e),t);Kr.displayName="Transition";const Xr={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Yr=(Kr.props=w({},nn.props,Xr),(e,t=[])=>{C(e)?e.forEach((e=>e(...t))):e&&e(...t)}),Gr=e=>!!e&&(C(e)?e.some((e=>e.length>1)):e.length>1);function Qr(e){return J(e)}function eo(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function to(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function no(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let ro=0;function oo(e,t,n,r){const o=e._endId=++ro,a=()=>{o===e._endId&&r()};if(n)return setTimeout(a,n);const{type:i,timeout:l,propCount:s}=function(e,t){const n=window.getComputedStyle(e),r=e=>(n[e]||"").split(", "),o=r("transitionDelay"),a=r("transitionDuration"),i=ao(o,a),l=r("animationDelay"),s=r("animationDuration"),u=ao(l,s);let c=null,d=0,p=0;return t===Zr?i>0&&(c=Zr,d=i,p=a.length):t===Jr?u>0&&(c=Jr,d=u,p=s.length):(d=Math.max(i,u),c=d>0?i>u?Zr:Jr:null,p=c?c===Zr?a.length:s.length:0),{type:c,timeout:d,propCount:p,hasTransform:c===Zr&&/\b(transform|all)(,|$)/.test(n.transitionProperty)}}(e,t);if(!i)return r();const u=i+"end";let c=0;const d=()=>{e.removeEventListener(u,p),a()},p=t=>{t.target===e&&++c>=s&&d()};setTimeout((()=>{cio(t)+io(e[n]))))}function io(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}new WeakMap,new WeakMap;const lo=e=>{const t=e.props["onUpdate:modelValue"];return C(t)?e=>W(t,e):t};function so(e){e.target.composing=!0}function uo(e){const t=e.target;t.composing&&(t.composing=!1,function(e,t){const n=document.createEvent("HTMLEvents");n.initEvent("input",!0,!0),e.dispatchEvent(n)}(t))}const co={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e._assign=lo(o);const a=r||"number"===e.type;qr(e,t?"change":"input",(t=>{if(t.target.composing)return;let r=e.value;n?r=r.trim():a&&(r=J(r)),e._assign(r)})),n&&qr(e,"change",(()=>{e.value=e.value.trim()})),t||(qr(e,"compositionstart",so),qr(e,"compositionend",uo),qr(e,"change",uo))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{trim:n,number:r}},o){if(e._assign=lo(o),e.composing)return;if(document.activeElement===e){if(n&&e.value.trim()===t)return;if((r||"number"===e.type)&&J(e.value)===t)return}const a=null==t?"":t;e.value!==a&&(e.value=a)}},po={created(e,t,n){e._assign=lo(n),qr(e,"change",(()=>{const t=e._modelValue,n=go(e),r=e.checked,o=e._assign;if(C(t)){const e=d(t,n),a=-1!==e;if(r&&!a)o(t.concat(n));else if(!r&&a){const n=[...t];n.splice(e,1),o(n)}}else if(E(t)){const e=new Set(t);r?e.add(n):e.delete(n),o(e)}else o(bo(e,r))}))},mounted:ho,beforeUpdate(e,t,n){e._assign=lo(n),ho(e,t,n)}};function ho(e,{value:t,oldValue:n},r){e._modelValue=t,C(t)?e.checked=d(t,r.props.value)>-1:E(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=c(t,bo(e,!0)))}const fo={created(e,{value:t},n){e.checked=c(t,n.props.value),e._assign=lo(n),qr(e,"change",(()=>{e._assign(go(e))}))},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=lo(r),t!==n&&(e.checked=c(t,r.props.value))}},vo={created(e,{value:t,modifiers:{number:n}},r){const o=E(t);qr(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?J(go(e)):go(e)));e._assign(e.multiple?o?new Set(t):t:t[0])})),e._assign=lo(r)},mounted(e,{value:t}){mo(e,t)},beforeUpdate(e,t,n){e._assign=lo(n)},updated(e,{value:t}){mo(e,t)}};function mo(e,t){const n=e.multiple;if(!n||C(t)||E(t)){for(let r=0,o=e.options.length;r-1:o.selected=t.has(a);else if(c(go(o),t))return void(e.selectedIndex!==r&&(e.selectedIndex=r))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function go(e){return"_value"in e?e._value:e.value}function bo(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Do={created(e,t,n){yo(e,t,n,null,"created")},mounted(e,t,n){yo(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){yo(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){yo(e,t,n,r,"updated")}};function yo(e,t,n,r,o){let a;switch(e.tagName){case"SELECT":a=vo;break;case"TEXTAREA":a=co;break;default:switch(n.props&&n.props.type){case"checkbox":a=po;break;case"radio":a=fo;break;default:a=co}}const i=a[o];i&&i(e,t,n,r)}const wo=w({patchProp:(e,t,n,r,a=!1,i,l,s,u)=>{switch(t){case"class":!function(e,t,n){if(null==t&&(t=""),n)e.setAttribute("class",t);else{const n=e._vtc;n&&(t=(t?[t,...n]:[...n]).join(" ")),e.className=t}}(e,r,a);break;case"style":!function(e,t,n){const r=e.style;if(n)if(B(n)){if(t!==n){const t=r.display;r.cssText=n,"_vod"in e&&(r.display=t)}}else{for(const e in n)Lr(r,e,n[e]);if(t&&!B(t))for(const e in t)null==n[e]&&Lr(r,e,"")}else e.removeAttribute("style")}(e,n,r);break;default:D(t)?y(t)||function(e,t,n,r,o=null){const a=e._vei||(e._vei={}),i=a[t];if(r&&i)i.value=r;else{const[n,l]=function(e){let t;if(Hr.test(e)){let n;for(t={};n=e.match(Hr);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[N(e.slice(2)),t]}(t);r?qr(e,n,a[t]=function(e,t){const n=e=>{const r=e.timeStamp||Mr();(Ur||r>=n.attached-1)&&ht(function(e,t){if(C(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=Pr||(Nr.then(Vr),Pr=Mr()),n}(r,o),l):i&&(function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,i,l),a[t]=void 0)}}(e,t,0,r,l):function(e,t,n,r){return r?"innerHTML"===t||!!(t in e&&Wr.test(t)&&_(n)):"spellcheck"!==t&&"draggable"!==t&&("form"!==t&&(("list"!==t||"INPUT"!==e.tagName)&&(("type"!==t||"TEXTAREA"!==e.tagName)&&((!Wr.test(t)||!B(n))&&t in e))))}(e,t,r,a)?function(e,t,n,r,o,a,i){if("innerHTML"===t||"textContent"===t)return r&&i(r,o,a),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName){e._value=n;const r=null==n?"":n;return e.value!==r&&(e.value=r),void(null==n&&e.removeAttribute(t))}if(""===n||null==n){const r=typeof e[t];if(""===n&&"boolean"===r)return void(e[t]=!0);if(null==n&&"string"===r)return e[t]="",void e.removeAttribute(t);if("number"===r)return e[t]=0,void e.removeAttribute(t)}try{e[t]=n}catch(e){}}(e,t,r,i,l,s,u):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),function(e,t,n,r,a){if(r&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(jr,t.slice(6,t.length)):e.setAttributeNS(jr,t,n);else{const r=o(t);null==n||r&&!1===n?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}(e,t,r,a))}},forcePatchProp:(e,t)=>"value"===t},Tr);let ko;const xo=(e,t,n="")=>"object"==typeof e&&e.errno?(console.error(`Fetch ${n} failed with ${e.errno}: ${e.errmsg}`),t):e,Co=e=>{try{e=decodeURI(e)}catch(e){}return e},Ao=(e="")=>e.replace(/\/$/u,""),Eo=["mp","identicon","monsterid","wavatar","robohash","retro",""],Fo=["nick","mail","link"],_o=e=>Eo.includes(e)?e:"mp",Bo=e=>e.filter((e=>Fo.includes(e))),So=e=>{const t=new FormData;return t.append("image",e),fetch("https://pic.alexhchu.com/api/upload",{method:"POST",body:t}).then((e=>e.json())).then((e=>e.data.url))},zo={nick:"NickName",nickError:"NickName cannot be less than 3 bytes.",mail:"E-Mail",mailError:"Please confirm your email address.",link:"Website",placeholder:"Comment here...",sofa:"No comment yet.",submit:"Submit",reply:"Reply",cancelReply:"Cancel reply",comment:"Comments",more:"Load More...",preview:"Preview",emoji:"Emoji",uploadImage:"Upload Image",seconds:"seconds ago",minutes:"minutes ago",hours:"hours ago",days:"days ago",now:"just now",uploading:"Uploading",login:"Login",logout:"logout",admin:"Admin",word:"Words",wordHint:"Please input comments between $0 and $1 words!\n Current word number: $2"},$o={nick:"ニックネーム",nickError:"3バイト以上のニックネームをご入力ください.",mail:"メールアドレス",mailError:"メールアドレスをご確認ください.",link:"サイト(http://)",placeholder:"ここにコメント",sofa:"コメントしましょう~",submit:"提出する",reply:"返信する",cancelReply:"キャンセル",comment:"コメント",more:"さらに読み込む...",preview:"プレビュー",uploadImage:"画像をアップロード",emoji:"絵文字",seconds:"秒前",minutes:"分前",hours:"時間前",days:"日前",now:"たっだ今",uploading:"アップロード",login:"ログインする",logout:"ログアウト",admin:"管理者",word:"ワード",wordHint:"コメントは $0 から $1 ワードの間でなければなりません!\n 現在の単語番号: $2"},To={nick:"昵称",nickError:"昵称不能少于3个字符",mail:"邮箱",mailError:"请填写正确的邮件地址",link:"网址",placeholder:"欢迎评论",sofa:"来发评论吧~",submit:"提交",reply:"回复",cancelReply:"取消回复",comment:"评论",more:"加载更多...",preview:"预览",emoji:"表情",uploadImage:"上传图片",seconds:"秒前",minutes:"分钟前",hours:"小时前",days:"天前",now:"刚刚",uploading:"正在上传",login:"登录",logout:"退出",admin:"博主",word:"字",wordHint:"评论字数应在 $0 到 $1 字之间!\n当前字数:$2"},Io={zh:To,"zh-cn":To,"zh-CN":To,"zh-TW":{nick:"暱稱",mail:"郵箱",link:"網址",nickError:"暱稱不能少於3個字元",mailError:"請填寫正確的郵件地址",placeholder:"歡迎評論",sofa:"來發評論吧~",submit:"提交",reply:"回覆",cancelReply:"取消回覆",comment:"評論",more:"載入更多...",preview:"預覽",uploadImage:"上傳圖片",emoji:"表情",seconds:"秒前",minutes:"分鐘前",hours:"小時前",days:"天前",now:"剛剛",uploading:"正在上傳",login:"登錄",logout:"退出",admin:"博主",word:"字",wordHint:"評論字數應在 $0 到 $1 字之間!\n當前字數:$2"},en:zo,"en-US":zo,jp:$o,"jp-JP":$o},Lo=e=>{let t={};const n=localStorage.getItem(e);if(n)try{t=JSON.parse(n)}catch(e){}return{get:e=>t[e]||null,set(n,r){try{t[n]=JSON.parse(JSON.stringify(r)),localStorage.setItem(e,JSON.stringify(t))}catch(e){}},update(n){t=JSON.parse(JSON.stringify(n)),localStorage.setItem(e,JSON.stringify(t))}}};let Ro;const Oo=(e,t,n="",r="")=>`${t}/${n}${e}${r?`.${r}`:""}`,jo=({el:e="#waline",serverURL:t,placeholder:n,langMode:r,emojiCDN:o,emojiMaps:a,requiredFields:i=[],anonymous:l,path:s=location.pathname,lang:u="zh-CN",locale:c=r,emoji:d=["https://cdn.jsdelivr.net/gh/walinejs/emojis@1.0.0/weibo"],avatar:p="mp",avatarCDN:h="https://sdn.geekzu.org/avatar/",avatarForce:f,meta:v=["nick","mail","link"],requiredMeta:m=i,pageSize:g=10,wordLimit:b,uploadImage:D,copyright:y=!0,login:w=(!0===l?"disable":!1===l?"force":"enable"),...k})=>{const x=Io[u]||Io["zh-CN"];n&&(x.placeholder=n);const C=o&&"object"==typeof a?Promise.resolve(((e,t="")=>{const n={};for(const r in e)n[r]=/(?:https?:)?\/\//.test(e[r])?e[r]:`${t}${e[r]}`;return{tabs:[{name:"Emoji",icon:Object.values(n).pop()||"",items:Object.keys(n)}],map:n}})(a,o)):(A=d,Promise.all(A.map((e=>"string"==typeof e?(e=>{Ro||(Ro=Lo("WALINE_EMOJI"));const t=Boolean(/@[0-9]+\.[0-9]+\.[0-9]+/.test(e));if(t){const t=Ro.get(e);if(t)return Promise.resolve(t)}return fetch(`${e}/info.json`).then((e=>e.json())).then((n=>{const r={folder:e,...n};return t&&Ro.set(e,r),r}))})(Ao(e)):Promise.resolve(e)))).then((e=>{const t={tabs:[],map:{}};return e.forEach((e=>{const{name:n,folder:r,icon:o,prefix:a,type:i,items:l}=e;t.tabs.push({name:n,icon:Oo(o,r,a,i),items:l.map((e=>{const n=`${a||""}${e}`;return t.map[n]=Oo(e,r,a,i),n}))})})),t})));var A;return{el:e,serverURL:Ao(t),path:Co(s),lang:u,locale:{...x,..."object"==typeof c?c:{}},emoji:C,wordLimit:Array.isArray(b)?b:!!b&&[0,b],meta:Bo(v),requiredMeta:Bo(m),pageSize:g,avatar:"hide"!==p&&{cdn:h,param:`?d=${_o(p)}${f?`&q=${Math.random().toString(32).substring(2)}`:""}`},uploadImage:"function"==typeof D?D:So,copyright:y,login:w,...k}},Mo=e=>e.type.includes("image"),Uo=e=>{const t=Array.from(e).find(Mo);return!!t&&t.getAsFile()},Po="{--waline-white:#000;--waline-light-grey:#666;--waline-dark-grey:#999;--waline-text-color:#888;--waline-bgcolor:#1e1e1e;--waline-bgcolor-light:#272727;--waline-bgcolor-hover: #444;--waline-border-color:#333;--waline-disable-bgcolor:#444;--waline-disable-color:#272727;--waline-bq-color:#272727;--waline-info-bgcolor:#272727;--waline-info-color:#666}",No=(e,t)=>{if(!document.body.hasAttribute(t)){const n=document.createElement("style");n.appendChild(document.createTextNode(e)),document.head.appendChild(n),document.body.setAttribute(t,"")}},Vo=()=>{No('\n/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at http://mozilla.org/MPL/2.0/. */\n\n/* See https://github.com/fred-wang/mathml.css */\n\n@namespace "http://www.w3.org/1998/Math/MathML";\nbody[waline-math] .v math{display:inline;font-size:0;font-family:Cambria Math,Latin Modern Math;text-indent:0}body[waline-math] .v math>*{font-size:14px}body[waline-math] .v math[display=block]{display:block;font-size:0;text-align:center}body[waline-math] .v math[display=block]>*{font-size:16px}body[waline-math] .v mfrac{display:inline-block !important;vertical-align:-50%;border-collapse:collapse;text-align:center}body[waline-math] .v mfrac>*{display:block !important}body[waline-math] .v mfrac>*+*{display:inline-block !important;vertical-align:top}body[waline-math] .v mfrac:not([linethickness="0"])>*:first-child{border-bottom:solid thin}body[waline-math] .v msub>*:nth-child(2),body[waline-math] .v msubsup>*:nth-child(2),body[waline-math] .v mmultiscripts>*:nth-child(2n+2),body[waline-math] .v mmultiscripts>mprescripts~*:nth-child(2n+3){vertical-align:sub;font-size:.8em}body[waline-math] .v msup>*:nth-child(2),body[waline-math] .v msubsup>*:nth-child(3),body[waline-math] .v mmultiscripts>*:nth-child(2n+3),body[waline-math] .v mmultiscripts>mprescripts~*:nth-child(2n+2){vertical-align:super;font-size:.8em}body[waline-math] .v mprescripts::after{content:";"}body[waline-math] .v munder,body[waline-math] .v mover,body[waline-math] .v munderover{display:inline-flex !important;flex-direction:column}body[waline-math] .v munder>*:nth-child(2),body[waline-math] .v munderover>*:nth-child(2){order:1;font-size:.8em}body[waline-math] .v mover>*:nth-child(2),body[waline-math] .v munderover>*:nth-child(3){order:-1;font-size:.8em}body[waline-math] .v munder{vertical-align:text-top}body[waline-math] .v mover{vertical-align:text-bottom}body[waline-math] .v munderover{vertical-align:middle}body[waline-math] .v msqrt,body[waline-math] .v mroot{display:inline-flex !important;vertical-align:middle;margin-left:.5em;border-top:solid thin}body[waline-math] .v msqrt::before,body[waline-math] .v mroot::before{content:"√";margin-left:-0.5em}body[waline-math] .v mroot>*:nth-child(2){order:-1;margin-right:.25em;margin-left:-0.75em;font-size:.8em}body[waline-math] .v menclose{display:inline-table !important;border-spacing:.4ex 0;border-collapse:separate}body[waline-math] .v menclose[notation*=top],body[waline-math] .v menclose[notation*=actuarial]{border-top:solid thin}body[waline-math] .v menclose[notation*=bottom],body[waline-math] .v menclose[notation*=madruwb]{border-bottom:solid thin}body[waline-math] .v menclose[notation*=right],body[waline-math] .v menclose[notation*=actuarial],body[waline-math] .v menclose[notation*=madruwb]{border-right:solid thin}body[waline-math] .v menclose[notation*=left]{border-left:solid thin}body[waline-math] .v menclose[notation*=box],body[waline-math] .v menclose[notation*=roundedbox],body[waline-math] .v menclose[notation*=circle]{border:solid thin}body[waline-math] .v menclose[notation*=roundedbox]{border-radius:15%}body[waline-math] .v menclose[notation*=circle]{border-radius:50%}body[waline-math] .v menclose[notation*=horizontalstrike]{text-decoration:line-through}body[waline-math] .v mtable{display:inline-table !important;vertical-align:middle;text-align:center}body[waline-math] .v mtr{display:table-row !important}body[waline-math] .v mtd{display:table-cell !important;padding:0 .5ex}body[waline-math] .v mspace{margin:.2em}body[waline-math] .v mi{font-style:italic}body[waline-math] .v mo{margin-right:.2em;margin-left:.2em}body[waline-math] .v ms::before,body[waline-math] .v ms::after{content:\'"\'}body[waline-math] .v ms[lquote]::before{content:attr(lquote)}body[waline-math] .v ms[lquote]::after{content:attr(rquote)}body[waline-math] .v [mathvariant=bold],body[waline-math] .v [mathvariant=bold-italic],body[waline-math] .v [mathvariant=bold-sans-serif],body[waline-math] .v [mathvariant=sans-serif-bold-italic]{font-weight:bold;font-style:normal}body[waline-math] .v [mathvariant=monospace]{font-style:normal;font-family:monospace}body[waline-math] .v [mathvariant=sans-serif],body[waline-math] .v [mathvariant=bold-sans-serif],body[waline-math] .v [mathvariant=sans-serif-italic],body[waline-math] .v [mathvariant=sans-serif-bold-italic]{font-style:normal;font-family:sans-serif}body[waline-math] .v [mathvariant=italic],body[waline-math] .v [mathvariant=bold-italic],body[waline-math] .v [mathvariant=sans-serif-italic],body[waline-math] .v [mathvariant=sans-serif-bold-italic]{font-style:italic}body[waline-math] .v [mathvariant=normal]{font-style:normal}body[waline-math] .v mphantom{visibility:hidden}body[waline-math] .v merror{outline:solid thin red}body[waline-math] .v merror::before{content:"Error: "}body[waline-math] .v semantics>*:first-child{display:inline}body[waline-math] .v annotation,body[waline-math] .v annotation-xml{display:none !important;font-family:monospace}body[waline-math] .v math:active>semantics>*:first-child{display:none !important}body[waline-math] .v math:active annotation:first-of-type{display:inline !important}',"waline-math-style"),document.body.insertAdjacentHTML("afterbegin","");const e=document.body.firstChild,t=e.firstChild.firstChild.getBoundingClientRect();document.body.removeChild(e),(Math.abs(t.height-23)>1||Math.abs(t.width-77)>1)&&document.body.setAttribute("waline-math","")};var qo=n(948),Ho=n.n(qo),Wo=n(917),Zo=n.n(Wo);const Jo=/\B\$([^\s$]|[^\s$][^\n$]*[^\s$])\$\B/g,Ko=/(^|\n)\$\$(.+?)\$\$(\n|$)/gs,Xo=(e="",t={})=>e.replace(/:(.+?):/g,((e,n)=>t[n]?``:e)),Yo=(e,t)=>{let n=e.toString();for(;n.length{if(e)try{"string"==typeof e&&(e=new Date(-1!==e.indexOf(" ")?e.replace(/-/g,"/"):e));const n=e.getTime(),r=(new Date).getTime()-n,o=Math.floor(r/864e5);if(0===o){const e=r%864e5,n=Math.floor(e/36e5);if(0===n){const n=e%36e5,r=Math.floor(n/6e4);if(0===r){const e=n%6e4;return`${Math.round(e/1e3)} ${t.seconds}`}return`${r} ${t.minutes}`}return`${n} ${t.hours}`}return o<0?t.now:o<8?`${o} ${t.days}`:(e=>{const t=Yo(e.getDate(),2),n=Yo(e.getMonth()+1,2);return`${Yo(e.getFullYear(),2)}-${n}-${t}`})(e)}catch(e){console.log(e)}return""},Qo=(e,t)=>{t.forEach(((t,n)=>{(t.querySelector(".leancloud-visitors-count")||t).innerText=e[n].toString()}))};let ea,ta;const na=()=>(ta||(ea=Lo("WALINE_USER_CACHE"),ta=Ye({nick:ea.get("nick")||"",mail:ea.get("mail")||"",link:ea.get("link")||"",editor:""})),{inputs:ta,store:ea}),ra="WALINE_USER",oa=lt(null),aa=()=>{if(!oa.value)try{oa.value=JSON.parse(localStorage.getItem(ra)||"")||JSON.parse(sessionStorage.getItem(ra)||"")||null}catch(e){}return{userInfo:Ge(oa),setUserInfo:e=>{oa.value=e}}},ia={class:"v","data-class":"v"},la={class:"vcount"},sa={key:1,class:"vloading"},ua={class:"vcards"},ca={key:2,class:"vloading"},da={key:4,class:"vmore"},pa={key:5,class:"vpower"},ha=lr(" Powered by "),fa=ar("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noreferrer"}," Waline ",-1),va={class:"vcomment"},ma={key:0,class:"vlogin-info"},ga={class:"vavatar"},ba={class:"vpanel"},Da={class:"vfooter"},ya={class:"vactions"},wa={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"vaction",target:"_blank",rel:"noreferrer"},ka={class:"vinfo"},xa={class:"vtext-number"},Ca={key:0},Aa=lr(" / "),Ea={key:0,class:"vtab-wrapper"},Fa={key:0,class:"vtabs"};var _a,Ba,Sa="function"==typeof Map?new Map:(_a=[],Ba=[],{has:function(e){return _a.indexOf(e)>-1},get:function(e){return Ba[_a.indexOf(e)]},set:function(e,t){-1===_a.indexOf(e)&&(_a.push(e),Ba.push(t))},delete:function(e){var t=_a.indexOf(e);t>-1&&(_a.splice(t,1),Ba.splice(t,1))}}),za=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(_a){za=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function $a(e){var t=Sa.get(e);t&&t.destroy()}function Ta(e){var t=Sa.get(e);t&&t.update()}var Ia=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((Ia=function(e){return e}).destroy=function(e){return e},Ia.update=function(e){return e}):((Ia=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],(function(e){return function(e){if(e&&e.nodeName&&"TEXTAREA"===e.nodeName&&!Sa.has(e)){var t,n=null,r=null,o=null,a=function(){e.clientWidth!==r&&u()},i=function(t){window.removeEventListener("resize",a,!1),e.removeEventListener("input",u,!1),e.removeEventListener("keyup",u,!1),e.removeEventListener("autosize:destroy",i,!1),e.removeEventListener("autosize:update",u,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),Sa.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",i,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",u,!1),window.addEventListener("resize",a,!1),e.addEventListener("input",u,!1),e.addEventListener("autosize:update",u,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",Sa.set(e,{destroy:i,update:u}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),u()}function l(t){var n=e.style.width;e.style.width="0px",e.style.width=n,e.style.overflowY=t}function s(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),o&&(document.documentElement.scrollTop=o)}}function u(){s();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(rBr("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},Br("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},Br("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))),Oa=cn({name:"CommentBox",components:{CloseIcon:({size:e})=>Br("svg",{class:"vclose-icon",viewBox:"0 0 1024 1024",width:e,height:e},[Br("path",{d:"M697.173 85.333h-369.92c-144.64 0-241.92 101.547-241.92 252.587v348.587c0 150.613 97.28 252.16 241.92 252.16h369.92c144.64 0 241.494-101.547 241.494-252.16V337.92c0-151.04-96.854-252.587-241.494-252.587z",fill:"currentColor"}),Br("path",{d:"m640.683 587.52-75.947-75.861 75.904-75.862a37.29 37.29 0 0 0 0-52.778 37.205 37.205 0 0 0-52.779 0l-75.946 75.818-75.862-75.946a37.419 37.419 0 0 0-52.821 0 37.419 37.419 0 0 0 0 52.821l75.947 75.947-75.776 75.733a37.29 37.29 0 1 0 52.778 52.821l75.776-75.776 75.947 75.947a37.376 37.376 0 0 0 52.779-52.821z",fill:"#888"})]),EmojiIcon:()=>Br("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Br("path",{d:"M563.2 463.3 677 540c1.7 1.2 3.7 1.8 5.8 1.8.7 0 1.4-.1 2-.2 2.7-.5 5.1-2.1 6.6-4.4l25.3-37.8c1.5-2.3 2.1-5.1 1.6-7.8s-2.1-5.1-4.4-6.6l-73.6-49.1 73.6-49.1c2.3-1.5 3.9-3.9 4.4-6.6.5-2.7 0-5.5-1.6-7.8l-25.3-37.8a10.1 10.1 0 0 0-6.6-4.4c-.7-.1-1.3-.2-2-.2-2.1 0-4.1.6-5.8 1.8l-113.8 76.6c-9.2 6.2-14.7 16.4-14.7 27.5.1 11 5.5 21.3 14.7 27.4zM387 348.8h-45.5c-5.7 0-10.4 4.7-10.4 10.4v153.3c0 5.7 4.7 10.4 10.4 10.4H387c5.7 0 10.4-4.7 10.4-10.4V359.2c0-5.7-4.7-10.4-10.4-10.4zm333.8 241.3-41-20a10.3 10.3 0 0 0-8.1-.5c-2.6.9-4.8 2.9-5.9 5.4-30.1 64.9-93.1 109.1-164.4 115.2-5.7.5-9.9 5.5-9.5 11.2l3.9 45.5c.5 5.3 5 9.5 10.3 9.5h.9c94.8-8 178.5-66.5 218.6-152.7 2.4-5 .3-11.2-4.8-13.6zm186-186.1c-11.9-42-30.5-81.4-55.2-117.1-24.1-34.9-53.5-65.6-87.5-91.2-33.9-25.6-71.5-45.5-111.6-59.2-41.2-14-84.1-21.1-127.8-21.1h-1.2c-75.4 0-148.8 21.4-212.5 61.7-63.7 40.3-114.3 97.6-146.5 165.8-32.2 68.1-44.3 143.6-35.1 218.4 9.3 74.8 39.4 145 87.3 203.3.1.2.3.3.4.5l36.2 38.4c1.1 1.2 2.5 2.1 3.9 2.6 73.3 66.7 168.2 103.5 267.5 103.5 73.3 0 145.2-20.3 207.7-58.7 37.3-22.9 70.3-51.5 98.1-85 27.1-32.7 48.7-69.5 64.2-109.1 15.5-39.7 24.4-81.3 26.6-123.8 2.4-43.6-2.5-87-14.5-129zm-60.5 181.1c-8.3 37-22.8 72-43 104-19.7 31.1-44.3 58.6-73.1 81.7-28.8 23.1-61 41-95.7 53.4-35.6 12.7-72.9 19.1-110.9 19.1-82.6 0-161.7-30.6-222.8-86.2l-34.1-35.8c-23.9-29.3-42.4-62.2-55.1-97.7-12.4-34.7-18.8-71-19.2-107.9-.4-36.9 5.4-73.3 17.1-108.2 12-35.8 30-69.2 53.4-99.1 31.7-40.4 71.1-72 117.2-94.1 44.5-21.3 94-32.6 143.4-32.6 49.3 0 97 10.8 141.8 32 34.3 16.3 65.3 38.1 92 64.8 26.1 26 47.5 56 63.6 89.2 16.2 33.2 26.6 68.5 31 105.1 4.6 37.5 2.7 75.3-5.6 112.3z",fill:"currentColor"})),ImageIcon:()=>Br("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Br("path",{d:"M784 112H240c-88 0-160 72-160 160v480c0 88 72 160 160 160h544c88 0 160-72 160-160V272c0-88-72-160-160-160zm96 640c0 52.8-43.2 96-96 96H240c-52.8 0-96-43.2-96-96V272c0-52.8 43.2-96 96-96h544c52.8 0 96 43.2 96 96v480z",fill:"currentColor"}),Br("path",{d:"M352 480c52.8 0 96-43.2 96-96s-43.2-96-96-96-96 43.2-96 96 43.2 96 96 96zm0-128c17.6 0 32 14.4 32 32s-14.4 32-32 32-32-14.4-32-32 14.4-32 32-32zm462.4 379.2-3.2-3.2-177.6-177.6c-25.6-25.6-65.6-25.6-91.2 0l-80 80-36.8-36.8c-25.6-25.6-65.6-25.6-91.2 0L200 728c-4.8 6.4-8 14.4-8 24 0 17.6 14.4 32 32 32 9.6 0 16-3.2 22.4-9.6L380.8 640l134.4 134.4c6.4 6.4 14.4 9.6 24 9.6 17.6 0 32-14.4 32-32 0-9.6-4.8-17.6-9.6-24l-52.8-52.8 80-80L769.6 776c6.4 4.8 12.8 8 20.8 8 17.6 0 32-14.4 32-32 0-8-3.2-16-8-20.8z",fill:"currentColor"})]),MarkdownIcon:()=>Br("svg",{width:"16",height:"16",ariaHidden:"true"},Br("path",{d:"M14.85 3H1.15C.52 3 0 3.52 0 4.15v7.69C0 12.48.52 13 1.15 13h13.69c.64 0 1.15-.52 1.15-1.15v-7.7C16 3.52 15.48 3 14.85 3zM9 11H7V8L5.5 9.92 4 8v3H2V5h2l1.5 2L7 5h2v6zm2.99.5L9.5 8H11V5h2v3h1.5l-2.51 3.5z",fill:"currentColor"})),PreviewIcon:()=>Br("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Br("path",{d:"M710.816 654.301c70.323-96.639 61.084-230.578-23.705-314.843-46.098-46.098-107.183-71.109-172.28-71.109-65.008 0-126.092 25.444-172.28 71.109-45.227 46.098-70.756 107.183-70.756 172.106 0 64.923 25.444 126.007 71.194 172.106 46.099 46.098 107.184 71.109 172.28 71.109 51.414 0 100.648-16.212 142.824-47.404l126.53 126.006c7.058 7.06 16.297 10.979 26.406 10.979 10.105 0 19.343-3.919 26.402-10.979 14.467-14.467 14.467-38.172 0-52.723L710.816 654.301zm-315.107-23.265c-65.88-65.88-65.88-172.54 0-238.42 32.069-32.07 74.245-49.149 119.471-49.149 45.227 0 87.407 17.603 119.472 49.149 65.88 65.879 65.88 172.539 0 238.42-63.612 63.178-175.242 63.178-238.943 0zm0 0",fill:"currentColor"}),Br("path",{d:"M703.319 121.603H321.03c-109.8 0-199.469 89.146-199.469 199.38v382.034c0 109.796 89.236 199.38 199.469 199.38h207.397c20.653 0 37.384-16.645 37.384-37.299 0-20.649-16.731-37.296-37.384-37.296H321.03c-68.582 0-124.352-55.77-124.352-124.267V321.421c0-68.496 55.77-124.267 124.352-124.267h382.289c68.582 0 124.352 55.771 124.352 124.267V524.72c0 20.654 16.736 37.299 37.385 37.299 20.654 0 37.384-16.645 37.384-37.299V320.549c-.085-109.8-89.321-198.946-199.121-198.946zm0 0",fill:"currentColor"})]),LoadingIcon:Ra},props:{rootId:{type:String,default:""},replyId:{type:String,default:""},replyUser:{type:String,default:""}},emits:["submit","cancel-reply"],setup(e,{emit:t}){const n=Yt("config"),{inputs:r,store:o}=na(),{userInfo:a,setUserInfo:i}=aa(),l=lt({}),s=lt(null),u=lt(null),c=lt(null),d=lt(null),p=lt({tabs:[],map:{}}),h=lt(0),f=lt(!1),v=lt(!1),m=lt(""),g=lt(0),b=lt(0),D=lt(!1),y=lt(""),w=lt(!1),k=_r((()=>n.value.locale)),x=_r((()=>{var e;return Boolean(null===(e=a.value)||void 0===e?void 0:e.token)})),C=e=>{const t=s.value,n=t.selectionStart,o=t.selectionEnd||0,a=t.scrollTop;r.editor=t.value.substring(0,n)+e+t.value.substring(o,t.value.length),t.focus(),t.selectionStart=n+e.length,t.selectionEnd=n+e.length,t.scrollTop=a},A=e=>{const t=`![${n.value.locale.uploading} ${e.name}]()`;return C(t),Promise.resolve().then((()=>n.value.uploadImage(e))).then((n=>{r.editor=r.editor.replace(t,`\r\n![${e.name}](${n})`)}))},E=()=>{var i,u;const{serverURL:c,lang:d,login:h,wordLimit:f,requiredMeta:v}=n.value,b={comment:y.value,nick:r.nick,mail:r.mail,link:r.link,ua:navigator.userAgent,url:n.value.path};if(null!==(i=a.value)&&void 0!==i&&i.token)b.nick=a.value.display_name,b.mail=a.value.email,b.link=a.value.url;else{if("force"===h)return;var x,C,A;if((v.indexOf("nick")>-1||b.nick)&&b.nick.length<3)return null===(x=l.value.nick)||void 0===x||x.focus(),alert(k.value.nickError);if((v.indexOf("mail")>-1||b.mail)&&!/^(\w)+(\.\w+)*@(\w)+((\.\w{2,}){1,3})$/.exec(b.mail))return null===(C=l.value.mail)||void 0===C||C.focus(),alert(k.value.mailError);if(!b.comment)return void(null===(A=s.value)||void 0===A||A.focus());b.nick=b.nick||"Anonymous"}if(!D.value)return alert(k.value.wordHint.replace("$0",f[0].toString()).replace("$1",f[1].toString()).replace("$2",g.value.toString()));b.comment=Xo(b.comment,p.value.map),e.replyId&&e.rootId&&(b.pid=e.replyId,b.rid=e.rootId,b.at=e.replyUser),w.value=!0,(({serverURL:e,lang:t,token:n,comment:r})=>{const o={"Content-Type":"application/json"};return n&&(o.Authorization=`Bearer ${n}`),fetch(`${e}/comment?lang=${t}`,{method:"POST",headers:o,body:JSON.stringify(r)}).then((e=>e.json()))})({serverURL:c,lang:d,token:null===(u=a.value)||void 0===u?void 0:u.token,comment:b}).then((n=>{if(w.value=!1,o.update({nick:b.nick,link:b.link,mail:b.mail}),n.errmsg)return alert(n.errmsg);t("submit",n.data),r.editor="",m.value="",e.replyId&&t("cancel-reply")}),(()=>{w.value=!1}))};Qt((()=>r.editor),(e=>{const{highlight:t}=n.value;y.value=e,m.value=((e,t=!0,n)=>(Zo().setOptions({highlight:t?Ho():void 0,breaks:!0,smartLists:!0,smartypants:!0}),Zo()((e=>e.replace(Ko,'Tex is not available in preview
').replace(Jo,'Tex is not available in preview'))(Xo(e,n)))))(e,t,p.value.map),g.value=(e=>(e=>e.match(/[\w\d\s\u00C0-\u024F]+/giu)||[])(e).reduce(((e,t)=>e+(""===t.trim()?0:t.trim().split(/\s+/u).length)),0)+(e=>e.match(/[\u4E00-\u9FA5]/gu)||[])(e).length)(e),s.value&&(e?La(s.value):La.destroy(s.value))}),{immediate:!0}),Qt((()=>n.value.emoji),(e=>e.then((e=>{p.value=e}))),{immediate:!0}),Qt([n,g],(([e,t])=>{const{wordLimit:n}=e;n?tn[1]?(b.value=n[1],D.value=!1):(b.value=n[1],D.value=!0):(b.value=0,D.value=!0)}),{immediate:!0});const F=e=>{c.value.contains(e.target)||d.value.contains(e.target)||(f.value=!1)};return fn((()=>{document.body.addEventListener("click",F)})),mn((()=>{document.body.removeEventListener("click",F)})),{config:n,locale:k,insert:C,onChange:()=>{const e=u.value;e.files&&A(e.files[0]).then((()=>{e.value=""}))},onDrop:e=>{var t;if(null!==(t=e.dataTransfer)&&void 0!==t&&t.items){const t=Uo(e.dataTransfer.items);t&&(A(t),e.preventDefault())}},onKeyDown:e=>{const t=e.key;(e.ctrlKey||e.metaKey)&&"Enter"===t&&E()},onPaste:e=>{if(e.clipboardData){const t=Uo(e.clipboardData.items);t&&A(t)}},onLogin:e=>{e.preventDefault();const{lang:t,serverURL:r}=n.value,o=(window.innerWidth-450)/2,a=(window.innerHeight-450)/2,l=window.open(`${r}/ui/login?lng=${encodeURIComponent(t)}`,"_blank",`width=450,height=450,left=${o},top=${a},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);null==l||l.postMessage({type:"TOKEN",data:null},"*");const s=({data:e})=>{e&&"userInfo"===e.type&&e.data.token&&(null==l||l.close(),i(e.data),(e.data.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(e.data)),window.removeEventListener("message",s))};window.addEventListener("message",s)},onLogout:()=>{i(null),localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null")},onProfile:e=>{e.preventDefault();const{lang:t,serverURL:r}=n.value,o=(window.innerWidth-800)/2,l=(window.innerHeight-800)/2,s=window.open(`${r}/ui/profile?lng=${encodeURIComponent(t)}`,"_blank",`width=800,height=800,left=${o},top=${l},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);null==s||s.postMessage({type:"TOKEN",data:a.value.token},"*");const u=({data:e})=>{e&&"profile"===e.type&&(i({...a.value,...e}),[localStorage,sessionStorage].filter((e=>e.getItem("WALINE_USER"))).forEach((e=>e.setItem("WALINE_USER",JSON.stringify(a)))),window.removeEventListener("message",u))};window.addEventListener("message",u)},submitComment:E,isLogin:x,userInfo:a,isSubmitting:w,wordNumber:g,wordLimit:b,isWordNumberLegal:D,inputs:r,emoji:p,emojiTabIndex:h,showEmoji:f,previewText:m,showPreview:v,inputRefs:l,editorRef:s,emojiButtonRef:c,emojiPopupRef:d,imageUploadRef:u}}});Oa.render=function(e,t,n,r,o,a){const i=Pn("CloseIcon"),l=Pn("MarkdownIcon"),s=Pn("EmojiIcon"),u=Pn("ImageIcon"),c=Pn("PreviewIcon"),d=Pn("LoadingIcon");return Xn(),Qn("div",va,["disable"!==e.config.login&&e.isLogin?(Xn(),Qn("div",ma,[ar("div",ga,[ar("button",{class:"vlogout-btn",title:e.locale.logout,onClick:t[1]||(t[1]=(...t)=>e.onLogout&&e.onLogout(...t))},[ar(i,{size:"14"})],8,["title"]),ar("img",{src:e.userInfo.avatar||`${e.config.avatar.cdn}${e.userInfo.mailMd5}${e.config.avatar.param}`,alt:"avatar"},null,8,["src"])]),ar("a",{href:"#",class:"vlogin-nick","aria-label":"Profile",onClick:t[2]||(t[2]=(...t)=>e.onProfile&&e.onProfile(...t)),textContent:p(e.userInfo.display_name)},null,8,["textContent"])])):sr("v-if",!0),ar("div",ba,["force"===e.config.login||e.isLogin?sr("v-if",!0):(Xn(),Qn("div",{key:0,class:["vheader",`vheader-${e.config.meta.length}`]},[(Xn(!0),Qn(qn,null,pr(e.config.meta,(t=>(Xn(),Qn("div",{class:"vheader-item",key:t},[ar("label",{for:t,textContent:p(e.locale[t])},null,8,["for","textContent"]),Bn(ar("input",{ref:n=>{n&&(e.inputRefs[t]=n)},id:`waline-${t}`,class:["vinput",`v${t}`],name:t,type:"mail"===t?"email":"text","onUpdate:modelValue":n=>e.inputs[t]=n},null,10,["id","name","type","onUpdate:modelValue"]),[[Do,e.inputs[t]]])])))),128))],2)),Bn(ar("textarea",{class:"veditor",ref:"editorRef",id:"waline-edit",placeholder:e.replyUser?`@${e.replyUser}`:e.locale.placeholder,"onUpdate:modelValue":t[3]||(t[3]=t=>e.inputs.editor=t),onKeydown:t[4]||(t[4]=(...t)=>e.onKeyDown&&e.onKeyDown(...t)),onDrop:t[5]||(t[5]=(...t)=>e.onDrop&&e.onDrop(...t)),onPaste:t[6]||(t[6]=(...t)=>e.onPaste&&e.onPaste(...t))},null,40,["placeholder"]),[[co,e.inputs.editor]]),ar("div",{class:"vpreview",style:{display:e.showPreview?"block":"none"}},[ar("h4",null,p(e.locale.preview)+":",1),ar("div",{class:"vcontent",innerHTML:e.previewText},null,8,["innerHTML"])],4),ar("div",Da,[ar("div",ya,[ar("a",wa,[ar(l)]),ar("button",{ref:"emojiButtonRef",class:["vaction",{actived:e.showEmoji}],title:e.locale.emoji,onClick:t[7]||(t[7]=t=>e.showEmoji=!e.showEmoji)},[ar(s)],10,["title"]),ar("input",{ref:"imageUploadRef",class:"upload",id:"waline-image-upload",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:t[8]||(t[8]=(...t)=>e.onChange&&e.onChange(...t))},null,544),ar("label",{for:"waline-image-upload",class:"vaction",title:e.locale.uploadImage},[ar(u)],8,["title"]),ar("button",{class:["vaction",{actived:e.showPreview}],title:e.locale.preview,onClick:t[9]||(t[9]=t=>e.showPreview=!e.showPreview)},[ar(c)],10,["title"])]),ar("div",ka,[ar("div",xa,[lr(p(e.wordNumber)+" ",1),e.config.wordLimit?(Xn(),Qn("span",Ca,[Aa,ar("span",{class:{illegal:!e.isWordNumberLegal},textContent:p(e.textLimit)},null,10,["textContent"])])):sr("v-if",!0),lr(" "+p(e.locale.word),1)]),"disable"===e.config.login||e.isLogin?sr("v-if",!0):(Xn(),Qn("button",{key:0,class:"vbtn",onClick:t[10]||(t[10]=(...t)=>e.onLogin&&e.onLogin(...t)),textContent:p(e.locale.login)},null,8,["textContent"])),ar("button",{class:"vbtn primary",title:"Cmd|Ctrl + Enter",disabled:e.isSubmitting,onClick:t[11]||(t[11]=(...t)=>e.submitComment&&e.submitComment(...t))},[e.isSubmitting?(Xn(),Qn(d,{key:0,size:16})):(Xn(),Qn(qn,{key:1},[lr(p(e.locale.submit),1)],2112))],8,["disabled"])]),ar("div",{ref:"emojiPopupRef",class:["vemoji-popup",{display:e.showEmoji}]},[(Xn(!0),Qn(qn,null,pr(e.emoji.tabs,((t,n)=>(Xn(),Qn(qn,{key:t.name},[n===e.emojiTabIndex?(Xn(),Qn("div",Ea,[(Xn(!0),Qn(qn,null,pr(t.items,(t=>(Xn(),Qn("button",{key:t,title:t,onClick:n=>e.insert(`:${t}:`)},[ar("img",{class:"vemoji",src:e.emoji.map[t],alt:t,loading:"lazy",referrerPolicy:"no-referrer"},null,8,["src","alt"])],8,["title","onClick"])))),128))])):sr("v-if",!0)],64)))),128)),e.emoji.tabs.length>1?(Xn(),Qn("div",Fa,[(Xn(!0),Qn(qn,null,pr(e.emoji.tabs,((t,n)=>(Xn(),Qn("button",{key:t.name,class:["vtab",{active:e.emojiTabIndex===n}],onClick:t=>e.emojiTabIndex=n},[ar("img",{class:"vemoji",src:t.icon,alt:t.name,title:t.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,["src","alt","title"])],10,["onClick"])))),128))])):sr("v-if",!0)],2)])]),e.replyId?(Xn(),Qn("button",{key:1,class:"vclose",title:e.locale.cancelReply,onClick:t[12]||(t[12]=t=>e.$emit("cancel-reply"))},[ar(i,{size:"24"})],8,["title"])):sr("v-if",!0)])};const ja=Oa,Ma={class:"vcard"},Ua={class:"vhead"},Pa={class:"vmeta","aria-hidden":"true"},Na={key:0,class:"vreply-wrapper"},Va={key:1,class:"vquote"},qa=cn({props:{comment:{type:Object,required:!0},rootId:{type:String,required:!0},reply:{type:Object}},components:{CommentBox:ja,ReplyIcon:()=>Br("svg",{viewBox:"0 0 1024 1024",width:"18",height:"18"},Br("path",{d:"M1019.2 720C1001.6 625.6 968 566.4 904 497.6c-89.6-89.6-214.4-150.4-347.2-176v-120c0-25.6-8-51.2-25.6-64-33.6-30.4-81.6-30.4-112-4.8L33.6 441.6C12.8 459.2 0 484.8 0 510.4c0 25.6 12.8 51.2 30.4 68.8l385.6 312c17.6 12.8 33.6 17.6 51.2 17.6 12.8 0 25.6-4.8 38.4-8C536 888 552 857.6 552 824v-99.2c124.8 20.8 248 86.4 339.2 140.8 25.6 17.6 59.2 17.6 89.6 0 25.6-17.6 43.2-46.4 43.2-76.8 0-33.6 0-56-4.8-68.8zm-500.8-89.6-46.4-4.8v193.6L86.4 510.4 472 201.6V400l38.4 4.8c128 12.8 248 68.8 334.4 153.6 51.2 56 76.8 102.4 94.4 179.2 0 4.8 4.8 20.8 4.8 51.2C835.2 720 672 640 518.4 630.4z",fill:"currentColor"}))},emits:["submit","reply"],setup(e){const t=Yt("config"),n=_r((()=>t.value.locale)),r=_r((()=>{let{link:t}=e.comment;return t?(e=>/^(https?:)?\/\//.test(e))(t)?t:`https://${t}`:""})),o=_r((()=>{var t;return e.comment.objectId===(null===(t=e.reply)||void 0===t?void 0:t.objectId)}));return{config:t,locale:n,isReplyingCurrent:o,link:r,timeAgo:Go}}});qa.render=function(e,t,n,r,o,a){const i=Pn("ReplyIcon"),l=Pn("CommentBox"),s=Pn("CommentCard",!0);return Xn(),Qn("div",{class:"vitem",id:e.comment.objectId},[e.config.avatar?(Xn(),Qn("img",{key:0,class:"vuser","aria-hidden":"true",src:e.comment.avatar||`${e.config.avatar.cdn}${e.comment.mail}${e.config.avatar.param}`},null,8,["src"])):sr("v-if",!0),ar("div",Ma,[ar("div",Ua,[e.link?(Xn(),Qn("a",{key:0,class:"vnick",href:e.link,target:"_blank",rel:"nofollow noreferrer",textContent:p(e.comment.nick)},null,8,["href","textContent"])):(Xn(),Qn("span",{key:1,class:"vnick",textContent:p(e.comment.nick)},null,8,["textContent"])),"administrator"===e.comment.type?(Xn(),Qn("span",{key:2,class:"vbadge",textContent:p(e.locale.admin)},null,8,["textContent"])):sr("v-if",!0),ar("span",{class:"vtime",textContent:p(e.timeAgo(e.comment.insertedAt,e.locale))},null,8,["textContent"]),ar("button",{class:["vreply",{active:e.isReplyingCurrent}],title:e.isReplyingCurrent?e.locale.cancelReply:e.locale.reply,onClick:t[1]||(t[1]=t=>e.$emit("reply",e.isReplyingCurrent?null:e.comment))},[ar(i)],10,["title"])]),ar("div",Pa,[ar("span",{textContent:p(e.comment.browser)},null,8,["textContent"]),ar("span",{textContent:p(e.comment.os)},null,8,["textContent"])]),ar("div",{class:"vcontent",innerHTML:e.comment.comment},null,8,["innerHTML"]),e.isReplyingCurrent?(Xn(),Qn("div",Na,[ar(l,{replyId:e.comment.objectId,replyUser:e.comment.nick,rootId:e.rootId,onSubmit:t[2]||(t[2]=t=>e.$emit("submit",t)),onCancelReply:t[3]||(t[3]=t=>e.$emit("reply",null))},null,8,["replyId","replyUser","rootId"])])):sr("v-if",!0),e.comment.children?(Xn(),Qn("div",Va,[(Xn(!0),Qn(qn,null,pr(e.comment.children,(n=>(Xn(),Qn(s,{key:n.objectId,comment:n,reply:e.reply,rootId:e.rootId,onReply:t[4]||(t[4]=t=>e.$emit("reply",t)),onSubmit:t[5]||(t[5]=t=>e.$emit("submit",t))},null,8,["comment","reply","rootId"])))),128))])):sr("v-if",!0)])],8,["id"])};const Ha=cn({name:"Waline",components:{CommentBox:ja,CommentCard:qa,LoadingIcon:Ra},props:{signal:{type:Object,required:!0}},setup(e){const t=Yt("config"),n=Yt("event"),r=lt(0),o=lt(1),a=lt(0),i=lt(!0),l=lt([]),s=lt(null);let u=e.signal;const c=_r((()=>t.value.locale)),d=e=>{i.value=!0,(({serverURL:e,path:t,page:n,pageSize:r,signal:o})=>fetch(`${e}/comment?path=${encodeURIComponent(t)}&pageSize=${r}&page=${n}`,{signal:o}).then((e=>e.json())).then((e=>xo(e,{count:0,data:[],totalPages:0},"comment list"))))({...t.value,page:e,signal:u}).then((t=>{i.value=!1,r.value=t.count,l.value.push(...t.data),o.value=e,a.value=t.totalPages})).catch((e=>{"AbortError"!==e.name&&(i.value=!1)}))};return n.on("render",(e=>{u=e,r.value=0,l.value=[],d(1)})),fn((()=>d(1))),{config:t,locale:c,count:r,data:l,loading:i,page:o,totalPages:a,reply:s,loadMore:()=>d(o.value+1),onReply:e=>{s.value=e},onSubmit:e=>{if(e.rid){const t=l.value.find((({objectId:t})=>t===e.rid));if(!t)return;Array.isArray(t.children)||(t.children=[]),t.children.push(e)}else l.value.unshift(e)},version:"1.3.3"}}});Ha.render=function(e,t,n,r,o,a){const i=Pn("CommentBox"),l=Pn("LoadingIcon"),s=Pn("CommentCard");return Xn(),Qn("div",ia,[e.reply?sr("v-if",!0):(Xn(),Qn(i,{key:0,onSubmit:e.onSubmit},null,8,["onSubmit"])),ar("div",la,[e.count?(Xn(),Qn("span",{key:0,class:"vnum",textContent:p(e.count)},null,8,["textContent"])):sr("v-if",!0),lr(" "+p(e.locale.comment),1)]),e.loading&&!e.data.length?(Xn(),Qn("div",sa,[ar(l,{size:30})])):sr("v-if",!0),ar("div",ua,[(Xn(!0),Qn(qn,null,pr(e.data,(t=>(Xn(),Qn(s,{key:t.objectId,"root-id":t.objectId,comment:t,reply:e.reply,onReply:e.onReply,onSubmit:e.onSubmit},null,8,["root-id","comment","reply","onReply","onSubmit"])))),128))]),e.loading&&e.data.length?(Xn(),Qn("div",ca,[ar(l,{size:30})])):sr("v-if",!0),e.data.length||e.loading?sr("v-if",!0):(Xn(),Qn("div",{key:3,class:"vempty",textContent:p(e.locale.sofa)},null,8,["textContent"])),e.pagee.loadMore&&e.loadMore(...t)),textContent:p(e.locale.more)},null,8,["textContent"])])):sr("v-if",!0),e.config.copyright?(Xn(),Qn("div",pa,[ha,fa,lr(" v"+p(e.version),1)])):sr("v-if",!0)])};const Wa=Ha;var Za=n(62),Ja=n.n(Za),Ka=n(36),Xa=n.n(Ka),Ya=n(2),Ga=n.n(Ya),Qa=n(173),ei=n.n(Qa),ti=n(41),ni={styleTagTransform:function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}},setAttributes:function(e){var t=n.nc;t&&e.setAttribute("nonce",t)},insert:function(e){var t=Ga()("head");if(!t)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");t.appendChild(e)}};ni.domAPI=Xa(),ni.insertStyleElement=ei(),Ja()(ti.Z,ni),ti.Z&&ti.Z.locals&&ti.Z.locals;class ri{constructor(){var e,t;t=void 0,(e="controller")in this?Object.defineProperty(this,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):this[e]=t,this.controller=new AbortController}get signal(){return this.controller.signal}abort(){this.controller.abort()}new(){this.abort(),this.controller=new AbortController}}const oi=(e,t)=>{const{path:n,serverURL:r,visitor:o}=e;o&&(({serverURL:e,path:t,signal:n})=>{const r=(({serverURL:e,path:t})=>fetch(`${e}/article`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:t})}).then((e=>e.json())).then((e=>xo(e,0,"visit count"))))({serverURL:e,path:t}),o=Array.from(document.querySelectorAll(".waline-visitor-count,.leancloud_visitors,.leancloud-visitors")).filter((e=>e.getAttribute("id"))),a=o.map((e=>Co(e.getAttribute("id")||""))),i=a.filter((e=>e!==t));i.length?(i.length===a.length?Promise.resolve():r).then((()=>(({serverURL:e,paths:t,signal:n})=>fetch(`${e}/article?path=${encodeURIComponent(t.join(","))}`,{signal:n}).then((e=>e.json())).then((e=>xo(e,new Array(t.length).fill(0),"visit count"))).then((e=>Array.isArray(e)?e:[e])))({serverURL:e,paths:a,signal:n}))).then((e=>Qo(e,o))):r.then((e=>Qo(new Array(o.length).fill(e),o)))})({serverURL:r,path:n,signal:t}),((e,t)=>{const n=Array.from(document.querySelectorAll(".waline-comment-count")).filter((e=>e.getAttribute("data-xid")||e.getAttribute("id")));n.length&&(({serverURL:e,paths:t,signal:n})=>fetch(`${e}/comment?type=count&url=${encodeURIComponent(t.join(","))}`,{signal:n}).then((e=>e.json())).then((e=>xo(e,new Array(t.length).fill(0),"comment count"))).then((e=>Array.isArray(e)?e:[e])))({serverURL:e,paths:n.map((e=>Co(e.getAttribute("data-xid")||e.getAttribute("id")))),signal:t}).then((e=>{n.forEach(((t,n)=>{t.innerText=e[n].toString()}))}))})(r,t)},ai=e=>(console.warn(e),{errMsg:e});function ii(e){const{el:t,serverURL:n}=e;if(!n)return ai("Option 'serverURL' is missing!");var r;e.dark&&"string"==typeof(r=e.dark)&&No("auto"===r?`@media(prefers-color-scheme:dark){body${Po}}`:`${r}${Po}`,"waline-dark"),e.mathTagSupport&&window.addEventListener("load",Vo);const o=new ri,a=new ri,i=function(e){return{all:e=e||new Map,on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map((function(e){e(n)})),(r=e.get("*"))&&r.slice().map((function(e){e(t,n)}))}}}(),{config:l,update:s}=(e=>{let t=e;const n=lt(jo(e));return{config:Ge(n),update:(e={})=>{t={...t,...e},n.value=jo(t)}}})(e);oi(l.value,a.signal);const u=(e=>e?e instanceof HTMLElement?e:document.querySelector(e)||null:null)(t);if(t&&!u)return ai("Option 'el' do not match any domElement!");let c;u&&(c=((...e)=>{const t=(ko||(ko=function(e){return On(e)}(wo))).createApp(...e),{mount:n}=t;return t.mount=e=>{const r=function(e){return B(e)?document.querySelector(e):e}(e);if(!r)return;const o=t._component;_(o)||o.render||o.template||(o.template=r.innerHTML),r.innerHTML="";const a=n(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),a},t})(Wa,{signal:o.signal}).provide("config",l).provide("event",i).provide("version","1.3.3"),c.mount(u));const d={options:e,path:l.value.path};return{el:u,update:e=>{s(e);const{path:t}=l.value;d.path!==t&&(o.new(),d.path=t,i.emit("render",o.signal)),a.new(),oi(l.value,a.signal)},destroy:()=>{t&&c.unmount()}}}ii.Widget={RecentComments:({el:e,serverURL:t,count:n})=>{const r=e instanceof HTMLElement?e:e?document.querySelector(e):null,o=new AbortController;return(({serverURL:e,count:t,signal:n})=>fetch(`${e}/comment?type=recent&count=${t}`,{signal:n}).then((e=>e.json())).then((e=>xo(e,[],"recent comment"))))({serverURL:t,count:n,signal:o.signal}).then((e=>r&&e.length?(r.innerHTML=``,{comments:e,destroy:()=>{o.abort(),r.innerHTML=""}}):{comments:e,destroy:()=>o.abort()}))}},ii.version="1.3.3";const li=ii})(),r.default})()}));
//# sourceMappingURL=Waline.min.js.map