diff --git a/assets/data/cdn/jsdelivr.yml b/assets/data/cdn/jsdelivr.yml index db59ebe54..e0a22686c 100644 --- a/assets/data/cdn/jsdelivr.yml +++ b/assets/data/cdn/jsdelivr.yml @@ -72,9 +72,9 @@ libFiles: typeitJS: typeit@8.8.4/dist/index.umd.js # valine@1.5.2 https://github.com/xCss/Valine valineJS: valine@1.5.2/dist/Valine.min.js - # waline@2.15.8 https://github.com/walinejs/waline - walineCSS: '@waline/client@2.15.8/dist/waline.css' - walineJS: '@waline/client@2.15.8/dist/waline.js' + # waline@3.4.1 https://github.com/walinejs/waline + walineCSS: '@waline/client@3.4.1/dist/waline.css' + walineJS: '@waline/client@3.4.1/dist/waline.umd.js' # xxhash-wasm@1.0.2 https://github.com/jungomi/xxhash-wasm xxhashWasmJS: xxhash-wasm@1.0.2/umd/xxhash-wasm.js \ No newline at end of file diff --git a/assets/data/cdn/unpkg.yml b/assets/data/cdn/unpkg.yml index f4c2c8f37..0d3bf4730 100644 --- a/assets/data/cdn/unpkg.yml +++ b/assets/data/cdn/unpkg.yml @@ -72,8 +72,8 @@ libFiles: typeitJS: typeit@8.8.4/dist/index.umd.js # valine@1.5.2 https://github.com/xCss/Valine valineJS: valine@1.5.2/dist/Valine.min.js - # waline@2.15.8 https://github.com/walinejs/waline - walineCSS: '@waline/client@2.15.8/dist/waline.css' - walineJS: '@waline/client@2.15.8/dist/waline.js' + # waline@3.4.1 https://github.com/walinejs/waline + walineCSS: '@waline/client@3.4.1/dist/waline.css' + walineJS: '@waline/client@3.4.1/dist/waline.umd.js' # xxhash-wasm@1.0.2 https://github.com/jungomi/xxhash-wasm xxhashWasmJS: xxhash-wasm@1.0.2/umd/xxhash-wasm.js diff --git a/assets/lib/VERSION b/assets/lib/VERSION index 1dee98636..d711d8a50 100644 --- a/assets/lib/VERSION +++ b/assets/lib/VERSION @@ -26,5 +26,5 @@ twemoji@14.0.2 https://github.com/twitter/twemoji twikoo@1.6.22 https://github.com/imaegoo/twikoo typeit@8.8.4 https://github.com/alexmacarthur/typeit valine@1.5.2 https://github.com/xCss/Valine -waline@2.15.8 https://github.com/walinejs/waline +waline@3.4.1 https://github.com/walinejs/waline xxhash-wasm@1.0.2 https://github.com/jungomi/xxhash-wasm diff --git a/assets/lib/waline/waline.css b/assets/lib/waline/waline.css index 60a4ddd4e..39bb1a58a 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)} +: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)} diff --git a/assets/lib/waline/waline.js b/assets/lib/waline/waline.js deleted file mode 100644 index 0a4155e1f..000000000 --- a/assets/lib/waline/waline.js +++ /dev/null @@ -1 +0,0 @@ -!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=()=>t(r.result?.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(["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?"]),y=f(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова","Пожалуйста, введите комментарии от $0 до $1 слов!\nНомер текущего слова: $2","Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]),w=f(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字","评论字数应在 $0 到 $1 字之间!\n当前字数:$2","匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),b=f(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎留言","來發留言吧~","送出","喜歡","取消喜歡","回覆","取消回覆","留言","重整","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登入","登出","管理者","置頂","字","留言字數應在 $0 到 $1 字之間!\n目前字數:$2","匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?"]);const k={zh:w,"zh-cn":w,"zh-CN":w,"zh-tw":b,"zh-TW":b,en:g,"en-US":g,"en-us":g,jp:m,ja:m,"jp-jp":m,"jp-JP":m,"pt-br":v,"pt-BR":v,ru:y,"ru-ru":y,"ru-RU":y},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),z=e=>{const t=R(e);return E(t)?t:`https://${t}`},L=e=>Array.isArray(e)?e:!!e&&[0,e],I=(e,t)=>"function"==typeof e?e:!1!==e&&t,T="{--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]}e.defaultLocales=k;const M={},P=[],F=()=>{},V=()=>!1,N=/^on[^a-z]/,D=e=>N.test(e),H=e=>e.startsWith("onUpdate:"),B=Object.assign,W=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},q=Object.prototype.hasOwnProperty,Z=(e,t)=>q.call(e,t),K=Array.isArray,G=e=>"[object Map]"===le(e),Q=e=>"[object Set]"===le(e),J=e=>"[object Date]"===le(e),X=e=>"function"==typeof e,Y=e=>"string"==typeof e,ee=e=>"symbol"==typeof e,te=e=>null!==e&&"object"==typeof e,ne=e=>te(e)&&X(e.then)&&X(e.catch),re=Object.prototype.toString,le=e=>re.call(e),ie=e=>le(e).slice(8,-1),oe=e=>"[object Object]"===le(e),se=e=>Y(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,ae=U(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ce=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ue=/-(\w)/g,pe=ce((e=>e.replace(ue,((e,t)=>t?t.toUpperCase():"")))),de=/\B([A-Z])/g,he=ce((e=>e.replace(de,"-$1").toLowerCase())),fe=ce((e=>e.charAt(0).toUpperCase()+e.slice(1))),ge=ce((e=>e?`on${fe(e)}`:"")),me=(e,t)=>!Object.is(e,t),ve=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},we=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let be;const ke=()=>be||(be="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function xe(e){if(K(e)){const t={};for(let n=0;n{if(e){const n=e.split($e);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function Ae(e){let t="";if(Y(e))t=e;else if(K(e))for(let n=0;nze(e,t)))}const Ie=e=>Y(e)?e:null==e?"":K(e)||te(e)&&(e.toString===re||!X(e.toString))?JSON.stringify(e,Te,2):String(e),Te=(e,t)=>t&&t.__v_isRef?Te(e,t.value):G(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,t)=>{let[n,r]=t;return e[`${n} =>`]=r,e}),{})}:Q(t)?{[`Set(${t.size})`]:[...t.values()]}:!te(t)||K(t)||oe(t)?t:String(t);let je;class Oe{constructor(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=je,!e&&je&&(this.index=(je.scopes||(je.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=je;try{return je=this,e()}finally{je=t}}}on(){je=this}off(){je=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&De)>0,Fe=e=>(e.n&De)>0,Ve=new WeakMap;let Ne=0,De=1;const He=30;let Be;const We=Symbol(""),qe=Symbol("");class Ze{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]:je;t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=Be,t=Ge;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=Be,Be=this,Ge=!0,De=1<<++Ne,Ne<=He?(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":K(e)?se(n)&&s.push(o.get("length")):(s.push(o.get(We)),G(e)&&s.push(o.get(qe)));break;case"delete":K(e)||(s.push(o.get(We)),G(e)&&s.push(o.get(qe)));break;case"set":G(e)&&s.push(o.get(We))}if(1===s.length)s[0]&&nt(s[0]);else{const e=[];for(const t of s)t&&e.push(...t);nt(Me(e))}}function nt(e,t){const n=K(e)?e:[...e];for(const e of n)e.computed&&rt(e);for(const e of n)e.computed||rt(e)}function rt(e,t){(e!==Be||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const lt=U("__proto__,__v_isRef,__isVue"),it=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(ee)),ot=pt(),st=pt(!1,!0),at=pt(!0),ct=function(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(){const e=Zt(this);for(let t=0,n=this.length;t{e[t]=function(){Je();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?Ft:Pt:t?Mt:Ut).get(n))return n;const i=K(n);if(!e){if(i&&Z(ct,r))return Reflect.get(ct,r,l);if("hasOwnProperty"===r)return ut}const o=Reflect.get(n,r,l);return(ee(r)?it.has(r):lt(r))?o:(e||Ye(n,0,r),t?o:Yt(o)?i&&se(r)?o:o.value:te(o)?e?Nt(o):Vt(o):o)}}function dt(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n,r,l){let i=t[n];if(Bt(i)&&Yt(i)&&!Yt(r))return!1;if(!e&&(Wt(r)||Bt(r)||(i=Zt(i),r=Zt(r)),!K(t)&&Yt(i)&&!Yt(r)))return i.value=r,!0;const o=K(t)&&se(n)?Number(n)!0,deleteProperty:(e,t)=>!0},gt=B({},ht,{get:st,set:dt(!0)}),mt=e=>e,vt=e=>Reflect.getPrototypeOf(e);function yt(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=Zt(e=e.__v_raw),i=Zt(t);n||(t!==i&&Ye(l,0,t),Ye(l,0,i));const{has:o}=vt(l),s=r?mt:n?Qt:Gt;return o.call(l,t)?s(e.get(t)):o.call(l,i)?s(e.get(i)):void(e!==l&&e.get(t))}function wt(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.__v_raw,r=Zt(n),l=Zt(e);return t||(e!==l&&Ye(r,0,e),Ye(r,0,l)),e===l?n.has(e):n.has(e)||n.has(l)}function bt(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e=e.__v_raw,!t&&Ye(Zt(e),0,We),Reflect.get(e,"size",e)}function kt(e){e=Zt(e);const t=Zt(this);return vt(t).has.call(t,e)||(t.add(e),tt(t,"add",e,e)),this}function xt(e,t){t=Zt(t);const n=Zt(this),{has:r,get:l}=vt(n);let i=r.call(n,e);i||(e=Zt(e),i=r.call(n,e));const o=l.call(n,e);return n.set(e,t),i?me(t,o)&&tt(n,"set",e,t):tt(n,"add",e,t),this}function _t(e){const t=Zt(this),{has:n,get:r}=vt(t);let l=n.call(t,e);l||(e=Zt(e),l=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return l&&tt(t,"delete",e,void 0),i}function $t(){const e=Zt(this),t=0!==e.size,n=e.clear();return t&&tt(e,"clear",void 0,void 0),n}function Ct(e,t){return function(n,r){const l=this,i=l.__v_raw,o=Zt(i),s=t?mt:e?Qt:Gt;return!e&&Ye(o,0,We),i.forEach(((e,t)=>n.call(r,s(e),s(t),l)))}}function St(e,t,n){return function(){const r=this.__v_raw,l=Zt(r),i=G(l),o="entries"===e||e===Symbol.iterator&&i,s="keys"===e&&i,a=r[e](...arguments),c=n?mt:t?Qt:Gt;return!t&&Ye(l,0,s?qe:We),{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 At(e){return function(){return"delete"!==e&&this}}const[Rt,Et,zt,Lt]=function(){const e={get(e){return yt(this,e)},get size(){return bt(this)},has:wt,add:kt,set:xt,delete:_t,clear:$t,forEach:Ct(!1,!1)},t={get(e){return yt(this,e,!1,!0)},get size(){return bt(this)},has:wt,add:kt,set:xt,delete:_t,clear:$t,forEach:Ct(!1,!0)},n={get(e){return yt(this,e,!0)},get size(){return bt(this,!0)},has(e){return wt.call(this,e,!0)},add:At("add"),set:At("set"),delete:At("delete"),clear:At("clear"),forEach:Ct(!0,!1)},r={get(e){return yt(this,e,!0,!0)},get size(){return bt(this,!0)},has(e){return wt.call(this,e,!0)},add:At("add"),set:At("set"),delete:At("delete"),clear:At("clear"),forEach:Ct(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((l=>{e[l]=St(l,!1,!1),n[l]=St(l,!0,!1),t[l]=St(l,!1,!0),r[l]=St(l,!0,!0)})),[e,n,t,r]}();function It(e,t){const n=t?e?Lt:zt:e?Et:Rt;return(t,r,l)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(Z(n,r)&&r in t?n:t,r,l)}const Tt={get:It(!1,!1)},jt={get:It(!1,!0)},Ot={get:It(!0,!1)},Ut=new WeakMap,Mt=new WeakMap,Pt=new WeakMap,Ft=new WeakMap;function Vt(e){return Bt(e)?e:Dt(e,!1,ht,Tt,Ut)}function Nt(e){return Dt(e,!0,ft,Ot,Pt)}function Dt(e,t,n,r,l){if(!te(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}}(ie(s));var s;if(0===o)return e;const a=new Proxy(e,2===o?r:n);return l.set(e,a),a}function Ht(e){return Bt(e)?Ht(e.__v_raw):!(!e||!e.__v_isReactive)}function Bt(e){return!(!e||!e.__v_isReadonly)}function Wt(e){return!(!e||!e.__v_isShallow)}function qt(e){return Ht(e)||Bt(e)}function Zt(e){const t=e&&e.__v_raw;return t?Zt(t):e}function Kt(e){return ye(e,"__v_skip",!0),e}const Gt=e=>te(e)?Vt(e):e,Qt=e=>te(e)?Nt(e):e;function Jt(e){Ge&&Be&&et((e=Zt(e)).dep||(e.dep=Me()))}function Xt(e,t){const n=(e=Zt(e)).dep;n&&nt(n)}function Yt(e){return!(!e||!0!==e.__v_isRef)}function en(e){return nn(e,!1)}function tn(e){return nn(e,!0)}function nn(e,t){return Yt(e)?e:new rn(e,t)}class rn{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Zt(e),this._value=t?e:Gt(e)}get value(){return Jt(this),this._value}set value(e){const t=this.__v_isShallow||Wt(e)||Bt(e);e=t?e:Zt(e),me(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:Gt(e),Xt(this))}}function ln(e){return Yt(e)?e.value:e}const on={get:(e,t,n)=>ln(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const l=e[t];return Yt(l)&&!Yt(n)?(l.value=n,!0):Reflect.set(e,t,n,r)}};function sn(e){return Ht(e)?e:new Proxy(e,on)}class an{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new Ze(e,(()=>{this._dirty||(this._dirty=!0,Xt(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=Zt(this);return Jt(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(X(e)){const l=cn(e,t,n,r);return l&&ne(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;iY(e)?e.trim():e))),t&&(o=l.map(we))}let c,u=n[c=ge(t)]||n[c=ge(pe(t))];!u&&s&&(u=n[c=ge(he(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 zn(e,t){const n=t.emitsCache,r=n.get(e);if(void 0!==r)return r;const l=e.emits;let i={};return l?(K(l)?l.forEach((e=>i[e]=null)):B(i,l),te(e)&&n.set(e,i),i):(te(e)&&n.set(e,null),null)}function Ln(e,t){return!(!e||!D(t))&&(t=t.slice(2).replace(/Once$/,""),Z(e,t[0].toLowerCase()+t.slice(1))||Z(e,he(t))||Z(e,t))}let In=null,Tn=null;function jn(e){const t=In;return In=e,Tn=e&&e.type.__scopeId||null,t}function On(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=il(u.call(e,e,p,i,h,d,f)),v=a}else{const e=t;m=il(e.length>1?e(i,{attrs:a,slots:s,emit:c}):e(i,null)),v=t.props?a:Un(a)}}catch(t){Nr.length=0,pn(t,e,1),m=tl(Fr)}let w=m;if(v&&!1!==g){const e=Object.keys(v),{shapeFlag:t}=w;e.length&&7&t&&(o&&e.some(H)&&(v=Mn(v,o)),w=nl(w,v))}return n.dirs&&(w=nl(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||D(n))&&((t||(t={}))[n]=e[n]);return t},Mn=(e,t)=>{const n={};for(const r in e)H(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function Pn(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]:M;var s;const a=Ue()===(null==(s=pl)?void 0:s.scope)?pl:null;let c,u,p=!1,d=!1;if(Yt(e)?(c=()=>e.value,p=Wt(e)):Ht(e)?(c=()=>e,r=!0):K(e)?(d=!0,p=e.some((e=>Ht(e)||Wt(e))),c=()=>e.map((e=>Yt(e)?e.value:Ht(e)?Hn(e):X(e)?cn(e,a,2):void 0))):c=X(e)?t?()=>cn(e,a,2):()=>{if(!a||!a.isUnmounted)return u&&u(),un(e,a,3,[f])}:F,t&&r){const e=c;c=()=>Hn(e())}let h,f=e=>{u=y.onStop=()=>{cn(e,a,4)}};if(bl){if(f=F,t?n&&un(t,a,3,[c(),d?[]:void 0,f]):c(),"sync"!==l)return F;{const e=Al();h=e.__watcherHandles||(e.__watcherHandles=[])}}let g=d?new Array(e.length).fill(Vn):Vn;const m=()=>{if(y.active)if(t){const e=y.run();(r||p||(d?e.some(((e,t)=>me(e,g[t]))):me(e,g)))&&(u&&u(),un(t,a,3,[e,g===Vn?void 0:d&&g[0]===Vn?[]:g,f]),g=e)}else y.run()};let v;m.allowRecurse=!!t,"sync"===l?v=m:"post"===l?v=()=>Tr(m,a&&a.suspense):(m.pre=!0,a&&(m.id=a.uid),v=()=>xn(m));const y=new Ze(c,v);t?n?m():g=y.run():"post"===l?Tr(y.run.bind(y),a&&a.suspense):y.run();const w=()=>{y.stop(),a&&a.scope&&W(a.scope.effects,y)};return h&&h.push(w),w}function Hn(e,t){if(!te(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),Yt(e))Hn(e.value,t);else if(K(e))for(let n=0;n{Hn(e,t)}));else if(oe(e))for(const n in e)Hn(e[n],t);return e}function Bn(e,t){const n=In;if(null===n)return e;const r=_l(n)||n.proxy,l=e.dirs||(e.dirs=[]);for(let e=0;e!!e.type.__asyncLoader,Kn=e=>function(t){return(!bl||"sp"===e)&&function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:pl,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;Je(),ml(n);for(var r=arguments.length,l=new Array(r),i=0;i1&&void 0!==arguments[1]?arguments[1]:pl)},Gn=Kn("m"),Qn=Kn("bum"),Jn=Kn("um"),Xn="components";const Yn=Symbol.for("v-ndc");function er(e,t){return e&&(e[t]||e[pe(t)]||e[fe(pe(t))])}function tr(e,t,n,r){let l;const i=n&&n[r];if(K(e)||Y(e)){l=new Array(e.length);for(let n=0,r=e.length;nt(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?yl(e)?_l(e)||e.proxy:nr(e.parent):null,rr=B(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=>nr(e.parent),$root:e=>nr(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=>F}),lr=(e,t)=>e!==M&&!e.__isScriptSetup&&Z(e,t),ir={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(lr(l,t))return s[t]=1,l[t];if(i!==M&&Z(i,t))return s[t]=2,i[t];if((u=n.propsOptions[0])&&Z(u,t))return s[t]=3,o[t];if(r!==M&&Z(r,t))return s[t]=4,r[t];s[t]=0}}const p=rr[t];let d,h;return p?("$attrs"===t&&Ye(n,0,t),p(n)):(d=a.__cssModules)&&(d=d[t])?d:r!==M&&Z(r,t)?(s[t]=4,r[t]):(h=c.config.globalProperties,Z(h,t)?h[t]:void 0)},set(e,t,n){let{_:r}=e;const{data:l,setupState:i,ctx:o}=r;return lr(i,t)?(i[t]=n,!0):l!==M&&Z(l,t)?(l[t]=n,!0):!(Z(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!==M&&Z(r,t)||lr(l,t)||(n=a[0])&&Z(n,t)||Z(o,t)||Z(rr,t)||Z(s.config.globalProperties,t)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:Z(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function or(e){return K(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}function sr(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const{mixins:l,extends:i}=t;i&&sr(e,i,n,!0),l&&l.forEach((t=>sr(e,t,n,!0)));for(const l in t)if(r&&"expose"===l);else{const r=ar[l]||n&&n[l];e[l]=r?r(e[l],t[l]):t[l]}return e}const ar={data:cr,props:hr,emits:hr,methods:dr,computed:dr,beforeCreate:pr,created:pr,beforeMount:pr,mounted:pr,beforeUpdate:pr,updated:pr,beforeDestroy:pr,beforeUnmount:pr,destroyed:pr,unmounted:pr,activated:pr,deactivated:pr,errorCaptured:pr,serverPrefetch:pr,components:dr,directives:dr,watch:function(e,t){if(!e)return t;if(!t)return e;const n=B(Object.create(null),e);for(const r in t)n[r]=pr(e[r],t[r]);return n},provide:cr,inject:function(e,t){return dr(ur(e),ur(t))}};function cr(e,t){return t?e?function(){return B(X(e)?e.call(this,this):e,X(t)?t.call(this,this):t)}:t:e}function ur(e){if(K(e)){const t={};for(let n=0;n1&&void 0!==arguments[1]?arguments[1]:null;X(n)||(n=B({},n)),null==r||te(r)||(r=null);const l=fr(),i=new Set;let o=!1;const s=l.app={_uid:gr++,_component:n,_props:r,_container:null,_context:l,_instance:null,version:Rl,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=tl(n,r);return u.appContext=l,a&&t?t(u,i):e(u,i,c),o=!0,s._container=i,i.__vue_app__=s,_l(u.component)||u.component.proxy}},unmount(){o&&(e(null,s._container),delete s._container.__vue_app__)},provide:(e,t)=>(l.provides[e]=t,s),runWithContext(e){vr=s;try{return e()}finally{vr=null}}};return s}}let vr=null;function yr(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=pl||In;if(r||vr){const l=r?null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:vr._context.provides;if(l&&e in l)return l[e];if(arguments.length>1)return n&&X(t)?t.call(r&&r.proxy):t}}function wr(e,t,n,r){const[l,i]=e.propsOptions;let o,s=!1;if(t)for(let a in t){if(ae(a))continue;const c=t[a];let u;l&&Z(l,u=pe(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=Zt(n),r=o||M;for(let o=0;o-1,r[1]=n<0||e-1||Z(r,"default"))&&o.push(t)}}}const s=[i,o];return te(e)&&n.set(e,s),s}function xr(e){return"$"!==e[0]}function _r(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:null===e?"null":""}function $r(e,t){return _r(e)===_r(t)}function Cr(e,t){return K(t)?t.findIndex((t=>$r(t,e))):X(t)&&$r(t,e)?0:-1}const Sr=e=>"_"===e[0]||"$stable"===e,Ar=e=>K(e)?e.map(il):[il(e)],Rr=(e,t,n)=>{if(t._n)return t;const r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:In;if(!t)return e;if(e._n)return e;const n=function(){n._d&&Wr(-1);const r=jn(t);let l;try{l=e(...arguments)}finally{jn(r),n._d&&Wr(1)}return l};return n._n=!0,n._c=!0,n._d=!0,n}((function(){return Ar(t(...arguments))}),n);return r._c=!1,r},Er=(e,t,n)=>{const r=e._ctx;for(const n in e){if(Sr(n))continue;const l=e[n];if(X(l))t[n]=Rr(0,l,r);else if(null!=l){const e=Ar(l);t[n]=()=>e}}},zr=(e,t)=>{const n=Ar(t);e.slots.default=()=>n},Lr=(e,t,n)=>{const{vnode:r,slots:l}=e;let i=!0,o=M;if(32&r.shapeFlag){const e=t._;e?n&&1===e?i=!1:(B(l,t),n||1!==e||delete l._):(i=!t.$stable,Er(t,l)),o=t}else t&&(zr(e,t),o={default:1});if(i)for(const e in l)Sr(e)||e in o||delete l[e]};function Ir(e,t,n,r){let l=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(K(e))return void e.forEach(((e,i)=>Ir(e,t&&(K(t)?t[i]:t),n,r,l)));if(Zn(r)&&!l)return;const i=4&r.shapeFlag?_l(r.component)||r.component.proxy:r.el,o=l?null:i,{i:s,r:a}=e,c=t&&t.r,u=s.refs===M?s.refs={}:s.refs,p=s.setupState;if(null!=c&&c!==a&&(Y(c)?(u[c]=null,Z(p,c)&&(p[c]=null)):Yt(c)&&(c.value=null)),X(a))cn(a,s,12,[o,u]);else{const t=Y(a),r=Yt(a);if(t||r){const s=()=>{if(e.f){const n=t?Z(p,a)?p[a]:u[a]:a.value;l?K(n)&&W(n,i):K(n)?n.includes(i)||n.push(i):t?(u[a]=[i],Z(p,a)&&(p[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else t?(u[a]=o,Z(p,a)&&(p[a]=o)):r&&(a.value=o,e.k&&(u[e.k]=o))};o?(s.id=-1,Tr(s,n)):s()}}}const Tr=function(e,t){var n;t&&t.pendingBranch?K(e)?t.effects.push(...e):t.effects.push(e):(K(n=e)?mn.push(...n):vn&&vn.includes(n,n.allowRecurse?yn+1:yn)||mn.push(n),_n())};function jr(e){return function(e,t){ke().__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=F,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&&!Qr(e,t)&&(r=H(e),O(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 Pr:g(e,t,n,r);break;case Fr:m(e,t,n,r);break;case Vr:null==e&&v(t,n,r,o);break;case Mr: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,W)}null!=u&&l&&Ir(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&&Wn(e,null,o,"created"),b(d,e,e.scopeId,u,o),g){for(const t in g)"value"===t||ae(t)||l(d,t,null,g[t],a,e.children,o,s,D);"value"in g&&l(d,"value",null,g.value),(h=g.onVnodeBeforeMount)&&al(h,o,e)}y&&Wn(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)&&Tr((()=>{h&&al(h,o,e),w&&v.enter(d),y&&Wn(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||M,f=t.props||M;let g;n&&Or(n,!1),(g=f.onVnodeBeforeUpdate)&&al(g,n,t,e),d&&Wn(t,e,n,"beforeUpdate"),n&&Or(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&&al(g,n,t,e),d&&Wn(t,e,n,"updated")}),r)},_=(e,t,n,r,l,i,o)=>{for(let s=0;s{if(n!==r){if(n!==M)for(const a in n)ae(a)||a in r||l(e,a,n[a],null,s,t.children,i,o,D);for(const a in r){if(ae(a))continue;const c=r[a],u=n[a];c!==u&&"value"!==a&&l(e,a,u,c,s,t.children,i,o,D)}"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)&&Ur(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)||cl,i={uid:ul++,vnode:e,type:r,parent:t,appContext:l,root:null,next:null,subTree:null,effect:null,update:null,scope:new Oe(!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:kr(r,l),emitsOptions:zn(r,l),emit:null,emitted:null,propsDefaults:M,inheritAttrs:r.inheritAttrs,ctx:M,data:M,props:M,attrs:M,slots:M,refs:M,setupState:M,setupContext:null,attrsProxy:null,slotsProxy: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((e=>e.type.__isKeepAlive)(e)&&(s.ctx.renderer=W),function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];bl=t;const{props:n,children:r}=e.vnode,l=yl(e);(function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const l={},i={};ye(i,Jr,1),e.propsDefaults=Object.create(null),wr(e,t,l,i);for(const t in e.propsOptions[0])t in l||(l[t]=void 0);n?e.props=r?l:Dt(l,!1,gt,jt,Mt):e.type.props?e.props=l:e.props=i,e.attrs=i})(e,n,l,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=Zt(t),ye(t,"_",n)):Er(t,e.slots={})}else e.slots={},t&&zr(e,t);ye(e.slots,Jr,1)})(e,r);l&&function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Kt(new Proxy(e.ctx,ir));const{setup:r}=n;if(r){const n=e.setupContext=r.length>1?function(e){return{get attrs(){return function(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get:(t,n)=>(Ye(e,0,"$attrs"),t[n])}))}(e)},slots:e.slots,emit:e.emit,expose:t=>{e.exposed=t||{}}}}(e):null;ml(e),Je();const l=cn(r,e,0,[e.props,n]);if(Xe(),vl(),ne(l)){if(l.then(vl,vl),t)return l.then((n=>{kl(e,n,t)})).catch((t=>{pn(t,e,0)}));e.asyncDep=l}else kl(e,l,t)}else xl(e,t)}(e,t);bl=!1}(s),s.asyncDep){if(l&&l.registerDep(s,E),!e.el){const e=s.subTree=tl(Fr);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||Pn(r,o,c):!!o);if(1024&a)return!0;if(16&a)return r?Pn(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 Ze((()=>{if(e.isMounted){let t,{next:n,bu:r,u:s,parent:a,vnode:c}=e,p=n;Or(e,!1),n?(n.el=c.el,z(e,n,o)):n=c,r&&ve(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&al(t,a,n,c),Or(e,!0);const d=On(e),h=e.subTree;e.subTree=d,f(h,d,u(h.el),H(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&&Tr(s,l),(t=n.props&&n.props.onVnodeUpdated)&&Tr((()=>al(t,a,n,c)),l)}else{let o;const{el:s,props:a}=t,{bm:c,m:u,parent:p}=e,d=Zn(t);if(Or(e,!1),c&&ve(c),!d&&(o=a&&a.onVnodeBeforeMount)&&al(o,p,t),Or(e,!0),s&&K){const n=()=>{e.subTree=On(e),K(s,e.subTree,e,l,null)};d?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const o=e.subTree=On(e);f(null,o,n,r,e,l,i),t.el=o.el}if(u&&Tr(u,l),!d&&(o=a&&a.onVnodeMounted)){const e=t;Tr((()=>al(o,p,e)),l)}(256&t.shapeFlag||p&&Zn(p.vnode)&&256&p.vnode.shapeFlag)&&e.a&&Tr(e.a,l),e.isMounted=!0,t=n=r=null}}),(()=>xn(a)),e.scope),a=e.update=()=>s.run();a.id=e.uid,Or(e,!0),a()},z=(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=Zt(l),[a]=e.propsOptions;let c=!1;if(!(r||o>0)||16&o){let r;wr(e,t,l,i)&&(c=!0);for(const i in s)t&&(Z(t,i)||(r=he(i))!==i&&Z(t,r))||(a?!n||void 0===n[i]&&void 0===n[r]||(l[i]=br(a,s,i,void 0,e,!0)):delete l[i]);if(i!==s)for(const e in i)t&&Z(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 T(u,d,n,r,l,i,o,s,a);if(256&h)return void I(u,d,n,r,l,i,o,s,a)}8&f?(16&p&&D(u,l,i),d!==u&&c(n,d)):16&p?16&f?T(u,d,n,r,l,i,o,s,a):D(u,l,i,!0):(8&p&&c(n,""),16&f&&k(d,n,r,l,i,o,s,a))},I=(e,t,n,r,l,i,o,s,a)=>{t=t||P;const c=(e=e||P).length,u=t.length,p=Math.min(c,u);let d;for(d=0;du?D(e,l,i,!0,!1,p):k(t,n,r,l,i,o,s,a,p)},T=(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?ol(t[c]):il(t[c]);if(!Qr(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?ol(t[d]):il(t[d]);if(!Qr(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;)O(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?ol(t[c]):il(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){O(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]&&Qr(r,t[v])){u=v;break}void 0===u?O(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):P;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,W);else if(s!==Mr)if(s!==Vr)if(2!==l&&1&u&&a)if(0===l)a.beforeEnter(o),n(o,t,r),Tr((()=>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&&Ir(s,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const h=1&u&&d,f=!Zn(e);let g;if(f&&(g=o&&o.onVnodeBeforeUnmount)&&al(g,t,e),6&u)N(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);h&&Wn(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,l,W,r):c&&(i!==Mr||p>0&&64&p)?D(c,t,n,!1,!0):(i===Mr&&384&p||!l&&16&u)&&D(a,t,n),r&&U(e)}(f&&(g=o&&o.onVnodeUnmounted)||h)&&Tr((()=>{g&&al(g,t,e),h&&Wn(e,null,t,"unmounted")}),n)},U=e=>{const{type:t,el:n,anchor:l,transition:i}=e;if(t===Mr)return void V(n,l);if(t===Vr)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()},V=(e,t)=>{let n;for(;e!==t;)n=p(e),r(e),e=n;r(t)},N=(e,t,n)=>{const{bum:r,scope:l,update:i,subTree:o,um:s}=e;r&&ve(r),l.stop(),i&&(i.active=!1,O(o,e,t,n)),s&&Tr(s,t),Tr((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},D=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?H(e.component.subTree):128&e.shapeFlag?e.suspense.next():p(e.anchor||e.el),B=(e,t,n)=>{null==e?t._vnode&&O(t._vnode,null,null,!0):f(t._vnode||null,e,t,null,null,null,n),$n(),Cn(),t._vnode=e},W={p:f,um:O,m:j,r:U,mt:A,mc:k,pc:L,pbc:_,n:H,o:e};let q,K;return{render:B,hydrate:q,createApp:mr(B,q)}}(e)}function Or(e,t){let{effect:n,update:r}=e;n.allowRecurse=r.allowRecurse=t}function Ur(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=e.children,l=t.children;if(K(r)&&K(l))for(let e=0;e0&&void 0!==arguments[0]&&arguments[0];Nr.push(Dr=e?null:[])}let Br=1;function Wr(e){Br+=e}function qr(e){return e.dynamicChildren=Br>0?Dr||P:null,Nr.pop(),Dr=Nr[Nr.length-1]||null,Br>0&&Dr&&Dr.push(e),e}function Zr(e,t,n,r,l,i){return qr(el(e,t,n,r,l,i,!0))}function Kr(e,t,n,r,l){return qr(tl(e,t,n,r,l,!0))}function Gr(e){return!!e&&!0===e.__v_isVNode}function Qr(e,t){return e.type===t.type&&e.key===t.key}const Jr="__vInternal",Xr=e=>{let{key:t}=e;return null!=t?t:null},Yr=e=>{let{ref:t,ref_key:n,ref_for:r}=e;return"number"==typeof t&&(t=""+t),null!=t?Y(t)||Yt(t)||X(t)?{i:In,r:t,k:n,f:!!r}:t:null};function el(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===Mr?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&&Xr(t),ref:t&&Yr(t),scopeId:Tn,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:In};return s?(sl(a,n),128&i&&e.normalize(a)):n&&(a.shapeFlag|=Y(n)?8:16),Br>0&&!o&&Dr&&(a.patchFlag>0||6&i)&&32!==a.patchFlag&&Dr.push(a),a}const tl=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!==Yn||(e=Fr),Gr(e)){const r=nl(e,t,!0);return n&&sl(r,n),Br>0&&!i&&Dr&&(6&r.shapeFlag?Dr[Dr.indexOf(e)]=r:Dr.push(r)),r.patchFlag|=-2,r}var o;if(X(o=e)&&"__vccOpts"in o&&(e=e.__vccOpts),t){t=function(e){return e?qt(e)||Jr in e?B({},e):e:null}(t);let{class:e,style:n}=t;e&&!Y(e)&&(t.class=Ae(e)),te(n)&&(qt(n)&&!K(n)&&(n=B({},n)),t.style=xe(n))}return el(e,t,n,r,l,Y(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:te(e)?4:X(e)?2:0,i,!0)};function nl(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 ll(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(Hr(),Kr(Fr,null,e)):tl(Fr,null,e)}function il(e){return null==e||"boolean"==typeof e?tl(Fr):K(e)?tl(Mr,null,e.slice()):"object"==typeof e?ol(e):tl(Pr,null,String(e))}function ol(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:nl(e)}function sl(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(K(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),sl(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||Jr in t?3===r&&In&&(1===In.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=In}}else X(t)?(t={default:t,_ctx:In},n=32):(t=String(t),64&r?(n=16,t=[rl(t)]):n=8);e.children=t,e.shapeFlag|=n}function al(e,t,n){un(e,t,7,[n,arguments.length>3&&void 0!==arguments[3]?arguments[3]:null])}const cl=fr();let ul=0,pl=null;const dl=()=>pl||In;let hl,fl,gl="__VUE_INSTANCE_SETTERS__";(fl=ke()[gl])||(fl=ke()[gl]=[]),fl.push((e=>pl=e)),hl=e=>{fl.length>1?fl.forEach((t=>t(e))):fl[0](e)};const ml=e=>{hl(e),e.scope.on()},vl=()=>{pl&&pl.scope.off(),hl(null)};function yl(e){return 4&e.vnode.shapeFlag}let wl,bl=!1;function kl(e,t,n){X(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:te(t)&&(e.setupState=sn(t)),xl(e,n)}function xl(e,t,n){const r=e.type;if(!e.render){if(!t&&wl&&!r.render){const t=r.template||function(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:l,optionsCache:i,config:{optionMergeStrategies:o}}=e.appContext,s=i.get(t);let a;return s?a=s:l.length||n||r?(a={},l.length&&l.forEach((e=>sr(a,e,o,!0))),sr(a,t,o)):a=t,te(t)&&i.set(t,a),a}(e).template;if(t){const{isCustomElement:n,compilerOptions:l}=e.appContext.config,{delimiters:i,compilerOptions:o}=r,s=B(B({isCustomElement:n,delimiters:i},l),o);r.render=wl(t,s)}}e.render=r.render||F}}function _l(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(sn(Kt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in rr?rr[n](e):void 0,has:(e,t)=>t in e||t in rr}))}const $l=(e,t)=>function(e,t){let n,r,l=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const i=X(e);return i?(n=e,r=F):(n=e.get,r=e.set),new an(n,r,i||!r,l)}(e,0,bl);function Cl(e,t,n){const r=arguments.length;return 2===r?te(t)&&!K(t)?Gr(t)?tl(e,null,[t]):tl(e,t):tl(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&Gr(n)&&(n=[n]),tl(e,t,n))}const Sl=Symbol.for("v-scx"),Al=()=>yr(Sl),Rl="3.3.4",El="undefined"!=typeof document?document:null,zl=El&&El.createElement("template"),Ll={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?El.createElementNS("http://www.w3.org/2000/svg",e):El.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&l.setAttribute("multiple",r.multiple),l},createText:e=>El.createTextNode(e),createComment:e=>El.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>El.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{zl.innerHTML=r?`${e}`:e;const l=zl.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]}},Il=/\s*!important$/;function Tl(e,t,n){if(K(n))n.forEach((n=>Tl(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=Ol[t];if(n)return n;let r=pe(t);if("filter"!==r&&r in e)return Ol[t]=r;r=fe(r);for(let n=0;nFl||(Vl.then((()=>Fl=0)),Fl=Date.now()),Dl=/^on[a-z]/,Hl=e=>{const t=e.props["onUpdate:modelValue"]||!1;return K(t)?e=>ve(t,e):t};function Bl(e){e.target.composing=!0}function Wl(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const ql={created(e,t,n){let{modifiers:{lazy:r,trim:l,number:i}}=t;e._assign=Hl(n);const o=i||n.props&&"number"===n.props.type;Ml(e,r?"change":"input",(t=>{if(t.target.composing)return;let n=e.value;l&&(n=n.trim()),o&&(n=we(n)),e._assign(n)})),l&&Ml(e,"change",(()=>{e.value=e.value.trim()})),r||(Ml(e,"compositionstart",Bl),Ml(e,"compositionend",Wl),Ml(e,"change",Wl))},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=Hl(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)&&we(e.value)===r)return}const s=null==r?"":r;e.value!==s&&(e.value=s)}},Zl={deep:!0,created(e,t,n){e._assign=Hl(n),Ml(e,"change",(()=>{const t=e._modelValue,n=Xl(e),r=e.checked,l=e._assign;if(K(t)){const e=Le(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(Q(t)){const e=new Set(t);r?e.add(n):e.delete(n),l(e)}else l(Yl(e,r))}))},mounted:Kl,beforeUpdate(e,t,n){e._assign=Hl(n),Kl(e,t,n)}};function Kl(e,t,n){let{value:r,oldValue:l}=t;e._modelValue=r,K(r)?e.checked=Le(r,n.props.value)>-1:Q(r)?e.checked=r.has(n.props.value):r!==l&&(e.checked=ze(r,Yl(e,!0)))}const Gl={created(e,t,n){let{value:r}=t;e.checked=ze(r,n.props.value),e._assign=Hl(n),Ml(e,"change",(()=>{e._assign(Xl(e))}))},beforeUpdate(e,t,n){let{value:r,oldValue:l}=t;e._assign=Hl(n),r!==l&&(e.checked=ze(r,n.props.value))}},Ql={deep:!0,created(e,t,n){let{value:r,modifiers:{number:l}}=t;const i=Q(r);Ml(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>l?we(Xl(e)):Xl(e)));e._assign(e.multiple?i?new Set(t):t:t[0])})),e._assign=Hl(n)},mounted(e,t){let{value:n}=t;Jl(e,n)},beforeUpdate(e,t,n){e._assign=Hl(n)},updated(e,t){let{value:n}=t;Jl(e,n)}};function Jl(e,t){const n=e.multiple;if(!n||K(t)||Q(t)){for(let r=0,l=e.options.length;r-1:l.selected=t.has(i);else if(ze(Xl(l),t))return void(e.selectedIndex!==r&&(e.selectedIndex=r))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function Xl(e){return"_value"in e?e._value:e.value}function Yl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const ei={created(e,t,n){ti(e,t,n,null,"created")},mounted(e,t,n){ti(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){ti(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){ti(e,t,n,r,"updated")}};function ti(e,t,n,r,l){const i=function(e,t){switch(e){case"SELECT":return Ql;case"TEXTAREA":return ql;default:switch(t){case"checkbox":return Zl;case"radio":return Gl;default:return ql}}}(e.tagName,n.props&&n.props.type)[l];i&&i(e,t,n,r)}const ni={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):ri(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),ri(e,!0),i.enter(e)):i.leave(e,(()=>{ri(e,!1)})):ri(e,r))},beforeUnmount(e,t){let{value:n}=t;ri(e,n)}};function ri(e,t){e.style.display=t?e._vod:"none"}const li=B({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=Y(n);if(n&&!l){if(t&&!Y(t))for(const e in t)null==n[e]&&Tl(r,e,"");for(const e in n)Tl(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):D(t)?H(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(Pl.test(e)){let n;for(t={};n=e.match(Pl);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):he(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(K(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=Nl(),n}(r,l);Ml(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&&Dl.test(t)&&X(n)):"spellcheck"!==t&&"draggable"!==t&&"translate"!==t&&("form"!==t&&(("list"!==t||"INPUT"!==e.tagName)&&(("type"!==t||"TEXTAREA"!==e.tagName)&&((!Dl.test(t)||!Y(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);const s=e.tagName;if("value"===t&&"PROGRESS"!==s&&!s.includes("-")){e._value=n;const r=null==n?"":n;return("OPTION"===s?e.getAttribute("value"):e.value)!==r&&(e.value=r),void(null==n&&e.removeAttribute(t))}let a=!1;if(""===n||null==n){const r=typeof e[t];"boolean"===r?n=Ee(n):null==n&&"string"===r?(n="",a=!0):"number"===r&&(n=0,a=!0)}try{e[t]=n}catch(e){}a&&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(Ul,t.slice(6,t.length)):e.setAttributeNS(Ul,t,n);else{const r=Re(t);null==n||r&&!Ee(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}(e,t,r,l))}},Ll);let ii;function oi(e){return!!Ue()&&(function(e){je&&je.cleanups.push(e)}(e),!0)}function si(e){return"function"==typeof e?e():ln(e)}const ai="undefined"!=typeof window&&"undefined"!=typeof document,ci=Object.prototype.toString,ui=e=>"[object Object]"===ci.call(e),pi=()=>{};function di(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 hi=e=>e();function fi(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];dl()?Gn(e):t?e():kn(e)}function gi(e){var t;const n=si(e);return null!=(t=null==n?void 0:n.$el)?t:n}const mi=ai?window:void 0,vi=ai?window.document:void 0;function yi(){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=Nn((()=>[gi(e),si(r)]),(e=>{let[r,l]=e;if(a(),!r)return;const i=ui(l)?{...l}:l;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,i))))))}),{immediate:!0,flush:"post"}),u=()=>{c(),a()};return oi(u),u}const wi="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},bi="__vueuse_ssr_handlers__",ki=(bi in wi||(wi[bi]=wi[bi]||{}),wi[bi]);const xi={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()}},_i="vueuse-storage";function $i(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=mi,eventFilter:d,onError:h=(e=>{console.error(e)})}=r,f=(u?tn:en)(t);if(!n)try{n=(ki.getDefaultStorage||(()=>{var e;return null==(e=mi)?void 0:e.localStorage}))()}catch(e){h(e)}if(!n)return f;const g=si(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:xi[m],{pause:y,resume:w}=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{eventFilter:r,...l}=n,{eventFilter:i,pause:o,resume:s,isActive:a}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hi;const t=en(!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){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{eventFilter:r=hi,...l}=n;return Nn(e,di(r,t),l)}(e,t,{...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(_i,{detail:{key:e,oldValue:l,newValue:r,storageArea:n}})))}}catch(e){h(e)}}(f.value)),{flush:i,deep:o,eventFilter:d});return p&&s&&(yi(p,"storage",b),yi(p,_i,(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{(null==t?void 0:t.newValue)!==v.write(f.value)&&(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"function"==typeof c?c(e,g):"object"!==m||Array.isArray(e)?e:{...g,...e}}return"string"!=typeof r?r:v.read(r)}(t))}catch(e){h(e)}finally{t?kn(w):w()}}}}let Ci=0;const Si=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}`:""}`},Ai=e=>{"AbortError"!==e.name&&console.error(e.message)},Ri=e=>e instanceof HTMLElement?e:"string"==typeof e?document.querySelector(e):null,Ei=e=>e.type.includes("image"),zi=e=>{const t=Array.from(e).find(Ei);return t?t.getAsFile():null};let Li={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const Ii=/[&<>"']/,Ti=new RegExp(Ii.source,"g"),ji=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Oi=new RegExp(ji.source,"g"),Ui={"&":"&","<":"<",">":">",'"':""","'":"'"},Mi=e=>Ui[e];function Pi(e,t){if(t){if(Ii.test(e))return e.replace(Ti,Mi)}else if(ji.test(e))return e.replace(Oi,Mi);return e}const Fi=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function Vi(e){return e.replace(Fi,((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 Ni=/(^|[^\[])\^/g;function Di(e,t){e="string"==typeof e?e:e.source,t=t||"";const n={replace:(t,r)=>(r=(r=r.source||r).replace(Ni,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n}const Hi=/[^\w:]/g,Bi=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Wi(e,t,n){if(e){let t;try{t=decodeURIComponent(Vi(n)).replace(Hi,"").toLowerCase()}catch(e){return null}if(0===t.indexOf("javascript:")||0===t.indexOf("vbscript:")||0===t.indexOf("data:"))return null}t&&!Bi.test(n)&&(n=function(e,t){qi[" "+e]||(Zi.test(e)?qi[" "+e]=e+"/":qi[" "+e]=Xi(e,"/",!0));const n=-1===(e=qi[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(Ki,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(Gi,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}const qi={},Zi=/^[^:]+:\/*[^/]*$/,Ki=/^([^:]+:)[\s\S]*$/,Gi=/^([^:]+:\/*[^/]*)[\s\S]*$/,Qi={exec:function(){}};function Ji(e,t){const n=e.replace(/\|/g,((e,t,n)=>{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 eo(e,t,n,r){const l=t.href,i=t.title?Pi(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:Pi(o)}}class to{constructor(e){this.options=e||Li}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:Xi(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=Xi(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:Ji(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]):Pi(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=Xi(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)),eo(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 eo(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=Pi(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=Pi(this.options.mangle?t(n[1]):n[1]),r="mailto:"+e):(e=Pi(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=Pi(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=Pi(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]):Pi(n[0]):n[0]:Pi(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}const no={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:Qi,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?'|\([^()]*\))/};no.def=Di(no.def).replace("label",no._label).replace("title",no._title).getRegex(),no.bullet=/(?:[*+-]|\d{1,9}[.)])/,no.listItemStart=Di(/^( *)(bull) */).replace("bull",no.bullet).getRegex(),no.list=Di(no.list).replace(/bull/g,no.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+no.def.source+")").getRegex(),no._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",no._comment=/|$)/,no.html=Di(no.html,"i").replace("comment",no._comment).replace("tag",no._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),no.paragraph=Di(no._paragraph).replace("hr",no.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",no._tag).getRegex(),no.blockquote=Di(no.blockquote).replace("paragraph",no.paragraph).getRegex(),no.normal={...no},no.gfm={...no.normal,table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"},no.gfm.table=Di(no.gfm.table).replace("hr",no.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",no._tag).getRegex(),no.gfm.paragraph=Di(no._paragraph).replace("hr",no.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",no.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",no._tag).getRegex(),no.pedantic={...no.normal,html:Di("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",no._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:Qi,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Di(no.normal._paragraph).replace("hr",no.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",no.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const ro={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Qi,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:Qi,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}ro._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",ro.punctuation=Di(ro.punctuation).replace(/punctuation/g,ro._punctuation).getRegex(),ro.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,ro.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g,ro._comment=Di(no._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),ro.emStrong.lDelim=Di(ro.emStrong.lDelim).replace(/punct/g,ro._punctuation).getRegex(),ro.emStrong.rDelimAst=Di(ro.emStrong.rDelimAst,"g").replace(/punct/g,ro._punctuation).getRegex(),ro.emStrong.rDelimUnd=Di(ro.emStrong.rDelimUnd,"g").replace(/punct/g,ro._punctuation).getRegex(),ro._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,ro._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,ro._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])?)+(?![-_])/,ro.autolink=Di(ro.autolink).replace("scheme",ro._scheme).replace("email",ro._email).getRegex(),ro._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,ro.tag=Di(ro.tag).replace("comment",ro._comment).replace("attribute",ro._attribute).getRegex(),ro._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,ro._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,ro._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,ro.link=Di(ro.link).replace("label",ro._label).replace("href",ro._href).replace("title",ro._title).getRegex(),ro.reflink=Di(ro.reflink).replace("label",ro._label).replace("ref",no._label).getRegex(),ro.nolink=Di(ro.nolink).replace("ref",no._label).getRegex(),ro.reflinkSearch=Di(ro.reflinkSearch,"g").replace("reflink",ro.reflink).replace("nolink",ro.nolink).getRegex(),ro.normal={...ro},ro.pedantic={...ro.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:Di(/^!?\[(label)\]\((.*?)\)/).replace("label",ro._label).getRegex(),reflink:Di(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",ro._label).getRegex()},ro.gfm={...ro.normal,escape:Di(ro.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)+"["+Yi("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)+"["+Yi("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,io))e=e.substring(t.raw.length),s.push(t);else if(this.state.inLink||!(t=this.tokenizer.url(e,io))){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,lo))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 so{constructor(e){this.options=e||Li}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:Pi(e,!0))+"
\n":"
"+(n?e:Pi(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=Wi(this.options.sanitize,this.options.baseUrl,e)))return n;let r='",r}image(e,t,n){if(null===(e=Wi(this.options.sanitize,this.options.baseUrl,e)))return n;let r=`${n}":">",r}text(e){return e}}class ao{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 co{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 uo{constructor(e){this.options=e||Li,this.options.renderer=this.options.renderer||new so,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new ao,this.slugger=new co}static parse(e,t){return new uo(t).parse(e)}static parseInline(e,t){return new uo(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{"function"==typeof r&&(l=r,r=null);const i={...r},o=function(e,t,n){return r=>{if(r.message+="\nPlease report this to https://github.com/markedjs/marked.",e){const e="

    An error occurred:

    "+Pi(r.message+"",!0)+"
    ";return t?Promise.resolve(e):n?void n(null,e):e}if(t)return Promise.reject(r);if(!n)throw r;n(r)}}((r={...fo.defaults,...i}).silent,r.async,l);if(null==n)return o(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof n)return o(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));if(function(e){e&&e.sanitize&&!e.silent&&console.warn("marked(): sanitize and sanitizer parameters are deprecated since version 0.7.0, should not be used and will be removed in the future. Read more here: https://marked.js.org/#/USING_ADVANCED.md#options")}(r),r.hooks&&(r.hooks.options=r),l){const i=r.highlight;let s;try{r.hooks&&(n=r.hooks.preprocess(n)),s=e(n,r)}catch(e){return o(e)}const a=function(e){let n;if(!e)try{r.walkTokens&&fo.walkTokens(s,r.walkTokens),n=t(s,r),r.hooks&&(n=r.hooks.postprocess(n))}catch(t){e=t}return r.highlight=i,e?o(e):l(null,n)};if(!i||i.length<3)return a();if(delete r.highlight,!s.length)return a();let c=0;return fo.walkTokens(s,(function(e){"code"===e.type&&(c++,setTimeout((()=>{i(e.text,e.lang,(function(t,n){if(t)return a(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),c--,0===c&&a()}))}),0))})),void(0===c&&a())}if(r.async)return Promise.resolve(r.hooks?r.hooks.preprocess(n):n).then((t=>e(t,r))).then((e=>r.walkTokens?Promise.all(fo.walkTokens(e,r.walkTokens)).then((()=>e)):e)).then((e=>t(e,r))).then((e=>r.hooks?r.hooks.postprocess(e):e)).catch(o);try{r.hooks&&(n=r.hooks.preprocess(n));const l=e(n,r);r.walkTokens&&fo.walkTokens(l,r.walkTokens);let i=t(l,r);return r.hooks&&(i=r.hooks.postprocess(i)),i}catch(e){return o(e)}}}function fo(e,t,n){return ho(oo.lex,uo.parse)(e,t,n)}fo.options=fo.setOptions=function(e){var t;return fo.defaults={...fo.defaults,...e},t=fo.defaults,Li=t,fo},fo.getDefaults=function(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},fo.defaults=Li,fo.use=function(){const e=fo.defaults.extensions||{renderers:{},childTokens:{}};for(var t=arguments.length,n=new Array(t),r=0;r{const n={...t};if(n.async=fo.defaults.async||n.async||!1,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;l{if(fo.defaults.async)return Promise.resolve(t.hooks[n].call(e,l)).then((t=>r.call(e,t)));const i=t.hooks[n].call(e,l);return r.call(e,i)}:e[n]=function(){for(var l=arguments.length,i=new Array(l),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").replace(/:(.+?):/g,((t,n)=>e[n]?`${n}`:t))},wo=e=>e.dataset.path||e.getAttribute("id"),bo=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:z(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(Ai),i.abort.bind(i)},ko=e=>{let{size:t}=e;return Cl("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:t,height:t},[Cl("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"}),Cl("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"})])},xo=()=>Cl("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Cl("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"})),_o=()=>Cl("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Cl("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"})),$o=()=>Cl("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Cl("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"}),Cl("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"})]),Co=e=>{let{active:t=!1}=e;return Cl("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Cl("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"})])},So=()=>Cl("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[Cl("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"}),Cl("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"})]),Ao=()=>Cl("svg",{width:"16",height:"16",ariaHidden:"true"},Cl("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"})),Ro=()=>Cl("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Cl("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"})),Eo=()=>Cl("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},Cl("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"})),zo=()=>Cl("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},Cl("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"})),Lo=e=>{let{size:t=100}=e;return Cl("svg",{width:t,height:t,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},Cl("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},Cl("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"})))},Io=()=>Cl("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[Cl("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"}),Cl("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=bo;let To=null;const jo=()=>To||(To=$i("WALINE_LIKE",[]));let Oo=null;var Uo="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Mo={},Po={},Fo={},Vo=Uo&&Uo.__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())}))},No=Uo&&Uo.__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]Zo??(Zo=$i("WALINE_USER",{})),Go={key:0,class:"wl-reaction"},Qo=["textContent"],Jo={class:"wl-reaction-list"},Xo=["onClick"],Yo={class:"wl-reaction-img"},es=["src","alt"],ts=["textContent"],ns=["textContent"];var rs=qn({__name:"ArticleReaction",setup(e,t){let{expose:n}=t;n();const r=Oo??(Oo=$i("WALINE_REACTION",{})),l=yr("config"),i=en(-1),o=en([]),s=$l((()=>l.value.locale)),a=$l((()=>l.value.reaction.length>0)),c=$l((()=>{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 Gn((()=>{Nn((()=>[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((()=>u?.())),(e,t)=>c.value.length?(Hr(),Zr("div",Go,[el("div",{class:"wl-reaction-title",textContent:Ie(s.value.reactionTitle)},null,8,Qo),el("ul",Jo,[(Hr(!0),Zr(Mr,null,tr(c.value,((e,t)=>{let{active:n,icon:s,desc:a}=e;return Hr(),Zr("li",{key:t,class:Ae(["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)},[el("div",Yo,[el("img",{src:s,alt:a},null,8,es),i.value===t?(Hr(),Kr(ln(Lo),{key:0,class:"wl-reaction-loading"})):(Hr(),Zr("div",{key:1,class:"wl-reaction-votes",textContent:Ie(o.value[t]||0)},null,8,ts))]),el("div",{class:"wl-reaction-text",textContent:Ie(a)},null,8,ns)],10,Xo)})),128))])])):ll("v-if",!0)}}),ls=(e,t)=>{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n},is=ls(rs,[["__file","ArticleReaction.vue"]]),os=new Map;function ss(e){var t=os.get(e);t&&t.destroy()}function as(e){var t=os.get(e);t&&t.update()}var cs=null;"undefined"==typeof window?((cs=function(e){return e}).destroy=function(e){return e},cs.update=function(e){return e}):((cs=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&&!os.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]})),os.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",os.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],ss),e},cs.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],as),e});var us=cs;const ps=["data-index"],ds=["src","title","onClick"];var hs=qn({__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=en(null),o=en({}),s=en([]),a=()=>{const e=Math.floor((i.value.getBoundingClientRect().width+r.gap)/(r.columnWidth+r.gap));return e>0?e:1},c=async e=>{if(e>=r.items.length)return;await kn();const t=Array.from(i.value?.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 Gn((()=>{u(!0),l=new ResizeObserver((()=>{u()})),l.observe(i.value),Nn((()=>[r.items]),(()=>{o.value={},u(!0)})),Nn((()=>[r.columnWidth,r.gap]),(()=>{u()}))})),Qn((()=>l.unobserve(i.value))),(e,t)=>(Hr(),Zr("div",{ref_key:"wall",ref:i,class:"wl-gallery",style:xe({gap:`${e.gap}px`})},[(Hr(!0),Zr(Mr,null,tr(s.value,((t,n)=>(Hr(),Zr("div",{key:n,class:"wl-gallery-column","data-index":n,style:xe({gap:`${e.gap}px`})},[(Hr(!0),Zr(Mr,null,tr(t,(t=>(Hr(),Zr(Mr,{key:t},[o.value[e.items[t].src]?ll("v-if",!0):(Hr(),Kr(ln(Lo),{key:0,size:36,style:{margin:"20px auto"}})),el("img",{class:"wl-gallery-item",src:e.items[t].src,title:e.items[t].title,loading:"lazy",onLoad:p,onClick:n=>e.$emit("insert",`![](${e.items[t].src})`)},null,40,ds)],64)))),128))],12,ps)))),128))],4))}}),fs=ls(hs,[["__file","ImageWall.vue"]]);const gs={class:"wl-comment"},ms={key:0,class:"wl-login-info"},vs={class:"wl-avatar"},ys=["title"],ws=["title"],bs=["src"],ks=["title","textContent"],xs={class:"wl-panel"},_s=["for","textContent"],$s=["id","onUpdate:modelValue","name","type"],Cs=["placeholder"],Ss={class:"wl-preview"},As=el("hr",null,null,-1),Rs=["innerHTML"],Es={class:"wl-footer"},zs={class:"wl-actions"},Ls={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},Is=["title"],Ts=["title"],js=["title"],Os=["title"],Us={class:"wl-info"},Ms=el("div",{class:"wl-captcha-container"},null,-1),Ps={class:"wl-text-number"},Fs={key:0},Vs=["textContent"],Ns=["textContent"],Ds=["disabled"],Hs=["placeholder"],Bs={key:1,class:"wl-loading"},Ws={key:0,class:"wl-tab-wrapper"},qs=["title","onClick"],Zs=["src","alt"],Ks={key:0,class:"wl-tabs"},Gs=["onClick"],Qs=["src","alt","title"],Js=["title"];var Xs=qn({__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=yr("config"),o=$i("WALINE_COMMENT_BOX_EDITOR",""),s=$i("WALINE_USER_META",{nick:"",mail:"",link:""}),a=Ko(),c=en({}),u=en(null),p=en(null),d=en(null),h=en(null),f=en(null),g=en(null),m=en(null),v=en({tabs:[],map:{}}),y=en(0),w=en(!1),b=en(!1),k=en(!1),x=en(""),_=en(0),$=Vt({loading:!0,list:[]}),C=en(0),A=en(!1),E=en(""),z=en(!1),L=en(!1),I=$l((()=>i.value.locale)),T=$l((()=>Boolean(a.value?.token))),j=$l((()=>!1!==i.value.imageUploader)),U=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},M=e=>{const t=e.key;(e.ctrlKey||e.metaKey)&&"Enter"===t&&D()},P=e=>{const t=`![${i.value.locale.uploading} ${e.name}]()`;return U(t),z.value=!0,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,"")})).then((()=>{z.value=!1}))},F=e=>{if(e.dataTransfer?.items){const t=zi(e.dataTransfer.items);t&&j.value&&(P(t),e.preventDefault())}},V=e=>{if(e.clipboardData){const t=zi(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()=>{const{serverURL:e,lang:t,login:n,wordLimit:p,requiredMeta:d,recaptchaV3Key:h,turnstileKey:f}=i.value,g=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})(),m={comment:E.value,nick:s.value.nick,mail:s.value.mail,link:s.value.link,url:i.value.path,ua:g};if(a.value?.token)m.nick=a.value.display_name,m.mail=a.value.email,m.link=a.value.url;else{if("force"===n)return;if(d.indexOf("nick")>-1&&!m.nick)return c.value.nick?.focus(),alert(I.value.nickError);if(d.indexOf("mail")>-1&&!m.mail||m.mail&&(y=m.mail,!O.test(y)))return c.value.mail?.focus(),alert(I.value.mailError);m.nick||(m.nick=I.value.anonymous)}var y;if(m.comment){if(!A.value)return alert(I.value.wordHint.replace("$0",p[0].toString()).replace("$1",p[1].toString()).replace("$2",_.value.toString()));m.comment=yo(m.comment,v.value.map),l.replyId&&l.rootId&&(m.pid=l.replyId,m.rid=l.rootId,m.at=l.replyUser),z.value=!0;try{h&&(m.recaptchaV3=await(e=>{const t=qo[e]??(qo[e]=Mo.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:e=>t.then((t=>t.execute(e)))}})(h).execute("social")),f&&(m.turnstile=await(w=f,{execute:async e=>{const{load:t}=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pi,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{immediate:r=!0,manual:l=!1,type:i="text/javascript",async:o=!0,crossOrigin:s,referrerPolicy:a,noModule:c,defer:u,document:p=vi,attrs:d={}}=n,h=en(null);let f=null;const g=function(){return f||(f=(n=>new Promise(((r,l)=>{const f=e=>(h.value=e,r(e),e);if(!p)return void r(!1);let g=!1,m=p.querySelector(`script[src="${si(e)}"]`);m?m.hasAttribute("data-loaded")&&f(m):(m=p.createElement("script"),m.type=i,m.async=o,m.src=si(e),u&&(m.defer=u),s&&(m.crossOrigin=s),c&&(m.noModule=c),a&&(m.referrerPolicy=a),Object.entries(d).forEach((e=>{let[t,n]=e;return null==m?void 0:m.setAttribute(t,n)})),g=!0),m.addEventListener("error",(e=>l(e))),m.addEventListener("abort",(e=>l(e))),m.addEventListener("load",(()=>{m.setAttribute("data-loaded","true"),t(m),f(m)})),g&&(m=p.head.appendChild(m)),n||f(m)})))(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])),f},m=()=>{if(!p)return;f=null,h.value&&(h.value=null);const t=p.querySelector(`script[src="${si(e)}"]`);t&&p.head.removeChild(t)};var v;return r&&!l&&fi(g),l||(v=m,dl()&&Jn(v)),{scriptTag:h,load:g,unload:m}}("https://challenges.cloudflare.com/turnstile/v0/api.js",void 0,{async:!1});await t();const n=window?.turnstile;return new Promise((t=>{n?.ready((()=>{n?.render(".wl-captcha-container",{sitekey:w,action:e,size:"compact",callback:t})}))}))}}).execute("social"));const n={serverURL:e,lang:t,token:a.value?.token,comment:m},i=await(l.edit?S({objectId:l.edit.objectId,...n}):(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()))})(n));if(z.value=!1,i.errmsg)return alert(i.errmsg);r("submit",i.data),o.value="",x.value="",l.replyId&&r("cancelReply"),l.edit?.objectId&&r("cancelEdit")}catch(e){z.value=!1,alert(e.message)}var w}else u.value?.focus()},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 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&&(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`);s?.postMessage({type:"TOKEN",data:a.value.token},"*")},q=e=>{d.value?.contains(e.target)||h.value?.contains(e.target)||(w.value=!1),f.value?.contains(e.target)||g.value?.contains(e.target)||(b.value=!1)},Z=async e=>{const{scrollTop:t,clientHeight:n,scrollHeight:r}=e.target,l=(n+t)/r,o=i.value.search,s=m.value?.value||"";l<.9||$.loading||L.value||($.loading=!0,(o.more&&$.list.length?await o.more(s,$.list.length):await o.search(s)).length?$.list=[...$.list,...o.more&&$.list.length?await o.more(s,$.list.length):await o.search(s)]:L.value=!0,$.loading=!1,setTimeout((()=>{e.target.scrollTop=t}),50))},K=function(e){return di(function(e){let t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=pi;const i=e=>{clearTimeout(e),l(),l=pi};return o=>{const s=si(e),a=si(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,Z(e)}),300);Nn([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 Gn((()=>{document.body.addEventListener("click",q),window.addEventListener("message",G),l.edit?.objectId&&(o.value=l.edit.orig),Nn(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})),Nn((()=>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(fo.setOptions({highlight:r||void 0,breaks:!0,smartLists:!0,smartypants:!0}),l){const e=(e=>[{name:"blockMath",level:"block",tokenizer(t){const n=vo.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(go);return-1!==t?t:e.length},tokenizer(t){const n=mo.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!1,n[1])}}}])(l);fo.use({extensions:e})}return fo.parse(yo(e,n))})(e,{emojiMap:v.value.map,highlighter:t,texRenderer:n}),_.value=(e=>((e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu))(e)?.reduce(((e,t)=>e+(""===t.trim()?0:t.trim().split(/\s+/u).length)),0)||0)+((e=>e.match(/[\u4E00-\u9FD5]/gu))(e)?.length||0))(e),e?us(u.value):us.destroy(u.value)}),{immediate:!0}),Nn((()=>i.value.emoji),(e=>{return(t=e,Promise.all(t.map((e=>"string"==typeof e?(e=>{const t=$i("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:Si(l,r,i,o),items:s.map((e=>{const n=`${i||""}${e}`;return t.map[n]=Si(e,r,i,o),n}))})})),t}))).then((e=>{v.value=e}));var t}),{immediate:!0})})),Jn((()=>{document.body.removeEventListener("click",q),window.removeEventListener("message",G)})),(e,t)=>(Hr(),Zr("div",gs,["disable"!==ln(i).login&&T.value&&!e.edit?.objectId?(Hr(),Zr("div",ms,[el("div",vs,[el("button",{type:"submit",class:"wl-logout-btn",title:I.value.logout,onClick:B},[tl(ln(ko),{size:14})],8,ys),el("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:I.value.profile,onClick:W},[el("img",{src:ln(a).avatar,alt:"avatar"},null,8,bs)],8,ws)]),el("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:I.value.profile,onClick:W,textContent:Ie(ln(a).display_name)},null,8,ks)])):ll("v-if",!0),el("div",xs,["force"!==ln(i).login&&ln(i).meta.length&&!T.value?(Hr(),Zr("div",{key:0,class:Ae(["wl-header",`item${ln(i).meta.length}`])},[(Hr(!0),Zr(Mr,null,tr(ln(i).meta,(e=>(Hr(),Zr("div",{key:e,class:"wl-header-item"},[el("label",{for:`wl-${e}`,textContent:Ie(I.value[e]+(ln(i).requiredMeta.includes(e)||!ln(i).requiredMeta.length?"":`(${I.value.optional})`))},null,8,_s),Bn(el("input",{id:`wl-${e}`,ref_for:!0,ref:t=>{t&&(c.value[e]=t)},"onUpdate:modelValue":t=>ln(s)[e]=t,class:Ae(["wl-input",`wl-${e}`]),name:e,type:"mail"===e?"email":"text"},null,10,$s),[[ei,ln(s)[e]]])])))),128))],2)):ll("v-if",!0),Bn(el("textarea",{id:"wl-edit",ref_key:"editorRef",ref:u,"onUpdate:modelValue":t[0]||(t[0]=e=>Yt(o)?o.value=e:null),class:"wl-editor",placeholder:e.replyUser?`@${e.replyUser}`:I.value.placeholder,onKeydown:M,onDrop:F,onPaste:V},null,40,Cs),[[ql,ln(o)]]),Bn(el("div",Ss,[As,el("h4",null,Ie(I.value.preview)+":",1),el("div",{class:"wl-content",innerHTML:x.value},null,8,Rs)],512),[[ni,k.value]]),el("div",Es,[el("div",zs,[el("a",Ls,[tl(ln(Ao))]),Bn(el("button",{ref_key:"emojiButtonRef",ref:d,type:"button",class:Ae(["wl-action",{active:w.value}]),title:I.value.emoji,onClick:t[1]||(t[1]=e=>w.value=!w.value)},[tl(ln(_o))],10,Is),[[ni,v.value.tabs.length]]),ln(i).search?(Hr(),Zr("button",{key:0,ref_key:"gifButtonRef",ref:f,type:"button",class:Ae(["wl-action",{active:b.value}]),title:I.value.gif,onClick:t[2]||(t[2]=e=>b.value=!b.value)},[tl(ln(Io))],10,Ts)):ll("v-if",!0),el("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),j.value?(Hr(),Zr("label",{key:1,for:"wl-image-upload",class:"wl-action",title:I.value.uploadImage},[tl(ln($o))],8,js)):ll("v-if",!0),el("button",{type:"button",class:Ae(["wl-action",{active:k.value}]),title:I.value.preview,onClick:t[3]||(t[3]=e=>k.value=!k.value)},[tl(ln(So))],10,Os)]),el("div",Us,[Ms,el("div",Ps,[rl(Ie(_.value)+" ",1),ln(i).wordLimit?(Hr(),Zr("span",Fs,[rl("  /  "),el("span",{class:Ae({illegal:!A.value}),textContent:Ie(C.value)},null,10,Vs)])):ll("v-if",!0),rl("  "+Ie(I.value.word),1)]),"disable"===ln(i).login||T.value?ll("v-if",!0):(Hr(),Zr("button",{key:0,type:"button",class:"wl-btn",onClick:H,textContent:Ie(I.value.login)},null,8,Ns)),"force"!==ln(i).login||T.value?(Hr(),Zr("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:z.value,onClick:D},[z.value?(Hr(),Kr(ln(Lo),{key:0,size:16})):(Hr(),Zr(Mr,{key:1},[rl(Ie(I.value.submit),1)],64))],8,Ds)):ll("v-if",!0)]),el("div",{ref_key:"gifPopupRef",ref:g,class:Ae(["wl-gif-popup",{display:b.value}])},[el("input",{ref_key:"gifSearchInputRef",ref:m,type:"text",placeholder:I.value.gifSearchPlaceholder,onInput:t[4]||(t[4]=function(){return ln(K)&&ln(K)(...arguments)})},null,40,Hs),$.list.length?(Hr(),Kr(fs,{key:0,items:$.list,"column-width":200,gap:6,onInsert:t[5]||(t[5]=e=>U(e)),onScroll:Z},null,8,["items"])):ll("v-if",!0),$.loading?(Hr(),Zr("div",Bs,[tl(ln(Lo),{size:30})])):ll("v-if",!0)],2),el("div",{ref_key:"emojiPopupRef",ref:h,class:Ae(["wl-emoji-popup",{display:w.value}])},[(Hr(!0),Zr(Mr,null,tr(v.value.tabs,((e,t)=>(Hr(),Zr(Mr,{key:e.name},[t===y.value?(Hr(),Zr("div",Ws,[(Hr(!0),Zr(Mr,null,tr(e.items,(e=>(Hr(),Zr("button",{key:e,type:"button",title:e,onClick:t=>U(`:${e}:`)},[w.value?(Hr(),Zr("img",{key:0,class:"wl-emoji",src:v.value.map[e],alt:e,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Zs)):ll("v-if",!0)],8,qs)))),128))])):ll("v-if",!0)],64)))),128)),v.value.tabs.length>1?(Hr(),Zr("div",Ks,[(Hr(!0),Zr(Mr,null,tr(v.value.tabs,((e,t)=>(Hr(),Zr("button",{key:e.name,type:"button",class:Ae(["wl-tab",{active:y.value===t}]),onClick:e=>y.value=t},[el("img",{class:"wl-emoji",src:e.icon,alt:e.name,title:e.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Qs)],10,Gs)))),128))])):ll("v-if",!0)],2)])]),e.replyId||e.edit?.objectId?(Hr(),Zr("button",{key:1,type:"button",class:"wl-close",title:I.value.cancelReply,onClick:t[6]||(t[6]=t=>e.$emit(e.replyId?"cancelReply":"cancelEdit"))},[tl(ln(ko),{size:24})],8,Js)):ll("v-if",!0)]))}}),Ys=ls(Xs,[["__file","CommentBox.vue"]]);const ea=["id"],ta={class:"wl-user","aria-hidden":"true"},na=["src"],ra={class:"wl-card"},la={class:"wl-head"},ia=["href"],oa={key:1,class:"wl-nick"},sa=["textContent"],aa=["textContent"],ca=["textContent"],ua=["textContent"],pa=["textContent"],da={class:"wl-comment-actions"},ha=["title"],fa=["textContent"],ga=["title"],ma={class:"wl-meta","aria-hidden":"true"},va=["data-value","textContent"],ya=["data-value","textContent"],wa=["data-value","textContent"],ba=["innerHTML"],ka={key:1,class:"wl-admin-actions"},xa={class:"wl-comment-status"},_a=["disabled","onClick","textContent"],$a={key:3,class:"wl-quote"};var Ca=ls(qn({__name:"CommentCard",props:{comment:{},edit:{default:null},rootId:{},reply:{default:null}},emits:["log","submit","delete","edit","like","status","sticky","reply"],setup(e){const t=e,n=["approved","waiting","spam"],r=yr("config"),l=jo(),i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=en(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=mi}=t,l=en(!1);let i=0,o=null;function s(t){l.value&&r&&(e({delta:t-(i||t),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(),oi(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=en(!1);function s(){i&&(clearInterval(i),i=null)}function a(){o.value=!1,s()}function c(){const n=si(t);n<=0||(o.value=!0,l&&e(),s(),i=setInterval(e,n))}return r&&ai&&c(),(Yt(t)||"function"==typeof t)&&oi(Nn(t,(()=>{o.value&&ai&&c()}))),oi(a),{isActive:o,pause:a,resume:c}}(l,n,{immediate:!0});return t?{now:r,...i}:r}(),o=Ko(),s=$l((()=>r.value.locale)),a=$l((()=>{const{link:e}=t.comment;return e?E(e)?e:`https://${e}`:""})),c=$l((()=>l.value.includes(t.comment.objectId))),u=$l((()=>((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=$l((()=>"administrator"===o.value.type)),d=$l((()=>t.comment.user_id&&o.value.objectId===t.comment.user_id)),h=$l((()=>t.comment.objectId===t.reply?.objectId)),f=$l((()=>t.comment.objectId===t.edit?.objectId));return(e,t)=>{const r=function(e,t){return function(e,t){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const r=In||pl;if(r){const l=r.type;if(e===Xn){const e=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return X(e)?e.displayName||e.name:e.name||t&&e.__name}(l,!1);if(e&&(e===t||e===pe(t)||e===fe(pe(t))))return l}const i=er(r[e]||l[e],t)||er(r.appContext[e],t);return!i&&n?l:i}}(Xn,e,!0,t)||e}("CommentCard",!0);return Hr(),Zr("div",{id:e.comment.objectId,class:"wl-card-item"},[el("div",ta,[e.comment.avatar?(Hr(),Zr("img",{key:0,src:e.comment.avatar},null,8,na)):ll("v-if",!0),e.comment.type?(Hr(),Kr(ln(zo),{key:1})):ll("v-if",!0)]),el("div",ra,[el("div",la,[a.value?(Hr(),Zr("a",{key:0,class:"wl-nick",href:a.value,target:"_blank",rel:"nofollow noopener noreferrer"},Ie(e.comment.nick),9,ia)):(Hr(),Zr("span",oa,Ie(e.comment.nick),1)),"administrator"===e.comment.type?(Hr(),Zr("span",{key:2,class:"wl-badge",textContent:Ie(s.value.admin)},null,8,sa)):ll("v-if",!0),e.comment.label?(Hr(),Zr("span",{key:3,class:"wl-badge",textContent:Ie(e.comment.label)},null,8,aa)):ll("v-if",!0),e.comment.sticky?(Hr(),Zr("span",{key:4,class:"wl-badge",textContent:Ie(s.value.sticky)},null,8,ca)):ll("v-if",!0),void 0!==e.comment.level&&e.comment.level>=0?(Hr(),Zr("span",{key:5,class:Ae(`wl-badge level${e.comment.level}`),textContent:Ie(s.value[`level${e.comment.level}`]||`Level ${e.comment.level}`)},null,10,ua)):ll("v-if",!0),el("span",{class:"wl-time",textContent:Ie(u.value)},null,8,pa),el("div",da,[p.value||d.value?(Hr(),Zr("button",{key:0,type:"button",class:"wl-edit",onClick:t[0]||(t[0]=()=>e.$emit("edit",e.comment))},[tl(ln(Eo))])):ll("v-if",!0),p.value||d.value?(Hr(),Zr("button",{key:1,type:"button",class:"wl-delete",onClick:t[1]||(t[1]=t=>e.$emit("delete",e.comment))},[tl(ln(xo))])):ll("v-if",!0),el("button",{type:"button",class:"wl-like",title:c.value?s.value.cancelLike:s.value.like,onClick:t[2]||(t[2]=t=>e.$emit("like",e.comment))},[tl(ln(Co),{active:c.value},null,8,["active"]),"like"in e.comment?(Hr(),Zr("span",{key:0,textContent:Ie(e.comment.like)},null,8,fa)):ll("v-if",!0)],8,ha),el("button",{type:"button",class:Ae(["wl-reply",{active:h.value}]),title:h.value?s.value.cancelReply:s.value.reply,onClick:t[3]||(t[3]=t=>e.$emit("reply",h.value?null:e.comment))},[tl(ln(Ro))],10,ga)])]),el("div",ma,[e.comment.addr?(Hr(),Zr("span",{key:0,class:"wl-addr","data-value":e.comment.addr,textContent:Ie(e.comment.addr)},null,8,va)):ll("v-if",!0),e.comment.browser?(Hr(),Zr("span",{key:1,class:"wl-browser","data-value":e.comment.browser,textContent:Ie(e.comment.browser)},null,8,ya)):ll("v-if",!0),e.comment.os?(Hr(),Zr("span",{key:2,class:"wl-os","data-value":e.comment.os,textContent:Ie(e.comment.os)},null,8,wa)):ll("v-if",!0)]),f.value?ll("v-if",!0):(Hr(),Zr("div",{key:0,class:"wl-content",innerHTML:e.comment.comment},null,8,ba)),p.value&&!f.value?(Hr(),Zr("div",ka,[el("span",xa,[(Hr(),Zr(Mr,null,tr(n,(t=>el("button",{key:t,type:"submit",class:Ae(`wl-btn wl-${t}`),disabled:e.comment.status===t,onClick:n=>e.$emit("status",{status:t,comment:e.comment}),textContent:Ie(s.value[t])},null,10,_a))),64))]),p.value&&!e.comment.rid?(Hr(),Zr("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:t[4]||(t[4]=t=>e.$emit("sticky",e.comment))},Ie(e.comment.sticky?s.value.unsticky:s.value.sticky),1)):ll("v-if",!0)])):ll("v-if",!0),h.value||f.value?(Hr(),Zr("div",{key:2,class:Ae({"wl-reply-wrapper":h.value,"wl-edit-wrapper":f.value})},[tl(Ys,{edit:e.edit,"reply-id":e.reply?.objectId,"reply-user":e.comment.nick,"root-id":e.rootId,onLog:t[5]||(t[5]=t=>e.$emit("log")),onCancelReply:t[6]||(t[6]=t=>e.$emit("reply",null)),onCancelEdit:t[7]||(t[7]=t=>e.$emit("edit",null)),onSubmit:t[8]||(t[8]=t=>e.$emit("submit",t))},null,8,["edit","reply-id","reply-user","root-id"])],2)):ll("v-if",!0),e.comment.children?(Hr(),Zr("div",$a,[(Hr(!0),Zr(Mr,null,tr(e.comment.children,(n=>(Hr(),Kr(r,{key:n.objectId,comment:n,reply:e.reply,edit:e.edit,"root-id":e.rootId,onLog:t[9]||(t[9]=t=>e.$emit("log")),onDelete:t[10]||(t[10]=t=>e.$emit("delete",t)),onEdit:t[11]||(t[11]=t=>e.$emit("edit",t)),onLike:t[12]||(t[12]=t=>e.$emit("like",t)),onReply:t[13]||(t[13]=t=>e.$emit("reply",t)),onStatus:t[14]||(t[14]=t=>e.$emit("status",t)),onSticky:t[15]||(t[15]=t=>e.$emit("sticky",t)),onSubmit:t[16]||(t[16]=t=>e.$emit("submit",t))},null,8,["comment","reply","edit","root-id"])))),128))])):ll("v-if",!0)])],8,ea)}}}),[["__file","CommentCard.vue"]]);const Sa="2.15.8",Aa={"data-waline":""},Ra={class:"wl-meta-head"},Ea={class:"wl-count"},za=["textContent"],La={class:"wl-sort"},Ia=["onClick"],Ta={class:"wl-cards"},ja={key:1,class:"wl-operation"},Oa=["textContent"],Ua={key:0,class:"wl-loading"},Ma=["textContent"],Pa={key:2,class:"wl-operation"},Fa=["textContent"],Va={key:3,class:"wl-power"},Na=el("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1);e.version=Sa;var Da=qn({__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,c={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},u=Object.keys(c),p=Ko(),h=jo(),f=en("loading"),g=en(0),m=en(1),v=en(0),y=$l((()=>(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="",turnstileKey:E="",commentSorting:T="latest",...j}=e;return{serverURL:z(t),path:A(c),locale:{...k[u]||k[l],..."object"==typeof p?p:{}},wordLimit:L(y),meta:n(f),requiredMeta:n(g),imageUploader:I(w,o),highlighter:I(b,d),texRenderer:I(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,turnstileKey:E,reaction:Array.isArray(S)?S:!0===S?i:[],commentSorting:T,...j}})(t))),w=en(y.value.commentSorting),b=en([]),x=en(null),$=en(null),C=$l((()=>{return"string"==typeof(e=y.value.dark)?"auto"===e?`@media(prefers-color-scheme:dark){body${T}}`:`${e}${T}`:!0===e?`:root${T}`:"";var e})),R=$l((()=>y.value.locale));let E;!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=en(!1),{document:r=vi,immediate:l=!0,manual:i=!1,id:o="vueuse_styletag_"+ ++Ci}=t,s=en(e);let a=()=>{};l&&!i&&fi((()=>{if(!r)return;const e=r.getElementById(o)||r.createElement("style");e.isConnected||(e.id=o,t.media&&(e.media=t.media),r.head.appendChild(e)),n.value||(a=Nn(s,(t=>{e.textContent=t}),{immediate:!0}),n.value=!0)})),i||oi((()=>{r&&n.value&&(a(),r.head.removeChild(r.getElementById(o)),n.value=!1)})),Nt(n)}(C,{id:"waline-darkmode"});const j=e=>{const{serverURL:t,path:n,pageSize:r}=y.value,l=new AbortController;f.value="loading",E?.(),(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:t,lang:y.value.lang,path:n,pageSize:r,sortBy:c[w.value],page:e,signal:l.signal,token:p.value?.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=l.abort.bind(l)},O=()=>j(m.value+1),U=()=>{g.value=0,b.value=[],j(1)},M=e=>{x.value=e},P=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),g.value+=1},V=async e=>{let{comment:t,status:n}=e;if(t.status===n)return;const{serverURL:r,lang:l}=y.value;await S({serverURL:r,lang:l,token:p.value?.token,objectId:t.objectId,comment:{status:n}}),t.status=n},N=async e=>{if(e.rid)return;const{serverURL:t,lang:n}=y.value;await S({serverURL:t,lang:n,token:p.value?.token,objectId:e.objectId,comment:{sticky:e.sticky?0:1}}),e.sticky=!e.sticky},D=async e=>{let{objectId:t}=e;if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:n,lang:r}=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:n,lang:r,token:p.value?.token,objectId:t}),b.value.some(((e,n)=>e.objectId===t?(b.value=b.value.filter(((e,t)=>t!==n)),!0):e.children.some(((r,l)=>r.objectId===t&&(b.value[n].children=e.children.filter(((e,t)=>t!==l)),!0)))))},H=async e=>{const{serverURL:t,lang:n}=y.value,{objectId:r}=e,l=h.value.includes(r);await S({serverURL:t,lang:n,objectId:r,token:p.value?.token,comment:{like:!l}}),l?h.value=h.value.filter((e=>e!==r)):(h.value=[...h.value,r],h.value.length>50&&(h.value=h.value.slice(-50))),e.like=(e.like||0)+(l?-1:1)};return function(e,t){if(pl){let e=pl.provides;const n=pl.parent&&pl.parent.provides;n===e&&(e=pl.provides=Object.create(n)),e.config=t}}(0,y),Gn((()=>{Nn((()=>[t.serverURL,t.path]),(()=>U()),{immediate:!0})})),Jn((()=>E?.())),(e,t)=>(Hr(),Zr("div",Aa,[tl(is),x.value?ll("v-if",!0):(Hr(),Kr(Ys,{key:0,onLog:U,onSubmit:F})),el("div",Ra,[el("div",Ea,[g.value?(Hr(),Zr("span",{key:0,class:"wl-num",textContent:Ie(g.value)},null,8,za)):ll("v-if",!0),rl(" "+Ie(R.value.comment),1)]),el("ul",La,[(Hr(!0),Zr(Mr,null,tr(ln(u),(e=>(Hr(),Zr("li",{key:e,class:Ae([e===w.value?"active":""]),onClick:t=>(e=>{w.value!==e&&(w.value=e,U())})(e)},Ie(R.value[e]),11,Ia)))),128))])]),el("div",Ta,[(Hr(!0),Zr(Mr,null,tr(b.value,(e=>(Hr(),Kr(Ca,{key:e.objectId,"root-id":e.objectId,comment:e,reply:x.value,edit:$.value,onLog:U,onReply:M,onEdit:P,onSubmit:F,onStatus:V,onDelete:D,onSticky:N,onLike:H},null,8,["root-id","comment","reply","edit"])))),128))]),"error"===f.value?(Hr(),Zr("div",ja,[el("button",{type:"button",class:"wl-btn",onClick:U,textContent:Ie(R.value.refresh)},null,8,Oa)])):(Hr(),Zr(Mr,{key:2},["loading"===f.value?(Hr(),Zr("div",Ua,[tl(ln(Lo),{size:30})])):b.value.length?m.value{t.forEach(((t,n)=>{t.innerText=e[n].toString()}))},Wa=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=wo(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:z(t),paths:e.map((e=>wo(e)||n)),lang:i,signal:o.signal}).then((t=>Ba(t,e))).catch(Ai);if(l){const e=s.filter((e=>!a(e))),r=s.filter(a);(u={serverURL:z(t),path:n,lang:i},C({...u,type:"time",action:"inc"})).then((t=>Ba(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=Ri(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=>{let{el:t,serverURL:n,count:r,lang:l=navigator.language}=e;const i=Ko(),o=Ri(t),s=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:n,count:r,lang:l,signal:s.signal,token:i.value?.token}).then((e=>o&&e.length?(o.innerHTML=`
      ${e.map((e=>`
    • ${e.nick}:${e.comment}
    • `)).join("")}
    `,{comments:e,destroy:()=>{s.abort(),o.innerHTML=""}}):{comments:e,destroy:()=>s.abort()}))},e.init=e=>{let{el:t="#waline",path:n=window.location.pathname,comment:r=!1,pageview:l=!1,...i}=e;const o=t?Ri(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=Vt({...i}),a=Vt({comment:r,pageview:l,path:n}),c=o?function(){const e=(ii||(ii=jr(li))).createApp(...arguments),{mount:t}=e;return e.mount=n=>{const r=function(e){return Y(e)?document.querySelector(e):e}(n);if(!r)return;const l=e._component;X(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}((()=>Cl(Ha,{path:a.path,...s}))):null;c&&c.mount(o);const u=Fn((()=>{a.comment&&bo({serverURL:s.serverURL,path:a.path,selector:"string"==typeof a.comment?a.comment:void 0})})),p=Fn((()=>{a.pageview&&Wa({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:()=>{c?.unmount(),u(),p()}}},e.pageviewCount=Wa})); diff --git a/assets/lib/waline/waline.umd.js b/assets/lib/waline/waline.umd.js new file mode 100644 index 000000000..fd807ca4c --- /dev/null +++ b/assets/lib/waline/waline.umd.js @@ -0,0 +1,83 @@ +var md=Object.defineProperty;var vd=(re,Me,Oe)=>Me in re?md(re,Me,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):re[Me]=Oe;var go=(re,Me,Oe)=>vd(re,typeof Me!="symbol"?Me+"":Me,Oe);(function(re,Me){typeof exports=="object"&&typeof module<"u"?Me(exports):typeof define=="function"&&define.amd?define(["exports"],Me):(re=typeof globalThis<"u"?globalThis:re||self,Me(re.Waline={}))})(this,function(re){"use strict";const Me={"Content-Type":"application/json"},Oe=e=>`${e.replace(/\/?$/,"/")}api/`,xt=(e,t="")=>{if(typeof e=="object"&&e.errno)throw new TypeError(`${t} failed with ${e.errno}: ${e.errmsg}`);return e},xr=({serverURL:e,lang:t,paths:n,type:r,signal:i})=>fetch(`${Oe(e)}article?path=${encodeURIComponent(n.join(","))}&type=${encodeURIComponent(r.join(","))}&lang=${t}`,{signal:i}).then(s=>s.json()).then(s=>xt(s,"Get counter").data),On=({serverURL:e,lang:t,path:n,type:r,action:i})=>fetch(`${Oe(e)}article?lang=${t}`,{method:"POST",headers:Me,body:JSON.stringify({path:n,type:r,action:i})}).then(s=>s.json()).then(s=>xt(s,"Update counter").data),$i=({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(`${Oe(e)}comment?path=${encodeURIComponent(n)}&pageSize=${i}&page=${r}&lang=${t}&sortBy=${s}`,{signal:l,headers:a}).then(c=>c.json()).then(c=>xt(c,"Get comment data").data)},Si=({serverURL:e,lang:t,token:n,comment:r})=>{const i={"Content-Type":"application/json"};return n&&(i.Authorization=`Bearer ${n}`),fetch(`${Oe(e)}comment?lang=${t}`,{method:"POST",headers:i,body:JSON.stringify(r)}).then(s=>s.json())},Ri=({serverURL:e,lang:t,token:n,objectId:r})=>fetch(`${Oe(e)}comment/${r}?lang=${t}`,{method:"DELETE",headers:{Authorization:`Bearer ${n}`}}).then(i=>i.json()).then(i=>xt(i,"Delete comment")),Xt=({serverURL:e,lang:t,token:n,objectId:r,comment:i})=>fetch(`${Oe(e)}comment/${r}?lang=${t}`,{method:"PUT",headers:{...Me,Authorization:`Bearer ${n}`},body:JSON.stringify(i)}).then(s=>s.json()).then(s=>xt(s,"Update comment")),Ai=({serverURL:e,lang:t,paths:n,signal:r})=>fetch(`${Oe(e)}comment?type=count&url=${encodeURIComponent(n.join(","))}&lang=${t}`,{signal:r}).then(i=>i.json()).then(i=>xt(i,"Get comment count").data),Ti=({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)})},Ei=({serverURL:e,lang:t,paths:n,signal:r})=>xr({serverURL:e,lang:t,paths:n,type:["time"],signal:r}),Li=e=>On({...e,type:"time",action:"inc"}),Ii=({serverURL:e,lang:t,count:n,signal:r,token:i})=>{const s={};return i&&(s.Authorization=`Bearer ${i}`),fetch(`${Oe(e)}comment?type=recent&count=${n}&lang=${t}`,{signal:r,headers:s}).then(l=>l.json())},Mi=({serverURL:e,signal:t,pageSize:n,lang:r})=>fetch(`${Oe(e)}user?pageSize=${n}&lang=${r}`,{signal:t}).then(i=>i.json()).then(i=>xt(i,"user list")).then(i=>i.data),mo=["nick","mail","link"],Oi=e=>e.filter(t=>mo.includes(t)),Pi=["//unpkg.com/@waline/emojis@1.1.0/weibo"],vo=["//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"],bo=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}),yo=e=>e===!0?'

    TeX is not available in preview

    ':'TeX is not available in preview',wo=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()})}},ko=/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/,xo=/{let t=0;return e.replace($o,(n,r,i)=>{if(i)return`${i}`;if(r==="<")return"<";let s;_r[r]?s=_r[r]:(s=ji[t],_r[r]=s);const l=`${r}`;return t=++t%ji.length,l})},Ro=["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"],Xe=e=>Object.fromEntries(e.map((t,n)=>[Ro[n],t]));var Ao=Xe(["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?"]),zi=Xe(["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?"]),Fi=Xe(["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?"]),Di=Xe(["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 ?"]),Hi=Xe(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード",`コメントは $0 から $1 ワードの間でなければなりません! + 現在の単語番号: $2`,"匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順","どう思いますか?"]),To=Xe(["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?"]),Ui=Xe(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова",`Пожалуйста, введите комментарии от $0 до $1 слов! +Номер текущего слова: $2`,"Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий","Что вы думаете?"]),Ni=Xe(["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?"]),Bi=Xe(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字",`评论字数应在 $0 到 $1 字之间! +当前字数:$2`,"匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度","你认为这篇文章怎么样?"]),Eo=Xe(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎留言","來發留言吧~","送出","喜歡","取消喜歡","回覆","取消回覆","留言","重整","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登入","登出","管理者","置頂","字",`留言字數應在 $0 到 $1 字之間! +目前字數:$2`,"匿名","潛水","冒泡","吐槽","活躍","多話","傳說","表情包","搜尋表情包","個人資料","通過","待審核","垃圾","取消置頂","最早","最新","熱門","你認為這篇文章怎麼樣?"]);const Vi="en-US",Pn={zh:Bi,"zh-cn":Bi,"zh-tw":Eo,en:zi,"en-us":zi,fr:Di,"fr-fr":Di,jp:Hi,"jp-jp":Hi,"pt-br":To,ru:Ui,"ru-ru":Ui,vi:Ni,"vi-vn":Ni,de:Ao,es:Fi,"es-mx":Fi},Wi=e=>Pn[e.toLowerCase()]||Pn[Vi.toLowerCase()],qi=e=>Object.keys(Pn).includes(e.toLowerCase())?e:Vi,Ki=e=>{try{e=decodeURI(e)}catch{}return e},Gi=(e="")=>e.replace(/\/$/u,""),Zi=e=>/^(https?:)?\/\//.test(e),jn=e=>{const t=Gi(e);return Zi(t)?t:`https://${t}`},Lo=e=>Array.isArray(e)?e:e?[0,e]:!1,Cr=(e,t)=>typeof e=="function"?e:e===!1?!1:t,Io=({serverURL:e,path:t=location.pathname,lang:n=typeof navigator>"u"?"en-US":navigator.language,locale:r,emoji:i=Pi,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:U="latest",...T})=>({serverURL:jn(e),path:Ki(t),lang:qi(n),locale:{...Wi(qi(n)),...typeof r=="object"?r:{}},wordLimit:Lo(c),meta:Oi(s),requiredMeta:Oi(l),imageUploader:Cr(u,bo),highlighter:Cr(h,So),texRenderer:Cr(d,yo),dark:o,emoji:typeof i=="boolean"?i?Pi:[]:i,pageSize:a,login:k,copyright:g,search:v===!1?!1:typeof v=="object"?v:wo(n),recaptchaV3Key:b,turnstileKey:C,reaction:Array.isArray($)?$:$===!0?vo:[],commentSorting:U,...T}),Dt=e=>typeof e=="string",$r="{--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}",Mo=e=>Dt(e)?e==="auto"?`@media(prefers-color-scheme:dark){body${$r}}`:`${e}${$r}`:e===!0?`:root${$r}`:"",Sr=(e,t)=>{let n=e.toString();for(;n.length{const t=Sr(e.getDate(),2),n=Sr(e.getMonth()+1,2);return`${Sr(e.getFullYear(),2)}-${n}-${t}`},Po=(e,t,n)=>{if(!e)return"";const r=Dt(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}`:Oo(r)},jo=/^[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])?)*$/,zo=e=>jo.test(e);/** +* @vue/shared v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**//*! #__NO_SIDE_EFFECTS__ */function Rr(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ue={},Ht=[],_t=()=>{},Fo=()=>!1,zn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ar=e=>e.startsWith("onUpdate:"),Be=Object.assign,Ji=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Do=Object.prototype.hasOwnProperty,ee=(e,t)=>Do.call(e,t),V=Array.isArray,Ut=e=>en(e)==="[object Map]",Nt=e=>en(e)==="[object Set]",Yi=e=>en(e)==="[object Date]",le=e=>typeof e=="function",ye=e=>typeof e=="string",et=e=>typeof e=="symbol",me=e=>e!==null&&typeof e=="object",Qi=e=>(me(e)||le(e))&&le(e.then)&&le(e.catch),Xi=Object.prototype.toString,en=e=>Xi.call(e),Ho=e=>en(e).slice(8,-1),es=e=>en(e)==="[object Object]",Tr=e=>ye(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,tn=Rr(",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,Ve=Fn(e=>e.replace(Uo,(t,n)=>n?n.toUpperCase():"")),No=/\B([A-Z])/g,Ct=Fn(e=>e.replace(No,"-$1").toLowerCase()),Dn=Fn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Er=Fn(e=>e?`on${Dn(e)}`:""),vt=(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})},Un=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ns;const nn=()=>ns||(ns=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function rn(e){if(V(e)){const t={};for(let n=0;n{if(n){const r=n.split(Vo);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function ve(e){let t="";if(ye(e))t=e;else if(V(e))for(let n=0;n$t(n,t))}const is=e=>!!(e&&e.__v_isRef===!0),X=e=>ye(e)?e:e==null?"":V(e)||me(e)&&(e.toString===Xi||!le(e.toString))?is(e)?X(e.value):JSON.stringify(e,ss,2):String(e),ss=(e,t)=>is(t)?ss(e,t.value):Ut(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i],s)=>(n[Ir(r,s)+" =>"]=i,n),{})}:Nt(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Ir(n))}:et(t)?Ir(t):me(t)&&!V(t)&&!es(t)?String(t):t,Ir=(e,t="")=>{var n;return et(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 Zo{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(ln){let t=ln;for(ln=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;sn;){let t=sn;for(sn=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 us(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function fs(e){let t,n=e.depsTail,r=n;for(;r;){const i=r.prevDep;r.version===-1?(r===n&&(n=i),zr(r),Yo(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=i}e.deps=t,e.depsTail=n}function jr(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(hs(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function hs(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===on))return;e.globalVersion=on;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!jr(e)){e.flags&=-3;return}const n=fe,r=Ze;fe=e,Ze=!0;try{us(e);const i=e.fn(e._value);(t.version===0||vt(i,e._value))&&(e._value=i,t.version++)}catch(i){throw t.version++,i}finally{fe=n,Ze=r,fs(e),e.flags&=-3}}function zr(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)zr(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Yo(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let Ze=!0;const ds=[];function St(){ds.push(Ze),Ze=!1}function Rt(){const e=ds.pop();Ze=e===void 0?!0:e}function ps(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=fe;fe=void 0;try{t()}finally{fe=n}}}let on=0;class Qo{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 Fr{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||!Ze||fe===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==fe)n=this.activeLink=new Qo(fe,this),fe.deps?(n.prevDep=fe.depsTail,fe.depsTail.nextDep=n,fe.depsTail=n):fe.deps=fe.depsTail=n,gs(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++,on++,this.notify(t)}notify(t){Or();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Pr()}}}function gs(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)gs(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Dr=new WeakMap,At=Symbol(""),Hr=Symbol(""),an=Symbol("");function $e(e,t,n){if(Ze&&fe){let r=Dr.get(e);r||Dr.set(e,r=new Map);let i=r.get(n);i||(r.set(n,i=new Fr),i.map=r,i.key=n),i.track()}}function lt(e,t,n,r,i,s){const l=Dr.get(e);if(!l){on++;return}const o=a=>{a&&a.trigger()};if(Or(),t==="clear")l.forEach(o);else{const a=V(e),c=a&&Tr(n);if(a&&n==="length"){const u=Number(r);l.forEach((h,d)=>{(d==="length"||d===an||!et(d)&&d>=u)&&o(h)})}else switch((n!==void 0||l.has(void 0))&&o(l.get(n)),c&&o(l.get(an)),t){case"add":a?c&&o(l.get("length")):(o(l.get(At)),Ut(e)&&o(l.get(Hr)));break;case"delete":a||(o(l.get(At)),Ut(e)&&o(l.get(Hr)));break;case"set":Ut(e)&&o(l.get(At));break}}Pr()}function Bt(e){const t=te(e);return t===e?t:($e(t,"iterate",an),We(e)?t:t.map(Se))}function Nn(e){return $e(e=te(e),"iterate",an),e}const Xo={__proto__:null,[Symbol.iterator](){return Ur(this,Symbol.iterator,Se)},concat(...e){return Bt(this).concat(...e.map(t=>V(t)?Bt(t):t))},entries(){return Ur(this,"entries",e=>(e[1]=Se(e[1]),e))},every(e,t){return ot(this,"every",e,t,void 0,arguments)},filter(e,t){return ot(this,"filter",e,t,n=>n.map(Se),arguments)},find(e,t){return ot(this,"find",e,t,Se,arguments)},findIndex(e,t){return ot(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return ot(this,"findLast",e,t,Se,arguments)},findLastIndex(e,t){return ot(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return ot(this,"forEach",e,t,void 0,arguments)},includes(...e){return Nr(this,"includes",e)},indexOf(...e){return Nr(this,"indexOf",e)},join(e){return Bt(this).join(e)},lastIndexOf(...e){return Nr(this,"lastIndexOf",e)},map(e,t){return ot(this,"map",e,t,void 0,arguments)},pop(){return cn(this,"pop")},push(...e){return cn(this,"push",e)},reduce(e,...t){return ms(this,"reduce",e,t)},reduceRight(e,...t){return ms(this,"reduceRight",e,t)},shift(){return cn(this,"shift")},some(e,t){return ot(this,"some",e,t,void 0,arguments)},splice(...e){return cn(this,"splice",e)},toReversed(){return Bt(this).toReversed()},toSorted(e){return Bt(this).toSorted(e)},toSpliced(...e){return Bt(this).toSpliced(...e)},unshift(...e){return cn(this,"unshift",e)},values(){return Ur(this,"values",Se)}};function Ur(e,t,n){const r=Nn(e),i=r[t]();return r!==e&&!We(e)&&(i._next=i.next,i.next=()=>{const s=i._next();return s.value&&(s.value=n(s.value)),s}),i}const ea=Array.prototype;function ot(e,t,n,r,i,s){const l=Nn(e),o=l!==e&&!We(e),a=l[t];if(a!==ea[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 ms(e,t,n,r){const i=Nn(e);let s=n;return i!==e&&(We(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",an);const i=r[t](...n);return(i===-1||i===!1)&&qr(n[0])?(n[0]=te(n[0]),r[t](...n)):i}function cn(e,t,n=[]){St(),Or();const r=te(e)[t].apply(e,n);return Pr(),Rt(),r}const ta=Rr("__proto__,__v_isRef,__isVue"),vs=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(et));function na(e){et(e)||(e=String(e));const t=te(this);return $e(t,"has",e),t.hasOwnProperty(e)}class bs{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?ha:xs:s?ks:ws).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const l=V(t);if(!i){let a;if(l&&(a=Xo[n]))return a;if(n==="hasOwnProperty")return na}const o=Reflect.get(t,n,xe(t)?t:r);return(et(n)?vs.has(n):ta(n))||(i||$e(t,"get",n),s)?o:xe(o)?l&&Tr(n)?o:o.value:me(o)?i?fn(o):un(o):o}}class ys extends bs{constructor(t=!1){super(!1,t)}set(t,n,r,i){let s=t[n];if(!this._isShallow){const a=Tt(s);if(!We(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)&&Tr(n)?Number(n)e,Bn=e=>Reflect.getPrototypeOf(e);function oa(e,t,n){return function(...r){const i=this.__v_raw,s=te(i),l=Ut(s),o=e==="entries"||e===Symbol.iterator&&l,a=e==="keys"&&l,c=i[e](...r),u=n?Br:t?Kr:Se;return!t&&$e(s,"iterate",a?Hr:At),{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 aa(e,t){const n={get(i){const s=this.__v_raw,l=te(s),o=te(i);e||(vt(i,o)&&$e(l,"get",i),$e(l,"get",o));const{has:a}=Bn(l),c=t?Br:e?Kr: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",At),Reflect.get(i,"size",i)},has(i){const s=this.__v_raw,l=te(s),o=te(i);return e||(vt(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?Br:e?Kr:Se;return!e&&$e(a,"iterate",At),o.forEach((u,h)=>i.call(s,c(u),c(h),l))}};return Be(n,e?{add:Vn("add"),set:Vn("set"),delete:Vn("delete"),clear:Vn("clear")}:{add(i){!t&&!We(i)&&!Tt(i)&&(i=te(i));const s=te(this);return Bn(s).has.call(s,i)||(s.add(i),lt(s,"add",i,i)),this},set(i,s){!t&&!We(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?vt(s,u)&<(l,"set",i,s):lt(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&<(s,"delete",i,void 0),c},clear(){const i=te(this),s=i.size!==0,l=i.clear();return s&<(i,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(i=>{n[i]=oa(i,e,t)}),n}function Vr(e,t){const n=aa(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 ca={get:Vr(!1,!1)},ua={get:Vr(!1,!0)},fa={get:Vr(!0,!1)},ws=new WeakMap,ks=new WeakMap,xs=new WeakMap,ha=new WeakMap;function da(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function pa(e){return e.__v_skip||!Object.isExtensible(e)?0:da(Ho(e))}function un(e){return Tt(e)?e:Wr(e,!1,ia,ca,ws)}function ga(e){return Wr(e,!1,la,ua,ks)}function fn(e){return Wr(e,!0,sa,fa,xs)}function Wr(e,t,n,r,i){if(!me(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const s=i.get(e);if(s)return s;const l=pa(e);if(l===0)return e;const o=new Proxy(e,l===2?r:n);return i.set(e,o),o}function Vt(e){return Tt(e)?Vt(e.__v_raw):!!(e&&e.__v_isReactive)}function Tt(e){return!!(e&&e.__v_isReadonly)}function We(e){return!!(e&&e.__v_isShallow)}function qr(e){return e?!!e.__v_raw:!1}function te(e){const t=e&&e.__v_raw;return t?te(t):e}function ma(e){return!ee(e,"__v_skip")&&Object.isExtensible(e)&&ts(e,"__v_skip",!0),e}const Se=e=>me(e)?un(e):e,Kr=e=>me(e)?fn(e):e;function xe(e){return e?e.__v_isRef===!0:!1}function W(e){return _s(e,!1)}function va(e){return _s(e,!0)}function _s(e,t){return xe(e)?e:new ba(e,t)}class ba{constructor(t,n){this.dep=new Fr,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||We(t)||Tt(t);t=r?t:te(t),vt(t,n)&&(this._rawValue=t,this._value=r?t:Se(t),this.dep.trigger())}}function q(e){return xe(e)?e.value:e}const ya={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 Cs(e){return Vt(e)?e:new Proxy(e,ya)}class wa{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Fr(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=on-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 cs(this,!0),!0}get value(){const t=this.dep.track();return hs(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ka(e,t,n=!1){let r,i;return le(e)?r=e:(r=e.get,i=e.set),new wa(r,i,n)}const Wn={},qn=new WeakMap;let Et;function xa(e,t=!1,n=Et){if(n){let r=qn.get(n);r||qn.set(n,r=[]),r.push(e)}}function _a(e,t,n=ue){const{immediate:r,deep:i,once:s,scheduler:l,augmentJob:o,call:a}=n,c=T=>i?T:We(T)||i===!1||i===0?at(T,1):at(T);let u,h,d,g,k=!1,v=!1;if(xe(e)?(h=()=>e.value,k=We(e)):Vt(e)?(h=()=>c(e),k=!0):V(e)?(v=!0,k=e.some(T=>Vt(T)||We(T)),h=()=>e.map(T=>{if(xe(T))return T.value;if(Vt(T))return c(T);if(le(T))return a?a(T,2):T()})):le(e)?t?h=a?()=>a(e,2):e:h=()=>{if(d){St();try{d()}finally{Rt()}}const T=Et;Et=u;try{return a?a(e,3,[g]):e(g)}finally{Et=T}}:h=_t,t&&i){const T=h,j=i===!0?1/0:i;h=()=>at(T(),j)}const $=ls(),b=()=>{u.stop(),$&&$.active&&Ji($.effects,u)};if(s&&t){const T=t;t=(...j)=>{T(...j),b()}}let C=v?new Array(e.length).fill(Wn):Wn;const U=T=>{if(!(!(u.flags&1)||!u.dirty&&!T))if(t){const j=u.run();if(i||k||(v?j.some((K,z)=>vt(K,C[z])):vt(j,C))){d&&d();const K=Et;Et=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{Et=K}}}else u.run()};return o&&o(U),u=new os(h),u.scheduler=l?()=>l(U,!1):U,g=T=>xa(T,!1,u),d=u.onStop=()=>{const T=qn.get(u);if(T){if(a)a(T,4);else for(const j of T)j();qn.delete(u)}},t?r?U(!0):C=u.run():l?l(U.bind(null,!0),!0):u.run(),b.pause=u.pause.bind(u),b.resume=u.resume.bind(u),b.stop=b,b}function at(e,t=1/0,n){if(t<=0||!me(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,xe(e))at(e.value,t,n);else if(V(e))for(let r=0;r{at(r,t,n)});else if(es(e)){for(const r in e)at(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&at(e[r],t,n)}return e}/** +* @vue/runtime-core v3.5.13 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function hn(e,t,n,r){try{return r?e(...r):e()}catch(i){Kn(i,t,n)}}function ct(e,t,n,r){if(le(e)){const i=hn(e,t,n,r);return i&&Qi(i)&&i.catch(s=>{Kn(s,t,n)}),i}if(V(e)){const i=[];for(let s=0;s>>1,i=Te[r],s=dn(i);s=dn(n)?Te.push(e):Te.splice($a(t),0,e),e.flags|=1,Ss()}}function Ss(){Gn||(Gn=$s.then(Ts))}function Sa(e){V(e)?Wt.push(...e):bt&&e.id===-1?bt.splice(qt+1,0,e):e.flags&1||(Wt.push(e),e.flags|=1),Ss()}function Rs(e,t,n=tt+1){for(;ndn(n)-dn(r));if(Wt.length=0,bt){bt.push(...t);return}for(bt=t,qt=0;qte.id==null?e.flags&2?-1:1/0:e.id;function Ts(e){try{for(tt=0;tt{r._d&&Zs(-1);const s=Zn(t);let l;try{l=e(...i)}finally{Zn(s),r._d&&Zs(1)}return l};return r._n=!0,r._c=!0,r._d=!0,r}function Jn(e,t){if(Pe===null)return e;const n=ir(Pe),r=e.dirs||(e.dirs=[]);for(let i=0;ie.__isTeleport;function Zr(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Zr(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 pn(e,t){return le(e)?Be({name:e.name},t,{setup:e}):e}function Ea(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(gn(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===ue?o.refs={}:o.refs,h=o.setupState,d=te(h),g=h===ue?()=>!1:k=>ee(d,k);if(c!=null&&c!==a&&(ye(c)?(u[c]=null,g(c)&&(h[c]=null)):xe(c)&&(c.value=null)),le(a))hn(a,o,12,[l,u]);else{const k=ye(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)&&Ji(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,ze($,n)):$()}}}nn().requestIdleCallback,nn().cancelIdleCallback;const gn=e=>!!e.type.__asyncLoader,La=e=>e.type.__isKeepAlive;function Ia(e,t,n=Ee,r=!1){if(n){const i=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...l)=>{St();const o=oi(n),a=ct(t,n,e,l);return o(),Rt(),a});return r?i.unshift(s):i.push(s),s}}const Jr=e=>(t,n=Ee)=>{(!kn||e==="sp")&&Ia(e,(...r)=>t(...r),n)},mn=Jr("m"),Ma=Jr("bum"),Yr=Jr("um"),Oa="components";function Pa(e,t){return za(Oa,e,!0,t)||e}const ja=Symbol.for("v-ndc");function za(e,t,n=!0,r=!1){const i=Pe||Ee;if(i){const s=i.type;{const o=kc(s,!1);if(o&&(o===t||o===Ve(t)||o===Dn(Ve(t))))return s}const l=Ls(i[e]||s[e],t)||Ls(i.appContext[e],t);return!l&&r?s:l}}function Ls(e,t){return e&&(e[t]||e[Ve(t)]||e[Dn(Ve(t))])}function qe(e,t,n,r){let i;const s=n,l=V(e);if(l||ye(e)){const o=l&&Vt(e);let a=!1;o&&(a=!We(e),e=Nn(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?Xs(e)?ir(e):Qr(e.parent):null,vn=Be(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=>Qr(e.parent),$root:e=>Qr(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>{Gr(e.update)}),$nextTick:e=>e.n||(e.n=Kt.bind(e.proxy)),$watch:e=>_t}),Xr=(e,t)=>e!==ue&&!e.__isScriptSetup&&ee(e,t),Fa={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(Xr(r,t))return l[t]=1,r[t];if(i!==ue&&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!==ue&&ee(n,t))return l[t]=4,n[t];l[t]=0}}const u=vn[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!==ue&&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 Xr(i,t)?(i[t]=n,!0):r!==ue&&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!==ue&&ee(e,l)||Xr(t,l)||(o=s[0])&&ee(o,l)||ee(r,l)||ee(vn,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 Is(){return{app:null,config:{isNativeTag:Fo,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 Da=0;function Ha(e,t){return function(r,i=null){le(r)||(r=Be({},r)),i!=null&&!me(i)&&(i=null);const s=Is(),l=new WeakSet,o=[];let a=!1;const c=s.app={_uid:Da++,_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&&(ct(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=Gt;Gt=c;try{return u()}finally{Gt=h}}};return c}}let Gt=null;function Ua(e,t){if(Ee){let n=Ee.provides;const r=Ee.parent&&Ee.parent.provides;r===n&&(n=Ee.provides=Object.create(r)),n[e]=t}}function Qn(e,t,n=!1){const r=Ee||Pe;if(r||Gt){const i=Gt?Gt._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 Ms={},Os=()=>Object.create(Ms),Ps=e=>Object.getPrototypeOf(e)===Ms;function Na(e,t,n,r=!1){const i={},s=Os();e.propsDefaults=Object.create(null),js(e,t,i,s);for(const l in e.propsOptions[0])l in i||(i[l]=void 0);n?e.props=r?i:ga(i):e.type.props?e.props=i:e.props=s,e.attrs=s}function Ba(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",ti=e=>V(e)?e.map(nt):[nt(e)],Wa=(e,t,n)=>{if(t._n)return t;const r=Ra((...i)=>ti(t(...i)),n);return r._c=!1,r},Ds=(e,t,n)=>{const r=e._ctx;for(const i in e){if(Fs(i))continue;const s=e[i];if(le(s))t[i]=Wa(i,s,r);else if(s!=null){const l=ti(s);t[i]=()=>l}}},Hs=(e,t)=>{const n=ti(t);e.slots.default=()=>n},Us=(e,t,n)=>{for(const r in t)(n||r!=="_")&&(e[r]=t[r])},qa=(e,t,n)=>{const r=e.slots=Os();if(e.vnode.shapeFlag&32){const i=t._;i?(Us(r,t,n),n&&ts(r,"_",i,!0)):Ds(t,r)}else t&&Hs(e,t)},Ka=(e,t,n)=>{const{vnode:r,slots:i}=e;let s=!0,l=ue;if(r.shapeFlag&32){const o=t._;o?n&&o===1?s=!1:Us(i,t,n):(s=!t.$stable,Ds(t,i)),l=t}else t&&(Hs(e,t),l={default:1});if(s)for(const o in i)!Fs(o)&&l[o]==null&&delete i[o]};function Ga(){typeof __VUE_PROD_HYDRATION_MISMATCH_DETAILS__!="boolean"&&(nn().__VUE_PROD_HYDRATION_MISMATCH_DETAILS__=!1)}const ze=ac;function Za(e){return Ja(e)}function Ja(e,t){Ga();const n=nn();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=_t,insertStaticContent:k}=e,v=(f,p,m,w=null,y=null,x=null,E=void 0,R=null,S=!!p.dynamicChildren)=>{if(f===p)return;f&&!wn(f,p)&&(w=Ft(f),De(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 Mt:b(f,p,m,w);break;case ii:f==null&&C(p,m,w,E);break;case he:be(f,p,m,w,y,x,E,R,S);break;default:L&1?j(f,p,m,w,y,x,E,R,S):L&6?F(f,p,m,w,y,x,E,R,S):(L&64||L&128)&&_.process(f,p,m,w,y,x,E,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)},U=({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)},T=({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,E,R,S)=>{p.type==="svg"?E="svg":p.type==="math"&&(E="mathml"),f==null?K(p,m,w,y,x,E,R,S):je(f,p,y,x,E,R,S)},K=(f,p,m,w,y,x,E,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,ni(f,x),E,R),B&&Lt(f,null,w,"created"),z(S,f,f.scopeId,E,w),M){for(const de in M)de!=="value"&&!tn(de)&&s(S,de,null,M[de],x,w);"value"in M&&s(S,"value",null,M.value,x),(_=M.onVnodeBeforeMount)&&rt(_,w,f)}B&&Lt(f,null,w,"beforeMount");const J=Ya(y,D);J&&D.beforeEnter(S),r(S,p,m),((_=M&&M.onVnodeMounted)||J||B)&&ze(()=>{_&&rt(_,w,f),J&&D.enter(S),B&&Lt(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||ue,D=p.props||ue;let B;if(m&&It(m,!1),(B=D.onVnodeBeforeUpdate)&&rt(B,m,p,f),M&&Lt(p,f,m,"beforeUpdate"),m&&It(m,!0),(L.innerHTML&&D.innerHTML==null||L.textContent&&D.textContent==null)&&u(R,""),_?Z(f.dynamicChildren,_,R,m,w,ni(p,y),x):E||ke(f,p,R,null,m,w,ni(p,y),x,!1),S>0){if(S&16)ie(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 de=0;de{B&&rt(B,m,p,f),M&&Lt(p,f,m,"updated")},w)},Z=(f,p,m,w,y,x,E)=>{for(let R=0;R{if(p!==m){if(p!==ue)for(const x in p)!tn(x)&&!(x in m)&&s(f,x,p[x],null,y,w);for(const x in m){if(tn(x))continue;const E=m[x],R=p[x];E!==R&&x!=="value"&&s(f,x,R,E,y,w)}"value"in m&&s(f,"value",p.value,m.value,y)}},be=(f,p,m,w,y,x,E,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,E,R,S)):L>0&&L&64&&D&&f.dynamicChildren?(Z(f.dynamicChildren,D,m,y,x,E,R),(p.key!=null||y&&p===y.subTree)&&Ns(f,p,!0)):ke(f,p,m,M,y,x,E,R,S)},F=(f,p,m,w,y,x,E,R,S)=>{p.slotScopeIds=R,f==null?p.shapeFlag&512?y.ctx.activate(p,m,w,E,S):Q(p,m,w,y,x,E,S):ce(f,p,S)},Q=(f,p,m,w,y,x,E)=>{const R=f.component=gc(f,w,y);if(La(f)&&(R.ctx.renderer=A),vc(R,!1,E),R.asyncDep){if(y&&y.registerDep(R,Ce,E),!f.el){const S=R.subTree=oe(Mt);b(null,S,p,m)}}else Ce(R,f,p,m,y,x,E)},ce=(f,p,m)=>{const w=p.component=f.component;if(lc(f,p,m))if(w.asyncDep&&!w.asyncResolved){we(w,p,m);return}else w.next=p,w.update();else p.el=f.el,w.vnode=p},Ce=(f,p,m,w,y,x,E)=>{const R=()=>{if(f.isMounted){let{next:L,bu:D,u:B,parent:J,vnode:de}=f;{const Ue=Bs(f);if(Ue){L&&(L.el=de.el,we(f,L,E)),Ue.asyncDep.then(()=>{f.isUnmounted||R()});return}}let se=L,He;It(f,!1),L?(L.el=de.el,we(f,L,E)):L=de,D&&Hn(D),(He=L.props&&L.props.onVnodeBeforeUpdate)&&rt(He,J,L,de),It(f,!0);const Re=ri(f),Qe=f.subTree;f.subTree=Re,v(Qe,Re,h(Qe.el),Ft(Qe),f,y,x),L.el=Re.el,se===null&&oc(f,Re.el),B&&ze(B,y),(He=L.props&&L.props.onVnodeUpdated)&&ze(()=>rt(He,J,L,de),y)}else{let L;const{el:D,props:B}=p,{bm:J,m:de,parent:se,root:He,type:Re}=f,Qe=gn(p);if(It(f,!1),J&&Hn(J),!Qe&&(L=B&&B.onVnodeBeforeMount)&&rt(L,se,p),It(f,!0),D&&pe){const Ue=()=>{f.subTree=ri(f),pe(D,f.subTree,f,y,null)};Qe&&Re.__asyncHydrate?Re.__asyncHydrate(D,f,Ue):Ue()}else{He.ce&&He.ce._injectChildStyle(Re);const Ue=f.subTree=ri(f);v(null,Ue,m,w,f,y,x),p.el=Ue.el}if(de&&ze(de,y),!Qe&&(L=B&&B.onVnodeMounted)){const Ue=p;ze(()=>rt(L,se,Ue),y)}(p.shapeFlag&256||se&&gn(se.vnode)&&se.vnode.shapeFlag&256)&&f.a&&ze(f.a,y),f.isMounted=!0,p=m=w=null}};f.scope.on();const S=f.effect=new os(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=()=>Gr(M),It(f,!0),_()},we=(f,p,m)=>{p.component=f;const w=f.vnode.props;f.vnode=p,f.next=null,Ba(f,p.props,w,m),Ka(f,p.children,m),St(),Rs(f),Rt()},ke=(f,p,m,w,y,x,E,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){kt(_,L,m,w,y,x,E,R,S);return}else if(D&256){Ie(_,L,m,w,y,x,E,R,S);return}}B&8?(M&16&&zt(_,y,x),L!==_&&u(m,L)):M&16?B&16?kt(_,L,m,w,y,x,E,R,S):zt(_,y,x,!0):(M&8&&u(m,""),B&16&&G(L,m,w,y,x,E,R,S))},Ie=(f,p,m,w,y,x,E,R,S)=>{f=f||Ht,p=p||Ht;const _=f.length,M=p.length,L=Math.min(_,M);let D;for(D=0;DM?zt(f,y,x,!0,!1,L):G(p,m,w,y,x,E,R,S,L)},kt=(f,p,m,w,y,x,E,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?yt(p[_]):nt(p[_]);if(wn(B,J))v(B,J,m,null,y,x,E,R,S);else break;_++}for(;_<=L&&_<=D;){const B=f[L],J=p[D]=S?yt(p[D]):nt(p[D]);if(wn(B,J))v(B,J,m,null,y,x,E,R,S);else break;L--,D--}if(_>L){if(_<=D){const B=D+1,J=BD)for(;_<=L;)De(f[_],y,x,!0),_++;else{const B=_,J=_,de=new Map;for(_=J;_<=D;_++){const Ne=p[_]=S?yt(p[_]):nt(p[_]);Ne.key!=null&&de.set(Ne.key,_)}let se,He=0;const Re=D-J+1;let Qe=!1,Ue=0;const Mn=new Array(Re);for(_=0;_=Re){De(Ne,y,x,!0);continue}let st;if(Ne.key!=null)st=de.get(Ne.key);else for(se=J;se<=D;se++)if(Mn[se-J]===0&&wn(Ne,p[se])){st=se;break}st===void 0?De(Ne,y,x,!0):(Mn[st-J]=_+1,st>=Ue?Ue=st:Qe=!0,v(Ne,p[st],m,null,y,x,E,R,S),He++)}const ho=Qe?Qa(Mn):Ht;for(se=ho.length-1,_=Re-1;_>=0;_--){const Ne=J+_,st=p[Ne],po=Ne+1{const{el:x,type:E,transition:R,children:S,shapeFlag:_}=f;if(_&6){jt(f.component.subTree,p,m,w);return}if(_&128){f.suspense.move(p,m,w);return}if(_&64){E.move(f,p,m,A);return}if(E===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),de=()=>{L(x,()=>{J(),B&&B()})};D?D(x,J,de):de()}else r(x,p,m)},De=(f,p,m,w=!1,y=!1)=>{const{type:x,props:E,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,de=!gn(f);let se;if(de&&(se=E&&E.onVnodeBeforeUnmount)&&rt(se,p,f),M&6)kr(f.component,m,w);else{if(M&128){f.suspense.unmount(m,w);return}J&&Lt(f,null,p,"beforeUnmount"),M&64?f.type.remove(f,p,m,A,w):_&&!_.hasOnce&&(x!==he||L>0&&L&64)?zt(_,p,m,!1,!0):(x===he&&L&384||!y&&M&16)&&zt(S,p,m),w&&wr(f)}(de&&(se=E&&E.onVnodeUnmounted)||J)&&ze(()=>{se&&rt(se,p,f),J&&Lt(f,null,p,"unmounted")},m)},wr=f=>{const{type:p,el:m,anchor:w,transition:y}=f;if(p===he){Ci(m,w);return}if(p===ii){T(f);return}const x=()=>{i(m),y&&!y.persisted&&y.afterLeave&&y.afterLeave()};if(f.shapeFlag&1&&y&&!y.persisted){const{leave:E,delayLeave:R}=y,S=()=>E(m,x);R?R(f.el,x,S):S()}else x()},Ci=(f,p)=>{let m;for(;f!==p;)m=d(f),i(f),f=m;i(p)},kr=(f,p,m)=>{const{bum:w,scope:y,job:x,subTree:E,um:R,m:S,a:_}=f;Vs(S),Vs(_),w&&Hn(w),y.stop(),x&&(x.flags|=8,De(E,f,p,m)),R&&ze(R,p),ze(()=>{f.isUnmounted=!0},p),p&&p.pendingBranch&&!p.isUnmounted&&f.asyncDep&&!f.asyncResolved&&f.suspenseId===p.pendingId&&(p.deps--,p.deps===0&&p.resolve())},zt=(f,p,m,w=!1,y=!1,x=0)=>{for(let E=x;E{if(f.shapeFlag&6)return Ft(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const p=d(f.anchor||f.el),m=p&&p[Aa];return m?d(m):p};let Qt=!1;const O=(f,p,m)=>{f==null?p._vnode&&De(p._vnode,null,null,!0):v(p._vnode||null,f,p,null,null,null,m),p._vnode=f,Qt||(Qt=!0,Rs(),As(),Qt=!1)},A={p:v,um:De,m:jt,r:wr,mt:Q,mc:G,pc:ke,pbc:Z,n:Ft,o:e};let N,pe;return{render:O,hydrate:N,createApp:Ha(O,N)}}function ni({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 It({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Ya(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Ns(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 Bs(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Bs(t)}function Vs(e){if(e)for(let t=0;tQn(Xa);function Ws(e,t){return qs(e,null,t)}function Ke(e,t,n){return qs(e,t,n)}function qs(e,t,n=ue){const{immediate:r,deep:i,flush:s,once:l}=n,o=Be({},n),a=t&&r||!t&&s!=="post";let c;if(kn){if(s==="sync"){const g=ec();c=g.__watcherHandles||(g.__watcherHandles=[])}else if(!a){const g=()=>{};return g.stop=_t,g.resume=_t,g.pause=_t,g}}const u=Ee;o.call=(g,k,v)=>ct(g,u,k,v);let h=!1;s==="post"?o.scheduler=g=>{ze(g,u&&u.suspense)}:s!=="sync"&&(h=!0,o.scheduler=(g,k)=>{k?g():Gr(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 kn&&(c?c.push(d):a&&d()),d}const tc=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ve(t)}Modifiers`]||e[`${Ct(t)}Modifiers`];function nc(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||ue;let i=n;const s=t.startsWith("update:"),l=s&&tc(r,t.slice(7));l&&(l.trim&&(i=n.map(u=>ye(u)?u.trim():u)),l.number&&(i=n.map(Un)));let o,a=r[o=Er(t)]||r[o=Er(Ve(t))];!a&&s&&(a=r[o=Er(Ct(t))]),a&&ct(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,ct(c,e,6,i)}}function rc(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?(me(e)&&r.set(e,null),null):(V(s)?s.forEach(a=>l[a]=null):Be(l,s),me(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,Ct(t))||ee(e,t))}function ri(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 T=i||r,j=T;b=nt(c.call(j,T,u,h,g,d,k)),C=o}else{const T=t;b=nt(T.length>1?T(h,{attrs:o,slots:l,emit:a}):T(h,null)),C=t.props?o:ic(o)}}catch(T){bn.length=0,Kn(T,e,1),b=oe(Mt)}let U=b;if(C&&v!==!1){const T=Object.keys(C),{shapeFlag:j}=U;T.length&&j&7&&(s&&T.some(Ar)&&(C=sc(C,s)),U=Zt(U,C,!1,!0))}return n.dirs&&(U=Zt(U,null,!1,!0),U.dirs=U.dirs?U.dirs.concat(n.dirs):n.dirs),n.transition&&Zr(U,n.transition),b=U,Zn($),b}const ic=e=>{let t;for(const n in e)(n==="class"||n==="style"||zn(n))&&((t||(t={}))[n]=e[n]);return t},sc=(e,t)=>{const n={};for(const r in e)(!Ar(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function lc(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?Ks(r,l,c):!!l;if(a&8){const u=t.dynamicProps;for(let h=0;he.__isSuspense;function ac(e,t){t&&t.pendingBranch?V(e)?t.effects.push(...e):t.effects.push(e):Sa(e)}const he=Symbol.for("v-fgt"),er=Symbol.for("v-txt"),Mt=Symbol.for("v-cmt"),ii=Symbol.for("v-stc"),bn=[];let Fe=null;function I(e=!1){bn.push(Fe=e?null:[])}function cc(){bn.pop(),Fe=bn[bn.length-1]||null}let yn=1;function Zs(e,t=!1){yn+=e,e<0&&Fe&&t&&(Fe.hasOnce=!0)}function Js(e){return e.dynamicChildren=yn>0?Fe||Ht:null,cc(),yn>0&&Fe&&Fe.push(e),e}function P(e,t,n,r,i,s){return Js(H(e,t,n,r,i,s,!0))}function ut(e,t,n,r,i){return Js(oe(e,t,n,r,i,!0))}function tr(e){return e?e.__v_isVNode===!0:!1}function wn(e,t){return e.type===t.type&&e.key===t.key}const Ys=({key:e})=>e??null,nr=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?ye(e)||xe(e)||le(e)?{i:Pe,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&&Ys(t),ref:t&&nr(t),scopeId:Es,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:Pe};return o?(si(a,n),s&128&&e.normalize(a)):n&&(a.shapeFlag|=ye(n)?8:16),yn>0&&!l&&Fe&&(a.patchFlag>0||s&6)&&a.patchFlag!==32&&Fe.push(a),a}const oe=uc;function uc(e,t=null,n=null,r=0,i=null,s=!1){if((!e||e===ja)&&(e=Mt),tr(e)){const o=Zt(e,t,!0);return n&&si(o,n),yn>0&&!s&&Fe&&(o.shapeFlag&6?Fe[Fe.indexOf(e)]=o:Fe.push(o)),o.patchFlag=-2,o}if(xc(e)&&(e=e.__vccOpts),t){t=fc(t);let{class:o,style:a}=t;o&&!ye(o)&&(t.class=ve(o)),me(a)&&(qr(a)&&!V(a)&&(a=Be({},a)),t.style=rn(a))}const l=ye(e)?1:Gs(e)?128:Ta(e)?64:me(e)?4:le(e)?2:0;return H(e,t,n,r,i,l,s,!0)}function fc(e){return e?qr(e)||Ps(e)?Be({},e):e:null}function Zt(e,t,n=!1,r=!1){const{props:i,ref:s,patchFlag:l,children:o,transition:a}=e,c=t?hc(i||{},t):i,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Ys(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&&Zt(e.ssContent),ssFallback:e.ssFallback&&Zt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&r&&Zr(u,a.clone(u)),u}function ft(e=" ",t=0){return oe(er,null,e,t)}function Y(e="",t=!1){return t?(I(),ut(Mt,null,e)):oe(Mt,null,e)}function nt(e){return e==null||typeof e=="boolean"?oe(Mt):V(e)?oe(he,null,e.slice()):tr(e)?yt(e):oe(er,null,String(e))}function yt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Zt(e)}function si(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),si(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!Ps(t)?t._ctx=Pe:i===3&&Pe&&(Pe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else le(t)?(t={default:t,_ctx:Pe},n=32):(t=String(t),r&64?(n=16,t=[ft(t)]):n=8);e.children=t,e.shapeFlag|=n}function hc(...e){const t={};for(let n=0;nEe||Pe;let rr,li;{const e=nn(),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=>Ee=n),li=t("__VUE_SSR_SETTERS__",n=>kn=n)}const oi=e=>{const t=Ee;return rr(e),e.scope.on(),()=>{e.scope.off(),rr(t)}},Qs=()=>{Ee&&Ee.scope.off(),rr(null)};function Xs(e){return e.vnode.shapeFlag&4}let kn=!1;function vc(e,t=!1,n=!1){t&&li(t);const{props:r,children:i}=e.vnode,s=Xs(e);Na(e,r,s,t),qa(e,i,n);const l=s?bc(e,t):void 0;return t&&li(!1),l}function bc(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Fa);const{setup:r}=n;if(r){St();const i=e.setupContext=r.length>1?wc(e):null,s=oi(e),l=hn(r,e,0,[e.props,i]),o=Qi(l);if(Rt(),s(),(o||e.sp)&&!gn(e)&&Ea(e),o){if(l.then(Qs,Qs),t)return l.then(a=>{el(e,a,t)}).catch(a=>{Kn(a,e,0)});e.asyncDep=l}else el(e,l,t)}else nl(e,t)}function el(e,t,n){le(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:me(t)&&(e.setupState=Cs(t)),nl(e,n)}let tl;function nl(e,t,n){const r=e.type;if(!e.render){if(!t&&tl&&!r.render){const i=r.template||!1;if(i){const{isCustomElement:s,compilerOptions:l}=e.appContext.config,{delimiters:o,compilerOptions:a}=r,c=Be(Be({isCustomElement:s,delimiters:o},l),a);r.render=tl(i,c)}}e.render=r.render||_t}}const yc={get(e,t){return $e(e,"get",""),e[t]}};function wc(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,yc),slots:e.slots,emit:e.emit,expose:t}}function ir(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Cs(ma(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in vn)return vn[n](e)},has(t,n){return n in t||n in vn}})):e.proxy}function kc(e,t=!0){return le(e)?e.displayName||e.name:e.name||t&&e.__name}function xc(e){return le(e)&&"__vccOpts"in e}const _e=(e,t)=>ka(e,t,kn);function ne(e,t,n){const r=arguments.length;return r===2?me(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 ai;const rl=typeof window<"u"&&window.trustedTypes;if(rl)try{ai=rl.createPolicy("vue",{createHTML:e=>e})}catch{}const il=ai?e=>ai.createHTML(e):e=>e,Cc="http://www.w3.org/2000/svg",$c="http://www.w3.org/1998/Math/MathML",ht=typeof document<"u"?document:null,sl=ht&&ht.createElement("template"),Sc={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"?ht.createElementNS(Cc,e):t==="mathml"?ht.createElementNS($c,e):n?ht.createElement(e,{is:n}):ht.createElement(e);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>ht.createTextNode(e),createComment:e=>ht.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ht.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{sl.innerHTML=il(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const o=sl.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]}},Rc=Symbol("_vtc");function Ac(e,t,n){const r=e[Rc];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const sr=Symbol("_vod"),ll=Symbol("_vsh"),ol={beforeMount(e,{value:t},{transition:n}){e[sr]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):xn(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),xn(e,!0),r.enter(e)):r.leave(e,()=>{xn(e,!1)}):xn(e,t))},beforeUnmount(e,{value:t}){xn(e,t)}};function xn(e,t){e.style.display=t?e[sr]:"none",e[ll]=!t}const Tc=Symbol(""),Ec=/(^|;)\s*display\s*:/;function Lc(e,t,n){const r=e.style,i=ye(n);let s=!1;if(n&&!i){if(t)if(ye(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[Tc];l&&(n+=";"+l),r.cssText=n,s=Ec.test(n)}}else t&&e.removeAttribute("style");sr in e&&(e[sr]=s?r.display:"",e[ll]&&(r.display="none"))}const al=/\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=Ic(e,t);al.test(n)?e.setProperty(Ct(r),n.replace(al,""),"important"):e[r]=n}}const cl=["Webkit","Moz","ms"],ci={};function Ic(e,t){const n=ci[t];if(n)return n;let r=Ve(t);if(r!=="filter"&&r in e)return ci[t]=r;r=Dn(r);for(let i=0;iui||(jc.then(()=>ui=0),ui=Date.now());function Fc(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;ct(Dc(r,n.value),t,5,[r])};return n.value=e,n.attached=zc(),n}function Dc(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 gl=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Hc=(e,t,n,r,i,s)=>{const l=i==="svg";t==="class"?Ac(e,r,l):t==="style"?Lc(e,n,r):zn(t)?Ar(t)||Oc(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Uc(e,t,r,l))?(hl(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&fl(e,t,r,l,s,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!ye(r))?hl(e,Ve(t),r,s,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),fl(e,t,r,l))};function Uc(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&gl(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 gl(t)&&ye(n)?!1:t in e}const wt=e=>{const t=e.props["onUpdate:modelValue"]||!1;return V(t)?n=>Hn(t,n):t};function Nc(e){e.target.composing=!0}function ml(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Ge=Symbol("_assign"),fi={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[Ge]=wt(i);const s=r||i.props&&i.props.type==="number";dt(e,t?"change":"input",l=>{if(l.target.composing)return;let o=e.value;n&&(o=o.trim()),s&&(o=Un(o)),e[Ge](o)}),n&&dt(e,"change",()=>{e.value=e.value.trim()}),t||(dt(e,"compositionstart",Nc),dt(e,"compositionend",ml),dt(e,"change",ml))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:s}},l){if(e[Ge]=wt(l),e.composing)return;const o=(s||e.type==="number")&&!/^0\d/.test(e.value)?Un(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))}},Bc={deep:!0,created(e,t,n){e[Ge]=wt(n),dt(e,"change",()=>{const r=e._modelValue,i=Jt(e),s=e.checked,l=e[Ge];if(V(r)){const o=Lr(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(yl(e,s))})},mounted:vl,beforeUpdate(e,t,n){e[Ge]=wt(n),vl(e,t,n)}};function vl(e,{value:t,oldValue:n},r){e._modelValue=t;let i;if(V(t))i=Lr(t,r.props.value)>-1;else if(Nt(t))i=t.has(r.props.value);else{if(t===n)return;i=$t(t,yl(e,!0))}e.checked!==i&&(e.checked=i)}const Vc={created(e,{value:t},n){e.checked=$t(t,n.props.value),e[Ge]=wt(n),dt(e,"change",()=>{e[Ge](Jt(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Ge]=wt(r),t!==n&&(e.checked=$t(t,r.props.value))}},Wc={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=Nt(t);dt(e,"change",()=>{const s=Array.prototype.filter.call(e.options,l=>l.selected).map(l=>n?Un(Jt(l)):Jt(l));e[Ge](e.multiple?i?new Set(s):s:s[0]),e._assigning=!0,Kt(()=>{e._assigning=!1})}),e[Ge]=wt(r)},mounted(e,{value:t}){bl(e,t)},beforeUpdate(e,t,n){e[Ge]=wt(n)},updated(e,{value:t}){e._assigning||bl(e,t)}};function bl(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=Lr(t,o)>-1}else l.selected=t.has(o);else if($t(Jt(l),t)){e.selectedIndex!==i&&(e.selectedIndex=i);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Jt(e){return"_value"in e?e._value:e.value}function yl(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const qc={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 Kc(e,t){switch(e){case"SELECT":return Wc;case"TEXTAREA":return fi;default:switch(t){case"checkbox":return Bc;case"radio":return Vc;default:return fi}}}function or(e,t,n,r,i){const l=Kc(e.tagName,n.props&&n.props.type)[i];l&&l(e,t,n,r)}const Gc=Be({patchProp:Hc},Sc);let wl;function Zc(){return wl||(wl=Za(Gc))}const Jc=(...e)=>{const t=Zc().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=Qc(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,Yc(i));return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),l},t};function Yc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Qc(e){return ye(e)?document.querySelector(e):e}function _n(e){return ls()?(Jo(e),!0):!1}function pt(e){return typeof e=="function"?e():q(e)}const ar=typeof window<"u"&&typeof document<"u",Xc=Object.prototype.toString,eu=e=>Xc.call(e)==="[object Object]",cr=()=>{};function kl(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 xl=e=>e();function tu(e,t={}){let n,r,i=cr;const s=o=>{clearTimeout(o),i(),i=cr};return o=>{const a=pt(e),c=pt(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 nu(e=xl){const t=W(!0);function n(){t.value=!1}function r(){t.value=!0}const i=(...s)=>{t.value&&e(...s)};return{isActive:fn(t),pause:n,resume:r,eventFilter:i}}function _l(e){return mc()}function ru(e,t=200,n={}){return kl(tu(t,n),e)}function iu(e,t,n={}){const{eventFilter:r=xl,...i}=n;return Ke(e,kl(r,t),i)}function su(e,t,n={}){const{eventFilter:r,...i}=n,{eventFilter:s,pause:l,resume:o,isActive:a}=nu(r);return{stop:iu(e,t,{...i,eventFilter:s}),pause:l,resume:o,isActive:a}}function hi(e,t=!0,n){_l()?mn(e,n):t?e():Kt(e)}function lu(e,t){_l()&&Yr(e,t)}function ou(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=pt(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=Ke(t,()=>{l.value&&ar&&c()});_n(u)}return _n(a),{isActive:l,pause:a,resume:c}}const ur=ar?window:void 0,Cl=ar?window.document:void 0;function au(e){var t;const n=pt(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=Ke(()=>[au(t),pt(i)],([u,h])=>{if(l(),!u)return;const d=eu(h)?{...h}:h;s.push(...n.flatMap(g=>r.map(k=>o(u,g,k,d))))},{immediate:!0,flush:"post"}),c=()=>{a(),l()};return _n(c),c}function cu(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()}},$l="vueuse-storage";function Yt(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?va:W)(typeof t=="function"?t():t);if(!n)try{n=hu("getDefaultStorage",()=>{var Z;return(Z=ur)==null?void 0:Z.localStorage})()}catch(Z){g(Z)}if(!n)return v;const $=pt(t),b=du($),C=(i=r.serializer)!=null?i:pu[b],{pause:U,resume:T}=su(v,()=>K(v.value),{flush:s,deep:l,eventFilter:d});h&&o&&hi(()=>{n instanceof Storage?fr(h,"storage",G):fr(h,$l,je),k&&G()}),k||G();function j(Z,ie){if(h){const be={key:e,oldValue:Z,newValue:ie,storageArea:n};h.dispatchEvent(n instanceof Storage?new StorageEvent("storage",be):new CustomEvent($l,{detail:be}))}}function K(Z){try{const ie=n.getItem(e);if(Z==null)j(ie,null),n.removeItem(e);else{const be=C.write(Z);ie!==be&&(n.setItem(e,be),j(ie,be))}}catch(ie){g(ie)}}function z(Z){const ie=Z?Z.newValue:n.getItem(e);if(ie==null)return a&&$!=null&&n.setItem(e,C.write($)),$;if(!Z&&c){const be=C.read(ie);return typeof c=="function"?c(be,$):b==="object"&&!Array.isArray(be)?{...$,...be}:be}else return typeof ie!="string"?ie:C.read(ie)}function G(Z){if(!(Z&&Z.storageArea!==n)){if(Z&&Z.key==null){v.value=$;return}if(!(Z&&Z.key!==e)){U();try{(Z==null?void 0:Z.newValue)!==C.write(v.value)&&(v.value=z(Z))}catch(ie){g(ie)}finally{Z?Kt(T):T()}}}}function je(Z){G(Z.detail)}return v}function gu(e={}){const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=W(new Date),i=()=>r.value=new Date,s=n==="requestAnimationFrame"?cu(i,{immediate:!0}):ou(i,n,{immediate:!0});return t?{now:r,...s}:r}function mu(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=Cl,attrs:d={}}=n,g=W(null);let k=null;const v=C=>new Promise((U,T)=>{const j=G=>(g.value=G,U(G),G);if(!h){U(!1);return}let K=!1,z=h.querySelector(`script[src="${pt(e)}"]`);z?z.hasAttribute("data-loaded")&&j(z):(z=h.createElement("script"),z.type=s,z.async=l,z.src=pt(e),u&&(z.defer=u),o&&(z.crossOrigin=o),c&&(z.noModule=c),a&&(z.referrerPolicy=a),Object.entries(d).forEach(([G,je])=>z==null?void 0:z.setAttribute(G,je)),K=!0),z.addEventListener("error",G=>T(G)),z.addEventListener("abort",G=>T(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="${pt(e)}"]`);C&&h.head.removeChild(C)};return r&&!i&&hi($),i||lu(b),{scriptTag:g,load:$,unload:b}}let vu=0;function bu(e,t={}){const n=W(!1),{document:r=Cl,immediate:i=!0,manual:s=!1,id:l=`vueuse_styletag_${++vu}`}=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=Ke(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&&hi(c),s||_n(u),{id:l,css:o,unload:u,load:c,isLoaded:fn(n)}}const yu=e=>!!/@[0-9]+\.[0-9]+\.[0-9]+/.test(e),wu=e=>{const t=Yt("WALINE_EMOJI",{}),n=yu(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})},Sl=(e,t="",n="",r="")=>`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`,ku=e=>Promise.all(e.map(t=>Dt(t)?wu(Gi(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:Sl(l,s,o,a),items:c.map(u=>{const h=`${o}${u}`;return n.map[h]=Sl(u,s,o,a),h})})}),n}),Rl=e=>{e.name!=="AbortError"&&console.error(e.message)},di=e=>e instanceof HTMLElement?e:Dt(e)?document.querySelector(e):null,xu=e=>e.type.includes("image"),Al=e=>{const t=Array.from(e).find(xu);return t?t.getAsFile():null};function pi(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let Ot=pi();function Tl(e){Ot=e}const Cn={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|$))+/,Cu=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,$u=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,$n=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Su=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,El=/(?:[*+-]|\d{1,9}[.)])/,Ll=ae(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,El).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(),gi=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Ru=/^[^\n]+/,mi=/(?!\s*\])(?:\\.|[^\[\]\\])+/,Au=ae(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",mi).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Tu=ae(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,El).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",vi=/|$))/,Eu=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",vi).replace("tag",pr).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Il=ae(gi).replace("hr",$n).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(),bi={blockquote:ae(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Il).getRegex(),code:Cu,def:Au,fences:$u,heading:Su,hr:$n,html:Eu,lheading:Ll,list:Tu,newline:_u,paragraph:Il,table:Cn,text:Ru},Ml=ae("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",$n).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(),Lu={...bi,table:Ml,paragraph:ae(gi).replace("hr",$n).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Ml).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()},Iu={...bi,html:ae(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",vi).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:Cn,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ae(gi).replace("hr",$n).replace("heading",` *#{1,6} *[^ +]`).replace("lheading",Ll).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Ol=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Mu=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Pl=/^( {2,}|\\)\n(?!\s*$)/,Ou=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\]*?>/g,zu=ae(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Sn).getRegex(),Fu=ae("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Sn).getRegex(),Du=ae("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Sn).getRegex(),Hu=ae(/\\([punct])/,"gu").replace(/punct/g,Sn).getRegex(),Uu=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(),Nu=ae(vi).replace("(?:-->|$)","-->").getRegex(),Bu=ae("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",Nu).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),gr=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Vu=ae(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",gr).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),jl=ae(/^!?\[(label)\]\[(ref)\]/).replace("label",gr).replace("ref",mi).getRegex(),zl=ae(/^!?\[(ref)\](?:\[\])?/).replace("ref",mi).getRegex(),Wu=ae("reflink|nolink(?!\\()","g").replace("reflink",jl).replace("nolink",zl).getRegex(),yi={_backpedal:Cn,anyPunctuation:Hu,autolink:Uu,blockSkip:ju,br:Pl,code:Mu,del:Cn,emStrongLDelim:zu,emStrongRDelimAst:Fu,emStrongRDelimUnd:Du,escape:Ol,link:Vu,nolink:zl,punctuation:Pu,reflink:jl,reflinkSearch:Wu,tag:Bu,text:Ou,url:Cn},qu={...yi,link:ae(/^!?\[(label)\]\((.*?)\)/).replace("label",gr).getRegex(),reflink:ae(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",gr).getRegex()},wi={...yi,escape:ae(Ol).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]*?(?:(?=[\\":">",'"':""","'":"'"},Fl=e=>Gu[e];function it(e,t){if(t){if(Le.escapeTest.test(e))return e.replace(Le.escapeReplace,Fl)}else if(Le.escapeTestNoEncode.test(e))return e.replace(Le.escapeReplaceNoEncode,Fl);return e}function Dl(e){try{e=encodeURI(e).replace(Le.percentDecode,"%")}catch{return null}return e}function Hl(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||Ot}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:An(r,` +`)}}}fences(t){const n=this.rules.block.fences.exec(t);if(n){const r=n[0],i=Ju(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=An(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:An(n[0],` +`)}}blockquote(t){const n=this.rules.block.blockquote.exec(t);if(n){let r=An(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),U=this.rules.other.hrRegex(v),T=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," "),T.test(g)||j.test(g)||K.test(g)||C.test(g)||U.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||T.test(d)||j.test(d)||U.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=An(r.slice(0,-1),"\\");if((r.length-l.length)%2===0)return}else{const l=Zu(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)),Ul(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 Ul(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 Je{tokens;options;state;tokenizer;inlineQueue;constructor(t){this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Ot,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:Rn.normal};this.options.pedantic?(n.block=mr.pedantic,n.inline=Rn.pedantic):this.options.gfm&&(n.block=mr.gfm,this.options.breaks?n.inline=Rn.breaks:n.inline=Rn.gfm),this.tokenizer.rules=n}static get rules(){return{block:mr,inline:Rn}}static lex(t,n){return new Je(n).lex(t)}static lexInline(t,n){return new Je(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||Ot}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:it(s,!0))+`
    +`:"
    "+(r?s:it(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+" "+it(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`${it(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=Dl(t);if(s===null)return i;t=s;let l='
    ",l}image({href:t,title:n,text:r}){const i=Dl(t);if(i===null)return it(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 Tn;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];Tn.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 Je.lex(t,n??this.defaults)}parser(t,n){return Ye.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?Je.lex:Je.lexInline,c=l.hooks?l.hooks.provideParser():t?Ye.parse:Ye.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:

    "+it(r.message+"",!0)+"
    ";return n?Promise.resolve(i):i}if(n)return Promise.reject(r);throw r}}}const Pt=new Nl;function ge(e,t){return Pt.parse(e,t)}ge.options=ge.setOptions=function(e){return Pt.setOptions(e),ge.defaults=Pt.defaults,Tl(ge.defaults),ge},ge.getDefaults=pi,ge.defaults=Ot,ge.use=function(...e){return Pt.use(...e),ge.defaults=Pt.defaults,Tl(ge.defaults),ge},ge.walkTokens=function(e,t){return Pt.walkTokens(e,t)},ge.parseInline=Pt.parseInline,ge.Parser=Ye,ge.parser=Ye.parse,ge.Renderer=br,ge.TextRenderer=ki,ge.Lexer=Je,ge.lexer=Je.lex,ge.Tokenizer=vr,ge.Hooks=Tn,ge.parse=ge;function Yu(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=Bl(t.lang);if(e.async)return Promise.resolve(e.highlight(t.text,n,t.lang||"")).then(Vl(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.");Vl(t)(r)},useNewRenderer:!0,renderer:{code(t,n,r){typeof t=="object"&&(r=t.escaped,n=t.lang,t=t.text);const i=Bl(n),s=i?e.langPrefix+Gl(i):e.emptyLangClass,l=s?` class="${s}"`:"";return t=t.replace(/\n$/,""),`
    ${r?t:Gl(t,!0)}
    +
    `}}}}function Bl(e){return(e||"").match(/\S*/)[0]}function Vl(e){return t=>{typeof t=="string"&&t!==e.text&&(e.escaped=!0,e.text=t)}}const Wl=/[&<>"']/,Qu=new RegExp(Wl.source,"g"),ql=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,Xu=new RegExp(ql.source,"g"),ef={"&":"&","<":"<",">":">",'"':""","'":"'"},Kl=e=>ef[e];function Gl(e,t){if(t){if(Wl.test(e))return e.replace(Qu,Kl)}else if(ql.test(e))return e.replace(Xu,Kl);return e}const tf=/\$.*?\$/,nf=/^\$(.*?)\$/,rf=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,sf=e=>[{name:"blockMath",level:"block",tokenizer(t){const n=rf.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(tf);return n!==-1?n:t.length},tokenizer(t){const n=nf.exec(t);if(n!==null)return{type:"html",raw:n[0],text:e(!1,n[1])}}}],Zl=(e="",t={})=>e.replace(/:(.+?):/g,(n,r)=>t[r]?`${r}`:n),lf=(e,{emojiMap:t,highlighter:n,texRenderer:r})=>{const i=new Nl;if(i.setOptions({breaks:!0}),n&&i.use(Yu({highlight:n})),r){const s=sf(r);i.use({extensions:s})}return i.parse(Zl(e,t))},xi=e=>{const{path:t}=e.dataset;return t!=null&&t.length?t:null},of=e=>e.match(/[\w\d\s,.\u00C0-\u024F\u0400-\u04FF]+/giu),af=e=>e.match(/[\u4E00-\u9FD5]/gu),cf=e=>{var t,n;return(((t=of(e))==null?void 0:t.reduce((r,i)=>r+(["",",","."].includes(i.trim())?0:i.trim().split(/\s+/u).length),0))??0)+(((n=af(e))==null?void 0:n.length)??0)},uf=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},Jl=({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&&Ai({serverURL:jn(e),paths:Array.from(s).map(l=>Ki(xi(l)??t)),lang:r,signal:i.signal}).then(l=>{s.forEach((o,a)=>{o.innerText=l[a].toString()})}).catch(Rl),i.abort.bind(i)},Yl=({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"})]),ff=()=>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"})),hf=()=>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"})),df=()=>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"})]),pf=({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"})]),gf=()=>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"})]),mf=()=>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"})),vf=()=>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"})),bf=()=>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"})),yf=()=>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"}))),wf=()=>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"})]),kf=()=>Yt("WALINE_USER_META",{nick:"",mail:"",link:""}),xf=()=>Yt("WALINE_COMMENT_BOX_EDITOR",""),_f="WALINE_LIKE";let Ql=null;const Xl=()=>Ql??(Ql=Yt(_f,[])),Cf="WALINE_REACTION";let eo=null;const $f=()=>eo??(eo=Yt(Cf,{}));var _i={},gt={},mt={},to;function no(){if(to)return mt;to=1;var e=mt&&mt.__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=mt&&mt.__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 gt.load=r.load,gt.getInstance=r.getInstance,gt}var io;function Rf(){return io||(io=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ReCaptchaInstance=e.getInstance=e.load=void 0;var t=Sf();Object.defineProperty(e,"load",{enumerable:!0,get:function(){return t.load}}),Object.defineProperty(e,"getInstance",{enumerable:!0,get:function(){return t.getInstance}});var n=no();Object.defineProperty(e,"ReCaptchaInstance",{enumerable:!0,get:function(){return n.ReCaptchaInstance}})}(_i)),_i}var Af=Rf();const so={},Tf=e=>{const t=so[e]??(so[e]=Af.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:n=>t.then(r=>r.execute(n))}},Ef=e=>({execute:async t=>{const{load:n}=mu("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})})})}}),Lf="WALINE_USER";let lo=null;const yr=()=>lo??(lo=Yt(Lf,{})),If={key:0,class:"wl-reaction"},Mf=["textContent"],Of={class:"wl-reaction-list"},Pf=["onClick"],jf={class:"wl-reaction-img"},zf=["src","alt"],Ff=["textContent"],Df=["textContent"];var Hf=pn({__name:"ArticleReaction",setup(e,{expose:t}){t();const n=$f(),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 xr({serverURL:d,lang:g,paths:[k],type:v.map((C,U)=>`reaction${U}`),signal:$.signal});s.value=v.map((C,U)=>b[0][`reaction${U}`])},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 mn(()=>{Ke(()=>[r.value.serverURL,r.value.path],()=>{u()},{immediate:!0})}),Yr(()=>c==null?void 0:c()),(d,g)=>a.value.length?(I(),P("div",If,[H("div",{class:"wl-reaction-title",textContent:X(l.value.reactionTitle)},null,8,Mf),H("ul",Of,[(I(!0),P(he,null,qe(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",jf,[H("img",{src:v,alt:$},null,8,zf),i.value===b?(I(),ut(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,Ff))]),H("div",{class:"wl-reaction-text",textContent:X($)},null,8,Df)],10,Pf))),128))])])):Y("v-if",!0)}}),Ln=new Map;function Uf(e){var t=Ln.get(e);t&&t.destroy()}function Nf(e){var t=Ln.get(e);t&&t.update()}var In=null;typeof window>"u"?((In=function(e){return e}).destroy=function(e){return e},In.update=function(e){return e}):((In=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"&&!Ln.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]}),Ln.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",Ln.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(T){for(var j=[];T&&T.parentNode&&T.parentNode instanceof Element;)T.parentNode.scrollTop&&j.push([T.parentNode,T.parentNode.scrollTop]),T=T.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 U=l.textAlign;l.overflow==="hidden"&&(r.style.textAlign=U==="start"?"end":"start"),c({restoreTextAlign:U,testForHeightReduction:!0})}}function u(){c({testForHeightReduction:!0,restoreTextAlign:null})}}(n)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Uf),e},In.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],Nf),e});var oo=In;const Bf=["data-index"],Vf=["src","title","onClick"];var Wf=pn({__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 Kt();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 mn(()=>{u(!0),r=new ResizeObserver(()=>{u()}),r.observe(i.value),Ke(()=>[n.items],()=>{s.value={},u(!0)}),Ke(()=>[n.columnWidth,n.gap],()=>{u()})}),Ma(()=>r.unobserve(i.value)),(d,g)=>(I(),P("div",{ref_key:"wall",ref:i,class:"wl-gallery",style:rn({gap:`${d.gap}px`})},[(I(!0),P(he,null,qe(l.value,(k,v)=>(I(),P("div",{key:v,class:"wl-gallery-column","data-index":v,style:rn({gap:`${d.gap}px`})},[(I(!0),P(he,null,qe(k,$=>(I(),P(he,{key:$},[s.value[d.items[$].src]?Y("v-if",!0):(I(),ut(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,Vf)],64))),128))],12,Bf))),128))],4))}});const qf={key:0,class:"wl-login-info"},Kf={class:"wl-avatar"},Gf=["title"],Zf=["title"],Jf=["src"],Yf=["title","textContent"],Qf={class:"wl-panel"},Xf=["for","textContent"],eh=["id","onUpdate:modelValue","name","type"],th=["placeholder"],nh={class:"wl-preview"},rh=["innerHTML"],ih={class:"wl-footer"},sh={class:"wl-actions"},lh={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},oh=["title"],ah=["title"],ch=["title","aria-label"],uh=["title"],fh={class:"wl-info"},hh={class:"wl-text-number"},dh={key:0},ph=["textContent"],gh=["textContent"],mh=["disabled"],vh=["placeholder"],bh={key:1,class:"wl-loading"},yh={key:0,class:"wl-tab-wrapper"},wh=["title","onClick"],kh=["src","alt"],xh={key:0,class:"wl-tabs"},_h=["onClick"],Ch=["src","alt","title"],$h=["title"];var ao=pn({__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=xf(),l=kf(),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),U=W(!1),T=W(!1),j=W(""),K=W(0),z=un({loading:!0,list:[]}),G=W(0),je=W(!1),Z=W(""),ie=W(!1),be=W(!1),F=_e(()=>i.value.locale),Q=_e(()=>{var O;return!!((O=o.value)!=null&&O.token)}),ce=_e(()=>i.value.imageUploader!==!1),Ce=O=>{const A=c.value,N=A.selectionStart,pe=A.selectionEnd||0,f=A.scrollTop;s.value=A.value.substring(0,N)+O+A.value.substring(pe,A.value.length),A.focus(),A.selectionStart=N+O.length,A.selectionEnd=N+O.length,A.scrollTop=f},we=O=>{if(ie.value)return;const A=O.key;(O.ctrlKey||O.metaKey)&&A==="Enter"&&De()},ke=O=>{const A=`![${i.value.locale.uploading} ${O.name}]()`;return Ce(A),ie.value=!0,Promise.resolve().then(()=>i.value.imageUploader(O)).then(N=>{s.value=s.value.replace(A,`\r +![${O.name}](${N})`)}).catch(N=>{alert(N.message),s.value=s.value.replace(A,"")}).then(()=>{ie.value=!1})},Ie=O=>{var A;if((A=O.dataTransfer)!=null&&A.items){const N=Al(O.dataTransfer.items);N&&ce.value&&(ke(N),O.preventDefault())}},kt=O=>{if(O.clipboardData){const A=Al(O.clipboardData.items);A&&ce.value&&ke(A)}},jt=()=>{const O=u.value;O.files&&ce.value&&ke(O.files[0]).then(()=>{O.value=""})},De=async()=>{var O,A,N,pe,f,p;const{serverURL:m,lang:w,login:y,wordLimit:x,requiredMeta:E,recaptchaV3Key:R,turnstileKey:S}=i.value,_=await uf(),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(E.includes("nick")&&!M.nick)return(A=a.value.nick)==null||A.focus(),alert(F.value.nickError);if(E.includes("mail")&&!M.mail||M.mail&&!zo(M.mail))return(N=a.value.mail)==null||N.focus(),alert(F.value.mailError);M.nick||(M.nick=F.value.anonymous)}if(!M.comment){(pe=c.value)==null||pe.focus();return}if(!je.value)return alert(F.value.wordHint.replace("$0",x[0].toString()).replace("$1",x[1].toString()).replace("$2",K.value.toString()));M.comment=Zl(M.comment,$.value.map),n.replyId&&n.rootId&&(M.pid=n.replyId,M.rid=n.rootId,M.at=n.replyUser),ie.value=!0;try{R&&(M.recaptchaV3=await Tf(R).execute("social")),S&&(M.turnstile=await Ef(S).execute("social"));const L={serverURL:m,lang:w,token:(f=o.value)==null?void 0:f.token,comment:M},D=await(n.edit?Xt({objectId:n.edit.objectId,...L}):Si(L));if(ie.value=!1,D.errmsg)return alert(D.errmsg);r("submit",D.data),s.value="",j.value="",await Kt(),n.replyId&&r("cancelReply"),(p=n.edit)!=null&&p.objectId&&r("cancelEdit")}catch(L){ie.value=!1,alert(L.message)}},wr=O=>{O.preventDefault();const{lang:A,serverURL:N}=i.value;Ti({serverURL:N,lang:A}).then(pe=>{o.value=pe,(pe.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(pe)),r("log")})},Ci=()=>{o.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),r("log")},kr=O=>{O.preventDefault();const{lang:A,serverURL:N}=i.value,pe=800,f=800,p=(window.innerWidth-pe)/2,m=(window.innerHeight-f)/2,w=new URLSearchParams({lng:A,token:o.value.token}),y=window.open(`${N}/ui/profile?${w.toString()}`,"_blank",`width=${pe},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},"*")},zt=O=>{var A,N,pe,f;!((A=h.value)!=null&&A.contains(O.target))&&!((N=d.value)!=null&&N.contains(O.target))&&(C.value=!1),!((pe=g.value)!=null&&pe.contains(O.target))&&!((f=k.value)!=null&&f.contains(O.target))&&(U.value=!1)},Ft=async O=>{var A;const{scrollTop:N,clientHeight:pe,scrollHeight:f}=O.target,p=(pe+N)/f,m=i.value.search,w=((A=v.value)==null?void 0:A.value)??"";p<.9||z.loading||be.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)]:be.value=!0,z.loading=!1,setTimeout(()=>{O.target.scrollTop=N},50))},Qt=ru(O=>{z.list=[],be.value=!1,Ft(O)},300);return Ke([i,K],([O,A])=>{const{wordLimit:N}=O;N?AN[1]?(G.value=N[1],je.value=!1):(G.value=N[1],je.value=!0):(G.value=0,je.value=!0)},{immediate:!0}),fr("click",zt),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))))}),Ke(U,async O=>{var A;if(!O)return;const N=i.value.search;v.value&&(v.value.value=""),z.loading=!0,z.list=await(((A=N.default)==null?void 0:A.call(N))??N.search("")),z.loading=!1}),mn(()=>{var O;(O=n.edit)!=null&&O.objectId&&(s.value=n.edit.orig),Ke(()=>s.value,A=>{const{highlighter:N,texRenderer:pe}=i.value;Z.value=A,j.value=lf(A,{emojiMap:$.value.map,highlighter:N,texRenderer:pe}),K.value=cf(A),A?oo(c.value):oo.destroy(c.value)},{immediate:!0}),Ke(()=>i.value.emoji,A=>ku(A).then(N=>{$.value=N}),{immediate:!0})}),(O,A)=>{var N,pe;return I(),P("div",{key:q(o).token,class:"wl-comment"},[q(i).login!=="disable"&&Q.value&&!((N=O.edit)!=null&&N.objectId)?(I(),P("div",qf,[H("div",Kf,[H("button",{type:"submit",class:"wl-logout-btn",title:F.value.logout,onClick:Ci},[oe(q(Yl),{size:14})],8,Gf),H("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:F.value.profile,onClick:kr},[H("img",{src:q(o).avatar,alt:"avatar"},null,8,Jf)],8,Zf)]),H("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:F.value.profile,onClick:kr,textContent:X(q(o).display_name)},null,8,Yf)])):Y("v-if",!0),H("div",Qf,[q(i).login!=="force"&&q(i).meta.length&&!Q.value?(I(),P("div",{key:0,class:ve(["wl-header",`item${q(i).meta.length}`])},[(I(!0),P(he,null,qe(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,Xf),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,eh),[[qc,q(l)[f]]])]))),128))],2)):Y("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:we,onDrop:Ie,onPaste:kt},null,40,th),[[fi,q(s)]]),Jn(H("div",nh,[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,rh)],512),[[ol,T.value]]),H("div",ih,[H("div",sh,[H("a",lh,[oe(q(mf))]),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(hf))],10,oh),[[ol,$.value.tabs.length]]),q(i).search?(I(),P("button",{key:0,ref_key:"gifButtonRef",ref:g,type:"button",class:ve(["wl-action",{active:U.value}]),title:F.value.gif,onClick:A[2]||(A[2]=f=>U.value=!U.value)},[oe(q(wf))],10,ah)):Y("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:jt},null,544),ce.value?(I(),P("label",{key:1,for:"wl-image-upload",class:"wl-action",title:F.value.uploadImage,"aria-label":F.value.uploadImage},[oe(q(df))],8,ch)):Y("v-if",!0),H("button",{type:"button",class:ve(["wl-action",{active:T.value}]),title:F.value.preview,onClick:A[3]||(A[3]=f=>T.value=!T.value)},[oe(q(gf))],10,uh)]),H("div",fh,[A[9]||(A[9]=H("div",{class:"wl-captcha-container"},null,-1)),H("div",hh,[ft(X(K.value)+" ",1),q(i).wordLimit?(I(),P("span",dh,[A[8]||(A[8]=ft(" / ")),H("span",{class:ve({illegal:!je.value}),textContent:X(G.value)},null,10,ph)])):Y("v-if",!0),ft(" "+X(F.value.word),1)]),q(i).login!=="disable"&&!Q.value?(I(),P("button",{key:0,type:"button",class:"wl-btn",onClick:wr,textContent:X(F.value.login)},null,8,gh)):Y("v-if",!0),q(i).login!=="force"||Q.value?(I(),P("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:ie.value,onClick:De},[ie.value?(I(),ut(q(En),{key:0,size:16})):(I(),P(he,{key:1},[ft(X(F.value.submit),1)],64))],8,mh)):Y("v-if",!0)]),H("div",{ref_key:"gifPopupRef",ref:k,class:ve(["wl-gif-popup",{display:U.value}])},[H("input",{ref_key:"gifSearchInputRef",ref:v,type:"text",placeholder:F.value.gifSearchPlaceholder,onInput:A[4]||(A[4]=(...f)=>q(Qt)&&q(Qt)(...f))},null,40,vh),z.list.length?(I(),ut(Wf,{key:0,items:z.list,"column-width":200,gap:6,onInsert:A[5]||(A[5]=f=>Ce(f)),onScroll:Ft},null,8,["items"])):Y("v-if",!0),z.loading?(I(),P("div",bh,[oe(q(En),{size:30})])):Y("v-if",!0)],2),H("div",{ref_key:"emojiPopupRef",ref:d,class:ve(["wl-emoji-popup",{display:C.value}])},[(I(!0),P(he,null,qe($.value.tabs,(f,p)=>(I(),P(he,{key:f.name},[p===b.value?(I(),P("div",yh,[(I(!0),P(he,null,qe(f.items,m=>(I(),P("button",{key:m,type:"button",title:m,onClick:w=>Ce(`:${m}:`)},[C.value?(I(),P("img",{key:0,class:"wl-emoji",src:$.value.map[m],alt:m,loading:"lazy",referrerPolicy:"no-referrer"},null,8,kh)):Y("v-if",!0)],8,wh))),128))])):Y("v-if",!0)],64))),128)),$.value.tabs.length>1?(I(),P("div",xh,[(I(!0),P(he,null,qe($.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,Ch)],10,_h))),128))])):Y("v-if",!0)],2)])]),O.replyId||(pe=O.edit)!=null&&pe.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(Yl),{size:24})],8,$h)):Y("v-if",!0)])}}});const Sh=["id"],Rh={class:"wl-user","aria-hidden":"true"},Ah=["src"],Th={class:"wl-card"},Eh={class:"wl-head"},Lh=["href"],Ih={key:1,class:"wl-nick"},Mh=["textContent"],Oh=["textContent"],Ph=["textContent"],jh=["textContent"],zh=["textContent"],Fh={class:"wl-comment-actions"},Dh=["title"],Hh=["title"],Uh={class:"wl-meta","aria-hidden":"true"},Nh=["data-value","textContent"],Bh={key:0,class:"wl-content"},Vh={key:0},Wh=["href"],qh=["innerHTML"],Kh={key:1,class:"wl-admin-actions"},Gh={class:"wl-comment-status"},Zh=["disabled","onClick","textContent"],Jh={key:3,class:"wl-quote"};var Yh=pn({__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=Xl(),o=gu(),a=yr(),c=_e(()=>s.value.locale),u=_e(()=>{const{link:b}=n.comment;return b?Zi(b)?b:`https://${b}`:""}),h=_e(()=>l.value.includes(n.comment.objectId)),d=_e(()=>Po(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 U;const T=Pa("CommentCard",!0);return I(),P("div",{id:b.comment.objectId,class:"wl-card-item"},[H("div",Rh,[b.comment.avatar?(I(),P("img",{key:0,class:"wl-user-avatar",src:b.comment.avatar,alt:""},null,8,Ah)):Y("v-if",!0),b.comment.type?(I(),ut(q(yf),{key:1})):Y("v-if",!0)]),H("div",Th,[H("div",Eh,[u.value?(I(),P("a",{key:0,class:"wl-nick",href:u.value,target:"_blank",rel:"nofollow noopener noreferrer"},X(b.comment.nick),9,Lh)):(I(),P("span",Ih,X(b.comment.nick),1)),b.comment.type==="administrator"?(I(),P("span",{key:2,class:"wl-badge",textContent:X(c.value.admin)},null,8,Mh)):Y("v-if",!0),b.comment.label?(I(),P("span",{key:3,class:"wl-badge",textContent:X(b.comment.label)},null,8,Oh)):Y("v-if",!0),b.comment.sticky?(I(),P("span",{key:4,class:"wl-badge",textContent:X(c.value.sticky)},null,8,Ph)):Y("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,jh)):Y("v-if",!0),H("span",{class:"wl-time",textContent:X(d.value)},null,8,zh),H("div",Fh,[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(bf))]),H("button",{type:"button",class:"wl-delete",onClick:C[1]||(C[1]=j=>r("delete",b.comment))},[oe(q(ff))])],64)):Y("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(pf),{active:h.value},null,8,["active"]),ft(" "+X("like"in b.comment?b.comment.like:""),1)],8,Dh),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(vf))],10,Hh)])]),H("div",Uh,[(I(),P(he,null,qe(["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,Nh)):Y("v-if",!0)],64))),64))]),$.value?Y("v-if",!0):(I(),P("div",Bh,[b.comment.reply_user?(I(),P("p",Vh,[H("a",{href:"#"+b.comment.pid},"@"+X(b.comment.reply_user.nick),9,Wh),C[17]||(C[17]=H("span",null,": ",-1))])):Y("v-if",!0),H("div",{innerHTML:b.comment.comment},null,8,qh)])),g.value&&!$.value?(I(),P("div",Kh,[H("span",Gh,[(I(),P(he,null,qe(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,Zh)),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)):Y("v-if",!0)])):Y("v-if",!0),v.value||$.value?(I(),P("div",{key:2,class:ve({"wl-reply-wrapper":v.value,"wl-edit-wrapper":$.value})},[oe(ao,{edit:b.edit,"reply-id":(U=b.reply)==null?void 0:U.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)):Y("v-if",!0),"children"in b.comment?(I(),P("div",Jh,[(I(!0),P(he,null,qe(b.comment.children,j=>(I(),ut(T,{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))])):Y("v-if",!0)])],8,Sh)}}});const co="3.4.1",Qh={"data-waline":""},Xh={class:"wl-meta-head"},ed={class:"wl-count"},td=["textContent"],nd={class:"wl-sort"},rd=["onClick"],id={class:"wl-cards"},sd={key:1,class:"wl-operation"},ld=["textContent"],od={key:2,class:"wl-loading"},ad=["textContent"],cd={key:4,class:"wl-operation"},ud=["textContent"],fd={key:5,class:"wl-power"};var hd=pn({__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=Xl(),l=W("loading"),o=W(0),a=W(1),c=W(0),u=_e(()=>Io(t)),h=W(u.value.commentSorting),d=W([]),g=W(null),k=W(null),v=_e(()=>Mo(u.value.dark)),$=_e(()=>u.value.locale);bu(v,{id:"waline-darkmode"});let b;const C=F=>{var Q;const{serverURL:ce,path:Ce,pageSize:we}=u.value,ke=new AbortController;l.value="loading",b==null||b(),$i({serverURL:ce,lang:u.value.lang,path:Ce,pageSize:we,sortBy:n[h.value],page:F,signal:ke.signal,token:(Q=i.value)==null?void 0:Q.token}).then(Ie=>{l.value="success",o.value=Ie.count,d.value.push(...Ie.data),a.value=F,c.value=Ie.totalPages}).catch(Ie=>{Ie.name!=="AbortError"&&(console.error(Ie.message),l.value="error")}),b=ke.abort.bind(ke)},U=()=>C(a.value+1),T=()=>{o.value=0,d.value=[],C(1)},j=F=>{h.value!==F&&(h.value=F,T())},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 Q=d.value.find(({objectId:ce})=>ce===F.rid);if(!Q)return;Array.isArray(Q.children)||(Q.children=[]),Q.children.push(F)}else d.value.unshift(F),o.value+=1},je=async({comment:F,status:Q})=>{var ce;if(F.status===Q)return;const{serverURL:Ce,lang:we}=u.value;await Xt({serverURL:Ce,lang:we,token:(ce=i.value)==null?void 0:ce.token,objectId:F.objectId,comment:{status:Q}}),F.status=Q},Z=async F=>{var Q;if("rid"in F)return;const{serverURL:ce,lang:Ce}=u.value;await Xt({serverURL:ce,lang:Ce,token:(Q=i.value)==null?void 0:Q.token,objectId:F.objectId,comment:{sticky:F.sticky?0:1}}),F.sticky=!F.sticky},ie=async({objectId:F})=>{var Q;if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:ce,lang:Ce}=u.value;await Ri({serverURL:ce,lang:Ce,token:(Q=i.value)==null?void 0:Q.token,objectId:F}),d.value.some((we,ke)=>we.objectId===F?(d.value=d.value.filter((Ie,kt)=>kt!==ke),!0):we.children.some((Ie,kt)=>Ie.objectId===F?(d.value[ke].children=we.children.filter((jt,De)=>De!==kt),!0):!1))},be=async F=>{var Q;const{serverURL:ce,lang:Ce}=u.value,{objectId:we}=F,ke=s.value.includes(we);await Xt({serverURL:ce,lang:Ce,objectId:we,token:(Q=i.value)==null?void 0:Q.token,comment:{like:!ke}}),ke?s.value=s.value.filter(Ie=>Ie!==we):(s.value=[...s.value,we],s.value.length>50&&(s.value=s.value.slice(-50))),F.like=(F.like||0)+(ke?-1:1)};return Ua("config",u),mn(()=>{Ke(()=>[t.serverURL,t.path],()=>T(),{immediate:!0})}),Yr(()=>b==null?void 0:b()),(F,Q)=>(I(),P("div",Qh,[oe(Hf),!g.value&&!k.value?(I(),ut(ao,{key:0,onLog:T,onSubmit:G})):Y("v-if",!0),H("div",Xh,[H("div",ed,[o.value?(I(),P("span",{key:0,class:"wl-num",textContent:X(o.value)},null,8,td)):Y("v-if",!0),ft(" "+X($.value.comment),1)]),H("ul",nd,[(I(!0),P(he,null,qe(q(r),ce=>(I(),P("li",{key:ce,class:ve([ce===h.value?"active":""]),onClick:Ce=>j(ce)},X($.value[ce]),11,rd))),128))])]),H("div",id,[(I(!0),P(he,null,qe(d.value,ce=>(I(),ut(Yh,{key:ce.objectId,"root-id":ce.objectId,comment:ce,reply:g.value,edit:k.value,onLog:T,onReply:K,onEdit:z,onSubmit:G,onStatus:je,onDelete:ie,onSticky:Z,onLike:be},null,8,["root-id","comment","reply","edit"]))),128))]),l.value==="error"?(I(),P("div",sd,[H("button",{type:"button",class:"wl-btn",onClick:T,textContent:X($.value.refresh)},null,8,ld)])):l.value==="loading"?(I(),P("div",od,[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())})},fo=({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=xi(c);return u!==null&&t!==u},a=c=>Ei({serverURL:jn(e),paths:c.map(u=>xi(u)??t),lang:i,signal:s.signal}).then(u=>uo(u,c)).catch(Rl);if(r){const c=l.filter(h=>!o(h)),u=l.filter(o);Li({serverURL:jn(e),path:t,lang:i}).then(h=>uo(h,c)),u.length&&a(u)}else a(l);return s.abort.bind(s)},dd=({el:e="#waline",path:t=window.location.pathname,comment:n=!1,pageview:r=!1,...i})=>{const s=e?di(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=un({...i}),o=un({comment:n,pageview:r,path:t}),a=()=>{o.comment&&Jl({serverURL:l.serverURL,path:o.path,...Dt(o.comment)?{selector:o.comment}:{}})},c=()=>{o.pageview&&fo({serverURL:l.serverURL,path:o.path,...Dt(o.pageview)?{selector:o.pageview}:{}})},u=s?Jc(()=>ne(hd,{path:o.path,...l})):null;u&&u.mount(s);const h=Ws(a),d=Ws(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()}}},pd=({el:e,serverURL:t,count:n,lang:r=navigator.language})=>{var i;const s=yr(),l=di(e),o=new AbortController;return Ii({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()})},gd=({el:e,serverURL:t,count:n,locale:r,lang:i=navigator.language,mode:s="list"})=>{const l=di(e),o=new AbortController;return Mi({serverURL:t,pageSize:n,lang:i,signal:o.signal}).then(a=>!l||!a.length?{users:a,destroy:()=>o.abort()}:(r={...Wi(i),...typeof r=="object"?r:{}},l.innerHTML=``,{users:a,destroy:()=>{o.abort(),l.innerHTML=""}}))};re.RecentComments=pd,re.UserList=gd,re.addComment=Si,re.commentCount=Jl,re.defaultLocales=Pn,re.deleteComment=Ri,re.fetchCommentCount=Ai,re.getArticleCounter=xr,re.getComment=$i,re.getPageview=Ei,re.getRecentComment=Ii,re.getUserList=Mi,re.init=dd,re.login=Ti,re.pageviewCount=fo,re.updateArticleCounter=On,re.updateComment=Xt,re.updatePageview=Li,re.version=co}); diff --git a/layouts/partials/single/comment.html b/layouts/partials/single/comment.html index 5093ed93e..2664fb5af 100644 --- a/layouts/partials/single/comment.html +++ b/layouts/partials/single/comment.html @@ -145,13 +145,13 @@ {{- /* Waline Comment System */ -}} {{- /* see https://waline.js.org/reference/component.html */ -}} - {{- /* TODO adapted to Waline 2.15.8 */ -}} + {{- /* TODO adapted to Waline 3.4.1 */ -}} {{- $waline := $comment.waline | default dict -}} {{- if $waline.enable -}}
    {{- $source := $cdn.walineCSS | default "lib/waline/waline.css" -}} {{- dict "Source" $source "Fingerprint" $fingerprint | dict "Scratch" .Scratch "Data" | partial "scratch/style.html" -}} - {{- $source := $cdn.walineJS | default "lib/waline/waline.js" -}} + {{- $source := $cdn.walineJS | default "lib/waline/waline.umd.js" -}} {{- dict "Source" $source "Fingerprint" $fingerprint "Defer" true | dict "Scratch" .Scratch "Data" | partial "scratch/script.html" -}} {{- $commentConfig = dict "el" "#waline" "serverURL" $waline.serverURL "lang" .Lang "dark" "html[data-theme='dark']" | dict "waline" | merge $commentConfig -}} {{- $commentConfig = dict "copyright" true "imageUploader" false "highlighter" false "texRenderer" false "search" false | dict "waline" | merge $commentConfig -}}