diff --git a/assets/lib/waline/waline.css b/assets/lib/waline/waline.css index 077979567..e2627264b 100644 --- a/assets/lib/waline/waline.css +++ b/assets/lib/waline/waline.css @@ -1 +1 @@ -:root{--waline-font-size: 1rem;--waline-white: #fff;--waline-light-grey: #999;--waline-dark-grey: #666;--waline-theme-color: #27ae60;--waline-active-color: #2ecc71;--waline-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-m-avatar-size: calc(var(--waline-avatar-size) * 9 / 13);--waline-badge-color: #3498db;--waline-badge-font-size: 0.75em;--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}[data-waline]{font-size:var(--waline-font-size);text-align:start}[dir=rtl] [data-waline]{direction:rtl}[data-waline] *{box-sizing:content-box;line-height:1.75}[data-waline] p{color:var(--waline-color)}[data-waline] a{position:relative;display:inline-block;color:var(--waline-theme-color);text-decoration:none;word-break:break-word;cursor:pointer}[data-waline] a:hover{color:var(--waline-active-color)}[data-waline] img{max-width:100%;max-height:400px;border:none}[data-waline] hr{margin:.825em 0;border-style:dashed;border-color:var(--waline-bgcolor-light)}[data-waline] code,[data-waline] pre{margin:0;padding:.2em .4em;border-radius:3px;background:var(--waline-bgcolor-light);font-size:85%}[data-waline] pre{overflow:auto;padding:10px;line-height:1.45}[data-waline] pre::-webkit-scrollbar{width:6px;height:6px}[data-waline] pre::-webkit-scrollbar-track-piece:horizontal{-webkit-border-radius:6px;border-radius:6px;background:rgba(0,0,0,.1)}[data-waline] pre::-webkit-scrollbar-thumb:horizontal{width:6px;-webkit-border-radius:6px;border-radius:6px;background:var(--waline-theme-color)}[data-waline] pre code{padding:0;background:rgba(0,0,0,0);color:var(--waline-color);white-space:pre-wrap;word-break:keep-all}[data-waline] blockquote{margin:.5em 0;padding:.5em 0 .5em 1em;border-inline-start:8px solid var(--waline-bq-color);color:var(--waline-dark-grey)}[data-waline] blockquote>p{margin:0}[data-waline] ol,[data-waline] ul{margin-inline-start:1.25em;padding:0}[data-waline] input[type=checkbox],[data-waline] input[type=radio]{display:inline-block;vertical-align:middle;margin-top:-2px}.wl-btn{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:rgba(0,0,0,0);color:var(--waline-color);font-weight:400;font-size:.75em;line-height:1.5;text-align:center;white-space:nowrap;cursor:pointer;user-select:none;transition-duration:.4s;touch-action:manipulation}.wl-btn:hover,.wl-btn:active{border-color:var(--waline-theme-color);color:var(--waline-theme-color)}.wl-btn:disabled{border-color:var(--waline-border-color);background:var(--waline-disable-bgcolor);color:var(--waline-disable-color);cursor:not-allowed}.wl-btn.primary{border-color:var(--waline-theme-color);background:var(--waline-theme-color);color:var(--waline-white)}.wl-btn.primary:hover,.wl-btn.primary:active{border-color:var(--waline-active-color);background:var(--waline-active-color);color:var(--waline-white)}.wl-btn.primary:disabled{border-color:var(--waline-border-color);background:var(--waline-disable-bgcolor);color:var(--waline-disable-color);cursor:not-allowed}.wl-loading{text-align:center}.wl-loading svg{margin:0 auto}.wl-comment{position:relative;display:flex;margin-bottom:.75em}.wl-close{position:absolute;top:-4px;inset-inline-end:-4px;padding:0;border:none;background:rgba(0,0,0,0);line-height:1;cursor:pointer}.wl-login-info{max-width:80px;margin-top:.75em;text-align:center}.wl-logout-btn{position:absolute;top:-10px;inset-inline-end:-10px;padding:3px;border:none;background:rgba(0,0,0,0);line-height:0;cursor:pointer}.wl-avatar{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){.wl-avatar{width:var(--waline-m-avatar-size);height:var(--waline-m-avatar-size)}}.wl-avatar img{width:100%;height:100%;border-radius:var(--waline-avatar-radius)}.wl-login-nick{display:block;color:var(--waline-theme-color);font-size:.75em;word-break:break-all}.wl-panel{position:relative;flex-shrink:1;width:100%;margin:.5em;border:var(--waline-border);border-radius:.75em;background:var(--waline-bgcolor);box-shadow:var(--waline-box-shadow)}.wl-header{display:flex;overflow:hidden;padding:0 4px;border-bottom:2px dashed var(--waline-border-color);border-top-left-radius:.75em;border-top-right-radius:.75em}@media(max-width: 580px){.wl-header{display:block}}.wl-header label{min-width:40px;padding:.75em .5em;color:var(--waline-color);font-size:.75em;text-align:center}.wl-header input{flex:1;width:0;padding:.5em;background:rgba(0,0,0,0);font-size:.625em;resize:none}.wl-header-item{display:flex;flex:1}@media(max-width: 580px){.wl-header-item:not(:last-child){border-bottom:2px dashed var(--waline-border-color)}}.wl-header-1 .wl-header-item{width:100%}.wl-header-2 .wl-header-item{width:50%}@media(max-width: 580px){.wl-header-2 .wl-header-item{flex:0;width:100%}}.wl-header-3 .wl-header-item{width:33.33%}@media(max-width: 580px){.wl-header-3 .wl-header-item{width:100%}}.wl-editor{position:relative;width:calc(100% - 1em);min-height:8.75em;margin:.75em .5em;border-radius:.5em;background:rgba(0,0,0,0);font-size:.875em;resize:vertical}.wl-editor,.wl-input{max-width:100%;border:none;color:var(--waline-color);outline:none;transition:all .25s ease}.wl-editor:focus,.wl-input:focus{background:var(--waline-bgcolor-light)}.wl-preview{padding:0 .5em .5em}.wl-preview h4{margin:.25em;font-weight:bold;font-size:.9375em}.wl-preview .wl-content{min-height:1.25em;padding:.25em;word-break:break-word;hyphens:auto}.wl-preview .wl-content>*:first-child{margin-top:0}.wl-preview .wl-content>*:last-child{margin-bottom:0}.wl-footer{position:relative;display:flex;flex-wrap:wrap;margin:.5em .75em}.wl-actions{display:flex;flex:2;align-items:center}.wl-action{display:inline-flex;align-items:center;justify-content:center;width:1.5em;height:1.5em;margin:2px;padding:0;border:none;background:rgba(0,0,0,0);color:var(--waline-color);font-size:16px;cursor:pointer}.wl-action:hover{color:var(--waline-theme-color)}.wl-action.active{color:var(--waline-active-color)}#wl-image-upload{display:none}#wl-image-upload:focus+label{color:var(--waline-color)}#wl-image-upload:focus-visible+label{outline:-webkit-focus-ring-color auto 1px}.wl-info{display:flex;flex:3;align-items:center;justify-content:flex-end}.wl-info .wl-text-number{color:var(--waline-info-color);font-size:.75em}.wl-info .wl-text-number .illegal{color:red}.wl-info button{margin-inline-start:.75em}.wl-info button svg{display:block;margin:0 auto;line-height:18px}.wl-emoji-popup{position:absolute;top:100%;inset-inline-start: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);opacity:0;visibility:hidden;transition:transform .2s ease-out,opacity .2s ease-out;transform:scale(0.9, 0.9);transform-origin:0 0}.wl-emoji-popup.display{opacity:1;visibility:visible;transform:none}.wl-emoji-popup button{display:inline-block;vertical-align:middle;width:2em;margin:.125em;padding:0;border-width:0;background:rgba(0,0,0,0);font-size:inherit;line-height:2;text-align:center;cursor:pointer}.wl-emoji-popup button:hover{background:var(--waline-bgcolor-hover)}.wl-emoji-popup .wl-emoji{display:inline-block;vertical-align:middle;max-width:1.5em;max-height:1.5em}.wl-emoji-popup .wl-tab-wrapper{overflow-y:auto;max-height:145px;padding:.5em}.wl-emoji-popup .wl-tab-wrapper::-webkit-scrollbar{width:6px;height:6px}.wl-emoji-popup .wl-tab-wrapper::-webkit-scrollbar-track-piece:vertical{-webkit-border-radius:6px;border-radius:6px;background:rgba(0,0,0,.1)}.wl-emoji-popup .wl-tab-wrapper::-webkit-scrollbar-thumb:vertical{width:6px;-webkit-border-radius:6px;border-radius:6px;background:var(--waline-theme-color)}.wl-emoji-popup .wl-tabs{position:relative;overflow-x:auto;padding:0 6px;white-space:nowrap}.wl-emoji-popup .wl-tabs::before{content:" ";position:absolute;top:0;right:0;left:0;z-index:2;height:1px;background:var(--waline-border-color)}.wl-emoji-popup .wl-tabs::-webkit-scrollbar{width:6px;height:6px}.wl-emoji-popup .wl-tabs::-webkit-scrollbar-track-piece:horizontal{-webkit-border-radius:6px;border-radius:6px;background:rgba(0,0,0,.1)}.wl-emoji-popup .wl-tabs::-webkit-scrollbar-thumb:horizontal{height:6px;-webkit-border-radius:6px;border-radius:6px;background:var(--waline-theme-color)}.wl-emoji-popup .wl-tab{position:relative;margin:0;padding:0 .5em}.wl-emoji-popup .wl-tab.active{z-index:3;border:1px solid var(--waline-border-color);border-top-width:0;border-bottom-right-radius:6px;border-bottom-left-radius:6px;background:var(--waline-bgcolor)}.wl-gif-popup{position:absolute;top:100%;inset-inline-start:1.25em;z-index:10;width:calc(100% - 3em);padding:.75em .75em .25em;border:var(--waline-border);border-radius:6px;background:var(--waline-bgcolor);box-shadow:var(--waline-box-shadow);opacity:0;visibility:hidden;transition:transform .2s ease-out,opacity .2s ease-out;transform:scale(0.9, 0.9);transform-origin:0 0}.wl-gif-popup.display{opacity:1;visibility:visible;transform:none}.wl-gif-popup input{box-sizing:border-box;width:100%;margin-bottom:10px;padding:3px 5px;border:var(--waline-border)}.wl-gif-popup img{display:block;box-sizing:border-box;width:100%;border-width:2px;border-style:solid;border-color:#fff;cursor:pointer}.wl-gif-popup img:hover{border-color:var(--waline-theme-color);border-radius:2px}.wl-gallery{display:flex;overflow-y:auto;max-height:80vh}.wl-gallery-column{display:flex;flex:1;flex-direction:column;height:-webkit-max-content;height:-moz-max-content;height:max-content}.wl-cards .wl-user{--avatar-size: var(--waline-avatar-size);position:relative;margin-inline-end:.75em}@media(max-width: 720px){.wl-cards .wl-user{--avatar-size: var(--waline-m-avatar-size)}}.wl-cards .wl-user img{width:var(--avatar-size);height:var(--avatar-size);border-radius:var(--waline-avatar-radius);box-shadow:var(--waline-box-shadow)}.wl-cards .wl-user .verified-icon{position:absolute;top:calc(var(--avatar-size)*3/4);inset-inline-start:calc(var(--avatar-size)*3/4);border-radius:50%;background:var(--waline-bgcolor);box-shadow:var(--waline-box-shadow)}.wl-card-item{position:relative;display:flex;padding:.5em}.wl-card-item .wl-card-item{padding-inline-end:0}.wl-card{flex:1;width:0;padding-bottom:.5em;border-bottom:1px dashed var(--waline-border-color)}.wl-card:first-child{margin-inline-start:1em}.wl-card-item:last-child>.wl-card{border-bottom:none}.wl-card .wl-nick svg{position:relative;bottom:-0.125em;line-height:1}.wl-card .wl-head{overflow:hidden;line-height:1.5}.wl-card .wl-head .wl-nick{position:relative;display:inline-block;margin-inline-end:.5em;font-weight:bold;font-size:.875em;line-height:1;text-decoration:none}.wl-card span.wl-nick{color:var(--waline-dark-grey)}.wl-card .wl-badge{display:inline-block;margin-inline-end:1em;padding:0 .3em;border:1px solid var(--waline-badge-color);border-radius:4px;color:var(--waline-badge-color);font-size:var(--waline-badge-font-size)}.wl-card .wl-time{margin-inline-end:.875em;color:var(--waline-info-color);font-size:.75em}.wl-card .wl-meta{position:relative;line-height:1}.wl-card .wl-meta>span{display:inline-block;margin-inline-end:.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}.wl-card .wl-meta>span:empty{display:none}.wl-card .wl-comment-actions{float:right;line-height:1}[dir=rtl] .wl-card .wl-comment-actions{float:left}.wl-card .wl-delete,.wl-card .wl-like,.wl-card .wl-reply,.wl-card .wl-edit{display:inline-flex;align-items:center;border:none;background:rgba(0,0,0,0);color:var(--waline-color);line-height:1;cursor:pointer;transition:color .2s ease}.wl-card .wl-delete:hover,.wl-card .wl-like:hover,.wl-card .wl-reply:hover,.wl-card .wl-edit:hover{color:var(--waline-theme-color)}.wl-card .wl-delete.active,.wl-card .wl-like.active,.wl-card .wl-reply.active,.wl-card .wl-edit.active{color:var(--waline-active-color)}.wl-card .wl-content{position:relative;margin-bottom:.75em;padding-top:.625em;font-size:.875em;line-height:2;word-wrap:break-word}.wl-card .wl-content.expand{overflow:hidden;max-height:8em;cursor:pointer}.wl-card .wl-content.expand::before{content:"";position:absolute;top:0;bottom:3.15em;inset-inline-start:0;z-index:999;display:block;width:100%;background:linear-gradient(180deg, #000, rgba(255, 255, 255, 0.9))}.wl-card .wl-content.expand::after{content:attr(data-expand);position:absolute;bottom:0;inset-inline-start: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}.wl-card .wl-content>*:first-child{margin-top:0}.wl-card .wl-content>*:last-child{margin-bottom:0}.wl-card .wl-admin-actions{margin:8px 0;font-size:12px;text-align:right}.wl-card .wl-comment-status{margin:0 8px}.wl-card .wl-comment-status .wl-btn{border-radius:0}.wl-card .wl-comment-status .wl-btn:first-child{border-inline-end:0;border-radius:.5em 0 0 .5em}.wl-card .wl-comment-status .wl-btn:last-child{border-inline-start:0;border-radius:0 .5em .5em 0}.wl-card .wl-quote{border-inline-start:1px dashed rgba(237,237,237,.5)}.wl-card .wl-quote .wl-user{--avatar-size: var(--waline-m-avatar-size)}.wl-close-icon{color:var(--waline-border-color)}.wl-content .vemoji,.wl-content .wl-emoji{display:inline-block;vertical-align:baseline;height:1.25em;margin:-0.125em .25em}.wl-content .wl-tex{background:var(--waline-info-bgcolor);color:var(--waline-info-color)}.wl-content span.wl-tex{display:inline-block;margin-inline-end:.25em;padding:2px 4px;border-radius:.2em;font-size:var(--waline-info-font-size);line-height:1.5}.wl-content p.wl-tex{text-align:center}.wl-content .katex-display{overflow:auto hidden;-webkit-overflow-scrolling:touch;padding-top:.2em;padding-bottom:.2em}.wl-content .katex-display::-webkit-scrollbar{height:3px}.wl-content .katex-error{color:red}.wl-count{flex:1;font-weight:bold;font-size:1.25em}.wl-empty{overflow:auto;padding:1.25em;color:var(--waline-color);text-align:center}.wl-operation{text-align:center}.wl-operation button{margin:1em 0}.wl-power{padding:.5em 0;color:var(--waline-light-grey);font-size:var(--waline-info-font-size);text-align:end}.wl-meta-head{display:flex;flex-direction:row;align-items:center;padding:.375em}.wl-sort{margin:0;list-style-type:none}.wl-sort li{display:inline-block;color:var(--waline-info-color);font-size:.75em;cursor:pointer}.wl-sort li.active{color:var(--waline-theme-color)}.wl-sort li+li{margin-inline-start:1em}.wl-reaction{overflow:auto hidden;margin-bottom:1.75em;text-align:center}.wl-reaction img{width:100%;height:100%;transition:all 250ms ease-in-out}.wl-reaction-title{margin:16px auto;font-weight:bold;font-size:18px}.wl-reaction-list{display:flex;flex-direction:row;gap:16px;justify-content:center;margin:0;padding:8px;list-style-type:none}@media(max-width: 580px){.wl-reaction-list{gap:12px}}[data-waline] .wl-reaction-list{margin-inline-start:0}.wl-reaction-item{display:flex;flex-direction:column;align-items:center;cursor:pointer}.wl-reaction-item:hover img,.wl-reaction-item.active img{transform:scale(1.15)}.wl-reaction-img{position:relative;width:42px;height:42px}@media(max-width: 580px){.wl-reaction-img{width:32px;height:32px}}.wl-reaction-loading{position:absolute;top:-4px;inset-inline-end:-5px;width:18px;height:18px;color:var(--waline-theme-color)}.wl-reaction-votes{position:absolute;top:-9px;inset-inline-end:-9px;min-width:1em;padding:2px;border:1px solid var(--waline-theme-color);border-radius:1em;background:var(--waline-bgcolor);color:var(--waline-theme-color);font-weight:700;font-size:.75em;line-height:1}.wl-reaction-item.active .wl-reaction-votes{background:var(--waline-theme-color);color:var(--waline-bgcolor)}.wl-reaction-text{font-size:.875em}.wl-reaction-item.active .wl-reaction-text{color:var(--waline-theme-color)}.wl-content pre,.wl-content pre[class*=language-]{overflow:auto;margin:.75rem 0;padding:1rem 1.25rem;border-radius:6px;background:var(--waline-code-bgcolor);line-height:1.4}.wl-content pre code,.wl-content pre[class*=language-] code{padding:0;border-radius:0;background:rgba(0,0,0,0) !important;color:#bbb;direction:ltr}.wl-content code[class*=language-],.wl-content pre[class*=language-]{background:none;color:#ccc;font-size:1em;font-family:Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace;text-align:left;white-space:pre;word-spacing:normal;word-wrap:normal;word-break:normal;tab-size:4;hyphens:none}.wl-content pre[class*=language-]{overflow:auto}.wl-content :not(pre)>code[class*=language-],.wl-content pre[class*=language-]{background:#2d2d2d}.wl-content :not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.wl-content .token.comment,.wl-content .token.block-comment,.wl-content .token.prolog,.wl-content .token.doctype,.wl-content .token.cdata{color:#999}.wl-content .token.punctuation{color:#ccc}.wl-content .token.tag,.wl-content .token.attr-name,.wl-content .token.namespace,.wl-content .token.deleted{color:#e2777a}.wl-content .token.function-name{color:#6196cc}.wl-content .token.boolean,.wl-content .token.number,.wl-content .token.function{color:#f08d49}.wl-content .token.property,.wl-content .token.class-name,.wl-content .token.constant,.wl-content .token.symbol{color:#f8c555}.wl-content .token.selector,.wl-content .token.important,.wl-content .token.atrule,.wl-content .token.keyword,.wl-content .token.builtin{color:#cc99cd}.wl-content .token.string,.wl-content .token.char,.wl-content .token.attr-value,.wl-content .token.regex,.wl-content .token.variable{color:#7ec699}.wl-content .token.operator,.wl-content .token.entity,.wl-content .token.url{color:#67cdcc}.wl-content .token.important,.wl-content .token.bold{font-weight:bold}.wl-content .token.italic{font-style:italic}.wl-content .token.entity{cursor:help}.wl-content .token.inserted{color:green}.wl-recent-item p{display:inline}.wl-user-list{padding:0;list-style:none}.wl-user-list a,.wl-user-list a:hover,.wl-user-list a:visited{color:var(--waline-color);text-decoration:none}.wl-user-list .wl-user-avatar{position:relative;display:inline-block;overflow:hidden;margin-inline-end:10px;border-radius:4px;line-height:0}.wl-user-list .wl-user-avatar>img{width:var(--waline-user-avatar-size, 48px);height:var(--waline-user-avatar-size, 48px)}.wl-user-list .wl-user-badge{position:absolute;bottom:0;inset-inline-end:0;min-width:.7em;height:1.5em;padding:0 .4em;border-radius:4px;background:var(--waline-info-bgcolor);color:var(--waline-info-color);font-weight:bold;font-size:10px;line-height:1.5em;text-align:center}.wl-user-list .wl-user-item{margin:10px 0}.wl-user-list .wl-user-item:nth-child(1) .wl-user-badge{background:var(--waline-rank-gold-bgcolor, #fa3939);color:var(--waline-white);font-weight:bold}.wl-user-list .wl-user-item:nth-child(2) .wl-user-badge{background:var(--waline-rank-silver-bgcolor, #fb811c);color:var(--waline-white);font-weight:bold}.wl-user-list .wl-user-item:nth-child(3) .wl-user-badge{background:var(--waline-rank-copper-bgcolor, #feb207);color:var(--waline-white)}.wl-user-list .wl-user-meta{display:inline-block;vertical-align:top}.wl-user-list .wl-badge{display:inline-block;vertical-align:text-top;margin-inline-start:.5em;padding:0 .3em;border:1px solid var(--waline-badge-color);border-radius:4px;color:var(--waline-badge-color);font-size:var(--waline-badge-font-size)}.wl-user-wall{padding:0;list-style:none}.wl-user-wall .wl-user-badge,.wl-user-wall .wl-user-meta{display:none}.wl-user-wall .wl-user-item{position:relative;display:inline-block;transition:transform ease-in-out .2s}.wl-user-wall .wl-user-item::before,.wl-user-wall .wl-user-item::after{position:absolute;bottom:100%;left:50%;z-index:10;opacity:0;pointer-events:none;transition:all .18s ease-out .18s;transform:translate(-50%, 4px);transform-origin:top}.wl-user-wall .wl-user-item::before{content:"";width:0;height:0;border:5px solid rgba(0,0,0,0);border-top-color:rgba(16,16,16,.95)}.wl-user-wall .wl-user-item::after{content:attr(aria-label);margin-bottom:10px;padding:.5em 1em;border-radius:2px;background:rgba(16,16,16,.95);color:#fff;font-size:12px;white-space:nowrap}.wl-user-wall .wl-user-item:hover{transform:scale(1.1)}.wl-user-wall .wl-user-item:hover::before,.wl-user-wall .wl-user-item:hover::after{opacity:1;pointer-events:none;transform:translate(-50%, 0)}.wl-user-wall .wl-user-item img{width:var(--waline-user-avatar-size, 48px);height:var(--waline-user-avatar-size, 48px)}/*# sourceMappingURL=waline.css.map */ +:root{--waline-font-size: 1rem;--waline-white: #fff;--waline-light-grey: #999;--waline-dark-grey: #666;--waline-theme-color: #27ae60;--waline-active-color: #2ecc71;--waline-color: #444;--waline-bg-color: #fff;--waline-bg-color-light: #f8f8f8;--waline-bg-color-hover: #f0f0f0;--waline-border-color: #ddd;--waline-disable-bg-color: #f8f8f8;--waline-disable-color: #000;--waline-code-bg-color: #282c34;--waline-bq-color: #f0f0f0;--waline-avatar-size: 3.25rem;--waline-m-avatar-size: calc(var(--waline-avatar-size) * 9 / 13);--waline-badge-color: #3498db;--waline-badge-font-size: 0.75em;--waline-info-bg-color: #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}[data-waline]{font-size:var(--waline-font-size);text-align:start}[dir=rtl] [data-waline]{direction:rtl}[data-waline] *{box-sizing:content-box;line-height:1.75}[data-waline] p{color:var(--waline-color)}[data-waline] a{position:relative;display:inline-block;color:var(--waline-theme-color);text-decoration:none;word-break:break-word;cursor:pointer}[data-waline] a:hover{color:var(--waline-active-color)}[data-waline] img{max-width:100%;max-height:400px;border:none}[data-waline] hr{margin:.825em 0;border-style:dashed;border-color:var(--waline-bg-color-light)}[data-waline] code,[data-waline] pre{margin:0;padding:.2em .4em;border-radius:3px;background:var(--waline-bg-color-light);font-size:85%}[data-waline] pre{overflow:auto;padding:10px;line-height:1.45}[data-waline] pre::-webkit-scrollbar{width:6px;height:6px}[data-waline] pre::-webkit-scrollbar-track-piece:horizontal{border-radius:6px;background:rgba(0,0,0,.1)}[data-waline] pre::-webkit-scrollbar-thumb:horizontal{width:6px;border-radius:6px;background:var(--waline-theme-color)}[data-waline] pre code{padding:0;background:rgba(0,0,0,0);color:var(--waline-color);white-space:pre-wrap;word-break:keep-all}[data-waline] blockquote{margin:.5em 0;padding:.5em 0 .5em 1em;border-inline-start:8px solid var(--waline-bq-color);color:var(--waline-dark-grey)}[data-waline] blockquote>p{margin:0}[data-waline] ol,[data-waline] ul{margin-inline-start:1.25em;padding:0}[data-waline] input[type=checkbox],[data-waline] input[type=radio]{display:inline-block;vertical-align:middle;margin-top:-2px}.wl-btn{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:rgba(0,0,0,0);color:var(--waline-color);font-weight:400;font-size:.75em;line-height:1.5;text-align:center;white-space:nowrap;cursor:pointer;user-select:none;touch-action:manipulation;transition-duration:.4s}.wl-btn:hover,.wl-btn:active{border-color:var(--waline-theme-color);color:var(--waline-theme-color)}.wl-btn:disabled{border-color:var(--waline-border-color);background:var(--waline-disable-bg-color);color:var(--waline-disable-color);cursor:not-allowed}.wl-btn.primary{border-color:var(--waline-theme-color);background:var(--waline-theme-color);color:var(--waline-white)}.wl-btn.primary:hover,.wl-btn.primary:active{border-color:var(--waline-active-color);background:var(--waline-active-color);color:var(--waline-white)}.wl-btn.primary:disabled{border-color:var(--waline-border-color);background:var(--waline-disable-bg-color);color:var(--waline-disable-color);cursor:not-allowed}.wl-loading{text-align:center}.wl-loading svg{margin:0 auto}.wl-comment{position:relative;display:flex;margin-bottom:.75em}.wl-close{position:absolute;inset-inline-end:-4px;top:-4px;padding:0;border:none;background:rgba(0,0,0,0);line-height:1;cursor:pointer}.wl-login-info{max-width:80px;margin-top:.75em;text-align:center}.wl-logout-btn{position:absolute;inset-inline-end:-10px;top:-10px;padding:3px;border:none;background:rgba(0,0,0,0);line-height:0;cursor:pointer}.wl-avatar{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){.wl-avatar{width:var(--waline-m-avatar-size);height:var(--waline-m-avatar-size)}}.wl-avatar img{width:100%;height:100%;border-radius:var(--waline-avatar-radius)}.wl-login-nick{display:block;color:var(--waline-theme-color);font-size:.75em;word-break:break-all}.wl-panel{position:relative;flex-shrink:1;width:100%;margin:.5em;border:var(--waline-border);border-radius:.75em;background:var(--waline-bg-color);box-shadow:var(--waline-box-shadow)}.wl-header{display:flex;overflow:hidden;padding:0 4px;border-bottom:2px dashed var(--waline-border-color);border-top-left-radius:.75em;border-top-right-radius:.75em}@media(max-width: 580px){.wl-header{display:block}}.wl-header label{min-width:40px;padding:.75em .5em;color:var(--waline-color);font-size:.75em;text-align:center}.wl-header input{flex:1;resize:none;width:0;padding:.5em;background:rgba(0,0,0,0);font-size:.625em}.wl-header-item{display:flex;flex:1}@media(max-width: 580px){.wl-header-item:not(:last-child){border-bottom:2px dashed var(--waline-border-color)}}.wl-header-1 .wl-header-item{width:100%}.wl-header-2 .wl-header-item{width:50%}@media(max-width: 580px){.wl-header-2 .wl-header-item{flex:0;width:100%}}.wl-header-3 .wl-header-item{width:33.33%}@media(max-width: 580px){.wl-header-3 .wl-header-item{width:100%}}.wl-editor{position:relative;resize:vertical;width:calc(100% - 1em);min-height:8.75em;margin:.75em .5em;border-radius:.5em;background:rgba(0,0,0,0);font-size:.875em}.wl-editor,.wl-input{max-width:100%;border:none;color:var(--waline-color);outline:none;transition:all .25s ease}.wl-editor:focus,.wl-input:focus{background:var(--waline-bg-color-light)}.wl-preview{padding:0 .5em .5em}.wl-preview h4{margin:.25em;font-weight:bold;font-size:.9375em}.wl-preview .wl-content{min-height:1.25em;padding:.25em;word-break:break-word;hyphens:auto}.wl-preview .wl-content>*:first-child{margin-top:0}.wl-preview .wl-content>*:last-child{margin-bottom:0}.wl-footer{position:relative;display:flex;flex-wrap:wrap;margin:.5em .75em}.wl-actions{display:flex;flex:2;align-items:center}.wl-action{display:inline-flex;align-items:center;justify-content:center;width:1.5em;height:1.5em;margin:2px;padding:0;border:none;background:rgba(0,0,0,0);color:var(--waline-color);font-size:16px;cursor:pointer}.wl-action:hover{color:var(--waline-theme-color)}.wl-action.active{color:var(--waline-active-color)}#wl-image-upload{display:none}#wl-image-upload:focus+label{color:var(--waline-color)}#wl-image-upload:focus-visible+label{outline:-webkit-focus-ring-color auto 1px}.wl-info{display:flex;flex:3;align-items:center;justify-content:flex-end}.wl-info .wl-text-number{color:var(--waline-info-color);font-size:.75em}.wl-info .wl-text-number .illegal{color:red}.wl-info button{margin-inline-start:.75em}.wl-info button svg{display:block;margin:0 auto;line-height:18px}.wl-emoji-popup{position:absolute;inset-inline-start:1.25em;top:100%;z-index:10;display:none;width:100%;max-width:526px;border:var(--waline-border);border-radius:6px;background:var(--waline-bg-color);box-shadow:var(--waline-box-shadow)}.wl-emoji-popup.display{display:block}.wl-emoji-popup button{display:inline-block;vertical-align:middle;width:2em;margin:.125em;padding:0;border-width:0;background:rgba(0,0,0,0);font-size:inherit;line-height:2;text-align:center;cursor:pointer}.wl-emoji-popup button:hover{background:var(--waline-bg-color-hover)}.wl-emoji-popup .wl-emoji{display:inline-block;vertical-align:middle;max-width:1.5em;max-height:1.5em}.wl-emoji-popup .wl-tab-wrapper{overflow-y:auto;max-height:145px;padding:.5em}.wl-emoji-popup .wl-tab-wrapper::-webkit-scrollbar{width:6px;height:6px}.wl-emoji-popup .wl-tab-wrapper::-webkit-scrollbar-track-piece:vertical{border-radius:6px;background:rgba(0,0,0,.1)}.wl-emoji-popup .wl-tab-wrapper::-webkit-scrollbar-thumb:vertical{width:6px;border-radius:6px;background:var(--waline-theme-color)}.wl-emoji-popup .wl-tabs{position:relative;overflow-x:auto;padding:0 6px;white-space:nowrap}.wl-emoji-popup .wl-tabs::before{content:" ";position:absolute;top:0;right:0;left:0;z-index:2;height:1px;background:var(--waline-border-color)}.wl-emoji-popup .wl-tabs::-webkit-scrollbar{width:6px;height:6px}.wl-emoji-popup .wl-tabs::-webkit-scrollbar-track-piece:horizontal{border-radius:6px;background:rgba(0,0,0,.1)}.wl-emoji-popup .wl-tabs::-webkit-scrollbar-thumb:horizontal{height:6px;border-radius:6px;background:var(--waline-theme-color)}.wl-emoji-popup .wl-tab{position:relative;margin:0;padding:0 .5em}.wl-emoji-popup .wl-tab.active{z-index:3;border:1px solid var(--waline-border-color);border-top-width:0;border-bottom-right-radius:6px;border-bottom-left-radius:6px;background:var(--waline-bg-color)}.wl-gif-popup{position:absolute;inset-inline-start:1.25em;top:100%;z-index:10;width:calc(100% - 3em);padding:.75em .75em .25em;border:var(--waline-border);border-radius:6px;background:var(--waline-bg-color);box-shadow:var(--waline-box-shadow);opacity:0;visibility:hidden;transition:transform .2s ease-out,opacity .2s ease-out;transform:scale(0.9, 0.9);transform-origin:0 0}.wl-gif-popup.display{opacity:1;visibility:visible;transform:none}.wl-gif-popup input{box-sizing:border-box;width:100%;margin-bottom:10px;padding:3px 5px;border:var(--waline-border)}.wl-gif-popup img{display:block;box-sizing:border-box;width:100%;border-width:2px;border-style:solid;border-color:#fff;cursor:pointer}.wl-gif-popup img:hover{border-color:var(--waline-theme-color);border-radius:2px}.wl-gallery{display:flex;overflow-y:auto;max-height:80vh}.wl-gallery-column{display:flex;flex:1;flex-direction:column;height:-webkit-max-content;height:-moz-max-content;height:max-content}.wl-cards .wl-user{--avatar-size: var(--waline-avatar-size);position:relative;margin-inline-end:.75em}@media(max-width: 720px){.wl-cards .wl-user{--avatar-size: var(--waline-m-avatar-size)}}.wl-cards .wl-user .wl-user-avatar{width:var(--avatar-size);height:var(--avatar-size);border-radius:var(--waline-avatar-radius);box-shadow:var(--waline-box-shadow)}.wl-cards .wl-user .verified-icon{position:absolute;inset-inline-start:calc(var(--avatar-size)*3/4);top:calc(var(--avatar-size)*3/4);border-radius:50%;background:var(--waline-bg-color);box-shadow:var(--waline-box-shadow)}.wl-card-item{position:relative;display:flex;padding:.5em}.wl-card-item .wl-card-item{padding-inline-end:0}.wl-card{flex:1;width:0;padding-bottom:.5em;border-bottom:1px dashed var(--waline-border-color)}.wl-card:first-child{margin-inline-start:1em}.wl-card-item:last-child>.wl-card{border-bottom:none}.wl-card .wl-nick svg{position:relative;bottom:-0.125em;line-height:1}.wl-card .wl-head{overflow:hidden;line-height:1.5}.wl-card .wl-head .wl-nick{position:relative;display:inline-block;margin-inline-end:.5em;font-weight:bold;font-size:.875em;line-height:1;text-decoration:none}.wl-card span.wl-nick{color:var(--waline-dark-grey)}.wl-card .wl-badge{display:inline-block;margin-inline-end:1em;padding:0 .3em;border:1px solid var(--waline-badge-color);border-radius:4px;color:var(--waline-badge-color);font-size:var(--waline-badge-font-size)}.wl-card .wl-time{margin-inline-end:.875em;color:var(--waline-info-color);font-size:.75em}.wl-card .wl-meta{position:relative;line-height:1}.wl-card .wl-meta>span{display:inline-block;margin-inline-end:.25em;padding:2px 4px;border-radius:.2em;background:var(--waline-info-bg-color);color:var(--waline-info-color);font-size:var(--waline-info-font-size);line-height:1.5}.wl-card .wl-meta>span:empty{display:none}.wl-card .wl-comment-actions{float:right;line-height:1}[dir=rtl] .wl-card .wl-comment-actions{float:left}.wl-card .wl-delete,.wl-card .wl-like,.wl-card .wl-reply,.wl-card .wl-edit{display:inline-flex;align-items:center;border:none;background:rgba(0,0,0,0);color:var(--waline-color);line-height:1;cursor:pointer;transition:color .2s ease}.wl-card .wl-delete:hover,.wl-card .wl-like:hover,.wl-card .wl-reply:hover,.wl-card .wl-edit:hover{color:var(--waline-theme-color)}.wl-card .wl-delete.active,.wl-card .wl-like.active,.wl-card .wl-reply.active,.wl-card .wl-edit.active{color:var(--waline-active-color)}.wl-card .wl-content{position:relative;margin-bottom:.75em;padding-top:.625em;font-size:.875em;line-height:2;word-wrap:break-word}.wl-card .wl-content.expand{overflow:hidden;max-height:8em;cursor:pointer}.wl-card .wl-content.expand::before{content:"";position:absolute;inset-inline-start:0;top:0;bottom:3.15em;z-index:999;display:block;width:100%;background:linear-gradient(180deg, #000, rgba(255, 255, 255, 0.9))}.wl-card .wl-content.expand::after{content:attr(data-expand);position:absolute;inset-inline-start:0;bottom:0;z-index:999;display:block;width:100%;height:3.15em;background:hsla(0,0%,100%,.9);color:#828586;line-height:3.15em;text-align:center}.wl-card .wl-content>*:first-child{margin-top:0}.wl-card .wl-content>*:last-child{margin-bottom:0}.wl-card .wl-admin-actions{margin:8px 0;font-size:12px;text-align:right}.wl-card .wl-comment-status{margin:0 8px}.wl-card .wl-comment-status .wl-btn{border-radius:0}.wl-card .wl-comment-status .wl-btn:first-child{border-inline-end:0;border-radius:.5em 0 0 .5em}.wl-card .wl-comment-status .wl-btn:last-child{border-inline-start:0;border-radius:0 .5em .5em 0}.wl-card .wl-quote{border-inline-start:1px dashed rgba(237,237,237,.5)}.wl-card .wl-quote .wl-user{--avatar-size: var(--waline-m-avatar-size)}.wl-close-icon{color:var(--waline-border-color)}.wl-content .vemoji,.wl-content .wl-emoji{display:inline-block;vertical-align:baseline;height:1.25em;margin:-0.125em .25em}.wl-content .wl-tex{background:var(--waline-info-bg-color);color:var(--waline-info-color)}.wl-content span.wl-tex{display:inline-block;margin-inline-end:.25em;padding:2px 4px;border-radius:.2em;font-size:var(--waline-info-font-size);line-height:1.5}.wl-content p.wl-tex{text-align:center}.wl-content .katex-display{overflow:auto hidden;padding-top:.2em;padding-bottom:.2em;-webkit-overflow-scrolling:touch}.wl-content .katex-display::-webkit-scrollbar{height:3px}.wl-content .katex-error{color:red}.wl-count{flex:1;font-weight:bold;font-size:1.25em}.wl-empty{overflow:auto;padding:1.25em;color:var(--waline-color);text-align:center}.wl-operation{text-align:center}.wl-operation button{margin:1em 0}.wl-power{padding:.5em 0;color:var(--waline-light-grey);font-size:var(--waline-info-font-size);text-align:end}.wl-meta-head{display:flex;flex-direction:row;align-items:center;padding:.375em}.wl-sort{margin:0;list-style-type:none}.wl-sort li{display:inline-block;color:var(--waline-info-color);font-size:.75em;cursor:pointer}.wl-sort li.active{color:var(--waline-theme-color)}.wl-sort li+li{margin-inline-start:1em}.wl-reaction{overflow:auto hidden;margin-bottom:1.75em;text-align:center}.wl-reaction img{width:100%;height:100%;transition:all 250ms ease-in-out}.wl-reaction-title{margin:16px auto;font-weight:bold;font-size:18px}.wl-reaction-list{display:flex;flex-direction:row;gap:16px;justify-content:center;margin:0;padding:8px;list-style-type:none}@media(max-width: 580px){.wl-reaction-list{gap:12px}}[data-waline] .wl-reaction-list{margin-inline-start:0}.wl-reaction-item{display:flex;flex-direction:column;align-items:center;cursor:pointer}.wl-reaction-item:hover img,.wl-reaction-item.active img{transform:scale(1.15)}.wl-reaction-img{position:relative;width:42px;height:42px}@media(max-width: 580px){.wl-reaction-img{width:32px;height:32px}}.wl-reaction-loading{position:absolute;inset-inline-end:-5px;top:-4px;width:18px;height:18px;color:var(--waline-theme-color)}.wl-reaction-votes{position:absolute;inset-inline-end:-9px;top:-9px;min-width:1em;padding:2px;border:1px solid var(--waline-theme-color);border-radius:1em;background:var(--waline-bg-color);color:var(--waline-theme-color);font-weight:700;font-size:.75em;line-height:1}.wl-reaction-item.active .wl-reaction-votes{background:var(--waline-theme-color);color:var(--waline-bg-color)}.wl-reaction-text{font-size:.875em}.wl-reaction-item.active .wl-reaction-text{color:var(--waline-theme-color)}.wl-content pre,.wl-content pre[class*=language-]{overflow:auto;margin:.75rem 0;padding:1rem 1.25rem;border-radius:6px;background:var(--waline-code-bg-color);line-height:1.4}.wl-content pre code,.wl-content pre[class*=language-] code{padding:0;border-radius:0;background:rgba(0,0,0,0) !important;color:#bbb;direction:ltr}.wl-content code[class*=language-],.wl-content pre[class*=language-]{background:none;color:#ccc;font-size:1em;font-family:Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace;text-align:left;white-space:pre;word-spacing:normal;word-wrap:normal;word-break:normal;tab-size:4;hyphens:none}.wl-content pre[class*=language-]{overflow:auto}.wl-content :not(pre)>code[class*=language-],.wl-content pre[class*=language-]{background:#2d2d2d}.wl-content :not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.wl-content .token.comment,.wl-content .token.block-comment,.wl-content .token.prolog,.wl-content .token.doctype,.wl-content .token.cdata{color:#999}.wl-content .token.punctuation{color:#ccc}.wl-content .token.tag,.wl-content .token.attr-name,.wl-content .token.namespace,.wl-content .token.deleted{color:#e2777a}.wl-content .token.function-name{color:#6196cc}.wl-content .token.boolean,.wl-content .token.number,.wl-content .token.function{color:#f08d49}.wl-content .token.property,.wl-content .token.class-name,.wl-content .token.constant,.wl-content .token.symbol{color:#f8c555}.wl-content .token.selector,.wl-content .token.important,.wl-content .token.atrule,.wl-content .token.keyword,.wl-content .token.builtin{color:#cc99cd}.wl-content .token.string,.wl-content .token.char,.wl-content .token.attr-value,.wl-content .token.regex,.wl-content .token.variable{color:#7ec699}.wl-content .token.operator,.wl-content .token.entity,.wl-content .token.url{color:#67cdcc}.wl-content .token.important,.wl-content .token.bold{font-weight:bold}.wl-content .token.italic{font-style:italic}.wl-content .token.entity{cursor:help}.wl-content .token.inserted{color:green}.wl-recent-item p{display:inline}.wl-user-list{padding:0;list-style:none}.wl-user-list a,.wl-user-list a:hover,.wl-user-list a:visited{color:var(--waline-color);text-decoration:none}.wl-user-list .wl-user-avatar{position:relative;display:inline-block;overflow:hidden;margin-inline-end:10px;border-radius:4px;line-height:0}.wl-user-list .wl-user-avatar>img{width:var(--waline-user-avatar-size, 48px);height:var(--waline-user-avatar-size, 48px)}.wl-user-list .wl-user-badge{position:absolute;inset-inline-end:0;bottom:0;min-width:.7em;height:1.5em;padding:0 .4em;border-radius:4px;background:var(--waline-info-bg-color);color:var(--waline-info-color);font-weight:bold;font-size:10px;line-height:1.5em;text-align:center}.wl-user-list .wl-user-item{margin:10px 0}.wl-user-list .wl-user-item:nth-child(1) .wl-user-badge{background:var(--waline-rank-gold-bg-color, #fa3939);color:var(--waline-white);font-weight:bold}.wl-user-list .wl-user-item:nth-child(2) .wl-user-badge{background:var(--waline-rank-silver-bg-color, #fb811c);color:var(--waline-white);font-weight:bold}.wl-user-list .wl-user-item:nth-child(3) .wl-user-badge{background:var(--waline-rank-copper-bg-color, #feb207);color:var(--waline-white)}.wl-user-list .wl-user-meta{display:inline-block;vertical-align:top}.wl-user-list .wl-badge{display:inline-block;vertical-align:text-top;margin-inline-start:.5em;padding:0 .3em;border:1px solid var(--waline-badge-color);border-radius:4px;color:var(--waline-badge-color);font-size:var(--waline-badge-font-size)}.wl-user-wall{padding:0;list-style:none}.wl-user-wall .wl-user-badge,.wl-user-wall .wl-user-meta{display:none}.wl-user-wall .wl-user-item{position:relative;display:inline-block;transition:transform ease-in-out .2s}.wl-user-wall .wl-user-item::before,.wl-user-wall .wl-user-item::after{position:absolute;bottom:100%;left:50%;z-index:10;opacity:0;pointer-events:none;transition:all .18s ease-out .18s;transform:translate(-50%, 4px);transform-origin:top}.wl-user-wall .wl-user-item::before{content:"";width:0;height:0;border:5px solid rgba(0,0,0,0);border-top-color:rgba(16,16,16,.95)}.wl-user-wall .wl-user-item::after{content:attr(aria-label);margin-bottom:10px;padding:.5em 1em;border-radius:2px;background:rgba(16,16,16,.95);color:#fff;font-size:12px;white-space:nowrap}.wl-user-wall .wl-user-item:hover{transform:scale(1.1)}.wl-user-wall .wl-user-item:hover::before,.wl-user-wall .wl-user-item:hover::after{opacity:1;pointer-events:none;transform:translate(-50%, 0)}.wl-user-wall .wl-user-item img{width:var(--waline-user-avatar-size, 48px);height:var(--waline-user-avatar-size, 48px)}/*# sourceMappingURL=waline.css.map */ diff --git a/assets/lib/waline/waline.js b/assets/lib/waline/waline.js index 2b1a535c0..2a8d0fb14 100644 --- a/assets/lib/waline/waline.js +++ b/assets/lib/waline/waline.js @@ -1,2 +1,84 @@ -!function(e,t){if("function"==typeof define&&define.amd)define("Waline",["exports"],t);else if("undefined"!=typeof exports)t(exports);else{var n={exports:{}};t(n.exports),e.Waline=n.exports}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.pageviewCount=e.init=e.defaultLocales=e.commentCount=e.UserList=e.RecentComments=void 0;const t=["nick","mail","link"],n=e=>e.filter((e=>t.includes(e))),r=["//unpkg.com/@waline/emojis@1.1.0/weibo"],l="en-US",i=["//unpkg.com/@waline/emojis/tieba/tieba_agree.png","//unpkg.com/@waline/emojis/tieba/tieba_look_down.png","//unpkg.com/@waline/emojis/tieba/tieba_sunglasses.png","//unpkg.com/@waline/emojis/tieba/tieba_pick_nose.png","//unpkg.com/@waline/emojis/tieba/tieba_awkward.png","//unpkg.com/@waline/emojis/tieba/tieba_sleep.png"],o=e=>new Promise(((t,n)=>{if(e.size>128e3)return n(new Error("File too large! File size limit 128KB"));const r=new FileReader;r.readAsDataURL(e),r.onload=()=>{var e;return t((null===(e=r.result)||void 0===e?void 0:e.toString())||"")},r.onerror=n})),s=e=>!0===e?'

Tex is not available in preview

':'Tex is not available in preview',a=e=>{const t=async function(t){return fetch(`https://api.giphy.com/v1/gifs/${t}?${new URLSearchParams({lang:e,limit:"20",rating:"g",api_key:"6CIMLkNMMOhRcXPoMCPkFy4Ybk2XUiMp",...arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}}).toString()}`).then((e=>e.json())).then((e=>{let{data:t}=e;return t.map((e=>({title:e.title,src:e.images.downsized_medium.url})))}))};return{search:e=>t("search",{q:e,offset:"0"}),default:()=>t("trending",{}),more:function(e){return t("search",{q:e,offset:(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0).toString()})}}},c=new RegExp(`(${/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/.source}|${/{let t=0;return e.replace(c,((e,n,r)=>{if(r)return`${r}`;if("<"===n)return"<";let l;p[n]?l=p[n]:(l=u[t],p[n]=l);const i=`${n}`;return t=++t%u.length,i}))},h=["nick","nickError","mail","mailError","link","optional","placeholder","sofa","submit","like","cancelLike","reply","cancelReply","comment","refresh","more","preview","emoji","uploadImage","seconds","minutes","hours","days","now","uploading","login","logout","admin","sticky","word","wordHint","anonymous","level0","level1","level2","level3","level4","level5","gif","gifSearchPlaceholder","profile","approved","waiting","spam","unsticky","oldest","latest","hottest","reactionTitle"],f=e=>Object.fromEntries(e.map(((e,t)=>[h[t],e])));var g=f(["NickName","NickName cannot be less than 3 bytes.","E-Mail","Please confirm your email address.","Website","Optional","Comment here...","No comment yet.","Submit","Like","Cancel like","Reply","Cancel reply","Comments","Refresh","Load More...","Preview","Emoji","Upload Image","seconds ago","minutes ago","hours ago","days ago","just now","Uploading","Login","logout","Admin","Sticky","Words","Please input comments between $0 and $1 words!\n Current word number: $2","Anonymous","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Search GIF","Profile","Approved","Waiting","Spam","Unsticky","Oldest","Latest","Hottest","What do you think?"]),m=f(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード","コメントは $0 から $1 ワードの間でなければなりません!\n 現在の単語番号: $2","匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),v=f(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字","评论字数应在 $0 到 $1 字之间!\n当前字数:$2","匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),y=f(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎評論","來發評論吧~","提交","喜歡","取消喜歡","回覆","取消回覆","評論","刷新","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登錄","退出","博主","置頂","字","評論字數應在 $0 到 $1 字之間!\n當前字數:$2","匿名","潛水","冒泡","吐槽","活躍","話癆","傳說","表情包","搜索表情包","個人資料","通過","待審核","垃圾","取消置頂","按倒序","按正序","按熱度","你認為這篇文章怎麼樣?"]),w=f(["Apelido","Apelido não pode ser menor que 3 bytes.","E-Mail","Por favor, confirme seu endereço de e-mail.","Website","Opcional","Comente aqui...","Nenhum comentário, ainda.","Enviar","Like","Cancel like","Responder","Cancelar resposta","Comentários","Refrescar","Carregar Mais...","Visualizar","Emoji","Enviar Imagem","segundos atrás","minutos atrás","horas atrás","dias atrás","agora mesmo","Enviando","Entrar","Sair","Admin","Sticky","Palavras","Favor enviar comentário com $0 a $1 palavras!\n Número de palavras atuais: $2","Anônimo","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Pesquisar GIF","informação pessoal","Aprovado","Espera","Spam","Unsticky","Mais velho","Mais recentes","Mais quente","O que você acha?"]),b=f(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова","Пожалуйста, введите комментарии от $0 до $1 слов!\nНомер текущего слова: $2","Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]);const k={zh:v,"zh-cn":v,"zh-CN":v,"zh-tw":y,"zh-TW":y,en:g,"en-US":g,"en-us":g,jp:m,ja:m,"jp-jp":m,"jp-JP":m,"pt-br":w,"pt-BR":w,ru:b,"ru-ru":b,"ru-RU":b},x={"Content-Type":"application/json"},_=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if("object"==typeof e&&e.errno)throw new TypeError(`${t} failed with ${e.errno}: ${e.errmsg}`);return e},$=e=>{let{serverURL:t,lang:n,paths:r,type:l,signal:i}=e;return fetch(`${t}/article?path=${encodeURIComponent(r.join(","))}&type=${encodeURIComponent(l.join(","))}&lang=${n}`,{signal:i}).then((e=>e.json()))},C=e=>{let{serverURL:t,lang:n,path:r,type:l,action:i}=e;return fetch(`${t}/article?lang=${n}`,{method:"POST",headers:x,body:JSON.stringify({path:r,type:l,action:i})}).then((e=>e.json()))},S=e=>{let{serverURL:t,lang:n,token:r,objectId:l,comment:i}=e;return fetch(`${t}/comment/${l}?lang=${n}`,{method:"PUT",headers:{...x,Authorization:`Bearer ${r}`},body:JSON.stringify(i)}).then((e=>e.json())).then((e=>_(e,"Update comment")))},A=e=>{try{e=decodeURI(e)}catch(e){}return e},R=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/\/$/u,"")},E=e=>/^(https?:)?\/\//.test(e),I=e=>{const t=R(e);return E(t)?t:`https://${t}`},L=e=>Array.isArray(e)?e:!!e&&[0,e],z=(e,t)=>"function"==typeof e?e:!1!==e&&t,O="{--waline-white:#000;--waline-light-grey:#666;--waline-dark-grey:#999;--waline-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}",j=(e,t)=>{let n=e.toString();for(;n.length!!n[e.toLowerCase()]:e=>!!n[e]}function U(e){if(ie(e)){const t={};for(let n=0;n{if(e){const n=e.split(M);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function V(e){let t="";if(ue(e))t=e;else if(ie(e))for(let n=0;nB(e,t)))}const q=e=>ue(e)?e:null==e?"":ie(e)||de(e)&&(e.toString===fe||!ce(e.toString))?JSON.stringify(e,Z,2):String(e),Z=(e,t)=>t&&t.__v_isRef?Z(e,t.value):oe(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,t)=>{let[n,r]=t;return e[`${n} =>`]=r,e}),{})}:se(t)?{[`Set(${t.size})`]:[...t.values()]}:!de(t)||ie(t)||ve(t)?t:String(t),Q={},K=[],G=()=>{},J=()=>!1,X=/^on[^a-z]/,Y=e=>X.test(e),ee=e=>e.startsWith("onUpdate:"),te=Object.assign,ne=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},re=Object.prototype.hasOwnProperty,le=(e,t)=>re.call(e,t),ie=Array.isArray,oe=e=>"[object Map]"===ge(e),se=e=>"[object Set]"===ge(e),ae=e=>"[object Date]"===ge(e),ce=e=>"function"==typeof e,ue=e=>"string"==typeof e,pe=e=>"symbol"==typeof e,de=e=>null!==e&&"object"==typeof e,he=e=>de(e)&&ce(e.then)&&ce(e.catch),fe=Object.prototype.toString,ge=e=>fe.call(e),me=e=>ge(e).slice(8,-1),ve=e=>"[object Object]"===ge(e),ye=e=>ue(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,we=T(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),be=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ke=/-(\w)/g,xe=be((e=>e.replace(ke,((e,t)=>t?t.toUpperCase():"")))),_e=/\B([A-Z])/g,$e=be((e=>e.replace(_e,"-$1").toLowerCase())),Ce=be((e=>e.charAt(0).toUpperCase()+e.slice(1))),Se=be((e=>e?`on${Ce(e)}`:"")),Ae=(e,t)=>!Object.is(e,t),Re=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Ie=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Le;const ze=()=>Le||(Le="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});let Oe;class je{constructor(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Oe,!e&&Oe&&(this.index=(Oe.scopes||(Oe.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=Oe;try{return Oe=this,e()}finally{Oe=t}}}on(){Oe=this}off(){Oe=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t{const t=new Set(e);return t.w=0,t.n=0,t},Pe=e=>(e.w&Ve)>0,Me=e=>(e.n&Ve)>0,Fe=new WeakMap;let Ne=0,Ve=1;const De=30;let He;const Be=Symbol(""),We=Symbol("");class qe{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2?arguments[2]:void 0;this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Oe;t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=He,t=Qe;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=He,He=this,Qe=!0,Ve=1<<++Ne,Ne<=De?(e=>{let{deps:t}=e;if(t.length)for(let e=0;e{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r{("length"===n||n>=e)&&s.push(t)}))}else switch(void 0!==n&&s.push(o.get(n)),t){case"add":ie(e)?ye(n)&&s.push(o.get("length")):(s.push(o.get(Be)),oe(e)&&s.push(o.get(We)));break;case"delete":ie(e)||(s.push(o.get(Be)),oe(e)&&s.push(o.get(We)));break;case"set":oe(e)&&s.push(o.get(Be))}if(1===s.length)s[0]&&tt(s[0]);else{const e=[];for(const t of s)t&&e.push(...t);tt(Ue(e))}}function tt(e,t){const n=ie(e)?e:[...e];for(const e of n)e.computed&&nt(e);for(const e of n)e.computed||nt(e)}function nt(e,t){(e!==He||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const rt=T("__proto__,__v_isRef,__isVue"),lt=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(pe)),it=ut(),ot=ut(!1,!0),st=ut(!0),at=function(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(){const e=qt(this);for(let t=0,n=this.length;t{e[t]=function(){Ge();for(var e=arguments.length,n=new Array(e),r=0;r0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n,r,l){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_isShallow"===r)return t;if("__v_raw"===r&&l===(e?t?Mt:Pt:t?Ut:Tt).get(n))return n;const i=ie(n);if(!e){if(i&&le(at,r))return Reflect.get(at,r,l);if("hasOwnProperty"===r)return ct}const o=Reflect.get(n,r,l);return(pe(r)?lt.has(r):rt(r))?o:(e||Xe(n,0,r),t?o:Xt(o)?i&&ye(r)?o:o.value:de(o)?e?Nt(o):Ft(o):o)}}function pt(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n,r,l){let i=t[n];if(Ht(i)&&Xt(i)&&!Xt(r))return!1;if(!e&&(Bt(r)||Ht(r)||(i=qt(i),r=qt(r)),!ie(t)&&Xt(i)&&!Xt(r)))return i.value=r,!0;const o=ie(t)&&ye(n)?Number(n)!0,deleteProperty:(e,t)=>!0},ft=te({},dt,{get:ot,set:pt(!0)}),gt=e=>e,mt=e=>Reflect.getPrototypeOf(e);function vt(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const l=qt(e=e.__v_raw),i=qt(t);n||(t!==i&&Xe(l,0,t),Xe(l,0,i));const{has:o}=mt(l),s=r?gt:n?Kt:Qt;return o.call(l,t)?s(e.get(t)):o.call(l,i)?s(e.get(i)):void(e!==l&&e.get(t))}function yt(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.__v_raw,r=qt(n),l=qt(e);return t||(e!==l&&Xe(r,0,e),Xe(r,0,l)),e===l?n.has(e):n.has(e)||n.has(l)}function wt(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e=e.__v_raw,!t&&Xe(qt(e),0,Be),Reflect.get(e,"size",e)}function bt(e){e=qt(e);const t=qt(this);return mt(t).has.call(t,e)||(t.add(e),et(t,"add",e,e)),this}function kt(e,t){t=qt(t);const n=qt(this),{has:r,get:l}=mt(n);let i=r.call(n,e);i||(e=qt(e),i=r.call(n,e));const o=l.call(n,e);return n.set(e,t),i?Ae(t,o)&&et(n,"set",e,t):et(n,"add",e,t),this}function xt(e){const t=qt(this),{has:n,get:r}=mt(t);let l=n.call(t,e);l||(e=qt(e),l=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return l&&et(t,"delete",e,void 0),i}function _t(){const e=qt(this),t=0!==e.size,n=e.clear();return t&&et(e,"clear",void 0,void 0),n}function $t(e,t){return function(n,r){const l=this,i=l.__v_raw,o=qt(i),s=t?gt:e?Kt:Qt;return!e&&Xe(o,0,Be),i.forEach(((e,t)=>n.call(r,s(e),s(t),l)))}}function Ct(e,t,n){return function(){const r=this.__v_raw,l=qt(r),i=oe(l),o="entries"===e||e===Symbol.iterator&&i,s="keys"===e&&i,a=r[e](...arguments),c=n?gt:t?Kt:Qt;return!t&&Xe(l,0,s?We:Be),{next(){const{value:e,done:t}=a.next();return t?{value:e,done:t}:{value:o?[c(e[0]),c(e[1])]:c(e),done:t}},[Symbol.iterator](){return this}}}}function St(e){return function(){return"delete"!==e&&this}}const[At,Rt,Et,It]=function(){const e={get(e){return vt(this,e)},get size(){return wt(this)},has:yt,add:bt,set:kt,delete:xt,clear:_t,forEach:$t(!1,!1)},t={get(e){return vt(this,e,!1,!0)},get size(){return wt(this)},has:yt,add:bt,set:kt,delete:xt,clear:_t,forEach:$t(!1,!0)},n={get(e){return vt(this,e,!0)},get size(){return wt(this,!0)},has(e){return yt.call(this,e,!0)},add:St("add"),set:St("set"),delete:St("delete"),clear:St("clear"),forEach:$t(!0,!1)},r={get(e){return vt(this,e,!0,!0)},get size(){return wt(this,!0)},has(e){return yt.call(this,e,!0)},add:St("add"),set:St("set"),delete:St("delete"),clear:St("clear"),forEach:$t(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((l=>{e[l]=Ct(l,!1,!1),n[l]=Ct(l,!0,!1),t[l]=Ct(l,!1,!0),r[l]=Ct(l,!0,!0)})),[e,n,t,r]}();function Lt(e,t){const n=t?e?It:Et:e?Rt:At;return(t,r,l)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(le(n,r)&&r in t?n:t,r,l)}const zt={get:Lt(!1,!1)},Ot={get:Lt(!1,!0)},jt={get:Lt(!0,!1)},Tt=new WeakMap,Ut=new WeakMap,Pt=new WeakMap,Mt=new WeakMap;function Ft(e){return Ht(e)?e:Vt(e,!1,dt,zt,Tt)}function Nt(e){return Vt(e,!0,ht,jt,Pt)}function Vt(e,t,n,r,l){if(!de(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=l.get(e);if(i)return i;const o=(s=e).__v_skip||!Object.isExtensible(s)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(me(s));var s;if(0===o)return e;const a=new Proxy(e,2===o?r:n);return l.set(e,a),a}function Dt(e){return Ht(e)?Dt(e.__v_raw):!(!e||!e.__v_isReactive)}function Ht(e){return!(!e||!e.__v_isReadonly)}function Bt(e){return!(!e||!e.__v_isShallow)}function Wt(e){return Dt(e)||Ht(e)}function qt(e){const t=e&&e.__v_raw;return t?qt(t):e}function Zt(e){return Ee(e,"__v_skip",!0),e}const Qt=e=>de(e)?Ft(e):e,Kt=e=>de(e)?Nt(e):e;function Gt(e){Qe&&He&&Ye((e=qt(e)).dep||(e.dep=Ue()))}function Jt(e,t){const n=(e=qt(e)).dep;n&&tt(n)}function Xt(e){return!(!e||!0!==e.__v_isRef)}function Yt(e){return tn(e,!1)}function en(e){return tn(e,!0)}function tn(e,t){return Xt(e)?e:new nn(e,t)}class nn{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:qt(e),this._value=t?e:Qt(e)}get value(){return Gt(this),this._value}set value(e){const t=this.__v_isShallow||Bt(e)||Ht(e);e=t?e:qt(e),Ae(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:Qt(e),Jt(this))}}function rn(e){return Xt(e)?e.value:e}const ln={get:(e,t,n)=>rn(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const l=e[t];return Xt(l)&&!Xt(n)?(l.value=n,!0):Reflect.set(e,t,n,r)}};function on(e){return Dt(e)?e:new Proxy(e,ln)}var sn;class an{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this[sn]=!1,this._dirty=!0,this.effect=new qe(e,(()=>{this._dirty||(this._dirty=!0,Jt(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=qt(this);return Gt(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function cn(e,t,n,r){let l;try{l=r?e(...r):e()}catch(e){pn(e,t,n)}return l}function un(e,t,n,r){if(ce(e)){const l=cn(e,t,n,r);return l&&he(l)&&l.catch((e=>{pn(e,t,n)})),l}const l=[];for(let i=0;i3&&void 0!==arguments[3])||arguments[3];if(t&&t.vnode,t){let r=t.parent;const l=t.proxy,i=n;for(;r;){const t=r.ec;if(t)for(let n=0;n>>1;Sn(fn[r])1&&void 0!==arguments[1]?arguments[1]:dn?gn+1:0;for(;tSn(e)-Sn(t))),yn=0;ynnull==e.id?1/0:e.id,An=(e,t)=>{const n=Sn(e)-Sn(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Rn(e){hn=!1,dn=!0,fn.sort(An);try{for(gn=0;gn2?r-2:0),i=2;iue(e)?e.trim():e))),t&&(o=l.map(Ie))}let c,u=n[c=Se(t)]||n[c=Se(xe(t))];!u&&s&&(u=n[c=Se($e(t))]),u&&un(u,e,6,o);const p=n[c+"Once"];if(p){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,un(p,e,6,o)}}function In(e,t){const n=t.emitsCache,r=n.get(e);if(void 0!==r)return r;const l=e.emits;let i={};return l?(ie(l)?l.forEach((e=>i[e]=null)):te(i,l),de(e)&&n.set(e,i),i):(de(e)&&n.set(e,null),null)}function Ln(e,t){return!(!e||!Y(t))&&(t=t.slice(2).replace(/Once$/,""),le(e,t[0].toLowerCase()+t.slice(1))||le(e,$e(t))||le(e,t))}let zn=null,On=null;function jn(e){const t=zn;return zn=e,On=e&&e.type.__scopeId||null,t}function Tn(e){const{type:t,vnode:n,proxy:r,withProxy:l,props:i,propsOptions:[o],slots:s,attrs:a,emit:c,render:u,renderCache:p,data:d,setupState:h,ctx:f,inheritAttrs:g}=e;let m,v;const y=jn(e);try{if(4&n.shapeFlag){const e=l||r;m=Xr(u.call(e,e,p,i,h,d,f)),v=a}else{const e=t;m=Xr(e.length>1?e(i,{attrs:a,slots:s,emit:c}):e(i,null)),v=t.props?a:Un(a)}}catch(t){jr.length=0,pn(t,e,1),m=Qr(zr)}let w=m;if(v&&!1!==g){const e=Object.keys(v),{shapeFlag:t}=w;e.length&&7&t&&(o&&e.some(ee)&&(v=Pn(v,o)),w=Kr(w,v))}return n.dirs&&(w=Kr(w),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&(w.transition=n.transition),m=w,jn(y),m}const Un=e=>{let t;for(const n in e)("class"===n||"style"===n||Y(n))&&((t||(t={}))[n]=e[n]);return t},Pn=(e,t)=>{const n={};for(const r in e)ee(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function Mn(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let l=0;l2&&void 0!==arguments[2]&&arguments[2];const r=ll||zn;if(r){const l=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(l&&e in l)return l[e];if(arguments.length>1)return n&&ce(t)?t.call(r.proxy):t}}function Nn(e,t){return Hn(e,null,t)}const Vn={};function Dn(e,t,n){return Hn(e,t,n)}function Hn(e,t){let{immediate:n,deep:r,flush:l,onTrack:i,onTrigger:o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Q;const s=Te()===(null==ll?void 0:ll.scope)?ll:null;let a,c,u=!1,p=!1;if(Xt(e)?(a=()=>e.value,u=Bt(e)):Dt(e)?(a=()=>e,r=!0):ie(e)?(p=!0,u=e.some((e=>Dt(e)||Bt(e))),a=()=>e.map((e=>Xt(e)?e.value:Dt(e)?Bn(e):ce(e)?cn(e,s,2):void 0))):a=ce(e)?t?()=>cn(e,s,2):()=>{if(!s||!s.isUnmounted)return c&&c(),un(e,s,3,[h])}:G,t&&r){const e=a;a=()=>Bn(e())}let d,h=e=>{c=v.onStop=()=>{cn(e,s,4)}};if(cl){if(h=G,t?n&&un(t,s,3,[a(),p?[]:void 0,h]):a(),"sync"!==l)return G;{const e=ml();d=e.__watcherHandles||(e.__watcherHandles=[])}}let f=p?new Array(e.length).fill(Vn):Vn;const g=()=>{if(v.active)if(t){const e=v.run();(r||u||(p?e.some(((e,t)=>Ae(e,f[t]))):Ae(e,f)))&&(c&&c(),un(t,s,3,[e,f===Vn?void 0:p&&f[0]===Vn?[]:f,h]),f=e)}else v.run()};let m;g.allowRecurse=!!t,"sync"===l?m=g:"post"===l?m=()=>Sr(g,s&&s.suspense):(g.pre=!0,s&&(g.id=s.uid),m=()=>xn(g));const v=new qe(a,m);t?n?g():f=v.run():"post"===l?Sr(v.run.bind(v),s&&s.suspense):v.run();const y=()=>{v.stop(),s&&s.scope&&ne(s.scope.effects,v)};return d&&d.push(y),y}function Bn(e,t){if(!de(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),Xt(e))Bn(e.value,t);else if(ie(e))for(let n=0;n{Bn(e,t)}));else if(ve(e))for(const n in e)Bn(e[n],t);return e}function Wn(e){return ce(e)?{setup:e,name:e.name}:e}const qn=e=>!!e.type.__asyncLoader,Zn=e=>e.type.__isKeepAlive,Qn=e=>function(t){return(!cl||"sp"===e)&&function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ll,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(n){const l=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=function(){if(n.isUnmounted)return;Ge(),ol(n);for(var r=arguments.length,l=new Array(r),i=0;i1&&void 0!==arguments[1]?arguments[1]:ll)},Kn=Qn("m"),Gn=Qn("bum"),Jn=Qn("um");function Xn(e,t){const n=zn;if(null===n)return e;const r=dl(n)||n.proxy,l=e.dirs||(e.dirs=[]);for(let e=0;et(e,n,void 0,i&&i[n])));else{const n=Object.keys(e);l=new Array(n.length);for(let r=0,o=n.length;re?al(e)?dl(e)||e.proxy:lr(e.parent):null,ir=te(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=>lr(e.parent),$root:e=>lr(e.root),$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>xn(e.update)),$nextTick:e=>e.n||(e.n=kn.bind(e.proxy)),$watch:e=>G}),or=(e,t)=>e!==Q&&!e.__isScriptSetup&&le(e,t),sr={get(e,t){let{_:n}=e;const{ctx:r,setupState:l,data:i,props:o,accessCache:s,type:a,appContext:c}=n;let u;if("$"!==t[0]){const e=s[t];if(void 0!==e)switch(e){case 1:return l[t];case 2:return i[t];case 4:return r[t];case 3:return o[t]}else{if(or(l,t))return s[t]=1,l[t];if(i!==Q&&le(i,t))return s[t]=2,i[t];if((u=n.propsOptions[0])&&le(u,t))return s[t]=3,o[t];if(r!==Q&&le(r,t))return s[t]=4,r[t];s[t]=0}}const p=ir[t];let d,h;return p?("$attrs"===t&&Xe(n,0,t),p(n)):(d=a.__cssModules)&&(d=d[t])?d:r!==Q&&le(r,t)?(s[t]=4,r[t]):(h=c.config.globalProperties,le(h,t)?h[t]:void 0)},set(e,t,n){let{_:r}=e;const{data:l,setupState:i,ctx:o}=r;return or(i,t)?(i[t]=n,!0):l!==Q&&le(l,t)?(l[t]=n,!0):!(le(r.props,t)||"$"===t[0]&&t.slice(1)in r||(o[t]=n,0))},has(e,t){let n,{_:{data:r,setupState:l,accessCache:i,ctx:o,appContext:s,propsOptions:a}}=e;return!!i[t]||r!==Q&&le(r,t)||or(l,t)||(n=a[0])&&le(n,t)||le(o,t)||le(ir,t)||le(s.config.globalProperties,t)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:le(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ar(e,t,n,r){const[l,i]=e.propsOptions;let o,s=!1;if(t)for(let a in t){if(we(a))continue;const c=t[a];let u;l&&le(l,u=xe(a))?i&&i.includes(u)?(o||(o={}))[u]=c:n[u]=c:Ln(e.emitsOptions,a)||a in r&&c===r[a]||(r[a]=c,s=!0)}if(i){const t=qt(n),r=o||Q;for(let o=0;o-1,r[1]=n<0||e-1||le(r,"default"))&&o.push(t)}}}const s=[i,o];return de(e)&&n.set(e,s),s}function pr(e){return"$"!==e[0]}function dr(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:null===e?"null":""}function hr(e,t){return dr(e)===dr(t)}function fr(e,t){return ie(t)?t.findIndex((t=>hr(t,e))):ce(t)&&hr(t,e)?0:-1}const gr=e=>"_"===e[0]||"$stable"===e,mr=e=>ie(e)?e.map(Xr):[Xr(e)],vr=(e,t,n)=>{if(t._n)return t;const r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zn;if(!t)return e;if(e._n)return e;const n=function(){n._d&&Mr(-1);const r=jn(t);let l;try{l=e(...arguments)}finally{jn(r),n._d&&Mr(1)}return l};return n._n=!0,n._c=!0,n._d=!0,n}((function(){return mr(t(...arguments))}),n);return r._c=!1,r},yr=(e,t,n)=>{const r=e._ctx;for(const n in e){if(gr(n))continue;const l=e[n];if(ce(l))t[n]=vr(0,l,r);else if(null!=l){const e=mr(l);t[n]=()=>e}}},wr=(e,t)=>{const n=mr(t);e.slots.default=()=>n},br=(e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=qt(t),Ee(t,"_",n)):yr(t,e.slots={})}else e.slots={},t&&wr(e,t);Ee(e.slots,Br,1)},kr=(e,t,n)=>{const{vnode:r,slots:l}=e;let i=!0,o=Q;if(32&r.shapeFlag){const e=t._;e?n&&1===e?i=!1:(te(l,t),n||1!==e||delete l._):(i=!t.$stable,yr(t,l)),o=t}else t&&(wr(e,t),o={default:1});if(i)for(const e in l)gr(e)||e in o||delete l[e]};function xr(){return{app:null,config:{isNativeTag:J,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let _r=0;function $r(e,t){return function(n){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;ce(n)||(n=Object.assign({},n)),null==r||de(r)||(r=null);const l=xr(),i=new Set;let o=!1;const s=l.app={_uid:_r++,_component:n,_props:r,_container:null,_context:l,_instance:null,version:vl,get config(){return l.config},set config(e){},use:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;rs,component:(e,t)=>t?(l.components[e]=t,s):l.components[e],directive:(e,t)=>t?(l.directives[e]=t,s):l.directives[e],mount(i,a,c){if(!o){const u=Qr(n,r);return u.appContext=l,a&&t?t(u,i):e(u,i,c),o=!0,s._container=i,i.__vue_app__=s,dl(u.component)||u.component.proxy}},unmount(){o&&(e(null,s._container),delete s._container.__vue_app__)},provide:(e,t)=>(l.provides[e]=t,s)};return s}}function Cr(e,t,n,r){let l=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(ie(e))return void e.forEach(((e,i)=>Cr(e,t&&(ie(t)?t[i]:t),n,r,l)));if(qn(r)&&!l)return;const i=4&r.shapeFlag?dl(r.component)||r.component.proxy:r.el,o=l?null:i,{i:s,r:a}=e,c=t&&t.r,u=s.refs===Q?s.refs={}:s.refs,p=s.setupState;if(null!=c&&c!==a&&(ue(c)?(u[c]=null,le(p,c)&&(p[c]=null)):Xt(c)&&(c.value=null)),ce(a))cn(a,s,12,[o,u]);else{const t=ue(a),r=Xt(a);if(t||r){const s=()=>{if(e.f){const n=t?le(p,a)?p[a]:u[a]:a.value;l?ie(n)&&ne(n,i):ie(n)?n.includes(i)||n.push(i):t?(u[a]=[i],le(p,a)&&(p[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else t?(u[a]=o,le(p,a)&&(p[a]=o)):r&&(a.value=o,e.k&&(u[e.k]=o))};o?(s.id=-1,Sr(s,n)):s()}}}const Sr=function(e,t){var n;t&&t.pendingBranch?ie(e)?t.effects.push(...e):t.effects.push(e):(ie(n=e)?mn.push(...n):vn&&vn.includes(n,n.allowRecurse?yn+1:yn)||mn.push(n),_n())};function Ar(e){return function(e,t){ze().__VUE__=!0;const{insert:n,remove:r,patchProp:l,createElement:i,createText:o,createComment:s,setText:a,setElementText:c,parentNode:u,nextSibling:p,setScopeId:d=G,insertStaticContent:h}=e,f=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,a=arguments.length>8&&void 0!==arguments[8]?arguments[8]:!!t.dynamicChildren;if(e===t)return;e&&!Hr(e,t)&&(r=N(e),T(e,l,i,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:p}=t;switch(c){case Lr:g(e,t,n,r);break;case zr:m(e,t,n,r);break;case Or:null==e&&v(t,n,r,o);break;case Ir:C(e,t,n,r,l,i,o,s,a);break;default:1&p?y(e,t,n,r,l,i,o,s,a):6&p?S(e,t,n,r,l,i,o,s,a):(64&p||128&p)&&c.process(e,t,n,r,l,i,o,s,a,D)}null!=u&&l&&Cr(u,e&&e.ref,i,t||e,!t)},g=(e,t,r,l)=>{if(null==e)n(t.el=o(t.children),r,l);else{const n=t.el=e.el;t.children!==e.children&&a(n,t.children)}},m=(e,t,r,l)=>{null==e?n(t.el=s(t.children||""),r,l):t.el=e.el},v=(e,t,n,r)=>{[e.el,e.anchor]=h(e.children,t,n,r,e.el,e.anchor)},y=(e,t,n,r,l,i,o,s,a)=>{o=o||"svg"===t.type,null==e?w(t,n,r,l,i,o,s,a):x(e,t,l,i,o,s,a)},w=(e,t,r,o,s,a,u,p)=>{let d,h;const{type:f,props:g,shapeFlag:m,transition:v,dirs:y}=e;if(d=e.el=i(e.type,a,g&&g.is,g),8&m?c(d,e.children):16&m&&k(e.children,d,null,o,s,a&&"foreignObject"!==f,u,p),y&&Yn(e,null,o,"created"),b(d,e,e.scopeId,u,o),g){for(const t in g)"value"===t||we(t)||l(d,t,null,g[t],a,e.children,o,s,F);"value"in g&&l(d,"value",null,g.value),(h=g.onVnodeBeforeMount)&&tl(h,o,e)}y&&Yn(e,null,o,"beforeMount");const w=(!s||s&&!s.pendingBranch)&&v&&!v.persisted;w&&v.beforeEnter(d),n(d,t,r),((h=g&&g.onVnodeMounted)||w||y)&&Sr((()=>{h&&tl(h,o,e),w&&v.enter(d),y&&Yn(e,null,o,"mounted")}),s)},b=(e,t,n,r,l)=>{if(n&&d(e,n),r)for(let t=0;t8&&void 0!==arguments[8]?arguments[8]:0;a{const a=t.el=e.el;let{patchFlag:u,dynamicChildren:p,dirs:d}=t;u|=16&e.patchFlag;const h=e.props||Q,f=t.props||Q;let g;n&&Rr(n,!1),(g=f.onVnodeBeforeUpdate)&&tl(g,n,t,e),d&&Yn(t,e,n,"beforeUpdate"),n&&Rr(n,!0);const m=i&&"foreignObject"!==t.type;if(p?_(e.dynamicChildren,p,a,n,r,m,o):s||L(e,t,a,null,n,r,m,o,!1),u>0){if(16&u)$(a,t,h,f,n,r,i);else if(2&u&&h.class!==f.class&&l(a,"class",null,f.class,i),4&u&&l(a,"style",h.style,f.style,i),8&u){const o=t.dynamicProps;for(let t=0;t{g&&tl(g,n,t,e),d&&Yn(t,e,n,"updated")}),r)},_=(e,t,n,r,l,i,o)=>{for(let s=0;s{if(n!==r){if(n!==Q)for(const a in n)we(a)||a in r||l(e,a,n[a],null,s,t.children,i,o,F);for(const a in r){if(we(a))continue;const c=r[a],u=n[a];c!==u&&"value"!==a&&l(e,a,u,c,s,t.children,i,o,F)}"value"in r&&l(e,"value",n.value,r.value)}},C=(e,t,r,l,i,s,a,c,u)=>{const p=t.el=e?e.el:o(""),d=t.anchor=e?e.anchor:o("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:g}=t;g&&(c=c?c.concat(g):g),null==e?(n(p,r,l),n(d,r,l),k(t.children,r,d,i,s,a,c,u)):h>0&&64&h&&f&&e.dynamicChildren?(_(e.dynamicChildren,f,r,i,s,a,c),(null!=t.key||i&&t===i.subTree)&&Er(e,t,!0)):L(e,t,r,d,i,s,a,c,u)},S=(e,t,n,r,l,i,o,s,a)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?l.ctx.activate(t,n,r,o,a):A(t,n,r,l,i,o,a):R(e,t,a)},A=(e,t,n,r,l,i,o)=>{const s=e.component=function(e,t,n){const r=e.type,l=(t?t.appContext:e.appContext)||nl,i={uid:rl++,vnode:e,type:r,parent:t,appContext:l,root:null,next:null,subTree:null,effect:null,update:null,scope:new je(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(l.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:ur(r,l),emitsOptions:In(r,l),emit:null,emitted:null,propsDefaults:Q,inheritAttrs:r.inheritAttrs,ctx:Q,data:Q,props:Q,attrs:Q,slots:Q,refs:Q,setupState:Q,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 i.ctx={_:i},i.root=t?t.root:i,i.emit=En.bind(null,i),e.ce&&e.ce(i),i}(e,r,l);if(Zn(e)&&(s.ctx.renderer=D),function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];cl=t;const{props:n,children:r}=e.vnode,l=al(e);(function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const l={},i={};Ee(i,Br,1),e.propsDefaults=Object.create(null),ar(e,t,l,i);for(const t in e.propsOptions[0])t in l||(l[t]=void 0);n?e.props=r?l:Vt(l,!1,ft,Ot,Ut):e.type.props?e.props=l:e.props=i,e.attrs=i})(e,n,l,t),br(e,r);l&&function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Zt(new Proxy(e.ctx,sr));const{setup:r}=n;if(r){const n=e.setupContext=r.length>1?function(e){let t;return{get attrs(){return t||(t=function(e){return new Proxy(e.attrs,{get:(t,n)=>(Xe(e,0,"$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}(e):null;ol(e),Ge();const l=cn(r,e,0,[e.props,n]);if(Je(),sl(),he(l)){if(l.then(sl,sl),t)return l.then((n=>{ul(e,n,t)})).catch((t=>{pn(t,e,0)}));e.asyncDep=l}else ul(e,l,t)}else pl(e,t)}(e,t);cl=!1}(s),s.asyncDep){if(l&&l.registerDep(s,E),!e.el){const e=s.subTree=Qr(zr);m(null,e,t,n)}}else E(s,e,t,n,l,i,o)},R=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:l,component:i}=e,{props:o,children:s,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&a>=0))return!(!l&&!s||s&&s.$stable)||r!==o&&(r?!o||Mn(r,o,c):!!o);if(1024&a)return!0;if(16&a)return r?Mn(r,o,c):!!o;if(8&a){const e=t.dynamicProps;for(let t=0;tgn&&fn.splice(t,1)}(r.update),r.update()}else t.el=e.el,r.vnode=t},E=(e,t,n,r,l,i,o)=>{const s=e.effect=new qe((()=>{if(e.isMounted){let t,{next:n,bu:r,u:s,parent:a,vnode:c}=e,p=n;Rr(e,!1),n?(n.el=c.el,I(e,n,o)):n=c,r&&Re(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&tl(t,a,n,c),Rr(e,!0);const d=Tn(e),h=e.subTree;e.subTree=d,f(h,d,u(h.el),N(h),e,l,i),n.el=d.el,null===p&&function(e,t){let{vnode:n,parent:r}=e;for(;r&&r.subTree===n;)(n=r.vnode).el=t,r=r.parent}(e,d.el),s&&Sr(s,l),(t=n.props&&n.props.onVnodeUpdated)&&Sr((()=>tl(t,a,n,c)),l)}else{let o;const{el:s,props:a}=t,{bm:c,m:u,parent:p}=e,d=qn(t);if(Rr(e,!1),c&&Re(c),!d&&(o=a&&a.onVnodeBeforeMount)&&tl(o,p,t),Rr(e,!0),s&&B){const n=()=>{e.subTree=Tn(e),B(s,e.subTree,e,l,null)};d?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const o=e.subTree=Tn(e);f(null,o,n,r,e,l,i),t.el=o.el}if(u&&Sr(u,l),!d&&(o=a&&a.onVnodeMounted)){const e=t;Sr((()=>tl(o,p,e)),l)}(256&t.shapeFlag||p&&qn(p.vnode)&&256&p.vnode.shapeFlag)&&e.a&&Sr(e.a,l),e.isMounted=!0,t=n=r=null}}),(()=>xn(a)),e.scope),a=e.update=()=>s.run();a.id=e.uid,Rr(e,!0),a()},I=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,r){const{props:l,attrs:i,vnode:{patchFlag:o}}=e,s=qt(l),[a]=e.propsOptions;let c=!1;if(!(r||o>0)||16&o){let r;ar(e,t,l,i)&&(c=!0);for(const i in s)t&&(le(t,i)||(r=$e(i))!==i&&le(t,r))||(a?!n||void 0===n[i]&&void 0===n[r]||(l[i]=cr(a,s,i,void 0,e,!0)):delete l[i]);if(i!==s)for(const e in i)t&&le(t,e)||(delete i[e],c=!0)}else if(8&o){const n=e.vnode.dynamicProps;for(let r=0;r8&&void 0!==arguments[8]&&arguments[8];const u=e&&e.children,p=e?e.shapeFlag:0,d=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void O(u,d,n,r,l,i,o,s,a);if(256&h)return void z(u,d,n,r,l,i,o,s,a)}8&f?(16&p&&F(u,l,i),d!==u&&c(n,d)):16&p?16&f?O(u,d,n,r,l,i,o,s,a):F(u,l,i,!0):(8&p&&c(n,""),16&f&&k(d,n,r,l,i,o,s,a))},z=(e,t,n,r,l,i,o,s,a)=>{t=t||K;const c=(e=e||K).length,u=t.length,p=Math.min(c,u);let d;for(d=0;du?F(e,l,i,!0,!1,p):k(t,n,r,l,i,o,s,a,p)},O=(e,t,n,r,l,i,o,s,a)=>{let c=0;const u=t.length;let p=e.length-1,d=u-1;for(;c<=p&&c<=d;){const r=e[c],u=t[c]=a?Yr(t[c]):Xr(t[c]);if(!Hr(r,u))break;f(r,u,n,null,l,i,o,s,a),c++}for(;c<=p&&c<=d;){const r=e[p],c=t[d]=a?Yr(t[d]):Xr(t[d]);if(!Hr(r,c))break;f(r,c,n,null,l,i,o,s,a),p--,d--}if(c>p){if(c<=d){const e=d+1,p=ed)for(;c<=p;)T(e[c],l,i,!0),c++;else{const h=c,g=c,m=new Map;for(c=g;c<=d;c++){const e=t[c]=a?Yr(t[c]):Xr(t[c]);null!=e.key&&m.set(e.key,c)}let v,y=0;const w=d-g+1;let b=!1,k=0;const x=new Array(w);for(c=0;c=w){T(r,l,i,!0);continue}let u;if(null!=r.key)u=m.get(r.key);else for(v=g;v<=d;v++)if(0===x[v-g]&&Hr(r,t[v])){u=v;break}void 0===u?T(r,l,i,!0):(x[u-g]=c+1,u>=k?k=u:b=!0,f(r,t[u],n,null,l,i,o,s,a),y++)}const _=b?function(e){const t=e.slice(),n=[0];let r,l,i,o,s;const a=e.length;for(r=0;r>1,e[n[s]]0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,o=n[i-1];i-- >0;)n[i]=o,o=t[o];return n}(x):K;for(v=_.length-1,c=w-1;c>=0;c--){const e=g+c,p=t[e],d=e+14&&void 0!==arguments[4]?arguments[4]:null;const{el:o,type:s,transition:a,children:c,shapeFlag:u}=e;if(6&u)j(e.component.subTree,t,r,l);else if(128&u)e.suspense.move(t,r,l);else if(64&u)s.move(e,t,r,D);else if(s!==Ir)if(s!==Or)if(2!==l&&1&u&&a)if(0===l)a.beforeEnter(o),n(o,t,r),Sr((()=>a.enter(o)),i);else{const{leave:e,delayLeave:l,afterLeave:i}=a,s=()=>n(o,t,r),c=()=>{e(o,(()=>{s(),i&&i()}))};l?l(o,s,c):c()}else n(o,t,r);else((e,t,r)=>{let l,{el:i,anchor:o}=e;for(;i&&i!==o;)l=p(i),n(i,t,r),i=l;n(o,t,r)})(e,t,r);else{n(o,t,r);for(let e=0;e3&&void 0!==arguments[3]&&arguments[3],l=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const{type:i,props:o,ref:s,children:a,dynamicChildren:c,shapeFlag:u,patchFlag:p,dirs:d}=e;if(null!=s&&Cr(s,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const h=1&u&&d,f=!qn(e);let g;if(f&&(g=o&&o.onVnodeBeforeUnmount)&&tl(g,t,e),6&u)M(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);h&&Yn(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,l,D,r):c&&(i!==Ir||p>0&&64&p)?F(c,t,n,!1,!0):(i===Ir&&384&p||!l&&16&u)&&F(a,t,n),r&&U(e)}(f&&(g=o&&o.onVnodeUnmounted)||h)&&Sr((()=>{g&&tl(g,t,e),h&&Yn(e,null,t,"unmounted")}),n)},U=e=>{const{type:t,el:n,anchor:l,transition:i}=e;if(t===Ir)return void P(n,l);if(t===Or)return void(e=>{let t,{el:n,anchor:l}=e;for(;n&&n!==l;)t=p(n),r(n),n=t;r(l)})(e);const o=()=>{r(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){const{leave:t,delayLeave:r}=i,l=()=>t(n,o);r?r(e.el,o,l):l()}else o()},P=(e,t)=>{let n;for(;e!==t;)n=p(e),r(e),e=n;r(t)},M=(e,t,n)=>{const{bum:r,scope:l,update:i,subTree:o,um:s}=e;r&&Re(r),l.stop(),i&&(i.active=!1,T(o,e,t,n)),s&&Sr(s,t),Sr((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},F=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],l=arguments.length>4&&void 0!==arguments[4]&&arguments[4];for(let i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;i6&e.shapeFlag?N(e.component.subTree):128&e.shapeFlag?e.suspense.next():p(e.anchor||e.el),V=(e,t,n)=>{null==e?t._vnode&&T(t._vnode,null,null,!0):f(t._vnode||null,e,t,null,null,null,n),$n(),Cn(),t._vnode=e},D={p:f,um:T,m:j,r:U,mt:A,mc:k,pc:L,pbc:_,n:N,o:e};let H,B;return{render:V,hydrate:H,createApp:$r(V,H)}}(e)}function Rr(e,t){let{effect:n,update:r}=e;n.allowRecurse=r.allowRecurse=t}function Er(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=e.children,l=t.children;if(ie(r)&&ie(l))for(let e=0;e0&&void 0!==arguments[0]&&arguments[0];jr.push(Tr=e?null:[])}let Pr=1;function Mr(e){Pr+=e}function Fr(e){return e.dynamicChildren=Pr>0?Tr||K:null,jr.pop(),Tr=jr[jr.length-1]||null,Pr>0&&Tr&&Tr.push(e),e}function Nr(e,t,n,r,l,i){return Fr(Zr(e,t,n,r,l,i,!0))}function Vr(e,t,n,r,l){return Fr(Qr(e,t,n,r,l,!0))}function Dr(e){return!!e&&!0===e.__v_isVNode}function Hr(e,t){return e.type===t.type&&e.key===t.key}const Br="__vInternal",Wr=e=>{let{key:t}=e;return null!=t?t:null},qr=e=>{let{ref:t,ref_key:n,ref_for:r}=e;return null!=t?ue(t)||Xt(t)||ce(t)?{i:zn,r:t,k:n,f:!!r}:t:null};function Zr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e===Ir?0:1,o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Wr(t),ref:t&&qr(t),scopeId:On,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:zn};return s?(el(a,n),128&i&&e.normalize(a)):n&&(a.shapeFlag|=ue(n)?8:16),Pr>0&&!o&&Tr&&(a.patchFlag>0||6&i)&&32!==a.patchFlag&&Tr.push(a),a}const Qr=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(e&&e!==tr||(e=zr),Dr(e)){const r=Kr(e,t,!0);return n&&el(r,n),Pr>0&&!i&&Tr&&(6&r.shapeFlag?Tr[Tr.indexOf(e)]=r:Tr.push(r)),r.patchFlag|=-2,r}var o;if(ce(o=e)&&"__vccOpts"in o&&(e=e.__vccOpts),t){t=function(e){return e?Wt(e)||Br in e?te({},e):e:null}(t);let{class:e,style:n}=t;e&&!ue(e)&&(t.class=V(e)),de(n)&&(Wt(n)&&!ie(n)&&(n=te({},n)),t.style=U(n))}return Zr(e,t,n,r,l,ue(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:de(e)?4:ce(e)?2:0,i,!0)};function Kr(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{props:r,ref:l,patchFlag:i,children:o}=e,s=t?function(){const e={};for(let t=0;t0&&void 0!==arguments[0]?arguments[0]:" ",arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)}function Jr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(Ur(),Vr(zr,null,e)):Qr(zr,null,e)}function Xr(e){return null==e||"boolean"==typeof e?Qr(zr):ie(e)?Qr(Ir,null,e.slice()):"object"==typeof e?Yr(e):Qr(Lr,null,String(e))}function Yr(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:Kr(e)}function el(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(ie(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),el(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||Br in t?3===r&&zn&&(1===zn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=zn}}else ce(t)?(t={default:t,_ctx:zn},n=32):(t=String(t),64&r?(n=16,t=[Gr(t)]):n=8);e.children=t,e.shapeFlag|=n}function tl(e,t,n){un(e,t,7,[n,arguments.length>3&&void 0!==arguments[3]?arguments[3]:null])}const nl=xr();let rl=0,ll=null;const il=()=>ll||zn,ol=e=>{ll=e,e.scope.on()},sl=()=>{ll&&ll.scope.off(),ll=null};function al(e){return 4&e.vnode.shapeFlag}let cl=!1;function ul(e,t,n){ce(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:de(t)&&(e.setupState=on(t)),pl(e,n)}function pl(e,t,n){const r=e.type;e.render||(e.render=r.render||G)}function dl(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(on(Zt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in ir?ir[n](e):void 0,has:(e,t)=>t in e||t in ir}))}const hl=(e,t)=>function(e,t){let n,r,l=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const i=ce(e);return i?(n=e,r=G):(n=e.get,r=e.set),new an(n,r,i||!r,l)}(e,0,cl);function fl(e,t,n){const r=arguments.length;return 2===r?de(t)&&!ie(t)?Dr(t)?Qr(e,null,[t]):Qr(e,t):Qr(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&Dr(n)&&(n=[n]),Qr(e,t,n))}const gl=Symbol(""),ml=()=>Fn(gl),vl="3.2.47",yl="undefined"!=typeof document?document:null,wl=yl&&yl.createElement("template"),bl={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 l=t?yl.createElementNS("http://www.w3.org/2000/svg",e):yl.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&l.setAttribute("multiple",r.multiple),l},createText:e=>yl.createTextNode(e),createComment:e=>yl.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>yl.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,l,i){const o=n?n.previousSibling:t.lastChild;if(l&&(l===i||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),n),l!==i&&(l=l.nextSibling););else{wl.innerHTML=r?`${e}`:e;const l=wl.content;if(r){const e=l.firstChild;for(;e.firstChild;)l.appendChild(e.firstChild);l.removeChild(e)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},kl=/\s*!important$/;function xl(e,t,n){if(ie(n))n.forEach((n=>xl(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=$l[t];if(n)return n;let r=xe(t);if("filter"!==r&&r in e)return $l[t]=r;r=Ce(r);for(let n=0;n<_l.length;n++){const l=_l[n]+r;if(l in e)return $l[t]=l}return t}(e,t);kl.test(n)?e.setProperty($e(r),n.replace(kl,""),"important"):e[r]=n}}const _l=["Webkit","Moz","ms"],$l={},Cl="http://www.w3.org/1999/xlink";function Sl(e,t,n,r){e.addEventListener(t,n,r)}const Al=/(?:Once|Passive|Capture)$/;let Rl=0;const El=Promise.resolve(),Il=()=>Rl||(El.then((()=>Rl=0)),Rl=Date.now()),Ll=/^on[a-z]/,zl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return ie(t)?e=>Re(t,e):t};function Ol(e){e.target.composing=!0}function jl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Tl={created(e,t,n){let{modifiers:{lazy:r,trim:l,number:i}}=t;e._assign=zl(n);const o=i||n.props&&"number"===n.props.type;Sl(e,r?"change":"input",(t=>{if(t.target.composing)return;let n=e.value;l&&(n=n.trim()),o&&(n=Ie(n)),e._assign(n)})),l&&Sl(e,"change",(()=>{e.value=e.value.trim()})),r||(Sl(e,"compositionstart",Ol),Sl(e,"compositionend",jl),Sl(e,"change",jl))},mounted(e,t){let{value:n}=t;e.value=null==n?"":n},beforeUpdate(e,t,n){let{value:r,modifiers:{lazy:l,trim:i,number:o}}=t;if(e._assign=zl(n),e.composing)return;if(document.activeElement===e&&"range"!==e.type){if(l)return;if(i&&e.value.trim()===r)return;if((o||"number"===e.type)&&Ie(e.value)===r)return}const s=null==r?"":r;e.value!==s&&(e.value=s)}},Ul={deep:!0,created(e,t,n){e._assign=zl(n),Sl(e,"change",(()=>{const t=e._modelValue,n=Vl(e),r=e.checked,l=e._assign;if(ie(t)){const e=W(t,n),i=-1!==e;if(r&&!i)l(t.concat(n));else if(!r&&i){const n=[...t];n.splice(e,1),l(n)}}else if(se(t)){const e=new Set(t);r?e.add(n):e.delete(n),l(e)}else l(Dl(e,r))}))},mounted:Pl,beforeUpdate(e,t,n){e._assign=zl(n),Pl(e,t,n)}};function Pl(e,t,n){let{value:r,oldValue:l}=t;e._modelValue=r,ie(r)?e.checked=W(r,n.props.value)>-1:se(r)?e.checked=r.has(n.props.value):r!==l&&(e.checked=B(r,Dl(e,!0)))}const Ml={created(e,t,n){let{value:r}=t;e.checked=B(r,n.props.value),e._assign=zl(n),Sl(e,"change",(()=>{e._assign(Vl(e))}))},beforeUpdate(e,t,n){let{value:r,oldValue:l}=t;e._assign=zl(n),r!==l&&(e.checked=B(r,n.props.value))}},Fl={deep:!0,created(e,t,n){let{value:r,modifiers:{number:l}}=t;const i=se(r);Sl(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>l?Ie(Vl(e)):Vl(e)));e._assign(e.multiple?i?new Set(t):t:t[0])})),e._assign=zl(n)},mounted(e,t){let{value:n}=t;Nl(e,n)},beforeUpdate(e,t,n){e._assign=zl(n)},updated(e,t){let{value:n}=t;Nl(e,n)}};function Nl(e,t){const n=e.multiple;if(!n||ie(t)||se(t)){for(let r=0,l=e.options.length;r-1:l.selected=t.has(i);else if(B(Vl(l),t))return void(e.selectedIndex!==r&&(e.selectedIndex=r))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function Vl(e){return"_value"in e?e._value:e.value}function Dl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Hl={created(e,t,n){Bl(e,t,n,null,"created")},mounted(e,t,n){Bl(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Bl(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Bl(e,t,n,r,"updated")}};function Bl(e,t,n,r,l){const i=function(e,t){switch(e){case"SELECT":return Fl;case"TEXTAREA":return Tl;default:switch(t){case"checkbox":return Ul;case"radio":return Ml;default:return Tl}}}(e.tagName,n.props&&n.props.type)[l];i&&i(e,t,n,r)}const Wl={beforeMount(e,t,n){let{value:r}=t,{transition:l}=n;e._vod="none"===e.style.display?"":e.style.display,l&&r?l.beforeEnter(e):ql(e,r)},mounted(e,t,n){let{value:r}=t,{transition:l}=n;l&&r&&l.enter(e)},updated(e,t,n){let{value:r,oldValue:l}=t,{transition:i}=n;!r!=!l&&(i?r?(i.beforeEnter(e),ql(e,!0),i.enter(e)):i.leave(e,(()=>{ql(e,!1)})):ql(e,r))},beforeUnmount(e,t){let{value:n}=t;ql(e,n)}};function ql(e,t){e.style.display=t?e._vod:"none"}const Zl=te({patchProp:function(e,t,n,r){let l=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0,a=arguments.length>8?arguments[8]:void 0;"class"===t?function(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,r,l):"style"===t?function(e,t,n){const r=e.style,l=ue(n);if(n&&!l){if(t&&!ue(t))for(const e in t)null==n[e]&&xl(r,e,"");for(const e in n)xl(r,e,n[e])}else{const i=r.display;l?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}(e,n,r):Y(t)?ee(t)||function(e,t,n,r){let l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;const i=e._vei||(e._vei={}),o=i[t];if(r&&o)o.value=r;else{const[n,s]=function(e){let t;if(Al.test(e)){let n;for(t={};n=e.match(Al);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):$e(e.slice(2)),t]}(t);if(r){const o=i[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();un(function(e,t){if(ie(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=Il(),n}(r,l);Sl(e,n,o,s)}else o&&(function(e,t,n,r){e.removeEventListener(t,n,r)}(e,n,o,s),i[t]=void 0)}}(e,t,0,r,o):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,r){return r?"innerHTML"===t||"textContent"===t||!!(t in e&&Ll.test(t)&&ce(n)):"spellcheck"!==t&&"draggable"!==t&&"translate"!==t&&("form"!==t&&(("list"!==t||"INPUT"!==e.tagName)&&(("type"!==t||"TEXTAREA"!==e.tagName)&&((!Ll.test(t)||!ue(n))&&t in e))))}(e,t,r,l))?function(e,t,n,r,l,i,o){if("innerHTML"===t||"textContent"===t)return r&&o(r,l,i),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=n;const r=null==n?"":n;return e.value===r&&"OPTION"!==e.tagName||(e.value=r),void(null==n&&e.removeAttribute(t))}let s=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=H(n):null==n&&"string"===r?(n="",s=!0):"number"===r&&(n=0,s=!0)}try{e[t]=n}catch(e){}s&&e.removeAttribute(t)}(e,t,r,i,o,s,a):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),function(e,t,n,r,l){if(r&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(Cl,t.slice(6,t.length)):e.setAttributeNS(Cl,t,n);else{const r=D(t);null==n||r&&!H(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}(e,t,r,l))}},bl);let Ql;const Kl="undefined"!=typeof window,Gl=e=>"function"==typeof e,Jl=e=>"string"==typeof e,Xl=()=>{};function Yl(e){return"function"==typeof e?e():rn(e)}function ei(e,t){return function(){for(var n=arguments.length,r=new Array(n),l=0;l{Promise.resolve(e((()=>t.apply(this,r)),{fn:t,thisArg:this,args:r})).then(n).catch(l)}))}}const ti=e=>e();function ni(e){return!!Te()&&(function(e){Oe&&Oe.cleanups.push(e)}(e),!0)}var ri=Object.getOwnPropertySymbols,li=Object.prototype.hasOwnProperty,ii=Object.prototype.propertyIsEnumerable,oi=(e,t)=>{var n={};for(var r in e)li.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&ri)for(var r of ri(e))t.indexOf(r)<0&&ii.call(e,r)&&(n[r]=e[r]);return n},si=Object.defineProperty,ai=Object.defineProperties,ci=Object.getOwnPropertyDescriptors,ui=Object.getOwnPropertySymbols,pi=Object.prototype.hasOwnProperty,di=Object.prototype.propertyIsEnumerable,hi=(e,t,n)=>t in e?si(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,fi=(e,t)=>{for(var n in t||(t={}))pi.call(t,n)&&hi(e,n,t[n]);if(ui)for(var n of ui(t))di.call(t,n)&&hi(e,n,t[n]);return e},gi=(e,t)=>ai(e,ci(t)),mi=(e,t)=>{var n={};for(var r in e)pi.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&ui)for(var r of ui(e))t.indexOf(r)<0&&di.call(e,r)&&(n[r]=e[r]);return n};function vi(e){var t;const n=Yl(e);return null!=(t=null==n?void 0:n.$el)?t:n}const yi=Kl?window:void 0,wi=Kl?window.document:void 0;function bi(){let e,t,n,r;for(var l=arguments.length,i=new Array(l),o=0;o{s.forEach((e=>e())),s.length=0},c=Dn((()=>[vi(e),Yl(r)]),(e=>{let[r,l]=e;a(),r&&s.push(...t.flatMap((e=>n.map((t=>((e,t,n,r)=>(e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)))(r,e,t,l))))))}),{immediate:!0,flush:"post"}),u=()=>{c(),a()};return ni(u),u}const ki="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},xi="__vueuse_ssr_handlers__";ki[xi]=ki[xi]||{};const _i=ki[xi];var $i=Object.defineProperty,Ci=Object.getOwnPropertySymbols,Si=Object.prototype.hasOwnProperty,Ai=Object.prototype.propertyIsEnumerable,Ri=(e,t,n)=>t in e?$i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ei=(e,t)=>{for(var n in t||(t={}))Si.call(t,n)&&Ri(e,n,t[n]);if(Ci)for(var n of Ci(t))Ai.call(t,n)&&Ri(e,n,t[n]);return e};const Ii={boolean:{read:e=>"true"===e,write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Li="vueuse-storage";function zi(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};var l;const{flush:i="pre",deep:o=!0,listenToStorageChanges:s=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:u,window:p=yi,eventFilter:d,onError:h=(e=>{console.error(e)})}=r,f=(u?en:Yt)(t);if(!n)try{n=(_i.getDefaultStorage||(()=>{var e;return null==(e=yi)?void 0:e.localStorage}))()}catch(e){h(e)}if(!n)return f;const g=Yl(t),m=function(e){return null==e?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":"boolean"==typeof e?"boolean":"string"==typeof e?"string":"object"==typeof e?"object":Number.isNaN(e)?"any":"number"}(g),v=null!=(l=r.serializer)?l:Ii[m],{pause:y,resume:w}=function(e,t){const n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{eventFilter:r}=n,l=mi(n,["eventFilter"]),{eventFilter:i,pause:o,resume:s,isActive:a}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ti;const t=Yt(!0);return{isActive:Nt(t),pause:function(){t.value=!1},resume:function(){t.value=!0},eventFilter:function(){t.value&&e(...arguments)}}}(r),c=function(e,t){const n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{eventFilter:r=ti}=n,l=oi(n,["eventFilter"]);return Dn(e,ei(r,t),l)}(e,t,gi(fi({},l),{eventFilter:i}));return{stop:c,pause:o,resume:s,isActive:a}}(f,(()=>function(t){try{if(null==t)n.removeItem(e);else{const r=v.write(t),l=n.getItem(e);l!==r&&(n.setItem(e,r),p&&p.dispatchEvent(new CustomEvent(Li,{detail:{key:e,oldValue:l,newValue:r,storageArea:n}})))}}catch(e){h(e)}}(f.value)),{flush:i,deep:o,eventFilter:d});return p&&s&&(bi(p,"storage",b),bi(p,Li,(function(e){b(e.detail)}))),b(),f;function b(t){if(!t||t.storageArea===n)if(t&&null==t.key)f.value=g;else if(!t||t.key===e){y();try{f.value=function(t){const r=t?t.newValue:n.getItem(e);if(null==r)return a&&null!==g&&n.setItem(e,v.write(g)),g;if(!t&&c){const e=v.read(r);return Gl(c)?c(e,g):"object"!==m||Array.isArray(e)?e:Ei(Ei({},g),e)}return"string"!=typeof r?r:v.read(r)}(t)}catch(e){h(e)}finally{t?kn(w):w()}}}}var Oi,ji,Ti=Object.defineProperty,Ui=Object.getOwnPropertySymbols,Pi=Object.prototype.hasOwnProperty,Mi=Object.prototype.propertyIsEnumerable,Fi=(e,t,n)=>t in e?Ti(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ni=(e,t)=>{for(var n in t||(t={}))Pi.call(t,n)&&Fi(e,n,t[n]);if(Ui)for(var n of Ui(t))Mi.call(t,n)&&Fi(e,n,t[n]);return e};(ji=Oi||(Oi={})).UP="UP",ji.RIGHT="RIGHT",ji.DOWN="DOWN",ji.LEFT="LEFT",ji.NONE="NONE";let Vi=0;var Di=Object.defineProperty,Hi=Object.getOwnPropertySymbols,Bi=Object.prototype.hasOwnProperty,Wi=Object.prototype.propertyIsEnumerable,qi=(e,t,n)=>t in e?Di(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;((e,t)=>{for(var n in t||(t={}))Bi.call(t,n)&&qi(e,n,t[n]);if(Hi)for(var n of Hi(t))Wi.call(t,n)&&qi(e,n,t[n])})({linear:function(e){return e}},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const Zi=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return`${t?`${t}/`:""}${arguments.length>2&&void 0!==arguments[2]?arguments[2]:""}${e}${n?`.${n}`:""}`},Qi=e=>{"AbortError"!==e.name&&console.error(e.message)},Ki=e=>e instanceof HTMLElement?e:"string"==typeof e?document.querySelector(e):null,Gi=e=>e.type.includes("image"),Ji=e=>{const t=Array.from(e).find(Gi);return t?t.getAsFile():null};let Xi={async:!1,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,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const Yi=/[&<>"']/,eo=new RegExp(Yi.source,"g"),to=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,no=new RegExp(to.source,"g"),ro={"&":"&","<":"<",">":">",'"':""","'":"'"},lo=e=>ro[e];function io(e,t){if(t){if(Yi.test(e))return e.replace(eo,lo)}else if(to.test(e))return e.replace(no,lo);return e}const oo=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function so(e){return e.replace(oo,((e,t)=>"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""))}const ao=/(^|[^\[])\^/g;function co(e,t){e="string"==typeof e?e:e.source,t=t||"";const n={replace:(t,r)=>(r=(r=r.source||r).replace(ao,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n}const uo=/[^\w:]/g,po=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function ho(e,t,n){if(e){let t;try{t=decodeURIComponent(so(n)).replace(uo,"").toLowerCase()}catch(e){return null}if(0===t.indexOf("javascript:")||0===t.indexOf("vbscript:")||0===t.indexOf("data:"))return null}t&&!po.test(n)&&(n=function(e,t){fo[" "+e]||(go.test(e)?fo[" "+e]=e+"/":fo[" "+e]=ko(e,"/",!0));const n=-1===(e=fo[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(mo,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(vo,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}const fo={},go=/^[^:]+:\/*[^/]*$/,mo=/^([^:]+:)[\s\S]*$/,vo=/^([^:]+:\/*[^/]*)[\s\S]*$/,yo={exec:function(){}};function wo(e){let t,n,r=1;for(;r{let r=!1,l=t;for(;--l>=0&&"\\"===n[l];)r=!r;return r?"|":" |"})).split(/ \|/);let r=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),n.length>t)n.splice(t);else for(;n.length1;)1&t&&(n+=e),t>>=1,e+=e;return n+e}function $o(e,t,n,r){const l=t.href,i=t.title?io(t.title):null,o=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;const e={type:"link",raw:n,href:l,title:i,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,e}return{type:"image",raw:n,href:l,title:i,text:io(o)}}class Co{constructor(e){this.options=e||Xi}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:ko(e,"\n")}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0],n=function(e,t){const n=e.match(/^(\s+)(?:```)/);if(null===n)return t;const r=n[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.length>=r.length?e.slice(r.length):e})).join("\n")}(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=ko(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:t[0]}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *>[ \t]?/gm,""),n=this.lexer.state.top;this.lexer.state.top=!0;const r=this.lexer.blockTokens(e);return this.lexer.state.top=n,{type:"blockquote",raw:t[0],tokens:r,text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,r,l,i,o,s,a,c,u,p,d,h,f=t[1].trim();const g=f.length>1,m={type:"list",raw:"",ordered:g,start:g?+f.slice(0,-1):"",loose:!1,items:[]};f=g?`\\d{1,9}\\${f.slice(-1)}`:`\\${f}`,this.options.pedantic&&(f=g?f:"[*+-]");const v=new RegExp(`^( {0,3}${f})((?:[\t ][^\\n]*)?(?:\\n|$))`);for(;e&&(h=!1,t=v.exec(e))&&!this.rules.block.hr.test(e);){if(n=t[0],e=e.substring(n.length),c=t[2].split("\n",1)[0].replace(/^\t+/,(e=>" ".repeat(3*e.length))),u=e.split("\n",1)[0],this.options.pedantic?(i=2,d=c.trimLeft()):(i=t[2].search(/[^ ]/),i=i>4?1:i,d=c.slice(i),i+=t[1].length),s=!1,!c&&/^ *$/.test(u)&&(n+=u+"\n",e=e.substring(u.length+1),h=!0),!h){const t=new RegExp(`^ {0,${Math.min(3,i-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),r=new RegExp(`^ {0,${Math.min(3,i-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),l=new RegExp(`^ {0,${Math.min(3,i-1)}}(?:\`\`\`|~~~)`),o=new RegExp(`^ {0,${Math.min(3,i-1)}}#`);for(;e&&(p=e.split("\n",1)[0],u=p,this.options.pedantic&&(u=u.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!l.test(u))&&!o.test(u)&&!t.test(u)&&!r.test(e);){if(u.search(/[^ ]/)>=i||!u.trim())d+="\n"+u.slice(i);else{if(s)break;if(c.search(/[^ ]/)>=4)break;if(l.test(c))break;if(o.test(c))break;if(r.test(c))break;d+="\n"+u}s||u.trim()||(s=!0),n+=p+"\n",e=e.substring(p.length+1),c=u.slice(i)}}m.loose||(a?m.loose=!0:/\n *\n *$/.test(n)&&(a=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(d),r&&(l="[ ] "!==r[0],d=d.replace(/^\[[ xX]\] +/,""))),m.items.push({type:"list_item",raw:n,task:!!r,checked:l,loose:!1,text:d}),m.raw+=n}m.items[m.items.length-1].raw=n.trimRight(),m.items[m.items.length-1].text=d.trimRight(),m.raw=m.raw.trimRight();const y=m.items.length;for(o=0;o"space"===e.type)),t=e.length>0&&e.some((e=>/\n.*\n/.test(e.raw)));m.loose=t}if(m.loose)for(o=0;o$/,"$1").replace(this.rules.inline._escapes,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){const t=this.rules.block.table.exec(e);if(t){const e={type:"table",header:bo(t[1]).map((e=>({text:e}))),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let n,r,l,i,o=e.align.length;for(n=0;n({text:e})));for(o=e.header.length,r=0;r/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):io(t[0]):t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^$/.test(e))return;const t=ko(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{const e=function(e,t){if(-1===e.indexOf(t[1]))return-1;const n=e.length;let r=0,l=0;for(;l-1){const n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^$/.test(e)?n.slice(1):n.slice(1,-1)),$o(t,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:r?r.replace(this.rules.inline._escapes,"$1"):r},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=(n[2]||n[1]).replace(/\s+/g," ");if(e=t[e.toLowerCase()],!e){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return $o(n,e,n[0],this.lexer)}}emStrong(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=this.rules.inline.emStrong.lDelim.exec(e);if(!r)return;if(r[3]&&n.match(/[\p{L}\p{N}]/u))return;const l=r[1]||r[2]||"";if(!l||l&&(""===n||this.rules.inline.punctuation.exec(n))){const n=r[0].length-1;let l,i,o=n,s=0;const a="*"===r[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(a.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=a.exec(t));){if(l=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!l)continue;if(i=l.length,r[3]||r[4]){o+=i;continue}if((r[5]||r[6])&&n%3&&!((n+i)%3)){s+=i;continue}if(o-=i,o>0)continue;i=Math.min(i,i+o+s);const t=e.slice(0,n+r.index+(r[0].length-l.length)+i);if(Math.min(n,i)%2){const e=t.slice(1,-1);return{type:"em",raw:t,text:e,tokens:this.lexer.inlineTokens(e)}}const a=t.slice(2,-2);return{type:"strong",raw:t,text:a,tokens:this.lexer.inlineTokens(a)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const n=/[^ ]/.test(e),r=/^ /.test(e)&&/ $/.test(e);return n&&r&&(e=e.substring(1,e.length-1)),e=io(e,!0),{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e,t){const n=this.rules.inline.autolink.exec(e);if(n){let e,r;return"@"===n[2]?(e=io(this.options.mangle?t(n[1]):n[1]),r="mailto:"+e):(e=io(n[1]),r=e),{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let e,r;if("@"===n[2])e=io(this.options.mangle?t(n[0]):n[0]),r="mailto:"+e;else{let t;do{t=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(t!==n[0]);e=io(n[0]),r="www."===n[1]?"http://"+n[0]:n[0]}return{type:"link",raw:n[0],text:e,href:r,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){const n=this.rules.inline.text.exec(e);if(n){let e;return e=this.lexer.state.inRawBlock?this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):io(n[0]):n[0]:io(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}const So={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}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:yo,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\.|[^\[\]\\])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};So.def=co(So.def).replace("label",So._label).replace("title",So._title).getRegex(),So.bullet=/(?:[*+-]|\d{1,9}[.)])/,So.listItemStart=co(/^( *)(bull) */).replace("bull",So.bullet).getRegex(),So.list=co(So.list).replace(/bull/g,So.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+So.def.source+")").getRegex(),So._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",So._comment=/|$)/,So.html=co(So.html,"i").replace("comment",So._comment).replace("tag",So._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),So.paragraph=co(So._paragraph).replace("hr",So.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",So._tag).getRegex(),So.blockquote=co(So.blockquote).replace("paragraph",So.paragraph).getRegex(),So.normal=wo({},So),So.gfm=wo({},So.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),So.gfm.table=co(So.gfm.table).replace("hr",So.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",")|<(?:script|pre|style|textarea|!--)").replace("tag",So._tag).getRegex(),So.gfm.paragraph=co(So._paragraph).replace("hr",So.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",So.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",So._tag).getRegex(),So.pedantic=wo({},So.normal,{html:co("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",So._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:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:yo,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:co(So.normal._paragraph).replace("hr",So.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",So.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const Ao={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:yo,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,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:yo,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}Ao._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",Ao.punctuation=co(Ao.punctuation).replace(/punctuation/g,Ao._punctuation).getRegex(),Ao.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,Ao.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,Ao._comment=co(So._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),Ao.emStrong.lDelim=co(Ao.emStrong.lDelim).replace(/punct/g,Ao._punctuation).getRegex(),Ao.emStrong.rDelimAst=co(Ao.emStrong.rDelimAst,"g").replace(/punct/g,Ao._punctuation).getRegex(),Ao.emStrong.rDelimUnd=co(Ao.emStrong.rDelimUnd,"g").replace(/punct/g,Ao._punctuation).getRegex(),Ao._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,Ao._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,Ao._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])?)+(?![-_])/,Ao.autolink=co(Ao.autolink).replace("scheme",Ao._scheme).replace("email",Ao._email).getRegex(),Ao._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,Ao.tag=co(Ao.tag).replace("comment",Ao._comment).replace("attribute",Ao._attribute).getRegex(),Ao._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ao._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,Ao._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,Ao.link=co(Ao.link).replace("label",Ao._label).replace("href",Ao._href).replace("title",Ao._title).getRegex(),Ao.reflink=co(Ao.reflink).replace("label",Ao._label).replace("ref",So._label).getRegex(),Ao.nolink=co(Ao.nolink).replace("ref",So._label).getRegex(),Ao.reflinkSearch=co(Ao.reflinkSearch,"g").replace("reflink",Ao.reflink).replace("nolink",Ao.nolink).getRegex(),Ao.normal=wo({},Ao),Ao.pedantic=wo({},Ao.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:co(/^!?\[(label)\]\((.*?)\)/).replace("label",Ao._label).getRegex(),reflink:co(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Ao._label).getRegex()}),Ao.gfm=wo({},Ao.normal,{escape:co(Ao.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]*?(?:(?=[\\1&&void 0!==arguments[1]?arguments[1]:[];for(e=this.options.pedantic?e.replace(/\t/g," ").replace(/^ +$/gm,""):e.replace(/^( *)(\t+)/gm,((e,t,n)=>t+" ".repeat(n.length)));e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((n=>!!(t=n.call({lexer:this},e,i))&&(e=e.substring(t.raw.length),i.push(t),!0)))))if(t=this.tokenizer.space(e))e=e.substring(t.raw.length),1===t.raw.length&&i.length>0?i[i.length-1].raw+="\n":i.push(t);else if(t=this.tokenizer.code(e))e=e.substring(t.raw.length),n=i[i.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?i.push(t):(n.raw+="\n"+t.raw,n.text+="\n"+t.text,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(t=this.tokenizer.fences(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.heading(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.hr(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.blockquote(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.list(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.html(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.def(e))e=e.substring(t.raw.length),n=i[i.length-1],!n||"paragraph"!==n.type&&"text"!==n.type?this.tokens.links[t.tag]||(this.tokens.links[t.tag]={href:t.href,title:t.title}):(n.raw+="\n"+t.raw,n.text+="\n"+t.raw,this.inlineQueue[this.inlineQueue.length-1].src=n.text);else if(t=this.tokenizer.table(e))e=e.substring(t.raw.length),i.push(t);else if(t=this.tokenizer.lheading(e))e=e.substring(t.raw.length),i.push(t);else{if(r=e,this.options.extensions&&this.options.extensions.startBlock){let t=1/0;const n=e.slice(1);let l;this.options.extensions.startBlock.forEach((function(e){l=e.call({lexer:this},n),"number"==typeof l&&l>=0&&(t=Math.min(t,l))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(this.state.top&&(t=this.tokenizer.paragraph(r)))n=i[i.length-1],l&&"paragraph"===n.type?(n.raw+="\n"+t.raw,n.text+="\n"+t.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):i.push(t),l=r.length!==e.length,e=e.substring(t.raw.length);else if(t=this.tokenizer.text(e))e=e.substring(t.raw.length),n=i[i.length-1],n&&"text"===n.type?(n.raw+="\n"+t.raw,n.text+="\n"+t.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=n.text):i.push(t);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}return this.state.top=!0,i}inline(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e){let t,n,r,l,i,o,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],a=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(l=this.tokenizer.rules.inline.reflinkSearch.exec(a));)e.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,l.index)+"["+_o("a",l[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(l=this.tokenizer.rules.inline.blockSkip.exec(a));)a=a.slice(0,l.index)+"["+_o("a",l[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(l=this.tokenizer.rules.inline.escapedEmSt.exec(a));)a=a.slice(0,l.index+l[0].length-2)+"++"+a.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex),this.tokenizer.rules.inline.escapedEmSt.lastIndex--;for(;e;)if(i||(o=""),i=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((n=>!!(t=n.call({lexer:this},e,s))&&(e=e.substring(t.raw.length),s.push(t),!0)))))if(t=this.tokenizer.escape(e))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.tag(e))e=e.substring(t.raw.length),n=s[s.length-1],n&&"text"===t.type&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):s.push(t);else if(t=this.tokenizer.link(e))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(t.raw.length),n=s[s.length-1],n&&"text"===t.type&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):s.push(t);else if(t=this.tokenizer.emStrong(e,a,o))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.codespan(e))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.br(e))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.del(e))e=e.substring(t.raw.length),s.push(t);else if(t=this.tokenizer.autolink(e,Eo))e=e.substring(t.raw.length),s.push(t);else if(this.state.inLink||!(t=this.tokenizer.url(e,Eo))){if(r=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const n=e.slice(1);let l;this.options.extensions.startInline.forEach((function(e){l=e.call({lexer:this},n),"number"==typeof l&&l>=0&&(t=Math.min(t,l))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(t=this.tokenizer.inlineText(r,Ro))e=e.substring(t.raw.length),"_"!==t.raw.slice(-1)&&(o=t.raw.slice(-1)),i=!0,n=s[s.length-1],n&&"text"===n.type?(n.raw+=t.raw,n.text+=t.text):s.push(t);else if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw new Error(t)}}else e=e.substring(t.raw.length),s.push(t);return s}}class Lo{constructor(e){this.options=e||Xi}code(e,t,n){const r=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,r);null!=t&&t!==e&&(n=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",r?'
'+(n?e:io(e,!0))+"
\n":"
"+(n?e:io(e,!0))+"
\n"}blockquote(e){return`
\n${e}
\n`}html(e){return e}heading(e,t,n,r){return this.options.headerIds?`${e}\n`:`${e}\n`}hr(){return this.options.xhtml?"
\n":"
\n"}list(e,t,n){const r=t?"ol":"ul";return"<"+r+(t&&1!==n?' start="'+n+'"':"")+">\n"+e+"\n"}listitem(e){return`
  • ${e}
  • \n`}checkbox(e){return" "}paragraph(e){return`

    ${e}

    \n`}table(e,t){return t&&(t=`${t}`),"\n\n"+e+"\n"+t+"
    \n"}tablerow(e){return`\n${e}\n`}tablecell(e,t){const n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+e+`\n`}strong(e){return`${e}`}em(e){return`${e}`}codespan(e){return`${e}`}br(){return this.options.xhtml?"
    ":"
    "}del(e){return`${e}`}link(e,t,n){if(null===(e=ho(this.options.sanitize,this.options.baseUrl,e)))return n;let r='",r}image(e,t,n){if(null===(e=ho(this.options.sanitize,this.options.baseUrl,e)))return n;let r=`${n}":">",r}text(e){return e}}class zo{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}class Oo{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let n=e,r=0;if(this.seen.hasOwnProperty(n)){r=this.seen[e];do{r++,n=e+"-"+r}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=r,this.seen[n]=0),n}slug(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class jo{constructor(e){this.options=e||Xi,this.options.renderer=this.options.renderer||new Lo,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new zo,this.slugger=new Oo}static parse(e,t){return new jo(t).parse(e)}static parseInline(e,t){return new jo(t).parseInline(e)}parse(e){let t,n,r,l,i,o,s,a,c,u,p,d,h,f,g,m,v,y,w,b=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],k="";const x=e.length;for(t=0;t0&&"paragraph"===g.tokens[0].type?(g.tokens[0].text=y+" "+g.tokens[0].text,g.tokens[0].tokens&&g.tokens[0].tokens.length>0&&"text"===g.tokens[0].tokens[0].type&&(g.tokens[0].tokens[0].text=y+" "+g.tokens[0].tokens[0].text)):g.tokens.unshift({type:"text",text:y}):f+=y),f+=this.parse(g.tokens,h),c+=this.renderer.listitem(f,v,m);k+=this.renderer.list(c,p,d);continue;case"html":k+=this.renderer.html(u.text);continue;case"paragraph":k+=this.renderer.paragraph(this.parseInline(u.tokens));continue;case"text":for(c=u.tokens?this.parseInline(u.tokens):u.text;t+1{r(e.text,e.lang,(function(t,n){if(t)return i(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),o--,0===o&&i()}))}),0))})),void(0===o&&i())}function r(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"

    An error occurred:

    "+io(e.message+"",!0)+"
    ";throw e}try{const n=Io.lex(e,t);if(t.walkTokens){if(t.async)return Promise.all(To.walkTokens(n,t.walkTokens)).then((()=>jo.parse(n,t))).catch(r);To.walkTokens(n,t.walkTokens)}return jo.parse(n,t)}catch(e){r(e)}}To.options=To.setOptions=function(e){var t;return wo(To.defaults,e),t=To.defaults,Xi=t,To},To.getDefaults=function(){return{async:!1,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,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},To.defaults=Xi,To.use=function(){const e=To.defaults.extensions||{renderers:{},childTokens:{}};for(var t=arguments.length,n=new Array(t),r=0;r{const n=wo({},t);if(n.async=To.defaults.async||n.async,t.extensions&&(t.extensions.forEach((t=>{if(!t.name)throw new Error("extension name required");if(t.renderer){const n=e.renderers[t.name];e.renderers[t.name]=n?function(){for(var e=arguments.length,r=new Array(e),l=0;lAn error occurred:

    "+io(e.message+"",!0)+"
    ";throw e}},To.Parser=jo,To.parser=jo.parse,To.Renderer=Lo,To.TextRenderer=zo,To.Lexer=Io,To.lexer=Io.lex,To.Tokenizer=Co,To.Slugger=Oo,To.parse=To;const Uo=/\$.*?\$/,Po=/^\$(.*?)\$/,Mo=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,Fo=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/:(.+?):/g,((t,n)=>e[n]?`${n}`:t))},No=e=>e.dataset.path||e.getAttribute("id"),Vo=e=>{let{serverURL:t,path:n=window.location.pathname,selector:r=".waline-comment-count",lang:l=navigator.language}=e;const i=new AbortController,o=document.querySelectorAll(r);return o.length&&(e=>{let{serverURL:t,lang:n,paths:r,signal:l}=e;return fetch(`${t}/comment?type=count&url=${encodeURIComponent(r.join(","))}&lang=${n}`,{signal:l}).then((e=>e.json())).then((e=>Array.isArray(e)?e:[e]))})({serverURL:I(t),paths:Array.from(o).map((e=>A(e.dataset.path||e.getAttribute("id")||n))),lang:l,signal:i.signal}).then((e=>{o.forEach(((t,n)=>{t.innerText=e[n].toString()}))})).catch(Qi),i.abort.bind(i)},Do=e=>{let{size:t}=e;return fl("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:t,height:t},[fl("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"}),fl("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"})])},Ho=()=>fl("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},fl("path",{d:"m341.013 394.667 27.755 393.45h271.83l27.733-393.45h64.106l-28.01 397.952a64 64 0 0 1-63.83 59.498H368.768a64 64 0 0 1-63.83-59.52l-28.053-397.93h64.128zm139.307 19.818v298.667h-64V414.485h64zm117.013 0v298.667h-64V414.485h64zM181.333 288h640v64h-640v-64zm453.483-106.667v64h-256v-64h256z",fill:"red"})),Bo=()=>fl("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},fl("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"})),Wo=()=>fl("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[fl("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"}),fl("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"})]),qo=e=>{let{active:t=!1}=e;return fl("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[fl("path",{d:"M850.654 323.804c-11.042-25.625-26.862-48.532-46.885-68.225-20.022-19.61-43.258-34.936-69.213-45.73-26.78-11.124-55.124-16.727-84.375-16.727-40.622 0-80.256 11.123-114.698 32.135A214.79 214.79 0 0 0 512 241.819a214.79 214.79 0 0 0-23.483-16.562c-34.442-21.012-74.076-32.135-114.698-32.135-29.25 0-57.595 5.603-84.375 16.727-25.872 10.711-49.19 26.12-69.213 45.73-20.105 19.693-35.843 42.6-46.885 68.225-11.453 26.615-17.303 54.877-17.303 83.963 0 27.439 5.603 56.03 16.727 85.117 9.31 24.307 22.659 49.52 39.715 74.981 27.027 40.293 64.188 82.316 110.33 124.915 76.465 70.615 152.189 119.394 155.402 121.371l19.528 12.525c8.652 5.52 19.776 5.52 28.427 0l19.529-12.525c3.213-2.06 78.854-50.756 155.401-121.371 46.143-42.6 83.304-84.622 110.33-124.915 17.057-25.46 30.487-50.674 39.716-74.981 11.124-29.087 16.727-57.678 16.727-85.117.082-29.086-5.768-57.348-17.221-83.963z"+(t?"":"M512 761.5S218.665 573.55 218.665 407.767c0-83.963 69.461-152.023 155.154-152.023 60.233 0 112.473 33.618 138.181 82.727 25.708-49.109 77.948-82.727 138.18-82.727 85.694 0 155.155 68.06 155.155 152.023C805.335 573.551 512 761.5 512 761.5z"),fill:t?"red":"currentColor"})])},Zo=()=>fl("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[fl("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"}),fl("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"})]),Qo=()=>fl("svg",{width:"16",height:"16",ariaHidden:"true"},fl("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"})),Ko=()=>fl("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},fl("path",{d:"M810.667 213.333a64 64 0 0 1 64 64V704a64 64 0 0 1-64 64H478.336l-146.645 96.107a21.333 21.333 0 0 1-33.024-17.856V768h-85.334a64 64 0 0 1-64-64V277.333a64 64 0 0 1 64-64h597.334zm0 64H213.333V704h149.334v63.296L459.243 704h351.424V277.333zm-271.36 213.334v64h-176.64v-64h176.64zm122.026-128v64H362.667v-64h298.666z",fill:"currentColor"})),Go=()=>fl("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},fl("path",{d:"M813.039 318.772L480.53 651.278H360.718V531.463L693.227 198.961C697.904 194.284 704.027 192 710.157 192C716.302 192 722.436 194.284 727.114 198.961L813.039 284.88C817.72 289.561 820 295.684 820 301.825C820 307.95 817.72 314.093 813.039 318.772ZM710.172 261.888L420.624 551.431V591.376H460.561L750.109 301.825L710.172 261.888ZM490.517 291.845H240.906V771.09H720.156V521.479C720.156 504.947 733.559 491.529 750.109 491.529C766.653 491.529 780.063 504.947 780.063 521.479V791.059C780.063 813.118 762.18 831 740.125 831H220.937C198.882 831 181 813.118 181 791.059V271.872C181 249.817 198.882 231.935 220.937 231.935H490.517C507.06 231.935 520.47 245.352 520.47 261.888C520.47 278.424 507.06 291.845 490.517 291.845Z",fill:"currentColor"})),Jo=()=>fl("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},fl("path",{d:"m894.4 461.56-54.4-63.2c-10.4-12-18.8-34.4-18.8-50.4v-68c0-42.4-34.8-77.2-77.2-77.2h-68c-15.6 0-38.4-8.4-50.4-18.8l-63.2-54.4c-27.6-23.6-72.8-23.6-100.8 0l-62.8 54.8c-12 10-34.8 18.4-50.4 18.4h-69.2c-42.4 0-77.2 34.8-77.2 77.2v68.4c0 15.6-8.4 38-18.4 50l-54 63.6c-23.2 27.6-23.2 72.4 0 100l54 63.6c10 12 18.4 34.4 18.4 50v68.4c0 42.4 34.8 77.2 77.2 77.2h69.2c15.6 0 38.4 8.4 50.4 18.8l63.2 54.4c27.6 23.6 72.8 23.6 100.8 0l63.2-54.4c12-10.4 34.4-18.8 50.4-18.8h68c42.4 0 77.2-34.8 77.2-77.2v-68c0-15.6 8.4-38.4 18.8-50.4l54.4-63.2c23.2-27.6 23.2-73.2-.4-100.8zm-216-25.2-193.2 193.2a30 30 0 0 1-42.4 0l-96.8-96.8a30.16 30.16 0 0 1 0-42.4c11.6-11.6 30.8-11.6 42.4 0l75.6 75.6 172-172c11.6-11.6 30.8-11.6 42.4 0 11.6 11.6 11.6 30.8 0 42.4z",fill:"#27ae60"})),Xo=e=>{let{size:t}=e;return fl("svg",{width:t,height:t,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},fl("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},fl("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"})))},Yo=()=>fl("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[fl("path",{style:"transform: translateY(0.5px)",d:"M18.968 10.5H15.968V11.484H17.984V12.984H15.968V15H14.468V9H18.968V10.5V10.5ZM8.984 9C9.26533 9 9.49967 9.09367 9.687 9.281C9.87433 9.46833 9.968 9.70267 9.968 9.984V10.5H6.499V13.5H8.468V12H9.968V14.016C9.968 14.2973 9.87433 14.5317 9.687 14.719C9.49967 14.9063 9.26533 15 8.984 15H5.984C5.70267 15 5.46833 14.9063 5.281 14.719C5.09367 14.5317 5 14.2973 5 14.016V9.985C5 9.70367 5.09367 9.46933 5.281 9.282C5.46833 9.09467 5.70267 9.001 5.984 9.001H8.984V9ZM11.468 9H12.968V15H11.468V9V9Z"}),fl("path",{d:"M18.5 3H5.75C3.6875 3 2 4.6875 2 6.75V18C2 20.0625 3.6875 21.75 5.75 21.75H18.5C20.5625 21.75 22.25 20.0625 22.25 18V6.75C22.25 4.6875 20.5625 3 18.5 3ZM20.75 18C20.75 19.2375 19.7375 20.25 18.5 20.25H5.75C4.5125 20.25 3.5 19.2375 3.5 18V6.75C3.5 5.5125 4.5125 4.5 5.75 4.5H18.5C19.7375 4.5 20.75 5.5125 20.75 6.75V18Z"})]);e.commentCount=Vo;let es=null;const ts=()=>es||(es=zi("WALINE_LIKE",[]));let ns=null;var rs="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},ls={},is={},os={},ss=rs&&rs.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(l,i){function o(e){try{a(r.next(e))}catch(e){i(e)}}function s(e){try{a(r.throw(e))}catch(e){i(e)}}function a(e){var t;e.done?l(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}a((r=r.apply(e,t||[])).next())}))},as=rs&&rs.__generator||function(e,t){var n,r,l,i,o={label:0,sent:function(){if(1&l[0])throw l[1];return l[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(l=2&i[0]?r.return:i[0]?r.throw||((l=r.return)&&l.call(r),0):r.next)&&!(l=l.call(r,i[1])).done)return l;switch(r=0,l&&(i=[2&i[0],l.value]),i[0]){case 0:case 1:l=i;break;case 4:return o.label++,{value:i[1],done:!1};case 5:o.label++,r=i[1],i=[0];continue;case 7:i=o.ops.pop(),o.trys.pop();continue;default:if(!((l=(l=o.trys).length>0&&l[l.length-1])||6!==i[0]&&2!==i[0])){o=0;continue}if(3===i[0]&&(!l||i[1]>l[0]&&i[1]fs??(fs=zi("WALINE_USER",{})),ms={key:0,class:"wl-reaction"},vs=["textContent"],ys={class:"wl-reaction-list"},ws=["onClick"],bs={class:"wl-reaction-img"},ks=["src","alt"],xs=["textContent"],_s=["textContent"];var $s=Wn({__name:"ArticleReaction",setup(e,t){let{expose:n}=t;n();const r=ns??(ns=zi("WALINE_REACTION",{})),l=Fn("config"),i=Yt(-1),o=Yt([]),s=hl((()=>l.value.locale)),a=hl((()=>l.value.reaction.length>0)),c=hl((()=>{const{reaction:e,path:t}=l.value;return e.map(((e,n)=>({icon:e,desc:s.value[`reaction${n}`],active:r.value[t]===n})))}));let u;return Kn((()=>{Dn((()=>[l.value.serverURL,l.value.path]),(()=>{(async()=>{if(a.value){const{serverURL:e,lang:t,path:n,reaction:r}=l.value,i=new AbortController;u=i.abort.bind(i);const s=await $({serverURL:e,lang:t,paths:[n],type:r.map(((e,t)=>`reaction${t}`)),signal:i.signal});if(Array.isArray(s)||"number"==typeof s)return;o.value=r.map(((e,t)=>s[`reaction${t}`]))}})()}),{immediate:!0})})),Jn((()=>{var e;return null===(e=u)||void 0===e?void 0:e()})),(e,t)=>rn(c).length?(Ur(),Nr("div",ms,[Zr("div",{class:"wl-reaction-title",textContent:q(rn(s).reactionTitle)},null,8,vs),Zr("ul",ys,[(Ur(!0),Nr(Ir,null,rr(rn(c),((e,t)=>{let{active:n,icon:s,desc:a}=e;return Ur(),Nr("li",{key:t,class:V(["wl-reaction-item",{active:n}]),onClick:e=>(async e=>{if(-1===i.value){const{serverURL:t,lang:n,path:s}=l.value,a=r.value[s];i.value=e,void 0!==a&&(await C({serverURL:t,lang:n,path:s,type:`reaction${a}`,action:"desc"}),o.value[a]=Math.max(o.value[a]-1,0)),a!==e&&(await C({serverURL:t,lang:n,path:s,type:`reaction${e}`}),o.value[e]=(o.value[e]||0)+1),a===e?delete r.value[s]:r.value[s]=e,i.value=-1}})(t)},[Zr("div",bs,[Zr("img",{src:s,alt:a},null,8,ks),i.value===t?(Ur(),Vr(rn(Xo),{key:0,class:"wl-reaction-loading"})):(Ur(),Nr("div",{key:1,class:"wl-reaction-votes",textContent:q(o.value[t]||0)},null,8,xs))]),Zr("div",{class:"wl-reaction-text",textContent:q(a)},null,8,_s)],10,ws)})),128))])])):Jr("v-if",!0)}}),Cs=(e,t)=>{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n},Ss=Cs($s,[["__file","ArticleReaction.vue"]]),As=new Map;function Rs(e){var t=As.get(e);t&&t.destroy()}function Es(e){var t=As.get(e);t&&t.update()}var Is=null;"undefined"==typeof window?((Is=function(e){return e}).destroy=function(e){return e},Is.update=function(e){return e}):((Is=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&&!As.has(e)){var t,n=null,r=window.getComputedStyle(e),l=(t=e.value,function(){o({testForHeightReduction:""===t||!e.value.startsWith(t),restoreTextAlign:null}),t=e.value}),i=function(t){e.removeEventListener("autosize:destroy",i),e.removeEventListener("autosize:update",s),e.removeEventListener("input",l),window.removeEventListener("resize",s),Object.keys(t).forEach((function(n){return e.style[n]=t[n]})),As.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,textAlign:e.style.textAlign,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",i),e.addEventListener("autosize:update",s),e.addEventListener("input",l),window.addEventListener("resize",s),e.style.overflowX="hidden",e.style.wordWrap="break-word",As.set(e,{destroy:i,update:s}),s()}function o(t){var l,i,s=t.restoreTextAlign,a=void 0===s?null:s,c=t.testForHeightReduction,u=void 0===c||c,p=r.overflowY;if(0!==e.scrollHeight&&("vertical"===r.resize?e.style.resize="none":"both"===r.resize&&(e.style.resize="horizontal"),u&&(l=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push([e.parentNode,e.parentNode.scrollTop]),e=e.parentNode;return function(){return t.forEach((function(e){var t=e[0],n=e[1];t.style.scrollBehavior="auto",t.scrollTop=n,t.style.scrollBehavior=null}))}}(e),e.style.height=""),i="content-box"===r.boxSizing?e.scrollHeight-(parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)):e.scrollHeight+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),"none"!==r.maxHeight&&i>parseFloat(r.maxHeight)?("hidden"===r.overflowY&&(e.style.overflow="scroll"),i=parseFloat(r.maxHeight)):"hidden"!==r.overflowY&&(e.style.overflow="hidden"),e.style.height=i+"px",a&&(e.style.textAlign=a),l&&l(),n!==i&&(e.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),n=i),p!==r.overflow&&!a)){var d=r.textAlign;"hidden"===r.overflow&&(e.style.textAlign="start"===d?"end":"start"),o({restoreTextAlign:d,testForHeightReduction:!0})}}function s(){o({testForHeightReduction:!0,restoreTextAlign:null})}}(e)})),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Rs),e},Is.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Es),e});var Ls=Is;const zs=["data-index"],Os=["src","title","onClick"];var js=Wn({__name:"ImageWall",props:{items:{default:()=>[]},columnWidth:{default:300},gap:{default:0}},emits:["insert"],setup(e,t){let{expose:n}=t;const r=e;n();let l=null;const i=Yt(null),o=Yt({}),s=Yt([]),a=()=>{const e=Math.floor((i.value.getBoundingClientRect().width+r.gap)/(r.columnWidth+r.gap));return e>0?e:1},c=async e=>{var t;if(e>=r.items.length)return;await kn();const n=Array.from((null===(t=i.value)||void 0===t?void 0:t.children)||[]).reduce(((e,t)=>t.getBoundingClientRect().height0&&void 0!==arguments[0]&&arguments[0];if(s.value.length===a()&&!e)return;var t;s.value=(t=a(),new Array(t).fill(null).map((()=>[])));const n=window.scrollY;await c(0),window.scrollTo({top:n})},p=e=>{o.value[e.target.src]=!0};return Kn((()=>{u(!0),l=new ResizeObserver((()=>{u()})),l.observe(i.value),Dn((()=>[r.items]),(()=>{o.value={},u(!0)})),Dn((()=>[r.columnWidth,r.gap]),(()=>{u()}))})),Gn((()=>l.unobserve(i.value))),(t,n)=>(Ur(),Nr("div",{ref_key:"wall",ref:i,class:"wl-gallery",style:U({gap:`${e.gap}px`})},[(Ur(!0),Nr(Ir,null,rr(s.value,((n,r)=>(Ur(),Nr("div",{key:r,class:"wl-gallery-column","data-index":r,style:U({gap:`${e.gap}px`})},[(Ur(!0),Nr(Ir,null,rr(n,(n=>(Ur(),Nr(Ir,{key:n},[o.value[e.items[n].src]?Jr("v-if",!0):(Ur(),Vr(rn(Xo),{key:0,size:36,style:{margin:"20px auto"}})),Zr("img",{class:"wl-gallery-item",src:e.items[n].src,title:e.items[n].title,loading:"lazy",onLoad:p,onClick:r=>t.$emit("insert",`![](${e.items[n].src})`)},null,40,Os)],64)))),128))],12,zs)))),128))],4))}}),Ts=Cs(js,[["__file","ImageWall.vue"]]);const Us={class:"wl-comment"},Ps={key:0,class:"wl-login-info"},Ms={class:"wl-avatar"},Fs=["title"],Ns=["title"],Vs=["src"],Ds=["title","textContent"],Hs={class:"wl-panel"},Bs=["for","textContent"],Ws=["id","onUpdate:modelValue","name","type"],qs=["placeholder"],Zs={class:"wl-preview"},Qs=Zr("hr",null,null,-1),Ks=["innerHTML"],Gs={class:"wl-footer"},Js={class:"wl-actions"},Xs={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},Ys=["title"],ea=["title"],ta=["title"],na=["title"],ra={class:"wl-info"},la={class:"wl-text-number"},ia={key:0},oa=["textContent"],sa=["textContent"],aa=["disabled"],ca=["placeholder"],ua={key:0,class:"wl-loading"},pa={key:0,class:"wl-tab-wrapper"},da=["title","onClick"],ha=["src","alt"],fa={key:0,class:"wl-tabs"},ga=["onClick"],ma=["src","alt","title"],va=["title"];var ya=Wn({__name:"CommentBox",props:{edit:{default:null},rootId:{default:""},replyId:{default:""},replyUser:{default:""}},emits:["log","cancelEdit","cancelReply","submit"],setup(e,t){let{expose:n,emit:r}=t;const l=e;n();const i=Fn("config"),o=zi("WALINE_COMMENT_BOX_EDITOR",""),s=zi("WALINE_USER_META",{nick:"",mail:"",link:""}),a=gs(),c=Yt({}),u=Yt(null),p=Yt(null),d=Yt(null),h=Yt(null),f=Yt(null),g=Yt(null),m=Yt(null),v=Yt({tabs:[],map:{}}),y=Yt(0),w=Yt(!1),b=Yt(!1),k=Yt(!1),x=Yt(""),_=Yt(0),$=Ft({loading:!0,list:[]}),C=Yt(0),A=Yt(!1),E=Yt(""),I=Yt(!1),L=Yt(!1),z=hl((()=>i.value.locale)),O=hl((()=>{var e;return Boolean(null===(e=a.value)||void 0===e?void 0:e.token)})),j=hl((()=>!1!==i.value.imageUploader)),T=e=>{const t=u.value,n=t.selectionStart,r=t.selectionEnd||0,l=t.scrollTop;o.value=t.value.substring(0,n)+e+t.value.substring(r,t.value.length),t.focus(),t.selectionStart=n+e.length,t.selectionEnd=n+e.length,t.scrollTop=l},U=e=>{const t=e.key;(e.ctrlKey||e.metaKey)&&"Enter"===t&&D()},P=e=>{const t=`![${i.value.locale.uploading} ${e.name}]()`;return T(t),Promise.resolve().then((()=>i.value.imageUploader(e))).then((n=>{o.value=o.value.replace(t,`\r\n![${e.name}](${n})`)})).catch((e=>{alert(e.message),o.value=o.value.replace(t,"")}))},M=e=>{var t;if(null!==(t=e.dataTransfer)&&void 0!==t&&t.items){const t=Ji(e.dataTransfer.items);t&&j.value&&(P(t),e.preventDefault())}},F=e=>{if(e.clipboardData){const t=Ji(e.clipboardData.items);t&&j.value&&P(t)}},N=()=>{const e=p.value;e.files&&j.value&&P(e.files[0]).then((()=>{e.value=""}))},D=async()=>{var e,t,n;const{serverURL:p,lang:d,login:h,wordLimit:f,requiredMeta:g}=i.value;let m="";i.value.recaptchaV3Key&&(m=await(e=>{const t=hs[e]??(hs[e]=ls.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:e=>t.then((t=>t.execute(e)))}})(i.value.recaptchaV3Key).execute("social"));const y=await(async()=>{if(!navigator)return"";const{userAgentData:e}=navigator;let t=navigator.userAgent;if(!e||"Windows"!==e.platform)return t;const{platformVersion:n}=await e.getHighEntropyValues(["platformVersion"]);return n?(parseInt(n.split(".")[0])>=13&&(t=t.replace("Windows NT 10.0","Windows NT 11.0")),t):t})(),w={comment:E.value,nick:s.value.nick,mail:s.value.mail,link:s.value.link,url:i.value.path,recaptchaV3:m,ua:y};if(null!==(e=a.value)&&void 0!==e&&e.token)w.nick=a.value.display_name,w.mail=a.value.email,w.link=a.value.url;else{var b,k;if("force"===h)return;if(g.indexOf("nick")>-1&&!w.nick)return null!==(b=c.value.nick)&&void 0!==b&&b.focus(),alert(z.value.nickError);if(g.indexOf("mail")>-1&&!w.mail||w.mail&&!/^\w(?:[\w._-]*\w)?@(?:\w(?:[\w-]*\w)?\.)*\w+$/.exec(w.mail))return null!==(k=c.value.mail)&&void 0!==k&&k.focus(),alert(z.value.mailError);w.nick||(w.nick=z.value.anonymous)}if(!w.comment)return void(null===(t=u.value)||void 0===t||t.focus());if(!A.value)return alert(z.value.wordHint.replace("$0",f[0].toString()).replace("$1",f[1].toString()).replace("$2",_.value.toString()));w.comment=Fo(w.comment,v.value.map),l.replyId&&l.rootId&&(w.pid=l.replyId,w.rid=l.rootId,w.at=l.replyUser),I.value=!0;const $={serverURL:p,lang:d,token:null===(n=a.value)||void 0===n?void 0:n.token,comment:w};(l.edit?S({objectId:l.edit.objectId,...$}):(e=>{let{serverURL:t,lang:n,token:r,comment:l}=e;const i={"Content-Type":"application/json"};return r&&(i.Authorization=`Bearer ${r}`),fetch(`${t}/comment?lang=${n}`,{method:"POST",headers:i,body:JSON.stringify(l)}).then((e=>e.json()))})($)).then((e=>{var t;if(I.value=!1,e.errmsg)return alert(e.errmsg);r("submit",e.data),o.value="",x.value="",l.replyId&&r("cancelReply"),(null===(t=l.edit)||void 0===t?void 0:t.objectId)&&r("cancelEdit")})).catch((e=>{I.value=!1,alert(e.message)}))},H=e=>{e.preventDefault();const{lang:t,serverURL:n}=i.value;(e=>{let{lang:t,serverURL:n}=e;const r=(window.innerWidth-450)/2,l=(window.innerHeight-450)/2,i=window.open(`${n}/ui/login?lng=${encodeURIComponent(t)}`,"_blank",`width=450,height=450,left=${r},top=${l},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);return null!=i&&i.postMessage({type:"TOKEN",data:null},"*"),new Promise((e=>{const t=n=>{let{data:r}=n;r&&"object"==typeof r&&"userInfo"===r.type&&r.data.token&&(null!=i&&i.close(),window.removeEventListener("message",t),e(r.data))};window.addEventListener("message",t)}))})({serverURL:n,lang:t}).then((e=>{a.value=e,(e.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(e)),r("log")}))},B=()=>{a.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),r("log")},W=e=>{e.preventDefault();const{lang:t,serverURL:n}=i.value,r=(window.innerWidth-800)/2,l=(window.innerHeight-800)/2,o=new URLSearchParams({lng:t,token:a.value.token}),s=window.open(`${n}/ui/profile?${o.toString()}`,"_blank",`width=800,height=800,left=${r},top=${l},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);null==s||s.postMessage({type:"TOKEN",data:a.value.token},"*")},Z=e=>{var t,n,r,l;null!==(t=d.value)&&void 0!==t&&t.contains(e.target)||null!==(n=h.value)&&void 0!==n&&n.contains(e.target)||(w.value=!1),(null===(r=f.value)||void 0===r?void 0:r.contains(e.target))||(null===(l=g.value)||void 0===l?void 0:l.contains(e.target))||(b.value=!1)},Q=async e=>{var t;const{scrollTop:n,clientHeight:r,scrollHeight:l}=e.target,o=(r+n)/l,s=i.value.search,a=(null===(t=m.value)||void 0===t?void 0:t.value)||"";o<.9||$.loading||L.value||($.loading=!0,(s.more&&$.list.length?await s.more(a,$.list.length):await s.search(a)).length?$.list=[...$.list,...s.more&&$.list.length?await s.more(a,$.list.length):await s.search(a)]:L.value=!0,$.loading=!1,setTimeout((()=>{e.target.scrollTop=n}),50))},K=function(e){return ei(function(e){let t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=Xl;const i=e=>{clearTimeout(e),l(),l=Xl};return o=>{const s=Yl(e),a=Yl(r.maxWait);return t&&i(t),s<=0||void 0!==a&&a<=0?(n&&(i(n),n=null),Promise.resolve(o())):new Promise(((e,c)=>{l=r.rejectOnCancel?c:e,a&&!n&&(n=setTimeout((()=>{t&&i(t),n=null,e(o())}),a)),t=setTimeout((()=>{n&&i(n),n=null,e(o())}),s)}))}}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),e)}((e=>{$.list=[],L.value=!1,Q(e)}),300);Dn([i,_],(e=>{let[t,n]=e;const{wordLimit:r}=t;r?nr[1]?(C.value=r[1],A.value=!1):(C.value=r[1],A.value=!0):(C.value=0,A.value=!0)}),{immediate:!0});const G=e=>{let{data:t}=e;t&&"profile"===t.type&&(a.value={...a.value,...t.data},[localStorage,sessionStorage].filter((e=>e.getItem("WALINE_USER"))).forEach((e=>e.setItem("WALINE_USER",JSON.stringify(a)))))};return Kn((()=>{var e;document.body.addEventListener("click",Z),window.addEventListener("message",G),null!==(e=l.edit)&&void 0!==e&&e.objectId&&(o.value=l.edit.orig),Dn(b,(async e=>{if(!e)return;const t=i.value.search;m.value&&(m.value.value=""),$.loading=!0,$.list=t.default?await t.default():await t.search(""),$.loading=!1})),Dn((()=>o.value),(e=>{const{highlighter:t,texRenderer:n}=i.value;E.value=e,x.value=((e,t)=>{let{emojiMap:n,highlighter:r,texRenderer:l}=t;if(To.setOptions({highlight:r||void 0,breaks:!0,smartLists:!0,smartypants:!0}),l){const e=(e=>[{name:"blockMath",level:"block",tokenizer(t){const n=Mo.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!0,n[1])}}},{name:"inlineMath",level:"inline",start(e){const t=e.search(Uo);return-1!==t?t:e.length},tokenizer(t){const n=Po.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!1,n[1])}}}])(l);To.use({extensions:e})}return To.parse(Fo(e,n))})(e,{emojiMap:v.value.map,highlighter:t,texRenderer:n}),_.value=(e=>{var t,n;return((null===(t=(e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu))(e))||void 0===t?void 0:t.reduce(((e,t)=>e+(""===t.trim()?0:t.trim().split(/\s+/u).length)),0))||0)+((null===(n=(e=>e.match(/[\u4E00-\u9FD5]/gu))(e))||void 0===n?void 0:n.length)||0)})(e),e?Ls(u.value):Ls.destroy(u.value)}),{immediate:!0}),Dn((()=>i.value.emoji),(e=>{return(t=e,Promise.all(t.map((e=>"string"==typeof e?(e=>{const t=zi("WALINE_EMOJI",{}),n=Boolean(/@[0-9]+\.[0-9]+\.[0-9]+/.test(e));if(n){const n=t.value[e];if(n)return Promise.resolve(n)}return fetch(`${e}/info.json`).then((e=>e.json())).then((r=>{const l={folder:e,...r};return n&&(t.value[e]=l),l}))})(R(e)):Promise.resolve(e)))).then((e=>{const t={tabs:[],map:{}};return e.forEach((e=>{const{name:n,folder:r,icon:l,prefix:i,type:o,items:s}=e;t.tabs.push({name:n,icon:Zi(l,r,i,o),items:s.map((e=>{const n=`${i||""}${e}`;return t.map[n]=Zi(e,r,i,o),n}))})})),t}))).then((e=>{v.value=e}));var t}),{immediate:!0})})),Jn((()=>{document.body.removeEventListener("click",Z),window.removeEventListener("message",G)})),(t,n)=>{var r,l;return Ur(),Nr("div",Us,["disable"===rn(i).login||!rn(O)||null!==(r=e.edit)&&void 0!==r&&r.objectId?Jr("v-if",!0):(Ur(),Nr("div",Ps,[Zr("div",Ms,[Zr("button",{type:"submit",class:"wl-logout-btn",title:rn(z).logout,onClick:B},[Qr(rn(Do),{size:14})],8,Fs),Zr("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:rn(z).profile,onClick:W},[Zr("img",{src:rn(a).avatar,alt:"avatar"},null,8,Vs)],8,Ns)]),Zr("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:rn(z).profile,onClick:W,textContent:q(rn(a).display_name)},null,8,Ds)])),Zr("div",Hs,["force"!==rn(i).login&&rn(i).meta.length&&!rn(O)?(Ur(),Nr("div",{key:0,class:V(["wl-header",`item${rn(i).meta.length}`])},[(Ur(!0),Nr(Ir,null,rr(rn(i).meta,(e=>(Ur(),Nr("div",{key:e,class:"wl-header-item"},[Zr("label",{for:`wl-${e}`,textContent:q(rn(z)[e]+(rn(i).requiredMeta.includes(e)||!rn(i).requiredMeta.length?"":`(${rn(z).optional})`))},null,8,Bs),Xn(Zr("input",{id:`wl-${e}`,ref_for:!0,ref:t=>{t&&(c.value[e]=t)},"onUpdate:modelValue":t=>rn(s)[e]=t,class:V(["wl-input",`wl-${e}`]),name:e,type:"mail"===e?"email":"text"},null,10,Ws),[[Hl,rn(s)[e]]])])))),128))],2)):Jr("v-if",!0),Xn(Zr("textarea",{id:"wl-edit",ref_key:"editorRef",ref:u,"onUpdate:modelValue":n[0]||(n[0]=e=>Xt(o)?o.value=e:null),class:"wl-editor",placeholder:e.replyUser?`@${e.replyUser}`:rn(z).placeholder,onKeydown:U,onDrop:M,onPaste:F},null,40,qs),[[Tl,rn(o)]]),Xn(Zr("div",Zs,[Qs,Zr("h4",null,q(rn(z).preview)+":",1),Zr("div",{class:"wl-content",innerHTML:x.value},null,8,Ks)],512),[[Wl,k.value]]),Zr("div",Gs,[Zr("div",Js,[Zr("a",Xs,[Qr(rn(Qo))]),Xn(Zr("button",{ref_key:"emojiButtonRef",ref:d,type:"button",class:V(["wl-action",{active:w.value}]),title:rn(z).emoji,onClick:n[1]||(n[1]=e=>w.value=!w.value)},[Qr(rn(Bo))],10,Ys),[[Wl,v.value.tabs.length]]),rn(i).search?(Ur(),Nr("button",{key:0,ref_key:"gifButtonRef",ref:f,type:"button",class:V(["wl-action",{active:b.value}]),title:rn(z).gif,onClick:n[2]||(n[2]=e=>b.value=!b.value)},[Qr(rn(Yo))],10,ea)):Jr("v-if",!0),Zr("input",{id:"wl-image-upload",ref_key:"imageUploadRef",ref:p,class:"upload",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:N},null,544),rn(j)?(Ur(),Nr("label",{key:1,for:"wl-image-upload",class:"wl-action",title:rn(z).uploadImage},[Qr(rn(Wo))],8,ta)):Jr("v-if",!0),Zr("button",{type:"button",class:V(["wl-action",{active:k.value}]),title:rn(z).preview,onClick:n[3]||(n[3]=e=>k.value=!k.value)},[Qr(rn(Zo))],10,na)]),Zr("div",ra,[Zr("div",la,[Gr(q(_.value)+" ",1),rn(i).wordLimit?(Ur(),Nr("span",ia,[Gr("  /  "),Zr("span",{class:V({illegal:!A.value}),textContent:q(C.value)},null,10,oa)])):Jr("v-if",!0),Gr("  "+q(rn(z).word),1)]),"disable"===rn(i).login||rn(O)?Jr("v-if",!0):(Ur(),Nr("button",{key:0,type:"button",class:"wl-btn",onClick:H,textContent:q(rn(z).login)},null,8,sa)),"force"!==rn(i).login||rn(O)?(Ur(),Nr("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:I.value,onClick:D},[I.value?(Ur(),Vr(rn(Xo),{key:0,size:16})):(Ur(),Nr(Ir,{key:1},[Gr(q(rn(z).submit),1)],64))],8,aa)):Jr("v-if",!0)]),Zr("div",{ref_key:"gifPopupRef",ref:g,class:V(["wl-gif-popup",{display:b.value}])},[Zr("input",{ref_key:"gifSearchInputRef",ref:m,type:"text",placeholder:rn(z).gifSearchPlaceholder,onInput:n[4]||(n[4]=function(){return rn(K)&&rn(K)(...arguments)})},null,40,ca),Qr(Ts,{items:$.list,"column-width":200,gap:6,onInsert:n[5]||(n[5]=e=>T(e)),onScroll:Q},null,8,["items"]),$.loading?(Ur(),Nr("div",ua,[Qr(rn(Xo),{size:30})])):Jr("v-if",!0)],2),Zr("div",{ref_key:"emojiPopupRef",ref:h,class:V(["wl-emoji-popup",{display:w.value}])},[(Ur(!0),Nr(Ir,null,rr(v.value.tabs,((e,t)=>(Ur(),Nr(Ir,{key:e.name},[t===y.value?(Ur(),Nr("div",pa,[(Ur(!0),Nr(Ir,null,rr(e.items,(e=>(Ur(),Nr("button",{key:e,type:"button",title:e,onClick:t=>T(`:${e}:`)},[w.value?(Ur(),Nr("img",{key:0,class:"wl-emoji",src:v.value.map[e],alt:e,loading:"lazy",referrerPolicy:"no-referrer"},null,8,ha)):Jr("v-if",!0)],8,da)))),128))])):Jr("v-if",!0)],64)))),128)),v.value.tabs.length>1?(Ur(),Nr("div",fa,[(Ur(!0),Nr(Ir,null,rr(v.value.tabs,((e,t)=>(Ur(),Nr("button",{key:e.name,type:"button",class:V(["wl-tab",{active:y.value===t}]),onClick:e=>y.value=t},[Zr("img",{class:"wl-emoji",src:e.icon,alt:e.name,title:e.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,ma)],10,ga)))),128))])):Jr("v-if",!0)],2)])]),e.replyId||null!==(l=e.edit)&&void 0!==l&&l.objectId?(Ur(),Nr("button",{key:1,type:"button",class:"wl-close",title:rn(z).cancelReply,onClick:n[6]||(n[6]=n=>t.$emit(e.replyId?"cancelReply":"cancelEdit"))},[Qr(rn(Do),{size:24})],8,va)):Jr("v-if",!0)])}}}),wa=Cs(ya,[["__file","CommentBox.vue"]]);const ba=["id"],ka={class:"wl-user","aria-hidden":"true"},xa=["src"],_a={class:"wl-card"},$a={class:"wl-head"},Ca=["href"],Sa={key:1,class:"wl-nick"},Aa=["textContent"],Ra=["textContent"],Ea=["textContent"],Ia=["textContent"],La=["textContent"],za={class:"wl-comment-actions"},Oa=["title"],ja=["textContent"],Ta=["title"],Ua={class:"wl-meta","aria-hidden":"true"},Pa=["data-value","textContent"],Ma=["data-value","textContent"],Fa=["data-value","textContent"],Na=["innerHTML"],Va={key:1,class:"wl-admin-actions"},Da={class:"wl-comment-status"},Ha=["disabled","onClick","textContent"],Ba={key:3,class:"wl-quote"};var Wa=Cs(Wn({__name:"CommentCard",props:{comment:null,edit:{default:null},rootId:null,reply:{default:null}},emits:["log","submit","delete","edit","like","status","sticky","reply"],setup(e){const t=e,n=["approved","waiting","spam"],r=Fn("config"),l=ts(),i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=Yt(new Date),l=()=>r.value=new Date,i="requestAnimationFrame"===n?function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{immediate:n=!0,window:r=yi}=t,l=Yt(!1);let i=0,o=null;function s(t){l.value&&r&&(e({delta:t-i,timestamp:t}),i=t,o=r.requestAnimationFrame(s))}function a(){!l.value&&r&&(l.value=!0,o=r.requestAnimationFrame(s))}function c(){l.value=!1,null!=o&&r&&(r.cancelAnimationFrame(o),o=null)}return n&&a(),ni(c),{isActive:Nt(l),pause:c,resume:a}}(l,{immediate:!0}):function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{immediate:r=!0,immediateCallback:l=!1}=n;let i=null;const o=Yt(!1);function s(){i&&(clearInterval(i),i=null)}function a(){o.value=!1,s()}function c(){const n=Yl(t);n<=0||(o.value=!0,l&&e(),s(),i=setInterval(e,n))}return r&&Kl&&c(),(Xt(t)||Gl(t))&&ni(Dn(t,(()=>{o.value&&Kl&&c()}))),ni(a),{isActive:o,pause:a,resume:c}}(l,n,{immediate:!0});return t?Ni({now:r},i):r}(),o=gs(),s=hl((()=>r.value.locale)),a=hl((()=>{const{link:e}=t.comment;return e?E(e)?e:`https://${e}`:""})),c=hl((()=>l.value.includes(t.comment.objectId))),u=hl((()=>((e,t,n)=>{if(!e)return"";const r="string"==typeof e?new Date(-1!==e.indexOf(" ")?e.replace(/-/g,"/"):e):e,l=t.getTime()-r.getTime(),i=Math.floor(l/864e5);if(0===i){const e=l%864e5,t=Math.floor(e/36e5);if(0===t){const t=e%36e5,r=Math.floor(t/6e4);if(0===r){const e=t%6e4;return`${Math.round(e/1e3)} ${n.seconds}`}return`${r} ${n.minutes}`}return`${t} ${n.hours}`}return i<0?n.now:i<8?`${i} ${n.days}`:(e=>{const t=j(e.getDate(),2),n=j(e.getMonth()+1,2);return`${j(e.getFullYear(),2)}-${n}-${t}`})(r)})(t.comment.insertedAt,i.value,s.value))),p=hl((()=>"administrator"===o.value.type)),d=hl((()=>t.comment.user_id&&o.value.objectId===t.comment.user_id)),h=hl((()=>{var e;return t.comment.objectId===(null===(e=t.reply)||void 0===e?void 0:e.objectId)})),f=hl((()=>{var e;return t.comment.objectId===(null===(e=t.edit)||void 0===e?void 0:e.objectId)}));return(t,r)=>{var l;const i=function(e,t){return function(e,t){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const r=zn||ll;if(r){const l=r.type;if(e===er){const e=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return ce(e)?e.displayName||e.name:e.name||t&&e.__name}(l,!1);if(e&&(e===t||e===xe(t)||e===Ce(xe(t))))return l}const i=nr(r[e]||l[e],t)||nr(r.appContext[e],t);return!i&&n?l:i}}(er,e,!0,t)||e}("CommentCard",!0);return Ur(),Nr("div",{id:e.comment.objectId,class:"wl-card-item"},[Zr("div",ka,[e.comment.avatar?(Ur(),Nr("img",{key:0,src:e.comment.avatar},null,8,xa)):Jr("v-if",!0),e.comment.type?(Ur(),Vr(rn(Jo),{key:1})):Jr("v-if",!0)]),Zr("div",_a,[Zr("div",$a,[rn(a)?(Ur(),Nr("a",{key:0,class:"wl-nick",href:rn(a),target:"_blank",rel:"noopener noreferrer"},q(e.comment.nick),9,Ca)):(Ur(),Nr("span",Sa,q(e.comment.nick),1)),"administrator"===e.comment.type?(Ur(),Nr("span",{key:2,class:"wl-badge",textContent:q(rn(s).admin)},null,8,Aa)):Jr("v-if",!0),e.comment.label?(Ur(),Nr("span",{key:3,class:"wl-badge",textContent:q(e.comment.label)},null,8,Ra)):Jr("v-if",!0),e.comment.sticky?(Ur(),Nr("span",{key:4,class:"wl-badge",textContent:q(rn(s).sticky)},null,8,Ea)):Jr("v-if",!0),void 0!==e.comment.level&&e.comment.level>=0?(Ur(),Nr("span",{key:5,class:V(`wl-badge level${e.comment.level}`),textContent:q(rn(s)[`level${e.comment.level}`]||`Level ${e.comment.level}`)},null,10,Ia)):Jr("v-if",!0),Zr("span",{class:"wl-time",textContent:q(rn(u))},null,8,La),Zr("div",za,[rn(p)||rn(d)?(Ur(),Nr("button",{key:0,type:"button",class:"wl-edit",onClick:r[0]||(r[0]=()=>t.$emit("edit",e.comment))},[Qr(rn(Go))])):Jr("v-if",!0),rn(p)||rn(d)?(Ur(),Nr("button",{key:1,type:"button",class:"wl-delete",onClick:r[1]||(r[1]=n=>t.$emit("delete",e.comment))},[Qr(rn(Ho))])):Jr("v-if",!0),Zr("button",{type:"button",class:"wl-like",title:rn(c)?rn(s).cancelLike:rn(s).like,onClick:r[2]||(r[2]=n=>t.$emit("like",e.comment))},[Qr(rn(qo),{active:rn(c)},null,8,["active"]),"like"in e.comment?(Ur(),Nr("span",{key:0,textContent:q(e.comment.like)},null,8,ja)):Jr("v-if",!0)],8,Oa),Zr("button",{type:"button",class:V(["wl-reply",{active:rn(h)}]),title:rn(h)?rn(s).cancelReply:rn(s).reply,onClick:r[3]||(r[3]=n=>t.$emit("reply",rn(h)?null:e.comment))},[Qr(rn(Ko))],10,Ta)])]),Zr("div",Ua,[e.comment.addr?(Ur(),Nr("span",{key:0,class:"wl-addr","data-value":e.comment.addr,textContent:q(e.comment.addr)},null,8,Pa)):Jr("v-if",!0),e.comment.browser?(Ur(),Nr("span",{key:1,class:"wl-browser","data-value":e.comment.browser,textContent:q(e.comment.browser)},null,8,Ma)):Jr("v-if",!0),e.comment.os?(Ur(),Nr("span",{key:2,class:"wl-os","data-value":e.comment.os,textContent:q(e.comment.os)},null,8,Fa)):Jr("v-if",!0)]),rn(f)?Jr("v-if",!0):(Ur(),Nr("div",{key:0,class:"wl-content",innerHTML:e.comment.comment},null,8,Na)),rn(p)&&!rn(f)?(Ur(),Nr("div",Va,[Zr("span",Da,[(Ur(),Nr(Ir,null,rr(n,(n=>Zr("button",{key:n,type:"submit",class:V(`wl-btn wl-${n}`),disabled:e.comment.status===n,onClick:r=>t.$emit("status",{status:n,comment:e.comment}),textContent:q(rn(s)[n])},null,10,Ha))),64))]),rn(p)&&!e.comment.rid?(Ur(),Nr("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:r[4]||(r[4]=n=>t.$emit("sticky",e.comment))},q(e.comment.sticky?rn(s).unsticky:rn(s).sticky),1)):Jr("v-if",!0)])):Jr("v-if",!0),rn(h)||rn(f)?(Ur(),Nr("div",{key:2,class:V({"wl-reply-wrapper":rn(h),"wl-edit-wrapper":rn(f)})},[Qr(wa,{edit:e.edit,"reply-id":null===(l=e.reply)||void 0===l?void 0:l.objectId,"reply-user":e.comment.nick,"root-id":e.rootId,onLog:r[5]||(r[5]=e=>t.$emit("log")),onCancelReply:r[6]||(r[6]=e=>t.$emit("reply",null)),onCancelEdit:r[7]||(r[7]=e=>t.$emit("edit",null)),onSubmit:r[8]||(r[8]=e=>t.$emit("submit",e))},null,8,["edit","reply-id","reply-user","root-id"])],2)):Jr("v-if",!0),e.comment.children?(Ur(),Nr("div",Ba,[(Ur(!0),Nr(Ir,null,rr(e.comment.children,(n=>(Ur(),Vr(i,{key:n.objectId,comment:n,reply:e.reply,edit:e.edit,"root-id":e.rootId,onLog:r[9]||(r[9]=e=>t.$emit("log")),onDelete:r[10]||(r[10]=e=>t.$emit("delete",e)),onEdit:r[11]||(r[11]=e=>t.$emit("edit",e)),onLike:r[12]||(r[12]=e=>t.$emit("like",e)),onReply:r[13]||(r[13]=e=>t.$emit("reply",e)),onStatus:r[14]||(r[14]=e=>t.$emit("status",e)),onSticky:r[15]||(r[15]=e=>t.$emit("sticky",e)),onSubmit:r[16]||(r[16]=e=>t.$emit("submit",e))},null,8,["comment","reply","edit","root-id"])))),128))])):Jr("v-if",!0)])],8,ba)}}}),[["__file","CommentCard.vue"]]);const qa="2.14.9",Za={"data-waline":""},Qa={class:"wl-meta-head"},Ka={class:"wl-count"},Ga=["textContent"],Ja={class:"wl-sort"},Xa=["onClick"],Ya={class:"wl-cards"},ec={key:1,class:"wl-operation"},tc=["textContent"],nc={key:0,class:"wl-loading"},rc=["textContent"],lc={key:2,class:"wl-operation"},ic=["textContent"],oc={key:3,class:"wl-power"},sc=Zr("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1);e.version=qa;var ac=Wn({__name:"WalineComment",props:["serverURL","path","meta","requiredMeta","dark","commentSorting","lang","locale","pageSize","wordLimit","emoji","login","highlighter","texRenderer","imageUploader","search","copyright","recaptchaV3Key","reaction"],setup(e){const t=e,c={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},u=Object.keys(c),p=gs(),h=ts(),f=Yt("loading"),g=Yt(0),m=Yt(1),v=Yt(0),y=hl((()=>(e=>{let{serverURL:t,path:c=location.pathname,lang:u=("undefined"==typeof navigator?"en-US":navigator.language),locale:p,emoji:h=r,meta:f=["nick","mail","link"],requiredMeta:g=[],dark:m=!1,pageSize:v=10,wordLimit:y,imageUploader:w,highlighter:b,texRenderer:x,copyright:_=!0,login:$="enable",search:C,reaction:S,recaptchaV3Key:R="",commentSorting:E="latest",...O}=e;return{serverURL:I(t),path:A(c),locale:{...k[u]||k[l],..."object"==typeof p?p:{}},wordLimit:L(y),meta:n(f),requiredMeta:n(g),imageUploader:z(w,o),highlighter:z(b,d),texRenderer:z(x,s),lang:Object.keys(k).includes(u)?u:"en-US",dark:m,emoji:"boolean"==typeof h?h?r:[]:h,pageSize:v,login:$,copyright:_,search:!1!==C&&("object"==typeof C?C:a(u)),recaptchaV3Key:R,reaction:Array.isArray(S)?S:!0===S?i:[],commentSorting:E,...O}})(t))),w=Yt(y.value.commentSorting),b=Yt([]),x=Yt(null),$=Yt(null),C=hl((()=>{return"string"==typeof(e=y.value.dark)?"auto"===e?`@media(prefers-color-scheme:dark){body${O}}`:`${e}${O}`:!0===e?`:root${O}`:"";var e})),R=hl((()=>y.value.locale));let E;!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Yt(!1),{document:r=wi,immediate:l=!0,manual:i=!1,id:o="vueuse_styletag_"+ ++Vi}=t,s=Yt(e);let a=()=>{};const c=()=>{if(!r)return;const e=r.getElementById(o)||r.createElement("style");e.isConnected||(e.type="text/css",e.id=o,t.media&&(e.media=t.media),r.head.appendChild(e)),n.value||(a=Dn(s,(t=>{e.textContent=t}),{immediate:!0}),n.value=!0)},u=()=>{r&&n.value&&(a(),r.head.removeChild(r.getElementById(o)),n.value=!1)};l&&!i&&function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];il()?Kn(e):t?e():kn(e)}(c),i||ni(u),Nt(n)}(C);const j=e=>{var t,n;const{serverURL:r,path:l,pageSize:i}=y.value,o=new AbortController;f.value="loading",null!==(t=E)&&void 0!==t&&t(),(e=>{let{serverURL:t,lang:n,path:r,page:l,pageSize:i,sortBy:o,signal:s,token:a}=e;const c={};return a&&(c.Authorization=`Bearer ${a}`),fetch(`${t}/comment?path=${encodeURIComponent(r)}&pageSize=${i}&page=${l}&lang=${n}&sortBy=${o}`,{signal:s,headers:c}).then((e=>e.json())).then((e=>_(e,"Get comment data")))})({serverURL:r,lang:y.value.lang,path:l,pageSize:i,sortBy:c[w.value],page:e,signal:o.signal,token:null===(n=p.value)||void 0===n?void 0:n.token}).then((t=>{f.value="success",g.value=t.count,b.value.push(...t.data),m.value=e,v.value=t.totalPages})).catch((e=>{"AbortError"!==e.name&&(console.error(e.message),f.value="error")})),E=o.abort.bind(o)},T=()=>j(m.value+1),U=()=>{g.value=0,b.value=[],j(1)},P=e=>{x.value=e},M=e=>{$.value=e},F=e=>{if($.value)$.value.comment=e.comment,$.value.orig=e.orig;else if(e.rid){const t=b.value.find((t=>{let{objectId:n}=t;return n===e.rid}));if(!t)return;Array.isArray(t.children)||(t.children=[]),t.children.push(e)}else b.value.unshift(e)},N=async e=>{var t;let{comment:n,status:r}=e;if(n.status===r)return;const{serverURL:l,lang:i}=y.value;await S({serverURL:l,lang:i,token:null===(t=p.value)||void 0===t?void 0:t.token,objectId:n.objectId,comment:{status:r}}),n.status=r},D=async e=>{var t;if(e.rid)return;const{serverURL:n,lang:r}=y.value;await S({serverURL:n,lang:r,token:null===(t=p.value)||void 0===t?void 0:t.token,objectId:e.objectId,comment:{sticky:e.sticky?0:1}}),e.sticky=!e.sticky},H=async e=>{var t;let{objectId:n}=e;if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:r,lang:l}=y.value;await(e=>{let{serverURL:t,lang:n,token:r,objectId:l}=e;return fetch(`${t}/comment/${l}?lang=${n}`,{method:"DELETE",headers:{Authorization:`Bearer ${r}`}}).then((e=>e.json())).then((e=>_(e,"Delete comment")))})({serverURL:r,lang:l,token:null===(t=p.value)||void 0===t?void 0:t.token,objectId:n}),b.value.some(((e,t)=>e.objectId===n?(b.value=b.value.filter(((e,n)=>n!==t)),!0):e.children.some(((r,l)=>r.objectId===n&&(b.value[t].children=e.children.filter(((e,t)=>t!==l)),!0)))))},B=async e=>{var t;const{serverURL:n,lang:r}=y.value,{objectId:l}=e,i=h.value.includes(l);await S({serverURL:n,lang:r,objectId:l,token:null===(t=p.value)||void 0===t?void 0:t.token,comment:{like:!i}}),i?h.value=h.value.filter((e=>e!==l)):(h.value=[...h.value,l],h.value.length>50&&(h.value=h.value.slice(-50))),e.like=(e.like||0)+(i?-1:1)};return function(e,t){if(ll){let e=ll.provides;const n=ll.parent&&ll.parent.provides;n===e&&(e=ll.provides=Object.create(n)),e.config=t}}(0,y),Kn((()=>{Dn((()=>[t.serverURL,t.path]),(()=>U()),{immediate:!0})})),Jn((()=>{var e;return null===(e=E)||void 0===e?void 0:e()})),(e,t)=>(Ur(),Nr("div",Za,[Qr(Ss),x.value?Jr("v-if",!0):(Ur(),Vr(wa,{key:0,onLog:U,onSubmit:F})),Zr("div",Qa,[Zr("div",Ka,[g.value?(Ur(),Nr("span",{key:0,class:"wl-num",textContent:q(g.value)},null,8,Ga)):Jr("v-if",!0),Gr(" "+q(rn(R).comment),1)]),Zr("ul",Ja,[(Ur(!0),Nr(Ir,null,rr(rn(u),(e=>(Ur(),Nr("li",{key:e,class:V([e===w.value?"active":""]),onClick:t=>(e=>{w.value!==e&&(w.value=e,U())})(e)},q(rn(R)[e]),11,Xa)))),128))])]),Zr("div",Ya,[(Ur(!0),Nr(Ir,null,rr(b.value,(e=>(Ur(),Vr(Wa,{key:e.objectId,"root-id":e.objectId,comment:e,reply:x.value,edit:$.value,onLog:U,onReply:P,onEdit:M,onSubmit:F,onStatus:N,onDelete:H,onSticky:D,onLike:B},null,8,["root-id","comment","reply","edit"])))),128))]),"error"===f.value?(Ur(),Nr("div",ec,[Zr("button",{type:"button",class:"wl-btn",onClick:U,textContent:q(rn(R).refresh)},null,8,tc)])):(Ur(),Nr(Ir,{key:2},["loading"===f.value?(Ur(),Nr("div",nc,[Qr(rn(Xo),{size:30})])):b.value.length?m.value{t.forEach(((t,n)=>{t.innerText=e[n].toString()}))},pc=e=>{let{serverURL:t,path:n=window.location.pathname,selector:r=".waline-pageview-count",update:l=!0,lang:i=navigator.language}=e;const o=new AbortController,s=Array.from(document.querySelectorAll(r)),a=e=>{const t=No(e);return null!==t&&n!==t},c=e=>(e=>{let{serverURL:t,lang:n,paths:r,signal:l}=e;return $({serverURL:t,lang:n,paths:r,type:["time"],signal:l}).then((e=>Array.isArray(e)?e:[e]))})({serverURL:I(t),paths:e.map((e=>No(e)||n)),lang:i,signal:o.signal}).then((t=>uc(t,e))).catch(Qi);if(l){const e=s.filter((e=>!a(e))),r=s.filter(a);(u={serverURL:I(t),path:n,lang:i},C({...u,type:"time",action:"inc"})).then((t=>uc(new Array(e.length).fill(t),e))),r.length&&c(r)}else c(s);var u;return o.abort.bind(o)};e.UserList=e=>{let{el:t,serverURL:n,count:r,locale:i,lang:o=navigator.language,mode:s="list"}=e;const a=Ki(t),c=new AbortController;return(e=>{let{serverURL:t,signal:n,pageSize:r,lang:l}=e;return fetch(`${t}/user?pageSize=${r}&lang=${l}`,{signal:n}).then((e=>e.json())).then((e=>_(e,"user list"))).then((e=>e.data))})({serverURL:n,pageSize:r,lang:o,signal:c.signal}).then((e=>a&&e.length?(i={...k[o]||k[l],..."object"==typeof i?i:{}},a.innerHTML=`
    `,{users:e,destroy:()=>{c.abort(),a.innerHTML=""}}):{users:e,destroy:()=>c.abort()}))},e.RecentComments=e=>{var t;let{el:n,serverURL:r,count:l,lang:i=navigator.language}=e;const o=gs(),s=Ki(n),a=new AbortController;return(e=>{let{serverURL:t,lang:n,count:r,signal:l,token:i}=e;const o={};return i&&(o.Authorization=`Bearer ${i}`),fetch(`${t}/comment?type=recent&count=${r}&lang=${n}`,{signal:l,headers:o}).then((e=>e.json()))})({serverURL:r,count:l,lang:i,signal:a.signal,token:null===(t=o.value)||void 0===t?void 0:t.token}).then((e=>s&&e.length?(s.innerHTML=`
      ${e.map((e=>`
    • ${e.nick}:${e.comment}
    • `)).join("")}
    `,{comments:e,destroy:()=>{a.abort(),s.innerHTML=""}}):{comments:e,destroy:()=>a.abort()}))},e.init=e=>{let{el:t="#waline",path:n=window.location.pathname,comment:r=!1,pageview:l=!1,...i}=e;const o=t?Ki(t):null;if(t&&!o)throw new Error("Option 'el' do not match any domElement!");if(!i.serverURL)throw new Error("Option 'serverURL' is missing!");const s=Ft({...i}),a=Ft({comment:r,pageview:l,path:n}),c=o?function(){const e=(Ql||(Ql=Ar(Zl))).createApp(...arguments),{mount:t}=e;return e.mount=n=>{const r=function(e){return ue(e)?document.querySelector(e):e}(n);if(!r)return;const l=e._component;ce(l)||l.render||l.template||(l.template=r.innerHTML),r.innerHTML="";const i=t(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},e}((()=>fl(cc,{path:a.path,...s}))):null;c&&c.mount(o);const u=Nn((()=>{a.comment&&Vo({serverURL:s.serverURL,path:a.path,selector:"string"==typeof a.comment?a.comment:void 0})})),p=Nn((()=>{a.pageview&&pc({serverURL:s.serverURL,path:a.path,selector:"string"==typeof a.pageview?a.pageview:void 0})}));return{el:o,update:function(){let{comment:e,pageview:t,path:n=window.location.pathname,...r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.entries(r).forEach((e=>{let[t,n]=e;s[t]=n})),a.path=n,void 0!==e&&(a.comment=e),void 0!==t&&(a.pageview=t)},destroy:()=>{null!=c&&c.unmount(),u(),p()}}},e.pageviewCount=pc})); +var go=Object.defineProperty;var mo=(e,t,n)=>t in e?go(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var $i=(e,t,n)=>mo(e,typeof t!="symbol"?t+"":t,n);const Si={"Content-Type":"application/json"},rt=e=>`${e.replace(/\/?$/,"/")}api/`,_t=(e,t="")=>{if(typeof e=="object"&&e.errno)throw new TypeError(`${t} failed with ${e.errno}: ${e.errmsg}`);return e},kr=({serverURL:e,lang:t,paths:n,type:r,signal:i})=>fetch(`${rt(e)}article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(r.join(","))}&lang=${t}`,{signal:i}).then(s=>s.json()).then(s=>_t(s,"Get counter").data),On=({serverURL:e,lang:t,path:n,type:r,action:i})=>fetch(`${rt(e)}article?lang=${t}`,{method:"POST",headers:Si,body:JSON.stringify({path:n,type:r,action:i})}).then(s=>s.json()).then(s=>_t(s,"Update counter").data),Ri=({serverURL:e,lang:t,path:n,page:r,pageSize:i,sortBy:s,signal:l,token:o})=>{const a={};return o&&(a.Authorization=`Bearer ${o}`),fetch(`${rt(e)}comment?path=${encodeURIComponent(n)}&pageSize=${i}&page=${r}&lang=${t}&sortBy=${s}`,{signal:l,headers:a}).then(c=>c.json()).then(c=>_t(c,"Get comment data").data)},Ai=({serverURL:e,lang:t,token:n,comment:r})=>{const i={"Content-Type":"application/json"};return n&&(i.Authorization=`Bearer ${n}`),fetch(`${rt(e)}comment?lang=${t}`,{method:"POST",headers:i,body:JSON.stringify(r)}).then(s=>s.json())},Ei=({serverURL:e,lang:t,token:n,objectId:r})=>fetch(`${rt(e)}comment/${r}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then(i=>i.json()).then(i=>_t(i,"Delete comment")),Qt=({serverURL:e,lang:t,token:n,objectId:r,comment:i})=>fetch(`${rt(e)}comment/${r}?lang=${t}`,{method:"PUT",headers:{...Si,Authorization:`Bearer ${n}`},body:JSON.stringify(i)}).then(s=>s.json()).then(s=>_t(s,"Update comment")),Ti=({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${rt(e)}comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r}).then(i=>i.json()).then(i=>_t(i,"Get comment count").data),Li=({lang:e,serverURL:t})=>{const n=(window.innerWidth-450)/2,r=(window.innerHeight-450)/2,i=window.open(`${t.replace(/\/$/,"")}/ui/login?lng=${encodeURIComponent(e)}`,"_blank",`width=450,height=450,left=${n},top=${r},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);return i==null||i.postMessage({type:"TOKEN",data:null},"*"),new Promise(s=>{const l=({data:o})=>{!o||typeof o!="object"||o.type!=="userInfo"||o.data.token&&(i==null||i.close(),window.removeEventListener("message",l),s(o.data))};window.addEventListener("message",l)})},Ii=({serverURL:e,lang:t,paths:n,signal:r})=>kr({serverURL:e,lang:t,paths:n,type:["time"],signal:r}),Mi=e=>On({...e,type:"time",action:"inc"}),Oi=({serverURL:e,lang:t,count:n,signal:r,token:i})=>{const s={};return i&&(s.Authorization=`Bearer ${i}`),fetch(`${rt(e)}comment?type=recent&count=${n}&lang=${t}`,{signal:r,headers:s}).then(l=>l.json())},Pi=({serverURL:e,signal:t,pageSize:n,lang:r})=>fetch(`${rt(e)}user?pageSize=${n}&lang=${r}`,{signal:t}).then(i=>i.json()).then(i=>_t(i,"user list")).then(i=>i.data),vo=["nick","mail","link"],ji=e=>e.filter(t=>vo.includes(t)),zi=["//unpkg.com/@waline/emojis@1.1.0/weibo"],bo=["//unpkg.com/@waline/emojis/tieba/tieba_agree.png","//unpkg.com/@waline/emojis/tieba/tieba_look_down.png","//unpkg.com/@waline/emojis/tieba/tieba_sunglasses.png","//unpkg.com/@waline/emojis/tieba/tieba_pick_nose.png","//unpkg.com/@waline/emojis/tieba/tieba_awkward.png","//unpkg.com/@waline/emojis/tieba/tieba_sleep.png"],yo=e=>new Promise((t,n)=>{if(e.size>128e3)return n(new Error("File too large! File size limit 128KB"));const r=new FileReader;r.readAsDataURL(e),r.onload=()=>{var i;return t(((i=r.result)==null?void 0:i.toString())??"")},r.onerror=n}),wo=e=>e===!0?'

    TeX is not available in preview

    ':'TeX is not available in preview',ko=e=>{const t=async(n,r={})=>fetch(`https://api.giphy.com/v1/gifs/${n}?${new URLSearchParams({lang:e,limit:"20",rating:"g",api_key:"6CIMLkNMMOhRcXPoMCPkFy4Ybk2XUiMp",...r}).toString()}`).then(i=>i.json()).then(({data:i})=>i.map(s=>({title:s.title,src:s.images.downsized_medium.url})));return{search:n=>t("search",{q:n,offset:"0"}),default:()=>t("trending",{}),more:(n,r=0)=>t("search",{q:n,offset:r.toString()})}},xo=/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/,_o=/{let t=0;return e.replace(So,(n,r,i)=>{if(i)return`${i}`;if(r==="<")return"<";let s;xr[r]?s=xr[r]:(s=Fi[t],xr[r]=s);const l=`${r}`;return t=++t%Fi.length,l})},Ao=["nick","nickError","mail","mailError","link","optional","placeholder","sofa","submit","like","cancelLike","reply","cancelReply","comment","refresh","more","preview","emoji","uploadImage","seconds","minutes","hours","days","now","uploading","login","logout","admin","sticky","word","wordHint","anonymous","level0","level1","level2","level3","level4","level5","gif","gifSearchPlaceholder","profile","approved","waiting","spam","unsticky","oldest","latest","hottest","reactionTitle"],Ye=e=>Object.fromEntries(e.map((t,n)=>[Ao[n],t]));var Eo=Ye(["Benutzername","Der Benutzername darf nicht weniger als 3 Bytes umfassen.","E-Mail","Bitte bestätigen Sie Ihre E-Mail-Adresse.","Webseite","Optional","Kommentieren Sie hier...","Noch keine Kommentare.","Senden","Gefällt mir","Gefällt mir nicht mehr","Antworten","Antwort abbrechen","Kommentare","Aktualisieren","Mehr laden...","Vorschau","Emoji","Ein Bild hochladen","Vor einigen Sekunden","Vor einigen Minuten","Vor einigen Stunden","Vor einigen Tagen","Gerade eben","Hochladen läuft","Anmelden","Abmelden","Admin","Angeheftet","Wörter","Bitte geben Sie Kommentare zwischen $0 und $1 Wörtern ein! Aktuelle Anzahl der Wörter: $2","Anonym","Zwerge","Hobbits","Ents","Magier","Elfen","Maïar","GIF","Nach einem GIF suchen","Profil","Genehmigt","Ausstehend","Spam","Lösen","Älteste","Neueste","Am beliebtesten","Was denken Sie?"]),Di=Ye(["NickName","NickName cannot be less than 3 bytes.","E-Mail","Please confirm your email address.","Website","Optional","Comment here...","No comment yet.","Submit","Like","Cancel like","Reply","Cancel reply","Comments","Refresh","Load More...","Preview","Emoji","Upload Image","seconds ago","minutes ago","hours ago","days ago","just now","Uploading","Login","logout","Admin","Sticky","Words",`Please input comments between $0 and $1 words! + Current word number: $2`,"Anonymous","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Search GIF","Profile","Approved","Waiting","Spam","Unsticky","Oldest","Latest","Hottest","What do you think?"]),Hi=Ye(["Nombre de usuario","El nombre de usuario no puede tener menos de 3 bytes.","Correo electrónico","Por favor confirma tu dirección de correo electrónico.","Sitio web","Opcional","Comenta aquí...","Sin comentarios todavía.","Enviar","Like","Anular like","Responder","Anular respuesta","Comentarios","Recargar","Cargar Más...","Previsualizar","Emoji","Subir Imagen","segundos atrás","minutos atrás","horas atrás","días atrás","justo ahora","Subiendo","Iniciar sesión","cerrar sesión","Admin","Fijado","Palabras",`Por favor escriba entre $0 y $1 palabras! + El número actual de palabras: $2`,"Anónimo","Enanos","Hobbits","Ents","Magos","Elfos","Maiar","GIF","Buscar GIF","Perfil","Aprobado","Esperando","Spam","Desfijar","Más antiguos","Más recientes","Más vistos","¿Qué piensas?"]),Ni=Ye(["Pseudo","Le pseudo ne peut pas faire moins de 3 octets.","E-mail","Veuillez confirmer votre adresse e-mail.","Site Web","Optionnel","Commentez ici...","Aucun commentaire pour l'instant.","Envoyer","J'aime","Annuler le j'aime","Répondre","Annuler la réponse","Commentaires","Actualiser","Charger plus...","Aperçu","Emoji","Télécharger une image","Il y a quelques secondes","Il y a quelques minutes","Il y a quelques heures","Il y a quelques jours","À l'instant","Téléchargement en cours","Connexion","Déconnexion","Admin","Épinglé","Mots",`Veuillez saisir des commentaires entre $0 et $1 mots ! + Nombre actuel de mots : $2`,"Anonyme","Nains","Hobbits","Ents","Mages","Elfes","Maïar","GIF","Rechercher un GIF","Profil","Approuvé","En attente","Indésirable","Détacher","Le plus ancien","Dernier","Le plus populaire","Qu'en pensez-vous ?"]),Ui=Ye(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード",`コメントは $0 から $1 ワードの間でなければなりません! + 現在の単語番号: $2`,"匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),To=Ye(["Apelido","Apelido não pode ser menor que 3 bytes.","E-Mail","Por favor, confirme seu endereço de e-mail.","Website","Opcional","Comente aqui...","Nenhum comentário, ainda.","Enviar","Like","Cancel like","Responder","Cancelar resposta","Comentários","Refrescar","Carregar Mais...","Visualizar","Emoji","Enviar Imagem","segundos atrás","minutos atrás","horas atrás","dias atrás","agora mesmo","Enviando","Entrar","Sair","Admin","Sticky","Palavras",`Favor enviar comentário com $0 a $1 palavras! + Número de palavras atuais: $2`,"Anônimo","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Pesquisar GIF","informação pessoal","Aprovado","Espera","Spam","Unsticky","Mais velho","Mais recentes","Mais quente","O que você acha?"]),Bi=Ye(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова",`Пожалуйста, введите комментарии от $0 до $1 слов! +Номер текущего слова: $2`,"Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]),Vi=Ye(["Tên","Tên không được nhỏ hơn 3 ký tự.","E-Mail","Vui lòng xác nhập địa chỉ email của bạn.","Website","Tùy chọn","Hãy bình luận có văn hoá!","Chưa có bình luận","Gửi","Thích","Bỏ thích","Trả lời","Hủy bỏ","bình luận","Làm mới","Tải thêm...","Xem trước","Emoji","Tải lên hình ảnh","giây trước","phút trước","giờ trước","ngày trước","Vừa xong","Đang tải lên","Đăng nhập","đăng xuất","Quản trị viên","Dính","từ",`Bình luận phải có độ dài giữa $0 và $1 từ! + Số từ hiện tại: $2`,"Vô danh","Người lùn","Người tí hon","Thần rừng","Pháp sư","Tiên tộc","Maiar","Ảnh GIF","Tìm kiếm ảnh GIF","thông tin cá nhân","Đã được phê duyệt","Đang chờ đợi","Thư rác","Không dính","lâu đời nhất","muộn nhất","nóng nhất","What do you think?"]),Wi=Ye(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字",`评论字数应在 $0 到 $1 字之间! +当前字数:$2`,"匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),Lo=Ye(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎留言","來發留言吧~","送出","喜歡","取消喜歡","回覆","取消回覆","留言","重整","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登入","登出","管理者","置頂","字",`留言字數應在 $0 到 $1 字之間! +目前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?"]);const qi="en-US",Pn={zh:Wi,"zh-cn":Wi,"zh-tw":Lo,en:Di,"en-us":Di,fr:Ni,"fr-fr":Ni,jp:Ui,"jp-jp":Ui,"pt-br":To,ru:Bi,"ru-ru":Bi,vi:Vi,"vi-vn":Vi,de:Eo,es:Hi,"es-mx":Hi},Ki=e=>Pn[e.toLowerCase()]||Pn[qi.toLowerCase()],Gi=e=>Object.keys(Pn).includes(e.toLowerCase())?e:qi,Zi=e=>{try{e=decodeURI(e)}catch{}return e},Ji=(e="")=>e.replace(/\/$/u,""),Yi=e=>/^(https?:)?\/\//.test(e),jn=e=>{const t=Ji(e);return Yi(t)?t:`https://${t}`},Io=e=>Array.isArray(e)?e:e?[0,e]:!1,_r=(e,t)=>typeof e=="function"?e:e===!1?!1:t,Mo=({serverURL:e,path:t=location.pathname,lang:n=typeof navigator>"u"?"en-US":navigator.language,locale:r,emoji:i=zi,meta:s=["nick","mail","link"],requiredMeta:l=[],dark:o=!1,pageSize:a=10,wordLimit:c,imageUploader:u,highlighter:h,texRenderer:d,copyright:g=!0,login:k="enable",search:v,reaction:$,recaptchaV3Key:b="",turnstileKey:C="",commentSorting:N="latest",...E})=>({serverURL:jn(e),path:Zi(t),lang:Gi(n),locale:{...Ki(Gi(n)),...typeof r=="object"?r:{}},wordLimit:Io(c),meta:ji(s),requiredMeta:ji(l),imageUploader:_r(u,yo),highlighter:_r(h,Ro),texRenderer:_r(d,wo),dark:o,emoji:typeof i=="boolean"?i?zi:[]:i,pageSize:a,login:k,copyright:g,search:v===!1?!1:typeof v=="object"?v:ko(n),recaptchaV3Key:b,turnstileKey:C,reaction:Array.isArray($)?$:$===!0?bo:[],commentSorting:N,...E}),Ft=e=>typeof e=="string",Cr="{--waline-white:#000;--waline-light-grey:#666;--waline-dark-grey:#999;--waline-color:#888;--waline-bg-color:#1e1e1e;--waline-bg-color-light:#272727;--waline-bg-color-hover: #444;--waline-border-color:#333;--waline-disable-bg-color:#444;--waline-disable-color:#272727;--waline-bq-color:#272727;--waline-info-bg-color:#272727;--waline-info-color:#666}",Oo=e=>Ft(e)?e==="auto"?`@media(prefers-color-scheme:dark){body${Cr}}`:`${e}${Cr}`:e===!0?`:root${Cr}`:"",$r=(e,t)=>{let n=e.toString();for(;n.length{const t=$r(e.getDate(),2),n=$r(e.getMonth()+1,2);return`${$r(e.getFullYear(),2)}-${n}-${t}`},jo=(e,t,n)=>{if(!e)return"";const r=Ft(e)?new Date(e.includes(" ")?e.replace(/-/g,"/"):e):e,i=t.getTime()-r.getTime(),s=Math.floor(i/(24*3600*1e3));if(s===0){const l=i%864e5,o=Math.floor(l/(3600*1e3));if(o===0){const a=l%36e5,c=Math.floor(a/(60*1e3));if(c===0){const u=a%6e4;return`${Math.round(u/1e3)} ${n.seconds}`}return`${c} ${n.minutes}`}return`${o} ${n.hours}`}return s<0?n.now:s<8?`${s} ${n.days}`:Po(r)},zo=/^[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])?)*$/,Fo=e=>zo.test(e);/** +* @vue/shared v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function Sr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ce={},Dt=[],Ct=()=>{},Do=()=>!1,zn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Rr=e=>e.startsWith("onUpdate:"),He=Object.assign,Qi=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ho=Object.prototype.hasOwnProperty,ee=(e,t)=>Ho.call(e,t),V=Array.isArray,Ht=e=>Xt(e)==="[object Map]",Nt=e=>Xt(e)==="[object Set]",Xi=e=>Xt(e)==="[object Date]",le=e=>typeof e=="function",we=e=>typeof e=="string",Qe=e=>typeof e=="symbol",ge=e=>e!==null&&typeof e=="object",es=e=>(ge(e)||le(e))&&le(e.then)&&le(e.catch),ts=Object.prototype.toString,Xt=e=>ts.call(e),No=e=>Xt(e).slice(8,-1),ns=e=>Xt(e)==="[object Object]",Ar=e=>we(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,en=Sr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Fn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Uo=/-(\w)/g,Ne=Fn(e=>e.replace(Uo,(t,n)=>n?n.toUpperCase():"")),Bo=/\B([A-Z])/g,$t=Fn(e=>e.replace(Bo,"-$1").toLowerCase()),Dn=Fn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Er=Fn(e=>e?`on${Dn(e)}`:""),mt=(e,t)=>!Object.is(e,t),Hn=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Nn=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let is;const tn=()=>is||(is=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function nn(e){if(V(e)){const t={};for(let n=0;n{if(n){const r=n.split(Wo);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function ve(e){let t="";if(we(e))t=e;else if(V(e))for(let n=0;nSt(n,t))}const ls=e=>!!(e&&e.__v_isRef===!0),X=e=>we(e)?e:e==null?"":V(e)||ge(e)&&(e.toString===ts||!le(e.toString))?ls(e)?X(e.value):JSON.stringify(e,os,2):String(e),os=(e,t)=>ls(t)?os(e,t.value):Ht(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],s)=>(n[Lr(r,s)+" =>"]=i,n),{})}:Nt(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Lr(n))}:Qe(t)?Lr(t):ge(t)&&!V(t)&&!ns(t)?String(t):t,Lr=(e,t="")=>{var n;return Qe(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +* @vue/reactivity v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Ae;class Yo{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Ae,!t&&Ae&&(this.index=(Ae.scopes||(Ae.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0)return;if(sn){let t=sn;for(sn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;rn;){let t=rn;for(rn=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function hs(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ds(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),jr(r),Xo(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function Pr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ps(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ps(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===ln))return;e.globalVersion=ln;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!Pr(e)){e.flags&=-3;return}const n=fe,r=Ke;fe=e,Ke=!0;try{hs(e);const i=e.fn(e._value);(t.version===0||mt(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{fe=n,Ke=r,ds(e),e.flags&=-3}}function jr(e,t=!1){const{dep:n,prevSub:r,nextSub:i}=e;if(r&&(r.nextSub=i,e.prevSub=void 0),i&&(i.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)jr(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Xo(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ke=!0;const gs=[];function Rt(){gs.push(Ke),Ke=!1}function At(){const e=gs.pop();Ke=e===void 0?!0:e}function ms(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=fe;fe=void 0;try{t()}finally{fe=n}}}let ln=0;class ea{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class zr{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!fe||!Ke||fe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==fe)n=this.activeLink=new ea(fe,this),fe.deps?(n.prevDep=fe.depsTail,fe.depsTail.nextDep=n,fe.depsTail=n):fe.deps=fe.depsTail=n,vs(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=fe.depsTail,n.nextDep=void 0,fe.depsTail.nextDep=n,fe.depsTail=n,fe.deps===n&&(fe.deps=r)}return n}trigger(t){this.version++,ln++,this.notify(t)}notify(t){Mr();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Or()}}}function vs(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)vs(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Fr=new WeakMap,Et=Symbol(""),Dr=Symbol(""),on=Symbol("");function $e(e,t,n){if(Ke&&fe){let r=Fr.get(e);r||Fr.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new zr),i.map=r,i.key=n),i.track()}}function it(e,t,n,r,i,s){const l=Fr.get(e);if(!l){ln++;return}const o=a=>{a&&a.trigger()};if(Mr(),t==="clear")l.forEach(o);else{const a=V(e),c=a&&Ar(n);if(a&&n==="length"){const u=Number(r);l.forEach((h,d)=>{(d==="length"||d===on||!Qe(d)&&d>=u)&&o(h)})}else switch((n!==void 0||l.has(void 0))&&o(l.get(n)),c&&o(l.get(on)),t){case"add":a?c&&o(l.get("length")):(o(l.get(Et)),Ht(e)&&o(l.get(Dr)));break;case"delete":a||(o(l.get(Et)),Ht(e)&&o(l.get(Dr)));break;case"set":Ht(e)&&o(l.get(Et));break}}Or()}function Ut(e){const t=te(e);return t===e?t:($e(t,"iterate",on),Ue(e)?t:t.map(Se))}function Un(e){return $e(e=te(e),"iterate",on),e}const ta={__proto__:null,[Symbol.iterator](){return Hr(this,Symbol.iterator,Se)},concat(...e){return Ut(this).concat(...e.map(t=>V(t)?Ut(t):t))},entries(){return Hr(this,"entries",e=>(e[1]=Se(e[1]),e))},every(e,t){return st(this,"every",e,t,void 0,arguments)},filter(e,t){return st(this,"filter",e,t,n=>n.map(Se),arguments)},find(e,t){return st(this,"find",e,t,Se,arguments)},findIndex(e,t){return st(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return st(this,"findLast",e,t,Se,arguments)},findLastIndex(e,t){return st(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return st(this,"forEach",e,t,void 0,arguments)},includes(...e){return Nr(this,"includes",e)},indexOf(...e){return Nr(this,"indexOf",e)},join(e){return Ut(this).join(e)},lastIndexOf(...e){return Nr(this,"lastIndexOf",e)},map(e,t){return st(this,"map",e,t,void 0,arguments)},pop(){return an(this,"pop")},push(...e){return an(this,"push",e)},reduce(e,...t){return bs(this,"reduce",e,t)},reduceRight(e,...t){return bs(this,"reduceRight",e,t)},shift(){return an(this,"shift")},some(e,t){return st(this,"some",e,t,void 0,arguments)},splice(...e){return an(this,"splice",e)},toReversed(){return Ut(this).toReversed()},toSorted(e){return Ut(this).toSorted(e)},toSpliced(...e){return Ut(this).toSpliced(...e)},unshift(...e){return an(this,"unshift",e)},values(){return Hr(this,"values",Se)}};function Hr(e,t,n){const r=Un(e),i=r[t]();return r!==e&&!Ue(e)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.value&&(s.value=n(s.value)),s}),i}const na=Array.prototype;function st(e,t,n,r,i,s){const l=Un(e),o=l!==e&&!Ue(e),a=l[t];if(a!==na[t]){const h=a.apply(e,s);return o?Se(h):h}let c=n;l!==e&&(o?c=function(h,d){return n.call(this,Se(h),d,e)}:n.length>2&&(c=function(h,d){return n.call(this,h,d,e)}));const u=a.call(l,c,r);return o&&i?i(u):u}function bs(e,t,n,r){const i=Un(e);let s=n;return i!==e&&(Ue(e)?n.length>3&&(s=function(l,o,a){return n.call(this,l,o,a,e)}):s=function(l,o,a){return n.call(this,l,Se(o),a,e)}),i[t](s,...r)}function Nr(e,t,n){const r=te(e);$e(r,"iterate",on);const i=r[t](...n);return(i===-1||i===!1)&&Wr(n[0])?(n[0]=te(n[0]),r[t](...n)):i}function an(e,t,n=[]){Rt(),Mr();const r=te(e)[t].apply(e,n);return Or(),At(),r}const ra=Sr("__proto__,__v_isRef,__isVue"),ys=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Qe));function ia(e){Qe(e)||(e=String(e));const t=te(this);return $e(t,"has",e),t.hasOwnProperty(e)}class ws{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const i=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!i;if(n==="__v_isReadonly")return i;if(n==="__v_isShallow")return s;if(n==="__v_raw")return r===(i?s?pa:Cs:s?_s:xs).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const l=V(t);if(!i){let a;if(l&&(a=ta[n]))return a;if(n==="hasOwnProperty")return ia}const o=Reflect.get(t,n,xe(t)?t:r);return(Qe(n)?ys.has(n):ra(n))||(i||$e(t,"get",n),s)?o:xe(o)?l&&Ar(n)?o:o.value:ge(o)?i?un(o):cn(o):o}}class ks extends ws{constructor(t=!1){super(!1,t)}set(t,n,r,i){let s=t[n];if(!this._isShallow){const a=Tt(s);if(!Ue(r)&&!Tt(r)&&(s=te(s),r=te(r)),!V(t)&&xe(s)&&!xe(r))return a?!1:(s.value=r,!0)}const l=V(t)&&Ar(n)?Number(n)e,Bn=e=>Reflect.getPrototypeOf(e);function ca(e,t,n){return function(...r){const i=this.__v_raw,s=te(i),l=Ht(s),o=e==="entries"||e===Symbol.iterator&&l,a=e==="keys"&&l,c=i[e](...r),u=n?Ur:t?qr:Se;return!t&&$e(s,"iterate",a?Dr:Et),{next(){const{value:h,done:d}=c.next();return d?{value:h,done:d}:{value:o?[u(h[0]),u(h[1])]:u(h),done:d}},[Symbol.iterator](){return this}}}}function Vn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ua(e,t){const n={get(i){const s=this.__v_raw,l=te(s),o=te(i);e||(mt(i,o)&&$e(l,"get",i),$e(l,"get",o));const{has:a}=Bn(l),c=t?Ur:e?qr:Se;if(a.call(l,i))return c(s.get(i));if(a.call(l,o))return c(s.get(o));s!==l&&s.get(i)},get size(){const i=this.__v_raw;return!e&&$e(te(i),"iterate",Et),Reflect.get(i,"size",i)},has(i){const s=this.__v_raw,l=te(s),o=te(i);return e||(mt(i,o)&&$e(l,"has",i),$e(l,"has",o)),i===o?s.has(i):s.has(i)||s.has(o)},forEach(i,s){const l=this,o=l.__v_raw,a=te(o),c=t?Ur:e?qr:Se;return!e&&$e(a,"iterate",Et),o.forEach((u,h)=>i.call(s,c(u),c(h),l))}};return He(n,e?{add:Vn("add"),set:Vn("set"),delete:Vn("delete"),clear:Vn("clear")}:{add(i){!t&&!Ue(i)&&!Tt(i)&&(i=te(i));const s=te(this);return Bn(s).has.call(s,i)||(s.add(i),it(s,"add",i,i)),this},set(i,s){!t&&!Ue(s)&&!Tt(s)&&(s=te(s));const l=te(this),{has:o,get:a}=Bn(l);let c=o.call(l,i);c||(i=te(i),c=o.call(l,i));const u=a.call(l,i);return l.set(i,s),c?mt(s,u)&&it(l,"set",i,s):it(l,"add",i,s),this},delete(i){const s=te(this),{has:l,get:o}=Bn(s);let a=l.call(s,i);a||(i=te(i),a=l.call(s,i)),o&&o.call(s,i);const c=s.delete(i);return a&&it(s,"delete",i,void 0),c},clear(){const i=te(this),s=i.size!==0,l=i.clear();return s&&it(i,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=ca(i,e,t)}),n}function Br(e,t){const n=ua(e,t);return(r,i,s)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(ee(n,i)&&i in r?n:r,i,s)}const fa={get:Br(!1,!1)},ha={get:Br(!1,!0)},da={get:Br(!0,!1)},xs=new WeakMap,_s=new WeakMap,Cs=new WeakMap,pa=new WeakMap;function ga(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ma(e){return e.__v_skip||!Object.isExtensible(e)?0:ga(No(e))}function cn(e){return Tt(e)?e:Vr(e,!1,la,fa,xs)}function va(e){return Vr(e,!1,aa,ha,_s)}function un(e){return Vr(e,!0,oa,da,Cs)}function Vr(e,t,n,r,i){if(!ge(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const l=ma(e);if(l===0)return e;const o=new Proxy(e,l===2?r:n);return i.set(e,o),o}function Bt(e){return Tt(e)?Bt(e.__v_raw):!!(e&&e.__v_isReactive)}function Tt(e){return!!(e&&e.__v_isReadonly)}function Ue(e){return!!(e&&e.__v_isShallow)}function Wr(e){return e?!!e.__v_raw:!1}function te(e){const t=e&&e.__v_raw;return t?te(t):e}function ba(e){return!ee(e,"__v_skip")&&Object.isExtensible(e)&&rs(e,"__v_skip",!0),e}const Se=e=>ge(e)?cn(e):e,qr=e=>ge(e)?un(e):e;function xe(e){return e?e.__v_isRef===!0:!1}function W(e){return $s(e,!1)}function ya(e){return $s(e,!0)}function $s(e,t){return xe(e)?e:new wa(e,t)}class wa{constructor(t,n){this.dep=new zr,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:te(t),this._value=n?t:Se(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||Ue(t)||Tt(t);t=r?t:te(t),mt(t,n)&&(this._rawValue=t,this._value=r?t:Se(t),this.dep.trigger())}}function q(e){return xe(e)?e.value:e}const ka={get:(e,t,n)=>t==="__v_raw"?e:q(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return xe(i)&&!xe(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function Ss(e){return Bt(e)?e:new Proxy(e,ka)}class xa{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new zr(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=ln-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&fe!==this)return fs(this,!0),!0}get value(){const t=this.dep.track();return ps(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function _a(e,t,n=!1){let r,i;return le(e)?r=e:(r=e.get,i=e.set),new xa(r,i,n)}const Wn={},qn=new WeakMap;let Lt;function Ca(e,t=!1,n=Lt){if(n){let r=qn.get(n);r||qn.set(n,r=[]),r.push(e)}}function $a(e,t,n=ce){const{immediate:r,deep:i,once:s,scheduler:l,augmentJob:o,call:a}=n,c=E=>i?E:Ue(E)||i===!1||i===0?lt(E,1):lt(E);let u,h,d,g,k=!1,v=!1;if(xe(e)?(h=()=>e.value,k=Ue(e)):Bt(e)?(h=()=>c(e),k=!0):V(e)?(v=!0,k=e.some(E=>Bt(E)||Ue(E)),h=()=>e.map(E=>{if(xe(E))return E.value;if(Bt(E))return c(E);if(le(E))return a?a(E,2):E()})):le(e)?t?h=a?()=>a(e,2):e:h=()=>{if(d){Rt();try{d()}finally{At()}}const E=Lt;Lt=u;try{return a?a(e,3,[g]):e(g)}finally{Lt=E}}:h=Ct,t&&i){const E=h,j=i===!0?1/0:i;h=()=>lt(E(),j)}const $=as(),b=()=>{u.stop(),$&&$.active&&Qi($.effects,u)};if(s&&t){const E=t;t=(...j)=>{E(...j),b()}}let C=v?new Array(e.length).fill(Wn):Wn;const N=E=>{if(!(!(u.flags&1)||!u.dirty&&!E))if(t){const j=u.run();if(i||k||(v?j.some((K,z)=>mt(K,C[z])):mt(j,C))){d&&d();const K=Lt;Lt=u;try{const z=[j,C===Wn?void 0:v&&C[0]===Wn?[]:C,g];a?a(t,3,z):t(...z),C=j}finally{Lt=K}}}else u.run()};return o&&o(N),u=new cs(h),u.scheduler=l?()=>l(N,!1):N,g=E=>Ca(E,!1,u),d=u.onStop=()=>{const E=qn.get(u);if(E){if(a)a(E,4);else for(const j of E)j();qn.delete(u)}},t?r?N(!0):C=u.run():l?l(N.bind(null,!0),!0):u.run(),b.pause=u.pause.bind(u),b.resume=u.resume.bind(u),b.stop=b,b}function lt(e,t=1/0,n){if(t<=0||!ge(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,xe(e))lt(e.value,t,n);else if(V(e))for(let r=0;r{lt(r,t,n)});else if(ns(e)){for(const r in e)lt(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&<(e[r],t,n)}return e}/** +* @vue/runtime-core v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function fn(e,t,n,r){try{return r?e(...r):e()}catch(i){Kn(i,t,n)}}function ot(e,t,n,r){if(le(e)){const i=fn(e,t,n,r);return i&&es(i)&&i.catch(s=>{Kn(s,t,n)}),i}if(V(e)){const i=[];for(let s=0;s>>1,i=Ee[r],s=hn(i);s=hn(n)?Ee.push(e):Ee.splice(Ra(t),0,e),e.flags|=1,As()}}function As(){Gn||(Gn=Rs.then(Ls))}function Aa(e){V(e)?Vt.push(...e):vt&&e.id===-1?vt.splice(Wt+1,0,e):e.flags&1||(Vt.push(e),e.flags|=1),As()}function Es(e,t,n=Xe+1){for(;nhn(n)-hn(r));if(Vt.length=0,vt){vt.push(...t);return}for(vt=t,Wt=0;Wte.id==null?e.flags&2?-1:1/0:e.id;function Ls(e){try{for(Xe=0;Xe{r._d&&Ys(-1);const s=Zn(t);let l;try{l=e(...i)}finally{Zn(s),r._d&&Ys(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function Jn(e,t){if(Me===null)return e;const n=ir(Me),r=e.dirs||(e.dirs=[]);for(let i=0;ie.__isTeleport;function Gr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Gr(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}/*! #__NO_SIDE_EFFECTS__ */function dn(e,t){return le(e)?He({name:e.name},t,{setup:e}):e}function Ia(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Yn(e,t,n,r,i=!1){if(V(e)){e.forEach((k,v)=>Yn(k,t&&(V(t)?t[v]:t),n,r,i));return}if(pn(r)&&!i){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Yn(e,t,n,r.component.subTree);return}const s=r.shapeFlag&4?ir(r.component):r.el,l=i?null:s,{i:o,r:a}=e,c=t&&t.r,u=o.refs===ce?o.refs={}:o.refs,h=o.setupState,d=te(h),g=h===ce?()=>!1:k=>ee(d,k);if(c!=null&&c!==a&&(we(c)?(u[c]=null,g(c)&&(h[c]=null)):xe(c)&&(c.value=null)),le(a))fn(a,o,12,[l,u]);else{const k=we(a),v=xe(a);if(k||v){const $=()=>{if(e.f){const b=k?g(a)?h[a]:u[a]:a.value;i?V(b)&&Qi(b,s):V(b)?b.includes(s)||b.push(s):k?(u[a]=[s],g(a)&&(h[a]=u[a])):(a.value=[s],e.k&&(u[e.k]=a.value))}else k?(u[a]=l,g(a)&&(h[a]=l)):v&&(a.value=l,e.k&&(u[e.k]=l))};l?($.id=-1,Fe($,n)):$()}}}tn().requestIdleCallback,tn().cancelIdleCallback;const pn=e=>!!e.type.__asyncLoader,Ma=e=>e.type.__isKeepAlive;function Oa(e,t,n=Te,r=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...l)=>{Rt();const o=li(n),a=ot(t,n,e,l);return o(),At(),a});return r?i.unshift(s):i.push(s),s}}const Zr=e=>(t,n=Te)=>{(!wn||e==="sp")&&Oa(e,(...r)=>t(...r),n)},gn=Zr("m"),Pa=Zr("bum"),Jr=Zr("um"),ja="components";function za(e,t){return Da(ja,e,!0,t)||e}const Fa=Symbol.for("v-ndc");function Da(e,t,n=!0,r=!1){const i=Me||Te;if(i){const s=i.type;{const o=_c(s,!1);if(o&&(o===t||o===Ne(t)||o===Dn(Ne(t))))return s}const l=Ms(i[e]||s[e],t)||Ms(i.appContext[e],t);return!l&&r?s:l}}function Ms(e,t){return e&&(e[t]||e[Ne(t)]||e[Dn(Ne(t))])}function Be(e,t,n,r){let i;const s=n,l=V(e);if(l||we(e)){const o=l&&Bt(e);let a=!1;o&&(a=!Ue(e),e=Un(e)),i=new Array(e.length);for(let c=0,u=e.length;ct(o,a,void 0,s));else{const o=Object.keys(e);i=new Array(o.length);for(let a=0,c=o.length;ae?tl(e)?ir(e):Yr(e.parent):null,mn=He(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=>Yr(e.parent),$root:e=>Yr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>{Kr(e.update)}),$nextTick:e=>e.n||(e.n=qt.bind(e.proxy)),$watch:e=>Ct}),Qr=(e,t)=>e!==ce&&!e.__isScriptSetup&&ee(e,t),Ha={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:i,props:s,accessCache:l,type:o,appContext:a}=e;let c;if(t[0]!=="$"){const g=l[t];if(g!==void 0)switch(g){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return s[t]}else{if(Qr(r,t))return l[t]=1,r[t];if(i!==ce&&ee(i,t))return l[t]=2,i[t];if((c=e.propsOptions[0])&&ee(c,t))return l[t]=3,s[t];if(n!==ce&&ee(n,t))return l[t]=4,n[t];l[t]=0}}const u=mn[t];let h,d;if(u)return t==="$attrs"&&$e(e.attrs,"get",""),u(e);if((h=o.__cssModules)&&(h=h[t]))return h;if(n!==ce&&ee(n,t))return l[t]=4,n[t];if(d=a.config.globalProperties,ee(d,t))return d[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:s}=e;return Qr(i,t)?(i[t]=n,!0):r!==ce&&ee(r,t)?(r[t]=n,!0):ee(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:s}},l){let o;return!!n[l]||e!==ce&&ee(e,l)||Qr(t,l)||(o=s[0])&&ee(o,l)||ee(r,l)||ee(mn,l)||ee(i.config.globalProperties,l)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ee(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Os(){return{app:null,config:{isNativeTag:Do,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Na=0;function Ua(e,t){return function(r,i=null){le(r)||(r=He({},r)),i!=null&&!ge(i)&&(i=null);const s=Os(),l=new WeakSet,o=[];let a=!1;const c=s.app={_uid:Na++,_component:r,_props:i,_container:null,_context:s,_instance:null,version:$c,get config(){return s.config},set config(u){},use(u,...h){return l.has(u)||(u&&le(u.install)?(l.add(u),u.install(c,...h)):le(u)&&(l.add(u),u(c,...h))),c},mixin(u){return c},component(u,h){return h?(s.components[u]=h,c):s.components[u]},directive(u,h){return h?(s.directives[u]=h,c):s.directives[u]},mount(u,h,d){if(!a){const g=c._ceVNode||oe(r,i);return g.appContext=s,d===!0?d="svg":d===!1&&(d=void 0),h&&t?t(g,u):e(g,u,d),a=!0,c._container=u,u.__vue_app__=c,ir(g.component)}},onUnmount(u){o.push(u)},unmount(){a&&(ot(o,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,h){return s.provides[u]=h,c},runWithContext(u){const h=Kt;Kt=c;try{return u()}finally{Kt=h}}};return c}}let Kt=null;function Ba(e,t){if(Te){let n=Te.provides;const r=Te.parent&&Te.parent.provides;r===n&&(n=Te.provides=Object.create(r)),n[e]=t}}function Qn(e,t,n=!1){const r=Te||Me;if(r||Kt){const i=Kt?Kt._context.provides:r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(i&&e in i)return i[e];if(arguments.length>1)return n&&le(t)?t.call(r&&r.proxy):t}}const Ps={},js=()=>Object.create(Ps),zs=e=>Object.getPrototypeOf(e)===Ps;function Va(e,t,n,r=!1){const i={},s=js();e.propsDefaults=Object.create(null),Fs(e,t,i,s);for(const l in e.propsOptions[0])l in i||(i[l]=void 0);n?e.props=r?i:va(i):e.type.props?e.props=i:e.props=s,e.attrs=s}function Wa(e,t,n,r){const{props:i,attrs:s,vnode:{patchFlag:l}}=e,o=te(i),[a]=e.propsOptions;let c=!1;if((r||l>0)&&!(l&16)){if(l&8){const u=e.vnode.dynamicProps;for(let h=0;he[0]==="_"||e==="$stable",ei=e=>V(e)?e.map(et):[et(e)],Ka=(e,t,n)=>{if(t._n)return t;const r=Ea((...i)=>ei(t(...i)),n);return r._c=!1,r},Ns=(e,t,n)=>{const r=e._ctx;for(const i in e){if(Hs(i))continue;const s=e[i];if(le(s))t[i]=Ka(i,s,r);else if(s!=null){const l=ei(s);t[i]=()=>l}}},Us=(e,t)=>{const n=ei(t);e.slots.default=()=>n},Bs=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},Ga=(e,t,n)=>{const r=e.slots=js();if(e.vnode.shapeFlag&32){const i=t._;i?(Bs(r,t,n),n&&rs(r,"_",i,!0)):Ns(t,r)}else t&&Us(e,t)},Za=(e,t,n)=>{const{vnode:r,slots:i}=e;let s=!0,l=ce;if(r.shapeFlag&32){const o=t._;o?n&&o===1?s=!1:Bs(i,t,n):(s=!t.$stable,Ns(t,i)),l=t}else t&&(Us(e,t),l={default:1});if(s)for(const o in i)!Hs(o)&&l[o]==null&&delete i[o]};function Ja(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(tn().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const Fe=uc;function Ya(e){return Qa(e)}function Qa(e,t){Ja();const n=tn();n.__VUE__=!0;const{insert:r,remove:i,patchProp:s,createElement:l,createText:o,createComment:a,setText:c,setElementText:u,parentNode:h,nextSibling:d,setScopeId:g=Ct,insertStaticContent:k}=e,v=(f,p,m,w=null,y=null,x=null,T=void 0,R=null,S=!!p.dynamicChildren)=>{if(f===p)return;f&&!yn(f,p)&&(w=xt(f),Oe(f,y,x,!0),f=null),p.patchFlag===-2&&(S=!1,p.dynamicChildren=null);const{type:_,ref:M,shapeFlag:L}=p;switch(_){case er:$(f,p,m,w);break;case Ot:b(f,p,m,w);break;case ri:f==null&&C(p,m,w,T);break;case he:me(f,p,m,w,y,x,T,R,S);break;default:L&1?j(f,p,m,w,y,x,T,R,S):L&6?F(f,p,m,w,y,x,T,R,S):(L&64||L&128)&&_.process(f,p,m,w,y,x,T,R,S,A)}M!=null&&y&&Yn(M,f&&f.ref,x,p||f,!p)},$=(f,p,m,w)=>{if(f==null)r(p.el=o(p.children),m,w);else{const y=p.el=f.el;p.children!==f.children&&c(y,p.children)}},b=(f,p,m,w)=>{f==null?r(p.el=a(p.children||""),m,w):p.el=f.el},C=(f,p,m,w)=>{[f.el,f.anchor]=k(f.children,p,m,w,f.el,f.anchor)},N=({el:f,anchor:p},m,w)=>{let y;for(;f&&f!==p;)y=d(f),r(f,m,w),f=y;r(p,m,w)},E=({el:f,anchor:p})=>{let m;for(;f&&f!==p;)m=d(f),i(f),f=m;i(p)},j=(f,p,m,w,y,x,T,R,S)=>{p.type==="svg"?T="svg":p.type==="math"&&(T="mathml"),f==null?K(p,m,w,y,x,T,R,S):Ie(f,p,y,x,T,R,S)},K=(f,p,m,w,y,x,T,R)=>{let S,_;const{props:M,shapeFlag:L,transition:D,dirs:B}=f;if(S=f.el=l(f.type,x,M&&M.is,M),L&8?u(S,f.children):L&16&&G(f.children,S,null,w,y,ti(f,x),T,R),B&&It(f,null,w,"created"),z(S,f,f.scopeId,T,w),M){for(const ue in M)ue!=="value"&&!en(ue)&&s(S,ue,null,M[ue],x,w);"value"in M&&s(S,"value",null,M.value,x),(_=M.onVnodeBeforeMount)&&tt(_,w,f)}B&&It(f,null,w,"beforeMount");const J=Xa(y,D);J&&D.beforeEnter(S),r(S,p,m),((_=M&&M.onVnodeMounted)||J||B)&&Fe(()=>{_&&tt(_,w,f),J&&D.enter(S),B&&It(f,null,w,"mounted")},y)},z=(f,p,m,w,y)=>{if(m&&g(f,m),w)for(let x=0;x{for(let _=S;_{const R=p.el=f.el;let{patchFlag:S,dynamicChildren:_,dirs:M}=p;S|=f.patchFlag&16;const L=f.props||ce,D=p.props||ce;let B;if(m&&Mt(m,!1),(B=D.onVnodeBeforeUpdate)&&tt(B,m,p,f),M&&It(p,f,m,"beforeUpdate"),m&&Mt(m,!0),(L.innerHTML&&D.innerHTML==null||L.textContent&&D.textContent==null)&&u(R,""),_?Z(f.dynamicChildren,_,R,m,w,ti(p,y),x):T||ye(f,p,R,null,m,w,ti(p,y),x,!1),S>0){if(S&16)re(R,L,D,m,y);else if(S&2&&L.class!==D.class&&s(R,"class",null,D.class,y),S&4&&s(R,"style",L.style,D.style,y),S&8){const J=p.dynamicProps;for(let ue=0;ue{B&&tt(B,m,p,f),M&&It(p,f,m,"updated")},w)},Z=(f,p,m,w,y,x,T)=>{for(let R=0;R{if(p!==m){if(p!==ce)for(const x in p)!en(x)&&!(x in m)&&s(f,x,p[x],null,y,w);for(const x in m){if(en(x))continue;const T=m[x],R=p[x];T!==R&&x!=="value"&&s(f,x,R,T,y,w)}"value"in m&&s(f,"value",p.value,m.value,y)}},me=(f,p,m,w,y,x,T,R,S)=>{const _=p.el=f?f.el:o(""),M=p.anchor=f?f.anchor:o("");let{patchFlag:L,dynamicChildren:D,slotScopeIds:B}=p;B&&(R=R?R.concat(B):B),f==null?(r(_,m,w),r(M,m,w),G(p.children||[],m,M,y,x,T,R,S)):L>0&&L&64&&D&&f.dynamicChildren?(Z(f.dynamicChildren,D,m,y,x,T,R),(p.key!=null||y&&p===y.subTree)&&Vs(f,p,!0)):ye(f,p,m,M,y,x,T,R,S)},F=(f,p,m,w,y,x,T,R,S)=>{p.slotScopeIds=R,f==null?p.shapeFlag&512?y.ctx.activate(p,m,w,T,S):Y(p,m,w,y,x,T,S):se(f,p,S)},Y=(f,p,m,w,y,x,T)=>{const R=f.component=vc(f,w,y);if(Ma(f)&&(R.ctx.renderer=A),yc(R,!1,T),R.asyncDep){if(y&&y.registerDep(R,ke,T),!f.el){const S=R.subTree=oe(Ot);b(null,S,p,m)}}else ke(R,f,p,m,y,x,T)},se=(f,p,m)=>{const w=p.component=f.component;if(ac(f,p,m))if(w.asyncDep&&!w.asyncResolved){be(w,p,m);return}else w.next=p,w.update();else p.el=f.el,w.vnode=p},ke=(f,p,m,w,y,x,T)=>{const R=()=>{if(f.isMounted){let{next:L,bu:D,u:B,parent:J,vnode:ue}=f;{const je=Ws(f);if(je){L&&(L.el=ue.el,be(f,L,T)),je.asyncDep.then(()=>{f.isUnmounted||R()});return}}let ie=L,Pe;Mt(f,!1),L?(L.el=ue.el,be(f,L,T)):L=ue,D&&Hn(D),(Pe=L.props&&L.props.onVnodeBeforeUpdate)&&tt(Pe,J,L,ue),Mt(f,!0);const Ce=ni(f),qe=f.subTree;f.subTree=Ce,v(qe,Ce,h(qe.el),xt(qe),f,y,x),L.el=Ce.el,ie===null&&cc(f,Ce.el),B&&Fe(B,y),(Pe=L.props&&L.props.onVnodeUpdated)&&Fe(()=>tt(Pe,J,L,ue),y)}else{let L;const{el:D,props:B}=p,{bm:J,m:ue,parent:ie,root:Pe,type:Ce}=f,qe=pn(p);if(Mt(f,!1),J&&Hn(J),!qe&&(L=B&&B.onVnodeBeforeMount)&&tt(L,ie,p),Mt(f,!0),D&&de){const je=()=>{f.subTree=ni(f),de(D,f.subTree,f,y,null)};qe&&Ce.__asyncHydrate?Ce.__asyncHydrate(D,f,je):je()}else{Pe.ce&&Pe.ce._injectChildStyle(Ce);const je=f.subTree=ni(f);v(null,je,m,w,f,y,x),p.el=je.el}if(ue&&Fe(ue,y),!qe&&(L=B&&B.onVnodeMounted)){const je=p;Fe(()=>tt(L,ie,je),y)}(p.shapeFlag&256||ie&&pn(ie.vnode)&&ie.vnode.shapeFlag&256)&&f.a&&Fe(f.a,y),f.isMounted=!0,p=m=w=null}};f.scope.on();const S=f.effect=new cs(R);f.scope.off();const _=f.update=S.run.bind(S),M=f.job=S.runIfDirty.bind(S);M.i=f,M.id=f.uid,S.scheduler=()=>Kr(M),Mt(f,!0),_()},be=(f,p,m)=>{p.component=f;const w=f.vnode.props;f.vnode=p,f.next=null,Wa(f,p.props,w,m),Za(f,p.children,m),Rt(),Es(f),At()},ye=(f,p,m,w,y,x,T,R,S=!1)=>{const _=f&&f.children,M=f?f.shapeFlag:0,L=p.children,{patchFlag:D,shapeFlag:B}=p;if(D>0){if(D&128){gt(_,L,m,w,y,x,T,R,S);return}else if(D&256){Re(_,L,m,w,y,x,T,R,S);return}}B&8?(M&16&&kt(_,y,x),L!==_&&u(m,L)):M&16?B&16?gt(_,L,m,w,y,x,T,R,S):kt(_,y,x,!0):(M&8&&u(m,""),B&16&&G(L,m,w,y,x,T,R,S))},Re=(f,p,m,w,y,x,T,R,S)=>{f=f||Dt,p=p||Dt;const _=f.length,M=p.length,L=Math.min(_,M);let D;for(D=0;DM?kt(f,y,x,!0,!1,L):G(p,m,w,y,x,T,R,S,L)},gt=(f,p,m,w,y,x,T,R,S)=>{let _=0;const M=p.length;let L=f.length-1,D=M-1;for(;_<=L&&_<=D;){const B=f[_],J=p[_]=S?bt(p[_]):et(p[_]);if(yn(B,J))v(B,J,m,null,y,x,T,R,S);else break;_++}for(;_<=L&&_<=D;){const B=f[L],J=p[D]=S?bt(p[D]):et(p[D]);if(yn(B,J))v(B,J,m,null,y,x,T,R,S);else break;L--,D--}if(_>L){if(_<=D){const B=D+1,J=BD)for(;_<=L;)Oe(f[_],y,x,!0),_++;else{const B=_,J=_,ue=new Map;for(_=J;_<=D;_++){const ze=p[_]=S?bt(p[_]):et(p[_]);ze.key!=null&&ue.set(ze.key,_)}let ie,Pe=0;const Ce=D-J+1;let qe=!1,je=0;const Yt=new Array(Ce);for(_=0;_=Ce){Oe(ze,y,x,!0);continue}let Je;if(ze.key!=null)Je=ue.get(ze.key);else for(ie=J;ie<=D;ie++)if(Yt[ie-J]===0&&yn(ze,p[ie])){Je=ie;break}Je===void 0?Oe(ze,y,x,!0):(Yt[Je-J]=_+1,Je>=je?je=Je:qe=!0,v(ze,p[Je],m,null,y,x,T,R,S),Pe++)}const _i=qe?ec(Yt):Dt;for(ie=_i.length-1,_=Ce-1;_>=0;_--){const ze=J+_,Je=p[ze],Ci=ze+1{const{el:x,type:T,transition:R,children:S,shapeFlag:_}=f;if(_&6){wt(f.component.subTree,p,m,w);return}if(_&128){f.suspense.move(p,m,w);return}if(_&64){T.move(f,p,m,A);return}if(T===he){r(x,p,m);for(let L=0;LR.enter(x),y);else{const{leave:L,delayLeave:D,afterLeave:B}=R,J=()=>r(x,p,m),ue=()=>{L(x,()=>{J(),B&&B()})};D?D(x,J,ue):ue()}else r(x,p,m)},Oe=(f,p,m,w=!1,y=!1)=>{const{type:x,props:T,ref:R,children:S,dynamicChildren:_,shapeFlag:M,patchFlag:L,dirs:D,cacheIndex:B}=f;if(L===-2&&(y=!1),R!=null&&Yn(R,null,m,f,!0),B!=null&&(p.renderCache[B]=void 0),M&256){p.ctx.deactivate(f);return}const J=M&1&&D,ue=!pn(f);let ie;if(ue&&(ie=T&&T.onVnodeBeforeUnmount)&&tt(ie,p,f),M&6)Mn(f.component,m,w);else{if(M&128){f.suspense.unmount(m,w);return}J&&It(f,null,p,"beforeUnmount"),M&64?f.type.remove(f,p,m,A,w):_&&!_.hasOnce&&(x!==he||L>0&&L&64)?kt(_,p,m,!1,!0):(x===he&&L&384||!y&&M&16)&&kt(S,p,m),w&&In(f)}(ue&&(ie=T&&T.onVnodeUnmounted)||J)&&Fe(()=>{ie&&tt(ie,p,f),J&&It(f,null,p,"unmounted")},m)},In=f=>{const{type:p,el:m,anchor:w,transition:y}=f;if(p===he){wr(m,w);return}if(p===ri){E(f);return}const x=()=>{i(m),y&&!y.persisted&&y.afterLeave&&y.afterLeave()};if(f.shapeFlag&1&&y&&!y.persisted){const{leave:T,delayLeave:R}=y,S=()=>T(m,x);R?R(f.el,x,S):S()}else x()},wr=(f,p)=>{let m;for(;f!==p;)m=d(f),i(f),f=m;i(p)},Mn=(f,p,m)=>{const{bum:w,scope:y,job:x,subTree:T,um:R,m:S,a:_}=f;qs(S),qs(_),w&&Hn(w),y.stop(),x&&(x.flags|=8,Oe(T,f,p,m)),R&&Fe(R,p),Fe(()=>{f.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},kt=(f,p,m,w=!1,y=!1,x=0)=>{for(let T=x;T{if(f.shapeFlag&6)return xt(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const p=d(f.anchor||f.el),m=p&&p[Ta];return m?d(m):p};let zt=!1;const O=(f,p,m)=>{f==null?p._vnode&&Oe(p._vnode,null,null,!0):v(p._vnode||null,f,p,null,null,null,m),p._vnode=f,zt||(zt=!0,Es(),Ts(),zt=!1)},A={p:v,um:Oe,m:wt,r:In,mt:Y,mc:G,pc:ye,pbc:Z,n:xt,o:e};let U,de;return{render:O,hydrate:U,createApp:Ua(O,U)}}function ti({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Mt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Xa(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Vs(e,t,n=!1){const r=e.children,i=t.children;if(V(r)&&V(i))for(let s=0;s>1,e[n[o]]0&&(t[r]=n[s-1]),n[s]=r)}}for(s=n.length,l=n[s-1];s-- >0;)n[s]=l,l=t[l];return n}function Ws(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ws(t)}function qs(e){if(e)for(let t=0;tQn(tc);function Ks(e,t){return Gs(e,null,t)}function Ve(e,t,n){return Gs(e,t,n)}function Gs(e,t,n=ce){const{immediate:r,deep:i,flush:s,once:l}=n,o=He({},n),a=t&&r||!t&&s!=="post";let c;if(wn){if(s==="sync"){const g=nc();c=g.__watcherHandles||(g.__watcherHandles=[])}else if(!a){const g=()=>{};return g.stop=Ct,g.resume=Ct,g.pause=Ct,g}}const u=Te;o.call=(g,k,v)=>ot(g,u,k,v);let h=!1;s==="post"?o.scheduler=g=>{Fe(g,u&&u.suspense)}:s!=="sync"&&(h=!0,o.scheduler=(g,k)=>{k?g():Kr(g)}),o.augmentJob=g=>{t&&(g.flags|=4),h&&(g.flags|=2,u&&(g.id=u.uid,g.i=u))};const d=$a(e,t,o);return wn&&(c?c.push(d):a&&d()),d}const rc=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ne(t)}Modifiers`]||e[`${$t(t)}Modifiers`];function ic(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||ce;let i=n;const s=t.startsWith("update:"),l=s&&rc(r,t.slice(7));l&&(l.trim&&(i=n.map(u=>we(u)?u.trim():u)),l.number&&(i=n.map(Nn)));let o,a=r[o=Er(t)]||r[o=Er(Ne(t))];!a&&s&&(a=r[o=Er($t(t))]),a&&ot(a,e,6,i);const c=r[o+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,ot(c,e,6,i)}}function sc(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const s=e.emits;let l={};return!s&&!!1?(ge(e)&&r.set(e,null),null):(V(s)?s.forEach(a=>l[a]=null):He(l,s),ge(e)&&r.set(e,l),l)}function Xn(e,t){return!e||!zn(t)?!1:(t=t.slice(2).replace(/Once$/,""),ee(e,t[0].toLowerCase()+t.slice(1))||ee(e,$t(t))||ee(e,t))}function ni(e){const{type:t,vnode:n,proxy:r,withProxy:i,propsOptions:[s],slots:l,attrs:o,emit:a,render:c,renderCache:u,props:h,data:d,setupState:g,ctx:k,inheritAttrs:v}=e,$=Zn(e);let b,C;try{if(n.shapeFlag&4){const E=i||r,j=E;b=et(c.call(j,E,u,h,g,d,k)),C=o}else{const E=t;b=et(E.length>1?E(h,{attrs:o,slots:l,emit:a}):E(h,null)),C=t.props?o:lc(o)}}catch(E){vn.length=0,Kn(E,e,1),b=oe(Ot)}let N=b;if(C&&v!==!1){const E=Object.keys(C),{shapeFlag:j}=N;E.length&&j&7&&(s&&E.some(Rr)&&(C=oc(C,s)),N=Gt(N,C,!1,!0))}return n.dirs&&(N=Gt(N,null,!1,!0),N.dirs=N.dirs?N.dirs.concat(n.dirs):n.dirs),n.transition&&Gr(N,n.transition),b=N,Zn($),b}const lc=e=>{let t;for(const n in e)(n==="class"||n==="style"||zn(n))&&((t||(t={}))[n]=e[n]);return t},oc=(e,t)=>{const n={};for(const r in e)(!Rr(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function ac(e,t,n){const{props:r,children:i,component:s}=e,{props:l,children:o,patchFlag:a}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?Zs(r,l,c):!!l;if(a&8){const u=t.dynamicProps;for(let h=0;he.__isSuspense;function uc(e,t){t&&t.pendingBranch?V(e)?t.effects.push(...e):t.effects.push(e):Aa(e)}const he=Symbol.for("v-fgt"),er=Symbol.for("v-txt"),Ot=Symbol.for("v-cmt"),ri=Symbol.for("v-stc"),vn=[];let De=null;function I(e=!1){vn.push(De=e?null:[])}function fc(){vn.pop(),De=vn[vn.length-1]||null}let bn=1;function Ys(e,t=!1){bn+=e,e<0&&De&&t&&(De.hasOnce=!0)}function Qs(e){return e.dynamicChildren=bn>0?De||Dt:null,fc(),bn>0&&De&&De.push(e),e}function P(e,t,n,r,i,s){return Qs(H(e,t,n,r,i,s,!0))}function at(e,t,n,r,i){return Qs(oe(e,t,n,r,i,!0))}function tr(e){return e?e.__v_isVNode===!0:!1}function yn(e,t){return e.type===t.type&&e.key===t.key}const Xs=({key:e})=>e??null,nr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?we(e)||xe(e)||le(e)?{i:Me,r:e,k:t,f:!!n}:e:null);function H(e,t=null,n=null,r=0,i=null,s=e===he?0:1,l=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Xs(t),ref:t&&nr(t),scopeId:Is,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Me};return o?(ii(a,n),s&128&&e.normalize(a)):n&&(a.shapeFlag|=we(n)?8:16),bn>0&&!l&&De&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&De.push(a),a}const oe=hc;function hc(e,t=null,n=null,r=0,i=null,s=!1){if((!e||e===Fa)&&(e=Ot),tr(e)){const o=Gt(e,t,!0);return n&&ii(o,n),bn>0&&!s&&De&&(o.shapeFlag&6?De[De.indexOf(e)]=o:De.push(o)),o.patchFlag=-2,o}if(Cc(e)&&(e=e.__vccOpts),t){t=dc(t);let{class:o,style:a}=t;o&&!we(o)&&(t.class=ve(o)),ge(a)&&(Wr(a)&&!V(a)&&(a=He({},a)),t.style=nn(a))}const l=we(e)?1:Js(e)?128:La(e)?64:ge(e)?4:le(e)?2:0;return H(e,t,n,r,i,l,s,!0)}function dc(e){return e?Wr(e)||zs(e)?He({},e):e:null}function Gt(e,t,n=!1,r=!1){const{props:i,ref:s,patchFlag:l,children:o,transition:a}=e,c=t?pc(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Xs(c),ref:t&&t.ref?n&&s?V(s)?s.concat(nr(t)):[s,nr(t)]:nr(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:o,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==he?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Gt(e.ssContent),ssFallback:e.ssFallback&&Gt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&Gr(u,a.clone(u)),u}function ct(e=" ",t=0){return oe(er,null,e,t)}function Q(e="",t=!1){return t?(I(),at(Ot,null,e)):oe(Ot,null,e)}function et(e){return e==null||typeof e=="boolean"?oe(Ot):V(e)?oe(he,null,e.slice()):tr(e)?bt(e):oe(er,null,String(e))}function bt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Gt(e)}function ii(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(V(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),ii(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!zs(t)?t._ctx=Me:i===3&&Me&&(Me.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else le(t)?(t={default:t,_ctx:Me},n=32):(t=String(t),r&64?(n=16,t=[ct(t)]):n=8);e.children=t,e.shapeFlag|=n}function pc(...e){const t={};for(let n=0;nTe||Me;let rr,si;{const e=tn(),t=(n,r)=>{let i;return(i=e[n])||(i=e[n]=[]),i.push(r),s=>{i.length>1?i.forEach(l=>l(s)):i[0](s)}};rr=t("__VUE_INSTANCE_SETTERS__",n=>Te=n),si=t("__VUE_SSR_SETTERS__",n=>wn=n)}const li=e=>{const t=Te;return rr(e),e.scope.on(),()=>{e.scope.off(),rr(t)}},el=()=>{Te&&Te.scope.off(),rr(null)};function tl(e){return e.vnode.shapeFlag&4}let wn=!1;function yc(e,t=!1,n=!1){t&&si(t);const{props:r,children:i}=e.vnode,s=tl(e);Va(e,r,s,t),Ga(e,i,n);const l=s?wc(e,t):void 0;return t&&si(!1),l}function wc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ha);const{setup:r}=n;if(r){Rt();const i=e.setupContext=r.length>1?xc(e):null,s=li(e),l=fn(r,e,0,[e.props,i]),o=es(l);if(At(),s(),(o||e.sp)&&!pn(e)&&Ia(e),o){if(l.then(el,el),t)return l.then(a=>{nl(e,a,t)}).catch(a=>{Kn(a,e,0)});e.asyncDep=l}else nl(e,l,t)}else il(e,t)}function nl(e,t,n){le(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=Ss(t)),il(e,n)}let rl;function il(e,t,n){const r=e.type;if(!e.render){if(!t&&rl&&!r.render){const i=r.template||!1;if(i){const{isCustomElement:s,compilerOptions:l}=e.appContext.config,{delimiters:o,compilerOptions:a}=r,c=He(He({isCustomElement:s,delimiters:o},l),a);r.render=rl(i,c)}}e.render=r.render||Ct}}const kc={get(e,t){return $e(e,"get",""),e[t]}};function xc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,kc),slots:e.slots,emit:e.emit,expose:t}}function ir(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ss(ba(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in mn)return mn[n](e)},has(t,n){return n in t||n in mn}})):e.proxy}function _c(e,t=!0){return le(e)?e.displayName||e.name:e.name||t&&e.__name}function Cc(e){return le(e)&&"__vccOpts"in e}const _e=(e,t)=>_a(e,t,wn);function ne(e,t,n){const r=arguments.length;return r===2?ge(t)&&!V(t)?tr(t)?oe(e,null,[t]):oe(e,t):oe(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&tr(n)&&(n=[n]),oe(e,t,n))}const $c="3.5.13";/** +* @vue/runtime-dom v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let oi;const sl=typeof window<"u"&&window.trustedTypes;if(sl)try{oi=sl.createPolicy("vue",{createHTML:e=>e})}catch{}const ll=oi?e=>oi.createHTML(e):e=>e,Sc="http://www.w3.org/2000/svg",Rc="http://www.w3.org/1998/Math/MathML",ut=typeof document<"u"?document:null,ol=ut&&ut.createElement("template"),Ac={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 i=t==="svg"?ut.createElementNS(Sc,e):t==="mathml"?ut.createElementNS(Rc,e):n?ut.createElement(e,{is:n}):ut.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>ut.createTextNode(e),createComment:e=>ut.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ut.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,s){const l=n?n.previousSibling:t.lastChild;if(i&&(i===s||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===s||!(i=i.nextSibling)););else{ol.innerHTML=ll(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const o=ol.content;if(r==="svg"||r==="mathml"){const a=o.firstChild;for(;a.firstChild;)o.appendChild(a.firstChild);o.removeChild(a)}t.insertBefore(o,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ec=Symbol("_vtc");function Tc(e,t,n){const r=e[Ec];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const sr=Symbol("_vod"),al=Symbol("_vsh"),cl={beforeMount(e,{value:t},{transition:n}){e[sr]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):kn(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),kn(e,!0),r.enter(e)):r.leave(e,()=>{kn(e,!1)}):kn(e,t))},beforeUnmount(e,{value:t}){kn(e,t)}};function kn(e,t){e.style.display=t?e[sr]:"none",e[al]=!t}const Lc=Symbol(""),Ic=/(^|;)\s*display\s*:/;function Mc(e,t,n){const r=e.style,i=we(n);let s=!1;if(n&&!i){if(t)if(we(t))for(const l of t.split(";")){const o=l.slice(0,l.indexOf(":")).trim();n[o]==null&&lr(r,o,"")}else for(const l in t)n[l]==null&&lr(r,l,"");for(const l in n)l==="display"&&(s=!0),lr(r,l,n[l])}else if(i){if(t!==n){const l=r[Lc];l&&(n+=";"+l),r.cssText=n,s=Ic.test(n)}}else t&&e.removeAttribute("style");sr in e&&(e[sr]=s?r.display:"",e[al]&&(r.display="none"))}const ul=/\s*!important$/;function lr(e,t,n){if(V(n))n.forEach(r=>lr(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Oc(e,t);ul.test(n)?e.setProperty($t(r),n.replace(ul,""),"important"):e[r]=n}}const fl=["Webkit","Moz","ms"],ai={};function Oc(e,t){const n=ai[t];if(n)return n;let r=Ne(t);if(r!=="filter"&&r in e)return ai[t]=r;r=Dn(r);for(let i=0;ici||(Fc.then(()=>ci=0),ci=Date.now());function Hc(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;ot(Nc(r,n.value),t,5,[r])};return n.value=e,n.attached=Dc(),n}function Nc(e,t){if(V(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const vl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Uc=(e,t,n,r,i,s)=>{const l=i==="svg";t==="class"?Tc(e,r,l):t==="style"?Mc(e,n,r):zn(t)?Rr(t)||jc(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Bc(e,t,r,l))?(pl(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&dl(e,t,r,l,s,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!we(r))?pl(e,Ne(t),r,s,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),dl(e,t,r,l))};function Bc(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&vl(t)&&le(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const i=e.tagName;if(i==="IMG"||i==="VIDEO"||i==="CANVAS"||i==="SOURCE")return!1}return vl(t)&&we(n)?!1:t in e}const yt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return V(t)?n=>Hn(t,n):t};function Vc(e){e.target.composing=!0}function bl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const We=Symbol("_assign"),ui={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[We]=yt(i);const s=r||i.props&&i.props.type==="number";ft(e,t?"change":"input",l=>{if(l.target.composing)return;let o=e.value;n&&(o=o.trim()),s&&(o=Nn(o)),e[We](o)}),n&&ft(e,"change",()=>{e.value=e.value.trim()}),t||(ft(e,"compositionstart",Vc),ft(e,"compositionend",bl),ft(e,"change",bl))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:s}},l){if(e[We]=yt(l),e.composing)return;const o=(s||e.type==="number")&&!/^0\d/.test(e.value)?Nn(e.value):e.value,a=t??"";o!==a&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||i&&e.value.trim()===a)||(e.value=a))}},Wc={deep:!0,created(e,t,n){e[We]=yt(n),ft(e,"change",()=>{const r=e._modelValue,i=Zt(e),s=e.checked,l=e[We];if(V(r)){const o=Tr(r,i),a=o!==-1;if(s&&!a)l(r.concat(i));else if(!s&&a){const c=[...r];c.splice(o,1),l(c)}}else if(Nt(r)){const o=new Set(r);s?o.add(i):o.delete(i),l(o)}else l(kl(e,s))})},mounted:yl,beforeUpdate(e,t,n){e[We]=yt(n),yl(e,t,n)}};function yl(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(V(t))i=Tr(t,r.props.value)>-1;else if(Nt(t))i=t.has(r.props.value);else{if(t===n)return;i=St(t,kl(e,!0))}e.checked!==i&&(e.checked=i)}const qc={created(e,{value:t},n){e.checked=St(t,n.props.value),e[We]=yt(n),ft(e,"change",()=>{e[We](Zt(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[We]=yt(r),t!==n&&(e.checked=St(t,r.props.value))}},Kc={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=Nt(t);ft(e,"change",()=>{const s=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?Nn(Zt(l)):Zt(l));e[We](e.multiple?i?new Set(s):s:s[0]),e._assigning=!0,qt(()=>{e._assigning=!1})}),e[We]=yt(r)},mounted(e,{value:t}){wl(e,t)},beforeUpdate(e,t,n){e[We]=yt(n)},updated(e,{value:t}){e._assigning||wl(e,t)}};function wl(e,t){const n=e.multiple,r=V(t);if(!(n&&!r&&!Nt(t))){for(let i=0,s=e.options.length;iString(c)===String(o)):l.selected=Tr(t,o)>-1}else l.selected=t.has(o);else if(St(Zt(l),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Zt(e){return"_value"in e?e._value:e.value}function kl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Gc={created(e,t,n){or(e,t,n,null,"created")},mounted(e,t,n){or(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){or(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){or(e,t,n,r,"updated")}};function Zc(e,t){switch(e){case"SELECT":return Kc;case"TEXTAREA":return ui;default:switch(t){case"checkbox":return Wc;case"radio":return qc;default:return ui}}}function or(e,t,n,r,i){const l=Zc(e.tagName,n.props&&n.props.type)[i];l&&l(e,t,n,r)}const Jc=He({patchProp:Uc},Ac);let xl;function Yc(){return xl||(xl=Ya(Jc))}const Qc=(...e)=>{const t=Yc().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=eu(r);if(!i)return;const s=t._component;!le(s)&&!s.render&&!s.template&&(s.template=i.innerHTML),i.nodeType===1&&(i.textContent="");const l=n(i,!1,Xc(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),l},t};function Xc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function eu(e){return we(e)?document.querySelector(e):e}function xn(e){return as()?(Qo(e),!0):!1}function ht(e){return typeof e=="function"?e():q(e)}const ar=typeof window<"u"&&typeof document<"u",tu=Object.prototype.toString,nu=e=>tu.call(e)==="[object Object]",cr=()=>{};function _l(e,t){function n(...r){return new Promise((i,s)=>{Promise.resolve(e(()=>t.apply(this,r),{fn:t,thisArg:this,args:r})).then(i).catch(s)})}return n}const Cl=e=>e();function ru(e,t={}){let n,r,i=cr;const s=o=>{clearTimeout(o),i(),i=cr};return o=>{const a=ht(e),c=ht(t.maxWait);return n&&s(n),a<=0||c!==void 0&&c<=0?(r&&(s(r),r=null),Promise.resolve(o())):new Promise((u,h)=>{i=t.rejectOnCancel?h:u,c&&!r&&(r=setTimeout(()=>{n&&s(n),r=null,u(o())},c)),n=setTimeout(()=>{r&&s(r),r=null,u(o())},a)})}}function iu(e=Cl){const t=W(!0);function n(){t.value=!1}function r(){t.value=!0}const i=(...s)=>{t.value&&e(...s)};return{isActive:un(t),pause:n,resume:r,eventFilter:i}}function $l(e){return bc()}function su(e,t=200,n={}){return _l(ru(t,n),e)}function lu(e,t,n={}){const{eventFilter:r=Cl,...i}=n;return Ve(e,_l(r,t),i)}function ou(e,t,n={}){const{eventFilter:r,...i}=n,{eventFilter:s,pause:l,resume:o,isActive:a}=iu(r);return{stop:lu(e,t,{...i,eventFilter:s}),pause:l,resume:o,isActive:a}}function fi(e,t=!0,n){$l()?gn(e,n):t?e():qt(e)}function au(e,t){$l()&&Jr(e,t)}function cu(e,t=1e3,n={}){const{immediate:r=!0,immediateCallback:i=!1}=n;let s=null;const l=W(!1);function o(){s&&(clearInterval(s),s=null)}function a(){l.value=!1,o()}function c(){const u=ht(t);u<=0||(l.value=!0,i&&e(),o(),l.value&&(s=setInterval(e,u)))}if(r&&ar&&c(),xe(t)||typeof t=="function"){const u=Ve(t,()=>{l.value&&ar&&c()});xn(u)}return xn(a),{isActive:l,pause:a,resume:c}}const ur=ar?window:void 0,Sl=ar?window.document:void 0;function uu(e){var t;const n=ht(e);return(t=n==null?void 0:n.$el)!=null?t:n}function fr(...e){let t,n,r,i;if(typeof e[0]=="string"||Array.isArray(e[0])?([n,r,i]=e,t=ur):[t,n,r,i]=e,!t)return cr;Array.isArray(n)||(n=[n]),Array.isArray(r)||(r=[r]);const s=[],l=()=>{s.forEach(u=>u()),s.length=0},o=(u,h,d,g)=>(u.addEventListener(h,d,g),()=>u.removeEventListener(h,d,g)),a=Ve(()=>[uu(t),ht(i)],([u,h])=>{if(l(),!u)return;const d=nu(h)?{...h}:h;s.push(...n.flatMap(g=>r.map(k=>o(u,g,k,d))))},{immediate:!0,flush:"post"}),c=()=>{a(),l()};return xn(c),c}function fu(e,t={}){const{immediate:n=!0,fpsLimit:r=void 0,window:i=ur}=t,s=W(!1),l=r?1e3/r:null;let o=0,a=null;function c(d){if(!s.value||!i)return;o||(o=d);const g=d-o;if(l&&ge==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},Rl="vueuse-storage";function Jt(e,t,n,r={}){var i;const{flush:s="pre",deep:l=!0,listenToStorageChanges:o=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:u,window:h=ur,eventFilter:d,onError:g=Z=>{console.error(Z)},initOnMounted:k}=r,v=(u?ya:W)(typeof t=="function"?t():t);if(!n)try{n=pu("getDefaultStorage",()=>{var Z;return(Z=ur)==null?void 0:Z.localStorage})()}catch(Z){g(Z)}if(!n)return v;const $=ht(t),b=gu($),C=(i=r.serializer)!=null?i:mu[b],{pause:N,resume:E}=ou(v,()=>K(v.value),{flush:s,deep:l,eventFilter:d});h&&o&&fi(()=>{n instanceof Storage?fr(h,"storage",G):fr(h,Rl,Ie),k&&G()}),k||G();function j(Z,re){if(h){const me={key:e,oldValue:Z,newValue:re,storageArea:n};h.dispatchEvent(n instanceof Storage?new StorageEvent("storage",me):new CustomEvent(Rl,{detail:me}))}}function K(Z){try{const re=n.getItem(e);if(Z==null)j(re,null),n.removeItem(e);else{const me=C.write(Z);re!==me&&(n.setItem(e,me),j(re,me))}}catch(re){g(re)}}function z(Z){const re=Z?Z.newValue:n.getItem(e);if(re==null)return a&&$!=null&&n.setItem(e,C.write($)),$;if(!Z&&c){const me=C.read(re);return typeof c=="function"?c(me,$):b==="object"&&!Array.isArray(me)?{...$,...me}:me}else return typeof re!="string"?re:C.read(re)}function G(Z){if(!(Z&&Z.storageArea!==n)){if(Z&&Z.key==null){v.value=$;return}if(!(Z&&Z.key!==e)){N();try{(Z==null?void 0:Z.newValue)!==C.write(v.value)&&(v.value=z(Z))}catch(re){g(re)}finally{Z?qt(E):E()}}}}function Ie(Z){G(Z.detail)}return v}function vu(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=W(new Date),i=()=>r.value=new Date,s=n==="requestAnimationFrame"?fu(i,{immediate:!0}):cu(i,n,{immediate:!0});return t?{now:r,...s}:r}function bu(e,t=cr,n={}){const{immediate:r=!0,manual:i=!1,type:s="text/javascript",async:l=!0,crossOrigin:o,referrerPolicy:a,noModule:c,defer:u,document:h=Sl,attrs:d={}}=n,g=W(null);let k=null;const v=C=>new Promise((N,E)=>{const j=G=>(g.value=G,N(G),G);if(!h){N(!1);return}let K=!1,z=h.querySelector(`script[src="${ht(e)}"]`);z?z.hasAttribute("data-loaded")&&j(z):(z=h.createElement("script"),z.type=s,z.async=l,z.src=ht(e),u&&(z.defer=u),o&&(z.crossOrigin=o),c&&(z.noModule=c),a&&(z.referrerPolicy=a),Object.entries(d).forEach(([G,Ie])=>z==null?void 0:z.setAttribute(G,Ie)),K=!0),z.addEventListener("error",G=>E(G)),z.addEventListener("abort",G=>E(G)),z.addEventListener("load",()=>{z.setAttribute("data-loaded","true"),t(z),j(z)}),K&&(z=h.head.appendChild(z)),C||j(z)}),$=(C=!0)=>(k||(k=v(C)),k),b=()=>{if(!h)return;k=null,g.value&&(g.value=null);const C=h.querySelector(`script[src="${ht(e)}"]`);C&&h.head.removeChild(C)};return r&&!i&&fi($),i||au(b),{scriptTag:g,load:$,unload:b}}let yu=0;function wu(e,t={}){const n=W(!1),{document:r=Sl,immediate:i=!0,manual:s=!1,id:l=`vueuse_styletag_${++yu}`}=t,o=W(e);let a=()=>{};const c=()=>{if(!r)return;const h=r.getElementById(l)||r.createElement("style");h.isConnected||(h.id=l,t.media&&(h.media=t.media),r.head.appendChild(h)),!n.value&&(a=Ve(o,d=>{h.textContent=d},{immediate:!0}),n.value=!0)},u=()=>{!r||!n.value||(a(),r.head.removeChild(r.getElementById(l)),n.value=!1)};return i&&!s&&fi(c),s||xn(u),{id:l,css:o,unload:u,load:c,isLoaded:un(n)}}const ku=e=>!!/@[0-9]+\.[0-9]+\.[0-9]+/.test(e),xu=e=>{const t=Jt("WALINE_EMOJI",{}),n=ku(e);if(n){const r=t.value[e];if(r)return Promise.resolve(r)}return fetch(`${e}/info.json`).then(r=>r.json()).then(r=>{const i={folder:e,...r};return n&&(t.value[e]=i),i})},Al=(e,t="",n="",r="")=>`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`,_u=e=>Promise.all(e.map(t=>Ft(t)?xu(Ji(t)):Promise.resolve(t))).then(t=>{const n={tabs:[],map:{}};return t.forEach(r=>{const{name:i,folder:s,icon:l,prefix:o="",type:a,items:c}=r;n.tabs.push({name:i,icon:Al(l,s,o,a),items:c.map(u=>{const h=`${o}${u}`;return n.map[h]=Al(u,s,o,a),h})})}),n}),El=e=>{e.name!=="AbortError"&&console.error(e.message)},hi=e=>e instanceof HTMLElement?e:Ft(e)?document.querySelector(e):null,Cu=e=>e.type.includes("image"),Tl=e=>{const t=Array.from(e).find(Cu);return t?t.getAsFile():null};function di(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let Pt=di();function Ll(e){Pt=e}const _n={exec:()=>null};function ae(e,t=""){let n=typeof e=="string"?e:e.source;const r={replace:(i,s)=>{let l=typeof s=="string"?s:s.source;return l=l.replace(Le.caret,"$1"),n=n.replace(i,l),r},getRegex:()=>new RegExp(n,t)};return r}const Le={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},$u=/^(?:[ \t]*(?:\n|$))+/,Su=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Ru=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Cn=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Au=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Il=/(?:[*+-]|\d{1,9}[.)])/,Ml=ae(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,Il).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),pi=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Eu=/^[^\n]+/,gi=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Tu=ae(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",gi).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Lu=ae(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Il).getRegex(),pr="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|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",mi=/|$))/,Iu=ae("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",mi).replace("tag",pr).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Ol=ae(pi).replace("hr",Cn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",pr).getRegex(),Mu=ae(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Ol).getRegex(),vi={blockquote:Mu,code:Su,def:Tu,fences:Ru,heading:Au,hr:Cn,html:Iu,lheading:Ml,list:Lu,newline:$u,paragraph:Ol,table:_n,text:Eu},Pl=ae("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Cn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",pr).getRegex(),Ou={...vi,table:Pl,paragraph:ae(pi).replace("hr",Cn).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Pl).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",pr).getRegex()},Pu={...vi,html:ae(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",mi).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:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:_n,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ae(pi).replace("hr",Cn).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",Ml).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},jl=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,ju=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,zl=/^( {2,}|\\)\n(?!\s*$)/,zu=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g,Hu=ae(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,$n).getRegex(),Nu=ae("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,$n).getRegex(),Uu=ae("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,$n).getRegex(),Bu=ae(/\\([punct])/,"gu").replace(/punct/g,$n).getRegex(),Vu=ae(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("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])?)+(?![-_])/).getRegex(),Wu=ae(mi).replace("(?:-->|$)","-->").getRegex(),qu=ae("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",Wu).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),gr=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ku=ae(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",gr).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Fl=ae(/^!?\[(label)\]\[(ref)\]/).replace("label",gr).replace("ref",gi).getRegex(),Dl=ae(/^!?\[(ref)\](?:\[\])?/).replace("ref",gi).getRegex(),Gu=ae("reflink|nolink(?!\\()","g").replace("reflink",Fl).replace("nolink",Dl).getRegex(),bi={_backpedal:_n,anyPunctuation:Bu,autolink:Vu,blockSkip:Du,br:zl,code:ju,del:_n,emStrongLDelim:Hu,emStrongRDelimAst:Nu,emStrongRDelimUnd:Uu,escape:jl,link:Ku,nolink:Dl,punctuation:Fu,reflink:Fl,reflinkSearch:Gu,tag:qu,text:zu,url:_n},Zu={...bi,link:ae(/^!?\[(label)\]\((.*?)\)/).replace("label",gr).getRegex(),reflink:ae(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",gr).getRegex()},yi={...bi,escape:ae(jl).replace("])","~|])").getRegex(),url:ae(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\.|[^\\])*?(?:\\.|[^\s~\\]))\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\":">",'"':""","'":"'"},Hl=e=>Yu[e];function nt(e,t){if(t){if(Le.escapeTest.test(e))return e.replace(Le.escapeReplace,Hl)}else if(Le.escapeTestNoEncode.test(e))return e.replace(Le.escapeReplaceNoEncode,Hl);return e}function Nl(e){try{e=encodeURI(e).replace(Le.percentDecode,"%")}catch{return null}return e}function Ul(e,t){var s;const n=e.replace(Le.findPipe,(l,o,a)=>{let c=!1,u=o;for(;--u>=0&&a[u]==="\\";)c=!c;return c?"|":" |"}),r=n.split(Le.splitPipe);let i=0;if(r[0].trim()||r.shift(),r.length>0&&!((s=r.at(-1))!=null&&s.trim())&&r.pop(),t)if(r.length>t)r.splice(t);else for(;r.length{const l=s.match(n.other.beginningSpace);if(l===null)return s;const[o]=l;return o.length>=i.length?s.slice(i.length):s}).join(` +`)}class vr{options;rules;lexer;constructor(t){this.options=t||Pt}space(t){const n=this.rules.block.newline.exec(t);if(n&&n[0].length>0)return{type:"space",raw:n[0]}}code(t){const n=this.rules.block.code.exec(t);if(n){const r=n[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:n[0],codeBlockStyle:"indented",text:this.options.pedantic?r:Rn(r,` +`)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const r=n[0],i=Xu(r,n[3]||"",this.rules);return{type:"code",raw:r,lang:n[2]?n[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):n[2],text:i}}}heading(t){const n=this.rules.block.heading.exec(t);if(n){let r=n[2].trim();if(this.rules.other.endingHash.test(r)){const i=Rn(r,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(r=i.trim())}return{type:"heading",raw:n[0],depth:n[1].length,text:r,tokens:this.lexer.inline(r)}}}hr(t){const n=this.rules.block.hr.exec(t);if(n)return{type:"hr",raw:Rn(n[0],` +`)}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){let r=Rn(n[0],` +`).split(` +`),i="",s="";const l=[];for(;r.length>0;){let o=!1;const a=[];let c;for(c=0;c1,s={type:"list",raw:"",ordered:i,start:i?+r.slice(0,-1):"",loose:!1,items:[]};r=i?`\\d{1,9}\\${r.slice(-1)}`:`\\${r}`,this.options.pedantic&&(r=i?r:"[*+-]");const l=this.rules.other.listItemRegex(r);let o=!1;for(;t;){let c=!1,u="",h="";if(!(n=l.exec(t))||this.rules.block.hr.test(t))break;u=n[0],t=t.substring(u.length);let d=n[2].split(` +`,1)[0].replace(this.rules.other.listReplaceTabs,C=>" ".repeat(3*C.length)),g=t.split(` +`,1)[0],k=!d.trim(),v=0;if(this.options.pedantic?(v=2,h=d.trimStart()):k?v=n[1].length+1:(v=n[2].search(this.rules.other.nonSpaceChar),v=v>4?1:v,h=d.slice(v),v+=n[1].length),k&&this.rules.other.blankLine.test(g)&&(u+=g+` +`,t=t.substring(g.length+1),c=!0),!c){const C=this.rules.other.nextBulletRegex(v),N=this.rules.other.hrRegex(v),E=this.rules.other.fencesBeginRegex(v),j=this.rules.other.headingBeginRegex(v),K=this.rules.other.htmlBeginRegex(v);for(;t;){const z=t.split(` +`,1)[0];let G;if(g=z,this.options.pedantic?(g=g.replace(this.rules.other.listReplaceNesting," "),G=g):G=g.replace(this.rules.other.tabCharGlobal," "),E.test(g)||j.test(g)||K.test(g)||C.test(g)||N.test(g))break;if(G.search(this.rules.other.nonSpaceChar)>=v||!g.trim())h+=` +`+G.slice(v);else{if(k||d.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||E.test(d)||j.test(d)||N.test(d))break;h+=` +`+g}!k&&!g.trim()&&(k=!0),u+=z+` +`,t=t.substring(z.length+1),d=G.slice(v)}}s.loose||(o?s.loose=!0:this.rules.other.doubleBlankLine.test(u)&&(o=!0));let $=null,b;this.options.gfm&&($=this.rules.other.listIsTask.exec(h),$&&(b=$[0]!=="[ ] ",h=h.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:u,task:!!$,checked:b,loose:!1,text:h,tokens:[]}),s.raw+=u}const a=s.items.at(-1);a&&(a.raw=a.raw.trimEnd(),a.text=a.text.trimEnd()),s.raw=s.raw.trimEnd();for(let c=0;cd.type==="space"),h=u.length>0&&u.some(d=>this.rules.other.anyLine.test(d.raw));s.loose=h}if(s.loose)for(let c=0;c({text:c,tokens:this.lexer.inline(c),header:!1,align:l.align[u]})));return l}}lheading(t){const n=this.rules.block.lheading.exec(t);if(n)return{type:"heading",raw:n[0],depth:n[2].charAt(0)==="="?1:2,text:n[1],tokens:this.lexer.inline(n[1])}}paragraph(t){const n=this.rules.block.paragraph.exec(t);if(n){const r=n[1].charAt(n[1].length-1)===` +`?n[1].slice(0,-1):n[1];return{type:"paragraph",raw:n[0],text:r,tokens:this.lexer.inline(r)}}}text(t){const n=this.rules.block.text.exec(t);if(n)return{type:"text",raw:n[0],text:n[0],tokens:this.lexer.inline(n[0])}}escape(t){const n=this.rules.inline.escape.exec(t);if(n)return{type:"escape",raw:n[0],text:n[1]}}tag(t){const n=this.rules.inline.tag.exec(t);if(n)return!this.lexer.state.inLink&&this.rules.other.startATag.test(n[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(n[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(n[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(n[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:n[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:n[0]}}link(t){const n=this.rules.inline.link.exec(t);if(n){const r=n[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(r)){if(!this.rules.other.endAngleBracket.test(r))return;const l=Rn(r.slice(0,-1),"\\");if((r.length-l.length)%2===0)return}else{const l=Qu(n[2],"()");if(l>-1){const a=(n[0].indexOf("!")===0?5:4)+n[1].length+l;n[2]=n[2].substring(0,l),n[0]=n[0].substring(0,a).trim(),n[3]=""}}let i=n[2],s="";if(this.options.pedantic){const l=this.rules.other.pedanticHrefTitle.exec(i);l&&(i=l[1],s=l[3])}else s=n[3]?n[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(r)?i=i.slice(1):i=i.slice(1,-1)),Bl(n,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},n[0],this.lexer,this.rules)}}reflink(t,n){let r;if((r=this.rules.inline.reflink.exec(t))||(r=this.rules.inline.nolink.exec(t))){const i=(r[2]||r[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=n[i.toLowerCase()];if(!s){const l=r[0].charAt(0);return{type:"text",raw:l,text:l}}return Bl(r,s,r[0],this.lexer,this.rules)}}emStrong(t,n,r=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!i||i[3]&&r.match(this.rules.other.unicodeAlphaNumeric))return;if(!(i[1]||i[2]||"")||!r||this.rules.inline.punctuation.exec(r)){const l=[...i[0]].length-1;let o,a,c=l,u=0;const h=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,n=n.slice(-1*t.length+l);(i=h.exec(n))!=null;){if(o=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!o)continue;if(a=[...o].length,i[3]||i[4]){c+=a;continue}else if((i[5]||i[6])&&l%3&&!((l+a)%3)){u+=a;continue}if(c-=a,c>0)continue;a=Math.min(a,a+c+u);const d=[...i[0]][0].length,g=t.slice(0,l+i.index+d+a);if(Math.min(l,a)%2){const v=g.slice(1,-1);return{type:"em",raw:g,text:v,tokens:this.lexer.inlineTokens(v)}}const k=g.slice(2,-2);return{type:"strong",raw:g,text:k,tokens:this.lexer.inlineTokens(k)}}}}codespan(t){const n=this.rules.inline.code.exec(t);if(n){let r=n[2].replace(this.rules.other.newLineCharGlobal," ");const i=this.rules.other.nonSpaceChar.test(r),s=this.rules.other.startingSpaceChar.test(r)&&this.rules.other.endingSpaceChar.test(r);return i&&s&&(r=r.substring(1,r.length-1)),{type:"codespan",raw:n[0],text:r}}}br(t){const n=this.rules.inline.br.exec(t);if(n)return{type:"br",raw:n[0]}}del(t){const n=this.rules.inline.del.exec(t);if(n)return{type:"del",raw:n[0],text:n[2],tokens:this.lexer.inlineTokens(n[2])}}autolink(t){const n=this.rules.inline.autolink.exec(t);if(n){let r,i;return n[2]==="@"?(r=n[1],i="mailto:"+r):(r=n[1],i=r),{type:"link",raw:n[0],text:r,href:i,tokens:[{type:"text",raw:r,text:r}]}}}url(t){var r;let n;if(n=this.rules.inline.url.exec(t)){let i,s;if(n[2]==="@")i=n[0],s="mailto:"+i;else{let l;do l=n[0],n[0]=((r=this.rules.inline._backpedal.exec(n[0]))==null?void 0:r[0])??"";while(l!==n[0]);i=n[0],n[1]==="www."?s="http://"+n[0]:s=n[0]}return{type:"link",raw:n[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(t){const n=this.rules.inline.text.exec(t);if(n){const r=this.lexer.state.inRawBlock;return{type:"text",raw:n[0],text:n[0],escaped:r}}}}class Ge{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Pt,this.options.tokenizer=this.options.tokenizer||new vr,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const n={other:Le,block:mr.normal,inline:Sn.normal};this.options.pedantic?(n.block=mr.pedantic,n.inline=Sn.pedantic):this.options.gfm&&(n.block=mr.gfm,this.options.breaks?n.inline=Sn.breaks:n.inline=Sn.gfm),this.tokenizer.rules=n}static get rules(){return{block:mr,inline:Sn}}static lex(t,n){return new Ge(n).lex(t)}static lexInline(t,n){return new Ge(n).inlineTokens(t)}lex(t){t=t.replace(Le.carriageReturn,` +`),this.blockTokens(t,this.tokens);for(let n=0;n(o=c.call({lexer:this},t,n))?(t=t.substring(o.raw.length),n.push(o),!0):!1))continue;if(o=this.tokenizer.space(t)){t=t.substring(o.raw.length);const c=n.at(-1);o.raw.length===1&&c!==void 0?c.raw+=` +`:n.push(o);continue}if(o=this.tokenizer.code(t)){t=t.substring(o.raw.length);const c=n.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=` +`+o.raw,c.text+=` +`+o.text,this.inlineQueue.at(-1).src=c.text):n.push(o);continue}if(o=this.tokenizer.fences(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.heading(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.hr(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.blockquote(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.list(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.html(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.def(t)){t=t.substring(o.raw.length);const c=n.at(-1);(c==null?void 0:c.type)==="paragraph"||(c==null?void 0:c.type)==="text"?(c.raw+=` +`+o.raw,c.text+=` +`+o.raw,this.inlineQueue.at(-1).src=c.text):this.tokens.links[o.tag]||(this.tokens.links[o.tag]={href:o.href,title:o.title});continue}if(o=this.tokenizer.table(t)){t=t.substring(o.raw.length),n.push(o);continue}if(o=this.tokenizer.lheading(t)){t=t.substring(o.raw.length),n.push(o);continue}let a=t;if((l=this.options.extensions)!=null&&l.startBlock){let c=1/0;const u=t.slice(1);let h;this.options.extensions.startBlock.forEach(d=>{h=d.call({lexer:this},u),typeof h=="number"&&h>=0&&(c=Math.min(c,h))}),c<1/0&&c>=0&&(a=t.substring(0,c+1))}if(this.state.top&&(o=this.tokenizer.paragraph(a))){const c=n.at(-1);r&&(c==null?void 0:c.type)==="paragraph"?(c.raw+=` +`+o.raw,c.text+=` +`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):n.push(o),r=a.length!==t.length,t=t.substring(o.raw.length);continue}if(o=this.tokenizer.text(t)){t=t.substring(o.raw.length);const c=n.at(-1);(c==null?void 0:c.type)==="text"?(c.raw+=` +`+o.raw,c.text+=` +`+o.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=c.text):n.push(o);continue}if(t){const c="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(c);break}else throw new Error(c)}}return this.state.top=!0,n}inline(t,n=[]){return this.inlineQueue.push({src:t,tokens:n}),n}inlineTokens(t,n=[]){var o,a,c;let r=t,i=null;if(this.tokens.links){const u=Object.keys(this.tokens.links);if(u.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null;)u.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.blockSkip.exec(r))!=null;)r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(r))!=null;)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);let s=!1,l="";for(;t;){s||(l=""),s=!1;let u;if((a=(o=this.options.extensions)==null?void 0:o.inline)!=null&&a.some(d=>(u=d.call({lexer:this},t,n))?(t=t.substring(u.raw.length),n.push(u),!0):!1))continue;if(u=this.tokenizer.escape(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.tag(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.link(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(u.raw.length);const d=n.at(-1);u.type==="text"&&(d==null?void 0:d.type)==="text"?(d.raw+=u.raw,d.text+=u.text):n.push(u);continue}if(u=this.tokenizer.emStrong(t,r,l)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.codespan(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.br(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.del(t)){t=t.substring(u.raw.length),n.push(u);continue}if(u=this.tokenizer.autolink(t)){t=t.substring(u.raw.length),n.push(u);continue}if(!this.state.inLink&&(u=this.tokenizer.url(t))){t=t.substring(u.raw.length),n.push(u);continue}let h=t;if((c=this.options.extensions)!=null&&c.startInline){let d=1/0;const g=t.slice(1);let k;this.options.extensions.startInline.forEach(v=>{k=v.call({lexer:this},g),typeof k=="number"&&k>=0&&(d=Math.min(d,k))}),d<1/0&&d>=0&&(h=t.substring(0,d+1))}if(u=this.tokenizer.inlineText(h)){t=t.substring(u.raw.length),u.raw.slice(-1)!=="_"&&(l=u.raw.slice(-1)),s=!0;const d=n.at(-1);(d==null?void 0:d.type)==="text"?(d.raw+=u.raw,d.text+=u.text):n.push(u);continue}if(t){const d="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(d);break}else throw new Error(d)}}return n}}class br{options;parser;constructor(t){this.options=t||Pt}space(t){return""}code({text:t,lang:n,escaped:r}){var l;const i=(l=(n||"").match(Le.notSpaceStart))==null?void 0:l[0],s=t.replace(Le.endingNewline,"")+` +`;return i?'
    '+(r?s:nt(s,!0))+`
    +`:"
    "+(r?s:nt(s,!0))+`
    +`}blockquote({tokens:t}){return`
    +${this.parser.parse(t)}
    +`}html({text:t}){return t}heading({tokens:t,depth:n}){return`${this.parser.parseInline(t)} +`}hr(t){return`
    +`}list(t){const n=t.ordered,r=t.start;let i="";for(let o=0;o +`+i+" +`}listitem(t){var r;let n="";if(t.task){const i=this.checkbox({checked:!!t.checked});t.loose?((r=t.tokens[0])==null?void 0:r.type)==="paragraph"?(t.tokens[0].text=i+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=i+" "+nt(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):n+=i+" "}return n+=this.parser.parse(t.tokens,!!t.loose),`
  • ${n}
  • +`}checkbox({checked:t}){return"'}paragraph({tokens:t}){return`

    ${this.parser.parseInline(t)}

    +`}table(t){let n="",r="";for(let s=0;s${i}`),` + +`+n+` +`+i+`
    +`}tablerow({text:t}){return` +${t} +`}tablecell(t){const n=this.parser.parseInline(t.tokens),r=t.header?"th":"td";return(t.align?`<${r} align="${t.align}">`:`<${r}>`)+n+` +`}strong({tokens:t}){return`${this.parser.parseInline(t)}`}em({tokens:t}){return`${this.parser.parseInline(t)}`}codespan({text:t}){return`${nt(t,!0)}`}br(t){return"
    "}del({tokens:t}){return`${this.parser.parseInline(t)}`}link({href:t,title:n,tokens:r}){const i=this.parser.parseInline(r),s=Nl(t);if(s===null)return i;t=s;let l='
    ",l}image({href:t,title:n,text:r}){const i=Nl(t);if(i===null)return nt(r);t=i;let s=`${r}{const c=o[a].flat(1/0);r=r.concat(this.walkTokens(c,n))}):o.tokens&&(r=r.concat(this.walkTokens(o.tokens,n)))}}return r}use(...t){const n=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(r=>{const i={...r};if(i.async=this.defaults.async||i.async||!1,r.extensions&&(r.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){const l=n.renderers[s.name];l?n.renderers[s.name]=function(...o){let a=s.renderer.apply(this,o);return a===!1&&(a=l.apply(this,o)),a}:n.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const l=n[s.level];l?l.unshift(s.tokenizer):n[s.level]=[s.tokenizer],s.start&&(s.level==="block"?n.startBlock?n.startBlock.push(s.start):n.startBlock=[s.start]:s.level==="inline"&&(n.startInline?n.startInline.push(s.start):n.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(n.childTokens[s.name]=s.childTokens)}),i.extensions=n),r.renderer){const s=this.defaults.renderer||new br(this.defaults);for(const l in r.renderer){if(!(l in s))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;const o=l,a=r.renderer[o],c=s[o];s[o]=(...u)=>{let h=a.apply(s,u);return h===!1&&(h=c.apply(s,u)),h||""}}i.renderer=s}if(r.tokenizer){const s=this.defaults.tokenizer||new vr(this.defaults);for(const l in r.tokenizer){if(!(l in s))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;const o=l,a=r.tokenizer[o],c=s[o];s[o]=(...u)=>{let h=a.apply(s,u);return h===!1&&(h=c.apply(s,u)),h}}i.tokenizer=s}if(r.hooks){const s=this.defaults.hooks||new An;for(const l in r.hooks){if(!(l in s))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;const o=l,a=r.hooks[o],c=s[o];An.passThroughHooks.has(l)?s[o]=u=>{if(this.defaults.async)return Promise.resolve(a.call(s,u)).then(d=>c.call(s,d));const h=a.call(s,u);return c.call(s,h)}:s[o]=(...u)=>{let h=a.apply(s,u);return h===!1&&(h=c.apply(s,u)),h}}i.hooks=s}if(r.walkTokens){const s=this.defaults.walkTokens,l=r.walkTokens;i.walkTokens=function(o){let a=[];return a.push(l.call(this,o)),s&&(a=a.concat(s.call(this,o))),a}}this.defaults={...this.defaults,...i}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,n){return Ge.lex(t,n??this.defaults)}parser(t,n){return Ze.parse(t,n??this.defaults)}parseMarkdown(t){return(r,i)=>{const s={...i},l={...this.defaults,...s},o=this.onError(!!l.silent,!!l.async);if(this.defaults.async===!0&&s.async===!1)return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return o(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));l.hooks&&(l.hooks.options=l,l.hooks.block=t);const a=l.hooks?l.hooks.provideLexer():t?Ge.lex:Ge.lexInline,c=l.hooks?l.hooks.provideParser():t?Ze.parse:Ze.parseInline;if(l.async)return Promise.resolve(l.hooks?l.hooks.preprocess(r):r).then(u=>a(u,l)).then(u=>l.hooks?l.hooks.processAllTokens(u):u).then(u=>l.walkTokens?Promise.all(this.walkTokens(u,l.walkTokens)).then(()=>u):u).then(u=>c(u,l)).then(u=>l.hooks?l.hooks.postprocess(u):u).catch(o);try{l.hooks&&(r=l.hooks.preprocess(r));let u=a(r,l);l.hooks&&(u=l.hooks.processAllTokens(u)),l.walkTokens&&this.walkTokens(u,l.walkTokens);let h=c(u,l);return l.hooks&&(h=l.hooks.postprocess(h)),h}catch(u){return o(u)}}}onError(t,n){return r=>{if(r.message+=` +Please report this to https://github.com/markedjs/marked.`,t){const i="

    An error occurred:

    "+nt(r.message+"",!0)+"
    ";return n?Promise.resolve(i):i}if(n)return Promise.reject(r);throw r}}}const jt=new Vl;function pe(e,t){return jt.parse(e,t)}pe.options=pe.setOptions=function(e){return jt.setOptions(e),pe.defaults=jt.defaults,Ll(pe.defaults),pe},pe.getDefaults=di,pe.defaults=Pt,pe.use=function(...e){return jt.use(...e),pe.defaults=jt.defaults,Ll(pe.defaults),pe},pe.walkTokens=function(e,t){return jt.walkTokens(e,t)},pe.parseInline=jt.parseInline,pe.Parser=Ze,pe.parser=Ze.parse,pe.Renderer=br,pe.TextRenderer=wi,pe.Lexer=Ge,pe.lexer=Ge.lex,pe.Tokenizer=vr,pe.Hooks=An,pe.parse=pe;function ef(e){if(typeof e=="function"&&(e={highlight:e}),!e||typeof e.highlight!="function")throw new Error("Must provide highlight function");return typeof e.langPrefix!="string"&&(e.langPrefix="language-"),typeof e.emptyLangClass!="string"&&(e.emptyLangClass=""),{async:!!e.async,walkTokens(t){if(t.type!=="code")return;const n=Wl(t.lang);if(e.async)return Promise.resolve(e.highlight(t.text,n,t.lang||"")).then(ql(t));const r=e.highlight(t.text,n,t.lang||"");if(r instanceof Promise)throw new Error("markedHighlight is not set to async but the highlight function is async. Set the async option to true on markedHighlight to await the async highlight function.");ql(t)(r)},useNewRenderer:!0,renderer:{code(t,n,r){typeof t=="object"&&(r=t.escaped,n=t.lang,t=t.text);const i=Wl(n),s=i?e.langPrefix+Jl(i):e.emptyLangClass,l=s?` class="${s}"`:"";return t=t.replace(/\n$/,""),`
    ${r?t:Jl(t,!0)}
    +
    `}}}}function Wl(e){return(e||"").match(/\S*/)[0]}function ql(e){return t=>{typeof t=="string"&&t!==e.text&&(e.escaped=!0,e.text=t)}}const Kl=/[&<>"']/,tf=new RegExp(Kl.source,"g"),Gl=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,nf=new RegExp(Gl.source,"g"),rf={"&":"&","<":"<",">":">",'"':""","'":"'"},Zl=e=>rf[e];function Jl(e,t){if(t){if(Kl.test(e))return e.replace(tf,Zl)}else if(Gl.test(e))return e.replace(nf,Zl);return e}const sf=/\$.*?\$/,lf=/^\$(.*?)\$/,of=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,af=e=>[{name:"blockMath",level:"block",tokenizer(t){const n=of.exec(t);if(n!==null)return{type:"html",raw:n[0],text:e(!0,n[1])}}},{name:"inlineMath",level:"inline",start(t){const n=t.search(sf);return n!==-1?n:t.length},tokenizer(t){const n=lf.exec(t);if(n!==null)return{type:"html",raw:n[0],text:e(!1,n[1])}}}],Yl=(e="",t={})=>e.replace(/:(.+?):/g,(n,r)=>t[r]?`${r}`:n),cf=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{const i=new Vl;if(i.setOptions({breaks:!0}),n&&i.use(ef({highlight:n})),r){const s=af(r);i.use({extensions:s})}return i.parse(Yl(e,t))},ki=e=>{const{path:t}=e.dataset;return t!=null&&t.length?t:null},uf=e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu),ff=e=>e.match(/[\u4E00-\u9FD5]/gu),hf=e=>{var t,n;return(((t=uf(e))==null?void 0:t.reduce((r,i)=>r+(["",",","."].includes(i.trim())?0:i.trim().split(/\s+/u).length),0))??0)+(((n=ff(e))==null?void 0:n.length)??0)},df=async()=>{if(!navigator)return"";const{userAgentData:e}=navigator;let t=navigator.userAgent;if(!e||e.platform!=="Windows")return t;const{platformVersion:n}=await e.getHighEntropyValues(["platformVersion"]);return n&&parseInt(n.split(".")[0])>=13&&(t=t.replace("Windows NT 10.0","Windows NT 11.0")),t},Ql=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-comment-count",lang:r=navigator.language})=>{const i=new AbortController,s=document.querySelectorAll(n);return s.length&&Ti({serverURL:jn(e),paths:Array.from(s).map(l=>Zi(ki(l)??t)),lang:r,signal:i.signal}).then(l=>{s.forEach((o,a)=>{o.innerText=l[a].toString()})}).catch(El),i.abort.bind(i)},Xl=({size:e})=>ne("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:e,height:e},[ne("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"}),ne("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"})]),pf=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("path",{d:"m341.013 394.667 27.755 393.45h271.83l27.733-393.45h64.106l-28.01 397.952a64 64 0 0 1-63.83 59.498H368.768a64 64 0 0 1-63.83-59.52l-28.053-397.93h64.128zm139.307 19.818v298.667h-64V414.485h64zm117.013 0v298.667h-64V414.485h64zM181.333 288h640v64h-640v-64zm453.483-106.667v64h-256v-64h256z",fill:"red"})),gf=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("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"})),mf=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ne("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"}),ne("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"})]),vf=({active:e=!1})=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ne("path",{d:`M850.654 323.804c-11.042-25.625-26.862-48.532-46.885-68.225-20.022-19.61-43.258-34.936-69.213-45.73-26.78-11.124-55.124-16.727-84.375-16.727-40.622 0-80.256 11.123-114.698 32.135A214.79 214.79 0 0 0 512 241.819a214.79 214.79 0 0 0-23.483-16.562c-34.442-21.012-74.076-32.135-114.698-32.135-29.25 0-57.595 5.603-84.375 16.727-25.872 10.711-49.19 26.12-69.213 45.73-20.105 19.693-35.843 42.6-46.885 68.225-11.453 26.615-17.303 54.877-17.303 83.963 0 27.439 5.603 56.03 16.727 85.117 9.31 24.307 22.659 49.52 39.715 74.981 27.027 40.293 64.188 82.316 110.33 124.915 76.465 70.615 152.189 119.394 155.402 121.371l19.528 12.525c8.652 5.52 19.776 5.52 28.427 0l19.529-12.525c3.213-2.06 78.854-50.756 155.401-121.371 46.143-42.6 83.304-84.622 110.33-124.915 17.057-25.46 30.487-50.674 39.716-74.981 11.124-29.087 16.727-57.678 16.727-85.117.082-29.086-5.768-57.348-17.221-83.963z${e?"":"M512 761.5S218.665 573.55 218.665 407.767c0-83.963 69.461-152.023 155.154-152.023 60.233 0 112.473 33.618 138.181 82.727 25.708-49.109 77.948-82.727 138.18-82.727 85.694 0 155.155 68.06 155.155 152.023C805.335 573.551 512 761.5 512 761.5z"}`,fill:e?"red":"currentColor"})]),bf=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ne("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"}),ne("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"})]),yf=()=>ne("svg",{width:"16",height:"16",ariaHidden:"true"},ne("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"})),wf=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("path",{d:"M810.667 213.333a64 64 0 0 1 64 64V704a64 64 0 0 1-64 64H478.336l-146.645 96.107a21.333 21.333 0 0 1-33.024-17.856V768h-85.334a64 64 0 0 1-64-64V277.333a64 64 0 0 1 64-64h597.334zm0 64H213.333V704h149.334v63.296L459.243 704h351.424V277.333zm-271.36 213.334v64h-176.64v-64h176.64zm122.026-128v64H362.667v-64h298.666z",fill:"currentColor"})),kf=()=>ne("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ne("path",{d:"M813.039 318.772L480.53 651.278H360.718V531.463L693.227 198.961C697.904 194.284 704.027 192 710.157 192C716.302 192 722.436 194.284 727.114 198.961L813.039 284.88C817.72 289.561 820 295.684 820 301.825C820 307.95 817.72 314.093 813.039 318.772ZM710.172 261.888L420.624 551.431V591.376H460.561L750.109 301.825L710.172 261.888ZM490.517 291.845H240.906V771.09H720.156V521.479C720.156 504.947 733.559 491.529 750.109 491.529C766.653 491.529 780.063 504.947 780.063 521.479V791.059C780.063 813.118 762.18 831 740.125 831H220.937C198.882 831 181 813.118 181 791.059V271.872C181 249.817 198.882 231.935 220.937 231.935H490.517C507.06 231.935 520.47 245.352 520.47 261.888C520.47 278.424 507.06 291.845 490.517 291.845Z",fill:"currentColor"})),xf=()=>ne("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},ne("path",{d:"m894.4 461.56-54.4-63.2c-10.4-12-18.8-34.4-18.8-50.4v-68c0-42.4-34.8-77.2-77.2-77.2h-68c-15.6 0-38.4-8.4-50.4-18.8l-63.2-54.4c-27.6-23.6-72.8-23.6-100.8 0l-62.8 54.8c-12 10-34.8 18.4-50.4 18.4h-69.2c-42.4 0-77.2 34.8-77.2 77.2v68.4c0 15.6-8.4 38-18.4 50l-54 63.6c-23.2 27.6-23.2 72.4 0 100l54 63.6c10 12 18.4 34.4 18.4 50v68.4c0 42.4 34.8 77.2 77.2 77.2h69.2c15.6 0 38.4 8.4 50.4 18.8l63.2 54.4c27.6 23.6 72.8 23.6 100.8 0l63.2-54.4c12-10.4 34.4-18.8 50.4-18.8h68c42.4 0 77.2-34.8 77.2-77.2v-68c0-15.6 8.4-38.4 18.8-50.4l54.4-63.2c23.2-27.6 23.2-73.2-.4-100.8zm-216-25.2-193.2 193.2a30 30 0 0 1-42.4 0l-96.8-96.8a30.16 30.16 0 0 1 0-42.4c11.6-11.6 30.8-11.6 42.4 0l75.6 75.6 172-172c11.6-11.6 30.8-11.6 42.4 0 11.6 11.6 11.6 30.8 0 42.4z",fill:"#27ae60"})),En=({size:e=100})=>ne("svg",{width:e,height:e,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},ne("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},ne("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"}))),_f=()=>ne("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[ne("path",{style:"transform: translateY(0.5px)",d:"M18.968 10.5H15.968V11.484H17.984V12.984H15.968V15H14.468V9H18.968V10.5V10.5ZM8.984 9C9.26533 9 9.49967 9.09367 9.687 9.281C9.87433 9.46833 9.968 9.70267 9.968 9.984V10.5H6.499V13.5H8.468V12H9.968V14.016C9.968 14.2973 9.87433 14.5317 9.687 14.719C9.49967 14.9063 9.26533 15 8.984 15H5.984C5.70267 15 5.46833 14.9063 5.281 14.719C5.09367 14.5317 5 14.2973 5 14.016V9.985C5 9.70367 5.09367 9.46933 5.281 9.282C5.46833 9.09467 5.70267 9.001 5.984 9.001H8.984V9ZM11.468 9H12.968V15H11.468V9V9Z"}),ne("path",{d:"M18.5 3H5.75C3.6875 3 2 4.6875 2 6.75V18C2 20.0625 3.6875 21.75 5.75 21.75H18.5C20.5625 21.75 22.25 20.0625 22.25 18V6.75C22.25 4.6875 20.5625 3 18.5 3ZM20.75 18C20.75 19.2375 19.7375 20.25 18.5 20.25H5.75C4.5125 20.25 3.5 19.2375 3.5 18V6.75C3.5 5.5125 4.5125 4.5 5.75 4.5H18.5C19.7375 4.5 20.75 5.5125 20.75 6.75V18Z"})]),Cf=()=>Jt("WALINE_USER_META",{nick:"",mail:"",link:""}),$f=()=>Jt("WALINE_COMMENT_BOX_EDITOR",""),Sf="WALINE_LIKE";let eo=null;const to=()=>eo??(eo=Jt(Sf,[])),Rf="WALINE_REACTION";let no=null;const Af=()=>no??(no=Jt(Rf,{}));var xi={},dt={},pt={},ro;function io(){if(ro)return pt;ro=1;var e=pt&&pt.__awaiter||function(r,i,s,l){function o(a){return a instanceof s?a:new s(function(c){c(a)})}return new(s||(s=Promise))(function(a,c){function u(g){try{d(l.next(g))}catch(k){c(k)}}function h(g){try{d(l.throw(g))}catch(k){c(k)}}function d(g){g.done?a(g.value):o(g.value).then(u,h)}d((l=l.apply(r,i||[])).next())})},t=pt&&pt.__generator||function(r,i){var s={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},l,o,a,c;return c={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function u(d){return function(g){return h([d,g])}}function h(d){if(l)throw new TypeError("Generator is already executing.");for(;c&&(c=0,d[0]&&(s=0)),s;)try{if(l=1,o&&(a=d[0]&2?o.return:d[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,d[1])).done)return a;switch(o=0,a&&(d=[d[0]&2,a.value]),d[0]){case 0:case 1:a=d;break;case 4:return s.label++,{value:d[1],done:!1};case 5:s.label++,o=d[1],d=[0];continue;case 7:d=s.ops.pop(),s.trys.pop();continue;default:if(a=s.trys,!(a=a.length>0&&a[a.length-1])&&(d[0]===6||d[0]===2)){s=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]"u")return Promise.reject(new Error("This is a library for the browser!"));if(i.getLoadingState()===n.LOADED)return i.instance.getSiteKey()===s?Promise.resolve(i.instance):Promise.reject(new Error("reCAPTCHA already loaded with different site key!"));if(i.getLoadingState()===n.LOADING)return s!==i.instanceSiteKey?Promise.reject(new Error("reCAPTCHA already loaded with different site key!")):new Promise(function(a,c){i.successfulLoadingConsumers.push(function(u){return a(u)}),i.errorLoadingRunnable.push(function(u){return c(u)})});i.instanceSiteKey=s,i.setLoadingState(n.LOADING);var o=new i;return new Promise(function(a,c){o.loadScript(s,l.useRecaptchaNet||!1,l.useEnterprise||!1,l.renderParameters?l.renderParameters:{},l.customUrl).then(function(){i.setLoadingState(n.LOADED);var u=o.doExplicitRender(grecaptcha,s,l.explicitRenderParameters?l.explicitRenderParameters:{},l.useEnterprise||!1),h=new t.ReCaptchaInstance(s,u,grecaptcha);i.successfulLoadingConsumers.forEach(function(d){return d(h)}),i.successfulLoadingConsumers=[],l.autoHideBadge&&h.hideBadge(),i.instance=h,a(h)}).catch(function(u){i.errorLoadingRunnable.forEach(function(h){return h(u)}),i.errorLoadingRunnable=[],c(u)})})},i.getInstance=function(){return i.instance},i.setLoadingState=function(s){i.loadingState=s},i.getLoadingState=function(){return i.loadingState===null?n.NOT_LOADED:i.loadingState},i.prototype.loadScript=function(s,l,o,a,c){var u=this;l===void 0&&(l=!1),o===void 0&&(o=!1),a===void 0&&(a={}),c===void 0&&(c="");var h=document.createElement("script");h.setAttribute("recaptcha-v3-script",""),h.setAttribute("async",""),h.setAttribute("defer","");var d="https://www.google.com/recaptcha/api.js";l?o?d="https://recaptcha.net/recaptcha/enterprise.js":d="https://recaptcha.net/recaptcha/api.js":o&&(d="https://www.google.com/recaptcha/enterprise.js"),c&&(d=c),a.render&&(a.render=void 0);var g=this.buildQueryString(a);return h.src=d+"?render=explicit"+g,new Promise(function(k,v){h.addEventListener("load",u.waitForScriptToLoad(function(){k(h)},o),!1),h.onerror=function($){i.setLoadingState(n.NOT_LOADED),v($)},document.head.appendChild(h)})},i.prototype.buildQueryString=function(s){var l=Object.keys(s);return l.length<1?"":"&"+Object.keys(s).filter(function(o){return!!s[o]}).map(function(o){return o+"="+s[o]}).join("&")},i.prototype.waitForScriptToLoad=function(s,l){var o=this;return function(){window.grecaptcha===void 0?setTimeout(function(){o.waitForScriptToLoad(s,l)},i.SCRIPT_LOAD_DELAY):l?window.grecaptcha.enterprise.ready(function(){s()}):window.grecaptcha.ready(function(){s()})}},i.prototype.doExplicitRender=function(s,l,o,a){var c=e({sitekey:l},o);return o.container?a?s.enterprise.render(o.container,c):s.render(o.container,c):a?s.enterprise.render(c):s.render(c)},i.loadingState=null,i.instance=null,i.instanceSiteKey=null,i.successfulLoadingConsumers=[],i.errorLoadingRunnable=[],i.SCRIPT_LOAD_DELAY=25,i}();return dt.load=r.load,dt.getInstance=r.getInstance,dt}var lo;function Tf(){return lo||(lo=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=Ef();Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=io();Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})}(xi)),xi}var Lf=Tf();const oo={},If=e=>{const t=oo[e]??(oo[e]=Lf.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:n=>t.then(r=>r.execute(n))}},Mf=e=>({execute:async t=>{const{load:n}=bu("https://challenges.cloudflare.com/turnstile/v0/api.js",void 0,{async:!1});await n();const r=window==null?void 0:window.turnstile;return new Promise(i=>{r==null||r.ready(()=>{r==null||r.render(".wl-captcha-container",{sitekey:e,action:t,size:"compact",callback:i})})})}}),Of="WALINE_USER";let ao=null;const yr=()=>ao??(ao=Jt(Of,{})),Pf={key:0,class:"wl-reaction"},jf=["textContent"],zf={class:"wl-reaction-list"},Ff=["onClick"],Df={class:"wl-reaction-img"},Hf=["src","alt"],Nf=["textContent"],Uf=["textContent"];var Bf=dn({__name:"ArticleReaction",setup(e,{expose:t}){t();const n=Af(),r=Qn("config"),i=W(-1),s=W([]),l=_e(()=>r.value.locale),o=_e(()=>r.value.reaction.length>0),a=_e(()=>{const{reaction:d,path:g}=r.value;return d.map((k,v)=>({icon:k,desc:l.value[`reaction${v}`],active:n.value[g]===v}))});let c;const u=async()=>{if(!o.value)return;const{serverURL:d,lang:g,path:k,reaction:v}=r.value,$=new AbortController;c=$.abort.bind($);const b=await kr({serverURL:d,lang:g,paths:[k],type:v.map((C,N)=>`reaction${N}`),signal:$.signal});s.value=v.map((C,N)=>b[0][`reaction${N}`])},h=async d=>{if(i.value===-1){const{serverURL:g,lang:k,path:v}=r.value,$=n.value[v];i.value=d,$!==void 0&&(await On({serverURL:g,lang:k,path:v,type:`reaction${$}`,action:"desc"}),s.value[$]=Math.max(s.value[$]-1,0)),$!==d&&(await On({serverURL:g,lang:k,path:v,type:`reaction${d}`}),s.value[d]=(s.value[d]||0)+1),$===d?delete n.value[v]:n.value[v]=d,i.value=-1}};return gn(()=>{Ve(()=>[r.value.serverURL,r.value.path],()=>{u()},{immediate:!0})}),Jr(()=>c==null?void 0:c()),(d,g)=>a.value.length?(I(),P("div",Pf,[H("div",{class:"wl-reaction-title",textContent:X(l.value.reactionTitle)},null,8,jf),H("ul",zf,[(I(!0),P(he,null,Be(a.value,({active:k,icon:v,desc:$},b)=>(I(),P("li",{key:b,class:ve(["wl-reaction-item",{active:k}]),onClick:C=>h(b)},[H("div",Df,[H("img",{src:v,alt:$},null,8,Hf),i.value===b?(I(),at(q(En),{key:0,class:"wl-reaction-loading"})):(I(),P("div",{key:1,class:"wl-reaction-votes",textContent:X(s.value[b]||0)},null,8,Nf))]),H("div",{class:"wl-reaction-text",textContent:X($)},null,8,Uf)],10,Ff))),128))])])):Q("v-if",!0)}}),Tn=new Map;function Vf(e){var t=Tn.get(e);t&&t.destroy()}function Wf(e){var t=Tn.get(e);t&&t.update()}var Ln=null;typeof window>"u"?((Ln=function(e){return e}).destroy=function(e){return e},Ln.update=function(e){return e}):((Ln=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(n){return function(r){if(r&&r.nodeName&&r.nodeName==="TEXTAREA"&&!Tn.has(r)){var i,s=null,l=window.getComputedStyle(r),o=(i=r.value,function(){c({testForHeightReduction:i===""||!r.value.startsWith(i),restoreTextAlign:null}),i=r.value}),a=(function(h){r.removeEventListener("autosize:destroy",a),r.removeEventListener("autosize:update",u),r.removeEventListener("input",o),window.removeEventListener("resize",u),Object.keys(h).forEach(function(d){return r.style[d]=h[d]}),Tn.delete(r)}).bind(r,{height:r.style.height,resize:r.style.resize,textAlign:r.style.textAlign,overflowY:r.style.overflowY,overflowX:r.style.overflowX,wordWrap:r.style.wordWrap});r.addEventListener("autosize:destroy",a),r.addEventListener("autosize:update",u),r.addEventListener("input",o),window.addEventListener("resize",u),r.style.overflowX="hidden",r.style.wordWrap="break-word",Tn.set(r,{destroy:a,update:u}),u()}function c(h){var d,g,k=h.restoreTextAlign,v=k===void 0?null:k,$=h.testForHeightReduction,b=$===void 0||$,C=l.overflowY;if(r.scrollHeight!==0&&(l.resize==="vertical"?r.style.resize="none":l.resize==="both"&&(r.style.resize="horizontal"),b&&(d=function(E){for(var j=[];E&&E.parentNode&&E.parentNode instanceof Element;)E.parentNode.scrollTop&&j.push([E.parentNode,E.parentNode.scrollTop]),E=E.parentNode;return function(){return j.forEach(function(K){var z=K[0],G=K[1];z.style.scrollBehavior="auto",z.scrollTop=G,z.style.scrollBehavior=null})}}(r),r.style.height=""),g=l.boxSizing==="content-box"?r.scrollHeight-(parseFloat(l.paddingTop)+parseFloat(l.paddingBottom)):r.scrollHeight+parseFloat(l.borderTopWidth)+parseFloat(l.borderBottomWidth),l.maxHeight!=="none"&&g>parseFloat(l.maxHeight)?(l.overflowY==="hidden"&&(r.style.overflow="scroll"),g=parseFloat(l.maxHeight)):l.overflowY!=="hidden"&&(r.style.overflow="hidden"),r.style.height=g+"px",v&&(r.style.textAlign=v),d&&d(),s!==g&&(r.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),s=g),C!==l.overflow&&!v)){var N=l.textAlign;l.overflow==="hidden"&&(r.style.textAlign=N==="start"?"end":"start"),c({restoreTextAlign:N,testForHeightReduction:!0})}}function u(){c({testForHeightReduction:!0,restoreTextAlign:null})}}(n)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Vf),e},Ln.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Wf),e});var co=Ln;const qf=["data-index"],Kf=["src","title","onClick"];var Gf=dn({__name:"ImageWall",props:{items:{default:()=>[]},columnWidth:{default:300},gap:{default:0}},emits:["insert"],setup(e,{expose:t}){const n=e;t();let r=null;const i=W(null),s=W({}),l=W([]),o=()=>{const d=Math.floor((i.value.getBoundingClientRect().width+n.gap)/(n.columnWidth+n.gap));return d>0?d:1},a=d=>new Array(d).fill(null).map(()=>[]),c=async d=>{var g;if(d>=n.items.length)return;await qt();const k=Array.from(((g=i.value)==null?void 0:g.children)??[]).reduce((v,$)=>$.getBoundingClientRect().height{if(l.value.length===o()&&!d)return;l.value=a(o());const g=window.scrollY;await c(0),window.scrollTo({top:g})},h=d=>{s.value[d.target.src]=!0};return gn(()=>{u(!0),r=new ResizeObserver(()=>{u()}),r.observe(i.value),Ve(()=>[n.items],()=>{s.value={},u(!0)}),Ve(()=>[n.columnWidth,n.gap],()=>{u()})}),Pa(()=>r.unobserve(i.value)),(d,g)=>(I(),P("div",{ref_key:"wall",ref:i,class:"wl-gallery",style:nn({gap:`${d.gap}px`})},[(I(!0),P(he,null,Be(l.value,(k,v)=>(I(),P("div",{key:v,class:"wl-gallery-column","data-index":v,style:nn({gap:`${d.gap}px`})},[(I(!0),P(he,null,Be(k,$=>(I(),P(he,{key:$},[s.value[d.items[$].src]?Q("v-if",!0):(I(),at(q(En),{key:0,size:36,style:{margin:"20px auto"}})),H("img",{class:"wl-gallery-item",src:d.items[$].src,title:d.items[$].title,loading:"lazy",onLoad:h,onClick:b=>d.$emit("insert",`![](${d.items[$].src})`)},null,40,Kf)],64))),128))],12,qf))),128))],4))}});const Zf={key:0,class:"wl-login-info"},Jf={class:"wl-avatar"},Yf=["title"],Qf=["title"],Xf=["src"],eh=["title","textContent"],th={class:"wl-panel"},nh=["for","textContent"],rh=["id","onUpdate:modelValue","name","type"],ih=["placeholder"],sh={class:"wl-preview"},lh=["innerHTML"],oh={class:"wl-footer"},ah={class:"wl-actions"},ch={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},uh=["title"],fh=["title"],hh=["title","aria-label"],dh=["title"],ph={class:"wl-info"},gh={class:"wl-text-number"},mh={key:0},vh=["textContent"],bh=["textContent"],yh=["disabled"],wh=["placeholder"],kh={key:1,class:"wl-loading"},xh={key:0,class:"wl-tab-wrapper"},_h=["title","onClick"],Ch=["src","alt"],$h={key:0,class:"wl-tabs"},Sh=["onClick"],Rh=["src","alt","title"],Ah=["title"];var uo=dn({__name:"CommentBox",props:{edit:{default:null},rootId:{default:""},replyId:{default:""},replyUser:{default:""}},emits:["log","cancelEdit","cancelReply","submit"],setup(e,{emit:t}){const n=e,r=t,i=Qn("config"),s=$f(),l=Cf(),o=yr(),a=W({}),c=W(null),u=W(null),h=W(null),d=W(null),g=W(null),k=W(null),v=W(null),$=W({tabs:[],map:{}}),b=W(0),C=W(!1),N=W(!1),E=W(!1),j=W(""),K=W(0),z=cn({loading:!0,list:[]}),G=W(0),Ie=W(!1),Z=W(""),re=W(!1),me=W(!1),F=_e(()=>i.value.locale),Y=_e(()=>{var O;return!!((O=o.value)!=null&&O.token)}),se=_e(()=>i.value.imageUploader!==!1),ke=O=>{const A=c.value,U=A.selectionStart,de=A.selectionEnd||0,f=A.scrollTop;s.value=A.value.substring(0,U)+O+A.value.substring(de,A.value.length),A.focus(),A.selectionStart=U+O.length,A.selectionEnd=U+O.length,A.scrollTop=f},be=O=>{if(re.value)return;const A=O.key;(O.ctrlKey||O.metaKey)&&A==="Enter"&&Oe()},ye=O=>{const A=`![${i.value.locale.uploading} ${O.name}]()`;return ke(A),re.value=!0,Promise.resolve().then(()=>i.value.imageUploader(O)).then(U=>{s.value=s.value.replace(A,`\r +![${O.name}](${U})`)}).catch(U=>{alert(U.message),s.value=s.value.replace(A,"")}).then(()=>{re.value=!1})},Re=O=>{var A;if((A=O.dataTransfer)!=null&&A.items){const U=Tl(O.dataTransfer.items);U&&se.value&&(ye(U),O.preventDefault())}},gt=O=>{if(O.clipboardData){const A=Tl(O.clipboardData.items);A&&se.value&&ye(A)}},wt=()=>{const O=u.value;O.files&&se.value&&ye(O.files[0]).then(()=>{O.value=""})},Oe=async()=>{var O,A,U,de,f,p;const{serverURL:m,lang:w,login:y,wordLimit:x,requiredMeta:T,recaptchaV3Key:R,turnstileKey:S}=i.value,_=await df(),M={comment:Z.value,nick:l.value.nick,mail:l.value.mail,link:l.value.link,url:i.value.path,ua:_};if(!n.edit)if((O=o.value)!=null&&O.token)M.nick=o.value.display_name,M.mail=o.value.email,M.link=o.value.url;else{if(y==="force")return;if(T.includes("nick")&&!M.nick)return(A=a.value.nick)==null||A.focus(),alert(F.value.nickError);if(T.includes("mail")&&!M.mail||M.mail&&!Fo(M.mail))return(U=a.value.mail)==null||U.focus(),alert(F.value.mailError);M.nick||(M.nick=F.value.anonymous)}if(!M.comment){(de=c.value)==null||de.focus();return}if(!Ie.value)return alert(F.value.wordHint.replace("$0",x[0].toString()).replace("$1",x[1].toString()).replace("$2",K.value.toString()));M.comment=Yl(M.comment,$.value.map),n.replyId&&n.rootId&&(M.pid=n.replyId,M.rid=n.rootId,M.at=n.replyUser),re.value=!0;try{R&&(M.recaptchaV3=await If(R).execute("social")),S&&(M.turnstile=await Mf(S).execute("social"));const L={serverURL:m,lang:w,token:(f=o.value)==null?void 0:f.token,comment:M},D=await(n.edit?Qt({objectId:n.edit.objectId,...L}):Ai(L));if(re.value=!1,D.errmsg)return alert(D.errmsg);r("submit",D.data),s.value="",j.value="",await qt(),n.replyId&&r("cancelReply"),(p=n.edit)!=null&&p.objectId&&r("cancelEdit")}catch(L){re.value=!1,alert(L.message)}},In=O=>{O.preventDefault();const{lang:A,serverURL:U}=i.value;Li({serverURL:U,lang:A}).then(de=>{o.value=de,(de.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(de)),r("log")})},wr=()=>{o.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),r("log")},Mn=O=>{O.preventDefault();const{lang:A,serverURL:U}=i.value,de=800,f=800,p=(window.innerWidth-de)/2,m=(window.innerHeight-f)/2,w=new URLSearchParams({lng:A,token:o.value.token}),y=window.open(`${U}/ui/profile?${w.toString()}`,"_blank",`width=${de},height=${f},left=${p},top=${m},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);y==null||y.postMessage({type:"TOKEN",data:o.value.token},"*")},kt=O=>{var A,U,de,f;!((A=h.value)!=null&&A.contains(O.target))&&!((U=d.value)!=null&&U.contains(O.target))&&(C.value=!1),!((de=g.value)!=null&&de.contains(O.target))&&!((f=k.value)!=null&&f.contains(O.target))&&(N.value=!1)},xt=async O=>{var A;const{scrollTop:U,clientHeight:de,scrollHeight:f}=O.target,p=(de+U)/f,m=i.value.search,w=((A=v.value)==null?void 0:A.value)??"";p<.9||z.loading||me.value||(z.loading=!0,(m.more&&z.list.length?await m.more(w,z.list.length):await m.search(w)).length?z.list=[...z.list,...m.more&&z.list.length?await m.more(w,z.list.length):await m.search(w)]:me.value=!0,z.loading=!1,setTimeout(()=>{O.target.scrollTop=U},50))},zt=su(O=>{z.list=[],me.value=!1,xt(O)},300);return Ve([i,K],([O,A])=>{const{wordLimit:U}=O;U?AU[1]?(G.value=U[1],Ie.value=!1):(G.value=U[1],Ie.value=!0):(G.value=0,Ie.value=!0)},{immediate:!0}),fr("click",kt),fr("message",({data:O})=>{!O||O.type!=="profile"||(o.value={...o.value,...O.data},[localStorage,sessionStorage].filter(A=>A.getItem("WALINE_USER")).forEach(A=>A.setItem("WALINE_USER",JSON.stringify(o))))}),Ve(N,async O=>{var A;if(!O)return;const U=i.value.search;v.value&&(v.value.value=""),z.loading=!0,z.list=await(((A=U.default)==null?void 0:A.call(U))??U.search("")),z.loading=!1}),gn(()=>{var O;(O=n.edit)!=null&&O.objectId&&(s.value=n.edit.orig),Ve(()=>s.value,A=>{const{highlighter:U,texRenderer:de}=i.value;Z.value=A,j.value=cf(A,{emojiMap:$.value.map,highlighter:U,texRenderer:de}),K.value=hf(A),A?co(c.value):co.destroy(c.value)},{immediate:!0}),Ve(()=>i.value.emoji,A=>_u(A).then(U=>{$.value=U}),{immediate:!0})}),(O,A)=>{var U,de;return I(),P("div",{key:q(o).token,class:"wl-comment"},[q(i).login!=="disable"&&Y.value&&!((U=O.edit)!=null&&U.objectId)?(I(),P("div",Zf,[H("div",Jf,[H("button",{type:"submit",class:"wl-logout-btn",title:F.value.logout,onClick:wr},[oe(q(Xl),{size:14})],8,Yf),H("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:F.value.profile,onClick:Mn},[H("img",{src:q(o).avatar,alt:"avatar"},null,8,Xf)],8,Qf)]),H("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:F.value.profile,onClick:Mn,textContent:X(q(o).display_name)},null,8,eh)])):Q("v-if",!0),H("div",th,[q(i).login!=="force"&&q(i).meta.length&&!Y.value?(I(),P("div",{key:0,class:ve(["wl-header",`item${q(i).meta.length}`])},[(I(!0),P(he,null,Be(q(i).meta,f=>(I(),P("div",{key:f,class:"wl-header-item"},[H("label",{for:`wl-${f}`,textContent:X(F.value[f]+(q(i).requiredMeta.includes(f)||!q(i).requiredMeta.length?"":`(${F.value.optional})`))},null,8,nh),Jn(H("input",{id:`wl-${f}`,ref_for:!0,ref:p=>{p&&(a.value[f]=p)},"onUpdate:modelValue":p=>q(l)[f]=p,class:ve(["wl-input",`wl-${f}`]),name:f,type:f==="mail"?"email":"text"},null,10,rh),[[Gc,q(l)[f]]])]))),128))],2)):Q("v-if",!0),Jn(H("textarea",{id:"wl-edit",ref_key:"editorRef",ref:c,"onUpdate:modelValue":A[0]||(A[0]=f=>xe(s)?s.value=f:null),class:"wl-editor",placeholder:O.replyUser?`@${O.replyUser}`:F.value.placeholder,onKeydown:be,onDrop:Re,onPaste:gt},null,40,ih),[[ui,q(s)]]),Jn(H("div",sh,[A[7]||(A[7]=H("hr",null,null,-1)),H("h4",null,X(F.value.preview)+":",1),H("div",{class:"wl-content",innerHTML:j.value},null,8,lh)],512),[[cl,E.value]]),H("div",oh,[H("div",ah,[H("a",ch,[oe(q(yf))]),Jn(H("button",{ref_key:"emojiButtonRef",ref:h,type:"button",class:ve(["wl-action",{active:C.value}]),title:F.value.emoji,onClick:A[1]||(A[1]=f=>C.value=!C.value)},[oe(q(gf))],10,uh),[[cl,$.value.tabs.length]]),q(i).search?(I(),P("button",{key:0,ref_key:"gifButtonRef",ref:g,type:"button",class:ve(["wl-action",{active:N.value}]),title:F.value.gif,onClick:A[2]||(A[2]=f=>N.value=!N.value)},[oe(q(_f))],10,fh)):Q("v-if",!0),H("input",{id:"wl-image-upload",ref_key:"imageUploadRef",ref:u,class:"upload","aria-hidden":"true",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:wt},null,544),se.value?(I(),P("label",{key:1,for:"wl-image-upload",class:"wl-action",title:F.value.uploadImage,"aria-label":F.value.uploadImage},[oe(q(mf))],8,hh)):Q("v-if",!0),H("button",{type:"button",class:ve(["wl-action",{active:E.value}]),title:F.value.preview,onClick:A[3]||(A[3]=f=>E.value=!E.value)},[oe(q(bf))],10,dh)]),H("div",ph,[A[9]||(A[9]=H("div",{class:"wl-captcha-container"},null,-1)),H("div",gh,[ct(X(K.value)+" ",1),q(i).wordLimit?(I(),P("span",mh,[A[8]||(A[8]=ct("  /  ")),H("span",{class:ve({illegal:!Ie.value}),textContent:X(G.value)},null,10,vh)])):Q("v-if",!0),ct("  "+X(F.value.word),1)]),q(i).login!=="disable"&&!Y.value?(I(),P("button",{key:0,type:"button",class:"wl-btn",onClick:In,textContent:X(F.value.login)},null,8,bh)):Q("v-if",!0),q(i).login!=="force"||Y.value?(I(),P("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:re.value,onClick:Oe},[re.value?(I(),at(q(En),{key:0,size:16})):(I(),P(he,{key:1},[ct(X(F.value.submit),1)],64))],8,yh)):Q("v-if",!0)]),H("div",{ref_key:"gifPopupRef",ref:k,class:ve(["wl-gif-popup",{display:N.value}])},[H("input",{ref_key:"gifSearchInputRef",ref:v,type:"text",placeholder:F.value.gifSearchPlaceholder,onInput:A[4]||(A[4]=(...f)=>q(zt)&&q(zt)(...f))},null,40,wh),z.list.length?(I(),at(Gf,{key:0,items:z.list,"column-width":200,gap:6,onInsert:A[5]||(A[5]=f=>ke(f)),onScroll:xt},null,8,["items"])):Q("v-if",!0),z.loading?(I(),P("div",kh,[oe(q(En),{size:30})])):Q("v-if",!0)],2),H("div",{ref_key:"emojiPopupRef",ref:d,class:ve(["wl-emoji-popup",{display:C.value}])},[(I(!0),P(he,null,Be($.value.tabs,(f,p)=>(I(),P(he,{key:f.name},[p===b.value?(I(),P("div",xh,[(I(!0),P(he,null,Be(f.items,m=>(I(),P("button",{key:m,type:"button",title:m,onClick:w=>ke(`:${m}:`)},[C.value?(I(),P("img",{key:0,class:"wl-emoji",src:$.value.map[m],alt:m,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Ch)):Q("v-if",!0)],8,_h))),128))])):Q("v-if",!0)],64))),128)),$.value.tabs.length>1?(I(),P("div",$h,[(I(!0),P(he,null,Be($.value.tabs,(f,p)=>(I(),P("button",{key:f.name,type:"button",class:ve(["wl-tab",{active:b.value===p}]),onClick:m=>b.value=p},[H("img",{class:"wl-emoji",src:f.icon,alt:f.name,title:f.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Rh)],10,Sh))),128))])):Q("v-if",!0)],2)])]),O.replyId||(de=O.edit)!=null&&de.objectId?(I(),P("button",{key:1,type:"button",class:"wl-close",title:F.value.cancelReply,onClick:A[6]||(A[6]=f=>O.replyId?r("cancelReply"):r("cancelEdit"))},[oe(q(Xl),{size:24})],8,Ah)):Q("v-if",!0)])}}});const Eh=["id"],Th={class:"wl-user","aria-hidden":"true"},Lh=["src"],Ih={class:"wl-card"},Mh={class:"wl-head"},Oh=["href"],Ph={key:1,class:"wl-nick"},jh=["textContent"],zh=["textContent"],Fh=["textContent"],Dh=["textContent"],Hh=["textContent"],Nh={class:"wl-comment-actions"},Uh=["title"],Bh=["title"],Vh={class:"wl-meta","aria-hidden":"true"},Wh=["data-value","textContent"],qh={key:0,class:"wl-content"},Kh={key:0},Gh=["href"],Zh=["innerHTML"],Jh={key:1,class:"wl-admin-actions"},Yh={class:"wl-comment-status"},Qh=["disabled","onClick","textContent"],Xh={key:3,class:"wl-quote"};var ed=dn({__name:"CommentCard",props:{comment:{},edit:{default:null},rootId:{},reply:{default:null}},emits:["log","submit","delete","edit","like","status","sticky","reply"],setup(e,{emit:t}){const n=e,r=t,i=["approved","waiting","spam"],s=Qn("config"),l=to(),o=vu(),a=yr(),c=_e(()=>s.value.locale),u=_e(()=>{const{link:b}=n.comment;return b?Yi(b)?b:`https://${b}`:""}),h=_e(()=>l.value.includes(n.comment.objectId)),d=_e(()=>jo(new Date(n.comment.time),o.value,c.value)),g=_e(()=>a.value.type==="administrator"),k=_e(()=>n.comment.user_id&&a.value.objectId===n.comment.user_id),v=_e(()=>{var b;return n.comment.objectId===((b=n.reply)==null?void 0:b.objectId)}),$=_e(()=>{var b;return n.comment.objectId===((b=n.edit)==null?void 0:b.objectId)});return(b,C)=>{var N;const E=za("CommentCard",!0);return I(),P("div",{id:b.comment.objectId,class:"wl-card-item"},[H("div",Th,[b.comment.avatar?(I(),P("img",{key:0,class:"wl-user-avatar",src:b.comment.avatar,alt:""},null,8,Lh)):Q("v-if",!0),b.comment.type?(I(),at(q(xf),{key:1})):Q("v-if",!0)]),H("div",Ih,[H("div",Mh,[u.value?(I(),P("a",{key:0,class:"wl-nick",href:u.value,target:"_blank",rel:"nofollow noopener noreferrer"},X(b.comment.nick),9,Oh)):(I(),P("span",Ph,X(b.comment.nick),1)),b.comment.type==="administrator"?(I(),P("span",{key:2,class:"wl-badge",textContent:X(c.value.admin)},null,8,jh)):Q("v-if",!0),b.comment.label?(I(),P("span",{key:3,class:"wl-badge",textContent:X(b.comment.label)},null,8,zh)):Q("v-if",!0),b.comment.sticky?(I(),P("span",{key:4,class:"wl-badge",textContent:X(c.value.sticky)},null,8,Fh)):Q("v-if",!0),typeof b.comment.level=="number"?(I(),P("span",{key:5,class:ve(`wl-badge level${b.comment.level}`),textContent:X(c.value[`level${b.comment.level}`]||`Level ${b.comment.level}`)},null,10,Dh)):Q("v-if",!0),H("span",{class:"wl-time",textContent:X(d.value)},null,8,Hh),H("div",Nh,[g.value||k.value?(I(),P(he,{key:0},[H("button",{type:"button",class:"wl-edit",onClick:C[0]||(C[0]=j=>r("edit",b.comment))},[oe(q(kf))]),H("button",{type:"button",class:"wl-delete",onClick:C[1]||(C[1]=j=>r("delete",b.comment))},[oe(q(pf))])],64)):Q("v-if",!0),H("button",{type:"button",class:"wl-like",title:h.value?c.value.cancelLike:c.value.like,onClick:C[2]||(C[2]=j=>r("like",b.comment))},[oe(q(vf),{active:h.value},null,8,["active"]),ct(" "+X("like"in b.comment?b.comment.like:""),1)],8,Uh),H("button",{type:"button",class:ve(["wl-reply",{active:v.value}]),title:v.value?c.value.cancelReply:c.value.reply,onClick:C[3]||(C[3]=j=>r("reply",v.value?null:b.comment))},[oe(q(wf))],10,Bh)])]),H("div",Vh,[(I(),P(he,null,Be(["addr","browser","os"],j=>(I(),P(he,null,[b.comment[j]?(I(),P("span",{key:j,class:ve(`wl-${j}`),"data-value":b.comment[j],textContent:X(b.comment[j])},null,10,Wh)):Q("v-if",!0)],64))),64))]),$.value?Q("v-if",!0):(I(),P("div",qh,[b.comment.reply_user?(I(),P("p",Kh,[H("a",{href:"#"+b.comment.pid},"@"+X(b.comment.reply_user.nick),9,Gh),C[17]||(C[17]=H("span",null,": ",-1))])):Q("v-if",!0),H("div",{innerHTML:b.comment.comment},null,8,Zh)])),g.value&&!$.value?(I(),P("div",Jh,[H("span",Yh,[(I(),P(he,null,Be(i,j=>H("button",{key:j,type:"submit",class:ve(`wl-btn wl-${j}`),disabled:b.comment.status===j,onClick:K=>r("status",{status:j,comment:b.comment}),textContent:X(c.value[j])},null,10,Qh)),64))]),g.value&&!("rid"in b.comment)?(I(),P("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:C[4]||(C[4]=j=>r("sticky",b.comment))},X(b.comment.sticky?c.value.unsticky:c.value.sticky),1)):Q("v-if",!0)])):Q("v-if",!0),v.value||$.value?(I(),P("div",{key:2,class:ve({"wl-reply-wrapper":v.value,"wl-edit-wrapper":$.value})},[oe(uo,{edit:b.edit,"reply-id":(N=b.reply)==null?void 0:N.objectId,"reply-user":b.comment.nick,"root-id":b.rootId,onLog:C[5]||(C[5]=j=>r("log")),onCancelReply:C[6]||(C[6]=j=>r("reply",null)),onCancelEdit:C[7]||(C[7]=j=>r("edit",null)),onSubmit:C[8]||(C[8]=j=>r("submit",j))},null,8,["edit","reply-id","reply-user","root-id"])],2)):Q("v-if",!0),"children"in b.comment?(I(),P("div",Xh,[(I(!0),P(he,null,Be(b.comment.children,j=>(I(),at(E,{key:j.objectId,comment:j,reply:b.reply,edit:b.edit,"root-id":b.rootId,onLog:C[9]||(C[9]=K=>r("log")),onDelete:C[10]||(C[10]=K=>r("delete",K)),onEdit:C[11]||(C[11]=K=>r("edit",K)),onLike:C[12]||(C[12]=K=>r("like",K)),onReply:C[13]||(C[13]=K=>r("reply",K)),onStatus:C[14]||(C[14]=K=>r("status",K)),onSticky:C[15]||(C[15]=K=>r("sticky",K)),onSubmit:C[16]||(C[16]=K=>r("submit",K))},null,8,["comment","reply","edit","root-id"]))),128))])):Q("v-if",!0)])],8,Eh)}}});const fo="3.4.1",td={"data-waline":""},nd={class:"wl-meta-head"},rd={class:"wl-count"},id=["textContent"],sd={class:"wl-sort"},ld=["onClick"],od={class:"wl-cards"},ad={key:1,class:"wl-operation"},cd=["textContent"],ud={key:2,class:"wl-loading"},fd=["textContent"],hd={key:4,class:"wl-operation"},dd=["textContent"],pd={key:5,class:"wl-power"};var gd=dn({__name:"WalineComment",props:["serverURL","path","meta","requiredMeta","dark","commentSorting","lang","locale","pageSize","wordLimit","emoji","login","highlighter","texRenderer","imageUploader","search","copyright","recaptchaV3Key","turnstileKey","reaction"],setup(e){const t=e,n={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},r=Object.keys(n),i=yr(),s=to(),l=W("loading"),o=W(0),a=W(1),c=W(0),u=_e(()=>Mo(t)),h=W(u.value.commentSorting),d=W([]),g=W(null),k=W(null),v=_e(()=>Oo(u.value.dark)),$=_e(()=>u.value.locale);wu(v,{id:"waline-darkmode"});let b;const C=F=>{var Y;const{serverURL:se,path:ke,pageSize:be}=u.value,ye=new AbortController;l.value="loading",b==null||b(),Ri({serverURL:se,lang:u.value.lang,path:ke,pageSize:be,sortBy:n[h.value],page:F,signal:ye.signal,token:(Y=i.value)==null?void 0:Y.token}).then(Re=>{l.value="success",o.value=Re.count,d.value.push(...Re.data),a.value=F,c.value=Re.totalPages}).catch(Re=>{Re.name!=="AbortError"&&(console.error(Re.message),l.value="error")}),b=ye.abort.bind(ye)},N=()=>C(a.value+1),E=()=>{o.value=0,d.value=[],C(1)},j=F=>{h.value!==F&&(h.value=F,E())},K=F=>{g.value=F},z=F=>{k.value=F},G=F=>{if(k.value)k.value.comment=F.comment,k.value.orig=F.orig;else if("rid"in F){const Y=d.value.find(({objectId:se})=>se===F.rid);if(!Y)return;Array.isArray(Y.children)||(Y.children=[]),Y.children.push(F)}else d.value.unshift(F),o.value+=1},Ie=async({comment:F,status:Y})=>{var se;if(F.status===Y)return;const{serverURL:ke,lang:be}=u.value;await Qt({serverURL:ke,lang:be,token:(se=i.value)==null?void 0:se.token,objectId:F.objectId,comment:{status:Y}}),F.status=Y},Z=async F=>{var Y;if("rid"in F)return;const{serverURL:se,lang:ke}=u.value;await Qt({serverURL:se,lang:ke,token:(Y=i.value)==null?void 0:Y.token,objectId:F.objectId,comment:{sticky:F.sticky?0:1}}),F.sticky=!F.sticky},re=async({objectId:F})=>{var Y;if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:se,lang:ke}=u.value;await Ei({serverURL:se,lang:ke,token:(Y=i.value)==null?void 0:Y.token,objectId:F}),d.value.some((be,ye)=>be.objectId===F?(d.value=d.value.filter((Re,gt)=>gt!==ye),!0):be.children.some((Re,gt)=>Re.objectId===F?(d.value[ye].children=be.children.filter((wt,Oe)=>Oe!==gt),!0):!1))},me=async F=>{var Y;const{serverURL:se,lang:ke}=u.value,{objectId:be}=F,ye=s.value.includes(be);await Qt({serverURL:se,lang:ke,objectId:be,token:(Y=i.value)==null?void 0:Y.token,comment:{like:!ye}}),ye?s.value=s.value.filter(Re=>Re!==be):(s.value=[...s.value,be],s.value.length>50&&(s.value=s.value.slice(-50))),F.like=(F.like||0)+(ye?-1:1)};return Ba("config",u),gn(()=>{Ve(()=>[t.serverURL,t.path],()=>E(),{immediate:!0})}),Jr(()=>b==null?void 0:b()),(F,Y)=>(I(),P("div",td,[oe(Bf),!g.value&&!k.value?(I(),at(uo,{key:0,onLog:E,onSubmit:G})):Q("v-if",!0),H("div",nd,[H("div",rd,[o.value?(I(),P("span",{key:0,class:"wl-num",textContent:X(o.value)},null,8,id)):Q("v-if",!0),ct(" "+X($.value.comment),1)]),H("ul",sd,[(I(!0),P(he,null,Be(q(r),se=>(I(),P("li",{key:se,class:ve([se===h.value?"active":""]),onClick:ke=>j(se)},X($.value[se]),11,ld))),128))])]),H("div",od,[(I(!0),P(he,null,Be(d.value,se=>(I(),at(ed,{key:se.objectId,"root-id":se.objectId,comment:se,reply:g.value,edit:k.value,onLog:E,onReply:K,onEdit:z,onSubmit:G,onStatus:Ie,onDelete:re,onSticky:Z,onLike:me},null,8,["root-id","comment","reply","edit"]))),128))]),l.value==="error"?(I(),P("div",ad,[H("button",{type:"button",class:"wl-btn",onClick:E,textContent:X($.value.refresh)},null,8,cd)])):l.value==="loading"?(I(),P("div",ud,[oe(q(En),{size:30})])):d.value.length?a.value{t.forEach((n,r)=>{const i=e[r].time;typeof i=="number"&&(n.innerText=i.toString())})},po=({serverURL:e,path:t=window.location.pathname,selector:n=".waline-pageview-count",update:r=!0,lang:i=navigator.language})=>{const s=new AbortController,l=Array.from(document.querySelectorAll(n)),o=c=>{const u=ki(c);return u!==null&&t!==u},a=c=>Ii({serverURL:jn(e),paths:c.map(u=>ki(u)??t),lang:i,signal:s.signal}).then(u=>ho(u,c)).catch(El);if(r){const c=l.filter(h=>!o(h)),u=l.filter(o);Mi({serverURL:jn(e),path:t,lang:i}).then(h=>ho(h,c)),u.length&&a(u)}else a(l);return s.abort.bind(s)},md=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...i})=>{const s=e?hi(e):null;if(e&&!s)throw new Error("Option 'el' do not match any domElement!");if(!i.serverURL)throw new Error("Option 'serverURL' is missing!");const l=cn({...i}),o=cn({comment:n,pageview:r,path:t}),a=()=>{o.comment&&Ql({serverURL:l.serverURL,path:o.path,...Ft(o.comment)?{selector:o.comment}:{}})},c=()=>{o.pageview&&po({serverURL:l.serverURL,path:o.path,...Ft(o.pageview)?{selector:o.pageview}:{}})},u=s?Qc(()=>ne(gd,{path:o.path,...l})):null;u&&u.mount(s);const h=Ks(a),d=Ks(c);return{el:s,update:({comment:g,pageview:k,path:v=window.location.pathname,...$}={})=>{Object.entries($).forEach(([b,C])=>{l[b]=C}),o.path=v,g!==void 0&&(o.comment=g),k!==void 0&&(o.pageview=k)},destroy:()=>{u==null||u.unmount(),h(),d()}}},vd=({el:e,serverURL:t,count:n,lang:r=navigator.language})=>{var i;const s=yr(),l=hi(e),o=new AbortController;return Oi({serverURL:t,count:n,lang:r,signal:o.signal,token:(i=s.value)==null?void 0:i.token}).then(a=>l&&a.length?(l.innerHTML=`
    `,{comments:a,destroy:()=>{o.abort(),l.innerHTML=""}}):{comments:a,destroy:()=>o.abort()})},bd=({el:e,serverURL:t,count:n,locale:r,lang:i=navigator.language,mode:s="list"})=>{const l=hi(e),o=new AbortController;return Pi({serverURL:t,pageSize:n,lang:i,signal:o.signal}).then(a=>!l||!a.length?{users:a,destroy:()=>o.abort()}:(r={...Ki(i),...typeof r=="object"?r:{}},l.innerHTML=``,{users:a,destroy:()=>{o.abort(),l.innerHTML=""}}))};export{vd as RecentComments,bd as UserList,Ai as addComment,Ql as commentCount,Pn as defaultLocales,Ei as deleteComment,Ti as fetchCommentCount,kr as getArticleCounter,Ri as getComment,Ii as getPageview,Oi as getRecentComment,Pi as getUserList,md as init,Li as login,po as pageviewCount,On as updateArticleCounter,Qt as updateComment,Mi as updatePageview,fo as version}; //# sourceMappingURL=waline.js.map diff --git a/dependencies.json b/dependencies.json index 5639524a7..73eaab7b6 100644 --- a/dependencies.json +++ b/dependencies.json @@ -13,7 +13,7 @@ }, { "name": "@waline/client", - "version": "2.14.9", + "version": "3.4.1", "files": [ { "remote": "dist/waline.css",