From 866203a4ce74bea49871e2343c8ad2c2e2e2bca8 Mon Sep 17 00:00:00 2001 From: Mejituu Date: Wed, 1 Feb 2023 14:19:29 +0800 Subject: [PATCH] :sparkles: Feat: add some new features and bug fixes (#279) * :sparkles: Feat: add instant page * :bug: Fix: donate images without lazy loading * :wrench: Chore: update waline plugin version --- assets/data/cdn/jsdelivr.yml | 8 +++++--- assets/data/cdn/unpkg.yml | 8 +++++--- assets/lib/VERSION | 3 ++- assets/lib/instant-page/instantpage.min.js | 1 + assets/lib/waline/waline.css | 2 +- assets/lib/waline/waline.js | 2 +- config.toml | 4 ++++ layouts/partials/assets.html | 6 ++++++ layouts/partials/plugin/reward.html | 2 +- layouts/partials/single/comment.html | 3 +++ 10 files changed, 29 insertions(+), 10 deletions(-) create mode 100644 assets/lib/instant-page/instantpage.min.js diff --git a/assets/data/cdn/jsdelivr.yml b/assets/data/cdn/jsdelivr.yml index 4fcfd39f..30000d8b 100644 --- a/assets/data/cdn/jsdelivr.yml +++ b/assets/data/cdn/jsdelivr.yml @@ -40,6 +40,8 @@ libFiles: # gitalk@1.7.2 https://github.com/gitalk/gitalk gitalkCSS: gitalk@1.7.2/dist/gitalk.min.css gitalkJS: gitalk@1.7.2/dist/gitalk.min.js + # instant.page@5.1.1 https://github.com/instantpage/instant.page + instantPage: 'instant.page@5.1.1/instantpage.min.js' # katex@0.16.2 https://github.com/KaTeX/KaTeX katexAutoRenderJS: katex@0.16.2/dist/contrib/auto-render.min.js katexCopyTexJS: katex@0.16.2/dist/contrib/copy-tex.min.js @@ -80,7 +82,7 @@ libFiles: valineJS: valine@1.5.1/dist/Valine.min.js # vconsole@3.14.6 https://github.com/Tencent/vConsole vconsoleJS: vconsole@3.14.6/dist/vconsole.min.js - # waline@2.10.0 https://github.com/walinejs/waline - walineCSS: '@waline/client@2.10.0/dist/waline.css' - walineJS: '@waline/client@2.10.0/dist/waline.js' + # waline@2.14.7 https://github.com/walinejs/waline + walineCSS: '@waline/client@2.14.7/dist/waline.css' + walineJS: '@waline/client@2.14.7/dist/waline.js' \ No newline at end of file diff --git a/assets/data/cdn/unpkg.yml b/assets/data/cdn/unpkg.yml index 23dc27cc..2e7becf6 100644 --- a/assets/data/cdn/unpkg.yml +++ b/assets/data/cdn/unpkg.yml @@ -40,6 +40,8 @@ libFiles: # gitalk@1.7.2 https://github.com/gitalk/gitalk gitalkCSS: gitalk@1.7.2/dist/gitalk.min.css gitalkJS: gitalk@1.7.2/dist/gitalk.min.js + # instant.page@5.1.1 https://github.com/instantpage/instant.page + instantPage: 'instant.page@5.1.1/instantpage.min.js' # katex@0.16.2 https://github.com/KaTeX/KaTeX katexAutoRenderJS: katex@0.16.2/dist/contrib/auto-render.min.js katexCopyTexJS: katex@0.16.2/dist/contrib/copy-tex.min.js @@ -80,7 +82,7 @@ libFiles: valineJS: valine@1.5.1/dist/Valine.min.js # vconsole@3.14.6 https://github.com/Tencent/vConsole vconsoleJS: vconsole@3.14.6/dist/vconsole.min.js - # waline@2.10.0 https://github.com/walinejs/waline - walineCSS: '@waline/client@2.10.0/dist/waline.css' - walineJS: '@waline/client@2.10.0/dist/waline.js' + # waline@2.14.7 https://github.com/walinejs/waline + walineCSS: '@waline/client@2.14.7/dist/waline.css' + walineJS: '@waline/client@2.14.7/dist/waline.js' \ No newline at end of file diff --git a/assets/lib/VERSION b/assets/lib/VERSION index 86c286a2..92fbb0f7 100644 --- a/assets/lib/VERSION +++ b/assets/lib/VERSION @@ -12,6 +12,7 @@ eruda@2.5.0 https://github.com/liriliri/eruda fontawesome-free@6.2.0 https://github.com/FortAwesome/Font-Awesome fusejs@6.6.2 https://github.com/krisk/fuse gitalk@1.7.2 https://github.com/gitalk/gitalk +instant.page@5.1.1 https://github.com/instantpage/instant.page katex@0.16.2 https://github.com/KaTeX/KaTeX lazysizes@5.3.2 https://github.com/aFarkas/lazysizes lightgallery@2.6.1 https://github.com/sachinchoolur/lightgallery @@ -29,4 +30,4 @@ twikoo@1.6.8 https://github.com/imaegoo/twikoo typeit@8.7.0 https://github.com/alexmacarthur/typeit valine@1.5.1 https://github.com/xCss/Valine vconsole@3.14.6 https://github.com/Tencent/vConsole -waline@2.10.0 https://github.com/walinejs/waline +waline@2.14.7 https://github.com/walinejs/waline diff --git a/assets/lib/instant-page/instantpage.min.js b/assets/lib/instant-page/instantpage.min.js new file mode 100644 index 00000000..7a2d5486 --- /dev/null +++ b/assets/lib/instant-page/instantpage.min.js @@ -0,0 +1 @@ +(()=>{var o,u,f=new Set,b=document.createElement("link").relList.supports("prefetch"),y="instantAllowQueryString"in document.body.dataset,E="instantAllowExternalLinks"in document.body.dataset,L="instantWhitelist"in document.body.dataset,m="instantMousedownShortcut"in document.body.dataset,h=1111,p=65,w=!1,v=!1,c=!1,g=null;navigator.userAgentData&&navigator.userAgentData.brands.forEach(({brand:t,version:e})=>{t=="Chromium"&&(g=parseInt(e))});if("instantIntensity"in document.body.dataset){let t=document.body.dataset.instantIntensity;if(t.startsWith("mousedown"))w=!0,t=="mousedown-only"&&(v=!0);else if(t.startsWith("viewport"))navigator.connection&&(navigator.connection.saveData||navigator.connection.effectiveType&&navigator.connection.effectiveType.includes("2g"))||(t=="viewport"?document.documentElement.clientWidth*document.documentElement.clientHeight<45e4&&(c=!0):t=="viewport-all"&&(c=!0));else{let e=parseInt(t);isNaN(e)||(p=e)}}if(b){let t={capture:!0,passive:!0};if(v||document.addEventListener("touchstart",I,t),w?m||document.addEventListener("mousedown",O,t):document.addEventListener("mouseover",T,t),m&&document.addEventListener("mousedown",A,t),c){let e=window.requestIdleCallback;e||(e=n=>{n()}),e(function(){let i=new IntersectionObserver(s=>{s.forEach(l=>{if(l.isIntersecting){let d=l.target;i.unobserve(d),a(d.href)}})});document.querySelectorAll("a").forEach(s=>{r(s)&&i.observe(s)})},{timeout:1500})}}function I(t){u=performance.now();let e=t.target.closest("a");r(e)&&a(e.href,"high")}function T(t){if(performance.now()-u{a(e.href,"high"),o=void 0},p))}function O(t){let e=t.target.closest("a");r(e)&&a(e.href,"high")}function k(t){t.relatedTarget&&t.target.closest("a")==t.relatedTarget.closest("a")||o&&(clearTimeout(o),o=void 0)}function A(t){if(performance.now()-u1||t.metaKey||t.ctrlKey||!e)return;e.addEventListener("click",function(i){i.detail!=1337&&i.preventDefault()},{capture:!0,passive:!1,once:!0});let n=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1,detail:1337});e.dispatchEvent(n)}function r(t){if(!(!t||!t.href)&&!(L&&!("instant"in t.dataset))&&!(t.origin!=location.origin&&(!(E||"instant"in t.dataset)||!g))&&["http:","https:"].includes(t.protocol)&&!(t.protocol=="http:"&&location.protocol=="https:")&&!(!y&&t.search&&!("instant"in t.dataset))&&!(t.hash&&t.pathname+t.search==location.pathname+location.search)&&!("noInstant"in t.dataset))return!0}function a(t,e="auto"){if(f.has(t))return;let n=document.createElement("link");n.rel="prefetch",n.href=t,n.fetchPriority=e,n.as="document",document.head.appendChild(n),f.add(t)}})(); \ No newline at end of file diff --git a/assets/lib/waline/waline.css b/assets/lib/waline/waline.css index 394c1134..04bc8e42 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:left}[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-left:8px solid var(--waline-bq-color);color:var(--waline-dark-grey)}[data-waline] blockquote>p{margin:0}[data-waline] ol,[data-waline] ul{margin-left: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;right:-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;right:-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,.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-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-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.actived{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-left:.75em}.wl-info button svg{display:block;margin:0 auto;line-height:18px}.wl-emoji-popup{position:absolute;top:100%;left:1.25em;z-index:10;max-width:526px;border:var(--waline-border);border-radius:6px;background:var(--waline-bgcolor);box-shadow:var(--waline-box-shadow);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:scroll;height:2em;padding:0 6px 1px;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%;left: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-item{position:relative;display:flex;padding:.5em}.wl-cards .wl-item:last-child .wl-card{border-bottom:none}.wl-cards .wl-card .wl-item{padding-right:0}.wl-cards .wl-user{--avatar-size: var(--waline-avatar-size);position:relative;margin-right:.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);left:calc(var(--avatar-size)*3/4);border-radius:50%;background:var(--waline-bgcolor);box-shadow:var(--waline-box-shadow)}.wl-card{flex:1;width:0;padding-bottom:.5em;border-bottom:1px dashed var(--waline-border-color)}.wl-card:first-child{margin-left:1em}.wl-card .wl-head{line-height:1.5}.wl-card .wl-nick{position:relative;display:inline-block;margin-right:.5em;font-weight:bold;font-size:.875em;line-height:1;text-decoration:none}.wl-card .wl-nick svg{position:relative;bottom:-0.125em;line-height:1}.wl-card span.wl-nick{color:var(--waline-dark-grey)}.wl-card .wl-badge{display:inline-block;margin-right: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-right:.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-right:.25em;padding:2px 4px;border-radius:.2em;background:var(--waline-info-bgcolor);color:var(--waline-info-color);font-size:var(--waline-info-font-size);line-height:1.5}.wl-card .wl-meta>span:empty{display:none}.wl-card .wl-comment-actions{float:right}.wl-card .wl-delete,.wl-card .wl-like,.wl-card .wl-reply,.wl-card .wl-edit{display:inline-flex;align-items:center;padding:4px;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;left: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;left:0;z-index:999;display:block;width:100%;height:3.15em;background:rgba(255,255,255,.9);color:#828586;line-height:3.15em;text-align:center}.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-right:0;border-radius:.5em 0 0 .5em}.wl-card .wl-comment-status .wl-btn:last-child{border-left:0;border-radius:0 .5em .5em 0}.wl-card .wl-quote{border-left: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-right:.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:right}.wl-meta-head{display:flex;flex-direction:row;align-items:center;padding:.375em}ul.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+li{margin-left:1em}.wl-sort li.active{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}.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} +: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-head{overflow:hidden;line-height:1.5}.wl-card .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 .wl-nick svg{position:relative;bottom:-0.125em;line-height:1}.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)} diff --git a/assets/lib/waline/waline.js b/assets/lib/waline/waline.js index 081888ef..69bb8ea0 100644 --- a/assets/lib/waline/waline.js +++ b/assets/lib/waline/waline.js @@ -1 +1 @@ -!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.RecentComments=void 0;const t=["nick","mail","link"],n=e=>e.filter((e=>t.includes(e))),r="zh-CN",o=e=>new Promise(((t,n)=>{if(e.size>128e3)return n(new Error("File too large! File size limit 128KB"));const r=new FileReader;r.readAsDataURL(e),r.onload=()=>{var e;return t((null===(e=r.result)||void 0===e?void 0:e.toString())||"")},r.onerror=n})),i=e=>!0===e?'

Tex is not available in preview

':'Tex is not available in preview',l=()=>{const e={next:""},t=e=>{let{keyword:t,pos:n}=e;const r=new URLSearchParams("media_filter=minimal");return r.set("key","PAY5JLFIH6V6"),r.set("limit","20"),r.set("pos",n||""),r.set("q",t),fetch(`https://g.tenor.com/v1/search?${r.toString()}`,{headers:{"Content-Type":"application/json"}}).then((e=>e.json())).catch((()=>({next:n||"",results:[]})))};return{search:function(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t({keyword:n}).then((t=>(e.next=t.next,t.results.map((e=>({title:e.title,src:e.media[0].tinygif.url}))))))},more:n=>t({keyword:n,pos:e.next}).then((t=>(e.next=t.next,t.results.map((e=>({title:e.title,src:e.media[0].tinygif.url}))))))}},s=new RegExp(`(${/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/.source}|${/{let t=0;return e.replace(s,((e,n,r)=>{if(r)return`${r}`;if("<"===n)return"<";let o;c[n]?o=c[n]:(o=a[t],c[n]=o);const i=`${n}`;return t=++t%a.length,i}))},d=["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"],p=e=>Object.fromEntries(e.map(((e,t)=>[d[t],e])));var h=p(["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"]),f=p(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","Like","Cancel like","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード","コメントは $0 から $1 ワードの間でなければなりません!\n 現在の単語番号: $2","匿名","うえにん","なかにん","しもおし","特にしもおし","かげ","なぬし","GIF","探す GIF","個人情報","承認済み","待っている","スパム","べたつかない","逆順","正順","人気順"]),g=p(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","喜欢","取消喜欢","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字","评论字数应在 $0 到 $1 字之间!\n当前字数:$2","匿名","潜水","冒泡","吐槽","活跃","话痨","传说","表情包","搜索表情包","个人资料","通过","待审核","垃圾","取消置顶","按倒序","按正序","按热度"]),m=p(["暱稱","暱稱不能少於3個字元","郵箱","請填寫正確的郵件地址","網址","可選","歡迎評論","來發評論吧~","提交","喜歡","取消喜歡","回覆","取消回覆","評論","刷新","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登錄","退出","博主","置頂","字","評論字數應在 $0 到 $1 字之間!\n當前字數:$2","匿名","潛水","冒泡","吐槽","活躍","話癆","傳說","表情包","搜索表情包","個人資料","通過","待審核","垃圾","取消置頂","按倒序","按正序","按熱度"]),v=p(["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"]),y=p(["Псевдоним","Никнейм не может быть меньше 3 байт.","Эл. адрес","Пожалуйста, подтвердите адрес вашей электронной почты.","Веб-сайт","Необязательный","Комментарий здесь...","Пока нет комментариев.","Отправить","Like","Cancel like","Отвечать","Отменить ответ","Комментарии","Обновить","Загрузи больше...","Превью","эмодзи","Загрузить изображение","секунд назад","несколько минут назад","несколько часов назад","дней назад","прямо сейчас","Загрузка","Авторизоваться","Выход из системы","Админ","Липкий","Слова","Пожалуйста, введите комментарии от $0 до $1 слов!\nНомер текущего слова: $2","Анонимный","Dwarves","Hobbits","Ents","Wizards","Elves","Maiar","GIF","Поиск GIF","Персональные данные","Одобренный","Ожидающий","Спам","Нелипкий","самый старый","последний","самый горячий"]);const w={zh:g,"zh-cn":g,"zh-CN":g,"zh-tw":m,"zh-TW":m,en:h,"en-US":h,"en-us":h,jp:f,"jp-jp":f,"jp-JP":f,"pt-br":v,"pt-BR":v,ru:y,"ru-ru":y,"ru-RU":y};function b(e,t){const n=Object.create(null),r=e.split(",");for(let e=0;e!!n[e.toLowerCase()]:e=>!!n[e]}e.defaultLocales=w;const k=b("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function x(e){return!!e||""===e}function _(e){if(B(e)){const t={};for(let n=0;n{if(e){const n=e.split(S);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function I(e){let t="";if(G(e))t=e;else if(B(e))for(let n=0;nE(e,t)))}const L=e=>G(e)?e:null==e?"":B(e)||Q(e)&&(e.toString===Y||!Z(e.toString))?JSON.stringify(e,A,2):String(e),A=(e,t)=>t&&t.__v_isRef?A(e,t.value):H(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,t)=>{let[n,r]=t;return e[`${n} =>`]=r,e}),{})}:W(t)?{[`Set(${t.size})`]:[...t.values()]}:!Q(t)||B(t)||ee(t)?t:String(t),z={},O=[],j=()=>{},T=()=>!1,P=/^on[^a-z]/,M=e=>P.test(e),U=e=>e.startsWith("onUpdate:"),N=Object.assign,F=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},D=Object.prototype.hasOwnProperty,V=(e,t)=>D.call(e,t),B=Array.isArray,H=e=>"[object Map]"===X(e),W=e=>"[object Set]"===X(e),q=e=>"[object Date]"===X(e),Z=e=>"function"==typeof e,G=e=>"string"==typeof e,K=e=>"symbol"==typeof e,Q=e=>null!==e&&"object"==typeof e,J=e=>Q(e)&&Z(e.then)&&Z(e.catch),Y=Object.prototype.toString,X=e=>Y.call(e),ee=e=>"[object Object]"===X(e),te=e=>G(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,ne=b(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),re=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},oe=/-(\w)/g,ie=re((e=>e.replace(oe,((e,t)=>t?t.toUpperCase():"")))),le=/\B([A-Z])/g,se=re((e=>e.replace(le,"-$1").toLowerCase())),ae=re((e=>e.charAt(0).toUpperCase()+e.slice(1))),ce=re((e=>e?`on${ae(e)}`:"")),ue=(e,t)=>!Object.is(e,t),de=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},he=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let fe;let ge;class me{constructor(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.active=!0,this.effects=[],this.cleanups=[],!e&&ge&&(this.parent=ge,this.index=(ge.scopes||(ge.scopes=[])).push(this)-1)}run(e){if(this.active){const t=ge;try{return ge=this,e()}finally{ge=t}}}on(){ge=this}off(){ge=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},ye=e=>(e.w&xe)>0,we=e=>(e.n&xe)>0,be=new WeakMap;let ke=0,xe=1;let _e;const Ce=Symbol(""),Se=Symbol("");class $e{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]:ge;t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=_e,t=Ee;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=_e,_e=this,Ee=!0,xe=1<<++ke,ke<=30?(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"===t||t>=r)&&s.push(e)}));else switch(void 0!==n&&s.push(l.get(n)),t){case"add":B(e)?te(n)&&s.push(l.get("length")):(s.push(l.get(Ce)),H(e)&&s.push(l.get(Se)));break;case"delete":B(e)||(s.push(l.get(Ce)),H(e)&&s.push(l.get(Se)));break;case"set":H(e)&&s.push(l.get(Ce))}if(1===s.length)s[0]&&Te(s[0]);else{const e=[];for(const t of s)t&&e.push(...t);Te(ve(e))}}function Te(e,t){const n=B(e)?e:[...e];for(const e of n)e.computed&&Pe(e);for(const e of n)e.computed||Pe(e)}function Pe(e,t){(e!==_e||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Me=b("__proto__,__v_isRef,__isVue"),Ue=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(K)),Ne=He(),Fe=He(!1,!0),De=He(!0),Ve=Be();function Be(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(){const e=Rt(this);for(let t=0,n=this.length;t{e[t]=function(){Le();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,o){if("__v_isReactive"===r)return!e;if("__v_isReadonly"===r)return e;if("__v_isShallow"===r)return t;if("__v_raw"===r&&o===(e?t?wt:yt:t?vt:mt).get(n))return n;const i=B(n);if(!e&&i&&V(Ve,r))return Reflect.get(Ve,r,o);const l=Reflect.get(n,r,o);return(K(r)?Ue.has(r):Me(r))?l:(e||ze(n,0,r),t?l:Tt(l)?i&&te(r)?l:l.value:Q(l)?e?_t(l):kt(l):l)}}function We(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n,r,o){let i=t[n];if($t(i)&&Tt(i)&&!Tt(r))return!1;if(!e&&(It(r)||$t(r)||(i=Rt(i),r=Rt(r)),!B(t)&&Tt(i)&&!Tt(r)))return i.value=r,!0;const l=B(t)&&te(n)?Number(n)!0,deleteProperty:(e,t)=>!0},Ge=N({},qe,{get:Fe,set:We(!0)}),Ke=e=>e,Qe=e=>Reflect.getPrototypeOf(e);function Je(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const o=Rt(e=e.__v_raw),i=Rt(t);n||(t!==i&&ze(o,0,t),ze(o,0,i));const{has:l}=Qe(o),s=r?Ke:n?zt:At;return l.call(o,t)?s(e.get(t)):l.call(o,i)?s(e.get(i)):void(e!==o&&e.get(t))}function Ye(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.__v_raw,r=Rt(n),o=Rt(e);return t||(e!==o&&ze(r,0,e),ze(r,0,o)),e===o?n.has(e):n.has(e)||n.has(o)}function Xe(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e=e.__v_raw,!t&&ze(Rt(e),0,Ce),Reflect.get(e,"size",e)}function et(e){e=Rt(e);const t=Rt(this);return Qe(t).has.call(t,e)||(t.add(e),je(t,"add",e,e)),this}function tt(e,t){t=Rt(t);const n=Rt(this),{has:r,get:o}=Qe(n);let i=r.call(n,e);i||(e=Rt(e),i=r.call(n,e));const l=o.call(n,e);return n.set(e,t),i?ue(t,l)&&je(n,"set",e,t):je(n,"add",e,t),this}function nt(e){const t=Rt(this),{has:n,get:r}=Qe(t);let o=n.call(t,e);o||(e=Rt(e),o=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return o&&je(t,"delete",e,void 0),i}function rt(){const e=Rt(this),t=0!==e.size,n=e.clear();return t&&je(e,"clear",void 0,void 0),n}function ot(e,t){return function(n,r){const o=this,i=o.__v_raw,l=Rt(i),s=t?Ke:e?zt:At;return!e&&ze(l,0,Ce),i.forEach(((e,t)=>n.call(r,s(e),s(t),o)))}}function it(e,t,n){return function(){const r=this.__v_raw,o=Rt(r),i=H(o),l="entries"===e||e===Symbol.iterator&&i,s="keys"===e&&i,a=r[e](...arguments),c=n?Ke:t?zt:At;return!t&&ze(o,0,s?Se:Ce),{next(){const{value:e,done:t}=a.next();return t?{value:e,done:t}:{value:l?[c(e[0]),c(e[1])]:c(e),done:t}},[Symbol.iterator](){return this}}}}function lt(e){return function(){return"delete"!==e&&this}}function st(){const e={get(e){return Je(this,e)},get size(){return Xe(this)},has:Ye,add:et,set:tt,delete:nt,clear:rt,forEach:ot(!1,!1)},t={get(e){return Je(this,e,!1,!0)},get size(){return Xe(this)},has:Ye,add:et,set:tt,delete:nt,clear:rt,forEach:ot(!1,!0)},n={get(e){return Je(this,e,!0)},get size(){return Xe(this,!0)},has(e){return Ye.call(this,e,!0)},add:lt("add"),set:lt("set"),delete:lt("delete"),clear:lt("clear"),forEach:ot(!0,!1)},r={get(e){return Je(this,e,!0,!0)},get size(){return Xe(this,!0)},has(e){return Ye.call(this,e,!0)},add:lt("add"),set:lt("set"),delete:lt("delete"),clear:lt("clear"),forEach:ot(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((o=>{e[o]=it(o,!1,!1),n[o]=it(o,!0,!1),t[o]=it(o,!1,!0),r[o]=it(o,!0,!0)})),[e,n,t,r]}const[at,ct,ut,dt]=st();function pt(e,t){const n=t?e?dt:ut:e?ct:at;return(t,r,o)=>"__v_isReactive"===r?!e:"__v_isReadonly"===r?e:"__v_raw"===r?t:Reflect.get(V(n,r)&&r in t?n:t,r,o)}const ht={get:pt(!1,!1)},ft={get:pt(!1,!0)},gt={get:pt(!0,!1)},mt=new WeakMap,vt=new WeakMap,yt=new WeakMap,wt=new WeakMap;function bt(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>X(e).slice(8,-1))(e))}function kt(e){return $t(e)?e:Ct(e,!1,qe,ht,mt)}function xt(e){return Ct(e,!1,Ge,ft,vt)}function _t(e){return Ct(e,!0,Ze,gt,yt)}function Ct(e,t,n,r,o){if(!Q(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=o.get(e);if(i)return i;const l=bt(e);if(0===l)return e;const s=new Proxy(e,2===l?r:n);return o.set(e,s),s}function St(e){return $t(e)?St(e.__v_raw):!(!e||!e.__v_isReactive)}function $t(e){return!(!e||!e.__v_isReadonly)}function It(e){return!(!e||!e.__v_isShallow)}function Et(e){return St(e)||$t(e)}function Rt(e){const t=e&&e.__v_raw;return t?Rt(t):e}function Lt(e){return pe(e,"__v_skip",!0),e}const At=e=>Q(e)?kt(e):e,zt=e=>Q(e)?_t(e):e;function Ot(e){Ee&&_e&&Oe((e=Rt(e)).dep||(e.dep=ve()))}function jt(e,t){(e=Rt(e)).dep&&Te(e.dep)}function Tt(e){return!(!e||!0!==e.__v_isRef)}function Pt(e){return Ut(e,!1)}function Mt(e){return Ut(e,!0)}function Ut(e,t){return Tt(e)?e:new Nt(e,t)}class Nt{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Rt(e),this._value=t?e:At(e)}get value(){return Ot(this),this._value}set value(e){const t=this.__v_isShallow||It(e)||$t(e);e=t?e:Rt(e),ue(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:At(e),jt(this))}}function Ft(e){return Tt(e)?e.value:e}const Dt={get:(e,t,n)=>Ft(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Tt(o)&&!Tt(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function Vt(e){return St(e)?e:new Proxy(e,Dt)}var Bt;class Ht{constructor(e,t,n,r){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this[Bt]=!1,this._dirty=!0,this.effect=new $e(e,(()=>{this._dirty||(this._dirty=!0,jt(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=n}get value(){const e=Rt(this);return Ot(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function Wt(e,t,n,r){let o;try{o=r?e(...r):e()}catch(e){Zt(e,t,n)}return o}function qt(e,t,n,r){if(Z(e)){const o=Wt(e,t,n,r);return o&&J(o)&&o.catch((e=>{Zt(e,t,n)})),o}const o=[];for(let i=0;i3&&void 0!==arguments[3])||arguments[3];const o=t?t.vnode:null;if(t){let r=t.parent;const o=t.proxy,i=n;for(;r;){const t=r.ec;if(t)for(let n=0;n>>1;un(Jt[r])1&&void 0!==arguments[1]?arguments[1]:Kt?Yt+1:0;for(;tun(e)-un(t))),tn=0;tnnull==e.id?1/0:e.id,dn=(e,t)=>{const n=un(e)-un(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function pn(e){Qt=!1,Kt=!0,Jt.sort(dn);try{for(Yt=0;Yt2?r-2:0),i=2;ie.trim()))),t&&(l=o.map(he))}let c,u=n[c=ce(t)]||n[c=ce(ie(t))];!u&&s&&(u=n[c=ce(se(t))]),u&&qt(u,e,6,l);const d=n[c+"Once"];if(d){if(e.emitted){if(e.emitted[c])return}else e.emitted={};e.emitted[c]=!0,qt(d,e,6,l)}}function fn(e,t){const n=t.emitsCache,r=n.get(e);if(void 0!==r)return r;const o=e.emits;let i={},l=!1;return o||l?(B(o)?o.forEach((e=>i[e]=null)):N(i,o),Q(e)&&n.set(e,i),i):(Q(e)&&n.set(e,null),null)}function gn(e,t){return!(!e||!M(t))&&(t=t.slice(2).replace(/Once$/,""),V(e,t[0].toLowerCase()+t.slice(1))||V(e,se(t))||V(e,t))}let mn=null,vn=null;function yn(e){const t=mn;return mn=e,vn=e&&e.type.__scopeId||null,t}function wn(e){const{type:t,vnode:n,proxy:r,withProxy:o,props:i,propsOptions:[l],slots:s,attrs:a,emit:c,render:u,renderCache:d,data:p,setupState:h,ctx:f,inheritAttrs:g}=e;let m,v;const y=yn(e);try{if(4&n.shapeFlag){const e=o||r;m=Nr(u.call(e,e,d,i,h,p,f)),v=a}else{const e=t;m=Nr(e.length>1?e(i,{attrs:a,slots:s,emit:c}):e(i,null)),v=t.props?a:bn(a)}}catch(t){br.length=0,Zt(t,e,1),m=jr(yr)}let w=m;if(v&&!1!==g){const e=Object.keys(v),{shapeFlag:t}=w;e.length&&7&t&&(l&&e.some(U)&&(v=kn(v,l)),w=Pr(w,v))}return n.dirs&&(w=Pr(w),w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&(w.transition=n.transition),m=w,yn(y),m}const bn=e=>{let t;for(const n in e)("class"===n||"style"===n||M(n))&&((t||(t={}))[n]=e[n]);return t},kn=(e,t)=>{const n={};for(const r in e)U(r)&&r.slice(9)in t||(n[r]=e[r]);return n};function xn(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let o=0;oe.__isSuspense;function Cn(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=qr||mn;if(r){const o=null==r.parent?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(o&&e in o)return o[e];if(arguments.length>1)return n&&Z(t)?t.call(r.proxy):t}}function Sn(e,t){return En(e,null,t)}const $n={};function In(e,t,n){return En(e,t,n)}function En(e,t){let{immediate:n,deep:r,flush:o,onTrack:i,onTrigger:l}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:z;const s=qr;let a,c,u=!1,d=!1;if(Tt(e)?(a=()=>e.value,u=It(e)):St(e)?(a=()=>e,r=!0):B(e)?(d=!0,u=e.some((e=>St(e)||It(e))),a=()=>e.map((e=>Tt(e)?e.value:St(e)?Rn(e):Z(e)?Wt(e,s,2):void 0))):a=Z(e)?t?()=>Wt(e,s,2):()=>{if(!s||!s.isUnmounted)return c&&c(),qt(e,s,3,[p])}:j,t&&r){const e=a;a=()=>Rn(e())}let p=e=>{c=m.onStop=()=>{Wt(e,s,4)}};if(Jr)return p=j,t?n&&qt(t,s,3,[a(),d?[]:void 0,p]):a(),j;let h=d?[]:$n;const f=()=>{if(m.active)if(t){const e=m.run();(r||u||(d?e.some(((e,t)=>ue(e,h[t]))):ue(e,h)))&&(c&&c(),qt(t,s,3,[e,h===$n?void 0:h,p]),h=e)}else m.run()};let g;f.allowRecurse=!!t,"sync"===o?g=f:"post"===o?g=()=>dr(f,s&&s.suspense):(f.pre=!0,s&&(f.id=s.uid),g=()=>ln(f));const m=new $e(a,g);return t?n?f():h=m.run():"post"===o?dr(m.run.bind(m),s&&s.suspense):m.run(),()=>{m.stop(),s&&s.scope&&F(s.scope.effects,m)}}function Rn(e,t){if(!Q(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),Tt(e))Rn(e.value,t);else if(B(e))for(let n=0;n{Rn(e,t)}));else if(ee(e))for(const n in e)Rn(e[n],t);return e}function Ln(e){return Z(e)?{setup:e,name:e.name}:e}const An=e=>!!e.type.__asyncLoader;function zn(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:qr,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(n){const o=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=function(){if(n.isUnmounted)return;Le(),Gr(n);for(var r=arguments.length,o=new Array(r),i=0;ifunction(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:qr;return(!Jr||"sp"===e)&&zn(e,t,n)},jn=On("m"),Tn=On("bum"),Pn=On("um");function Mn(e,t){const n=mn;if(null===n)return e;const r=to(n)||n.proxy,o=e.dirs||(e.dirs=[]);for(let e=0;e3&&void 0!==arguments[3]&&arguments[3];const r=mn||qr;if(r){const o=r.type;if(e===Nn){const e=no(o,!1);if(e&&(e===t||e===ie(t)||e===ae(ie(t))))return o}const i=Vn(r[e]||o[e],t)||Vn(r.appContext[e],t);return!i&&n?o:i}}(Nn,e,!0,t)||e}const Dn=Symbol();function Vn(e,t){return e&&(e[t]||e[ie(t)]||e[ae(ie(t))])}function Bn(e,t,n,r){let o;const i=n&&n[r];if(B(e)||G(e)){o=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);o=new Array(n.length);for(let r=0,l=n.length;re?Qr(e)?to(e)||e.proxy:Hn(e.parent):null,Wn=N(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=>Hn(e.parent),$root:e=>Hn(e.root),$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>e.f||(e.f=()=>ln(e.update)),$nextTick:e=>e.n||(e.n=on.bind(e.proxy)),$watch:e=>j}),qn={get(e,t){let{_:n}=e;const{ctx:r,setupState:o,data:i,props:l,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 o[t];case 2:return i[t];case 4:return r[t];case 3:return l[t]}else{if(o!==z&&V(o,t))return s[t]=1,o[t];if(i!==z&&V(i,t))return s[t]=2,i[t];if((u=n.propsOptions[0])&&V(u,t))return s[t]=3,l[t];if(r!==z&&V(r,t))return s[t]=4,r[t];s[t]=0}}const d=Wn[t];let p,h;return d?("$attrs"===t&&ze(n,0,t),d(n)):(p=a.__cssModules)&&(p=p[t])?p:r!==z&&V(r,t)?(s[t]=4,r[t]):(h=c.config.globalProperties,V(h,t)?h[t]:void 0)},set(e,t,n){let{_:r}=e;const{data:o,setupState:i,ctx:l}=r;return i!==z&&V(i,t)?(i[t]=n,!0):o!==z&&V(o,t)?(o[t]=n,!0):!V(r.props,t)&&(("$"!==t[0]||!(t.slice(1)in r))&&(l[t]=n,!0))},has(e,t){let n,{_:{data:r,setupState:o,accessCache:i,ctx:l,appContext:s,propsOptions:a}}=e;return!!i[t]||r!==z&&V(r,t)||o!==z&&V(o,t)||(n=a[0])&&V(n,t)||V(l,t)||V(Wn,t)||V(s.config.globalProperties,t)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:V(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function Zn(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const o={},i={};pe(i,Lr,1),e.propsDefaults=Object.create(null),Gn(e,t,o,i);for(const t in e.propsOptions[0])t in o||(o[t]=void 0);n?e.props=r?o:xt(o):e.type.props?e.props=o:e.props=i,e.attrs=i}function Gn(e,t,n,r){const[o,i]=e.propsOptions;let l,s=!1;if(t)for(let a in t){if(ne(a))continue;const c=t[a];let u;o&&V(o,u=ie(a))?i&&i.includes(u)?(l||(l={}))[u]=c:n[u]=c:gn(e.emitsOptions,a)||a in r&&c===r[a]||(r[a]=c,s=!0)}if(i){const t=Rt(n),r=l||z;for(let l=0;l-1,r[1]=n<0||e-1||V(r,"default"))&&l.push(t)}}}const a=[i,l];return Q(e)&&n.set(e,a),a}function Jn(e){return"$"!==e[0]}function Yn(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function Xn(e,t){return Yn(e)===Yn(t)}function er(e,t){return B(t)?t.findIndex((t=>Xn(t,e))):Z(t)&&Xn(t,e)?0:-1}const tr=e=>"_"===e[0]||"$stable"===e,nr=e=>B(e)?e.map(Nr):[Nr(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]:mn;if(!t)return e;if(e._n)return e;const n=function(){n._d&&Cr(-1);const r=yn(t),o=e(...arguments);return yn(r),n._d&&Cr(1),o};return n._n=!0,n._c=!0,n._d=!0,n}((function(){return nr(t(...arguments))}),n);return r._c=!1,r},or=(e,t,n)=>{const r=e._ctx;for(const n in e){if(tr(n))continue;const o=e[n];if(Z(o))t[n]=rr(0,o,r);else if(null!=o){const e=nr(o);t[n]=()=>e}}},ir=(e,t)=>{const n=nr(t);e.slots.default=()=>n},lr=(e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=Rt(t),pe(t,"_",n)):or(t,e.slots={})}else e.slots={},t&&ir(e,t);pe(e.slots,Lr,1)};function sr(){return{app:null,config:{isNativeTag:T,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 ar=0;function cr(e,t){return function(n){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;Z(n)||(n=Object.assign({},n)),null==r||Q(r)||(r=null);const o=sr(),i=new Set;let l=!1;const s=o.app={_uid:ar++,_component:n,_props:r,_container:null,_context:o,_instance:null,version:lo,get config(){return o.config},set config(e){},use(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;rs,component:(e,t)=>t?(o.components[e]=t,s):o.components[e],directive:(e,t)=>t?(o.directives[e]=t,s):o.directives[e],mount(i,a,c){if(!l){const u=jr(n,r);return u.appContext=o,a&&t?t(u,i):e(u,i,c),l=!0,s._container=i,i.__vue_app__=s,to(u.component)||u.component.proxy}},unmount(){l&&(e(null,s._container),delete s._container.__vue_app__)},provide:(e,t)=>(o.provides[e]=t,s)};return s}}function ur(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(B(e))return void e.forEach(((e,i)=>ur(e,t&&(B(t)?t[i]:t),n,r,o)));if(An(r)&&!o)return;const i=4&r.shapeFlag?to(r.component)||r.component.proxy:r.el,l=o?null:i,{i:s,r:a}=e,c=t&&t.r,u=s.refs===z?s.refs={}:s.refs,d=s.setupState;if(null!=c&&c!==a&&(G(c)?(u[c]=null,V(d,c)&&(d[c]=null)):Tt(c)&&(c.value=null)),Z(a))Wt(a,s,12,[l,u]);else{const t=G(a),r=Tt(a);if(t||r){const s=()=>{if(e.f){const n=t?u[a]:a.value;o?B(n)&&F(n,i):B(n)?n.includes(i)||n.push(i):t?(u[a]=[i],V(d,a)&&(d[a]=u[a])):(a.value=[i],e.k&&(u[e.k]=a.value))}else t?(u[a]=l,V(d,a)&&(d[a]=l)):r&&(a.value=l,e.k&&(u[e.k]=l))};l?(s.id=-1,dr(s,n)):s()}}}const dr=function(e,t){var n;t&&t.pendingBranch?B(e)?t.effects.push(...e):t.effects.push(e):(B(n=e)?Xt.push(...n):en&&en.includes(n,n.allowRecurse?tn+1:tn)||Xt.push(n),sn())};function pr(e){return function(e,t){(fe||(fe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{})).__VUE__=!0;const{insert:n,remove:r,patchProp:o,createElement:i,createText:l,createComment:s,setText:a,setElementText:c,parentNode:u,nextSibling:d,setScopeId:p=j,cloneNode:h,insertStaticContent:f}=e,g=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,l=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&&!Rr(e,t)&&(r=G(e),B(e,o,i,!0),e=null),-2===t.patchFlag&&(a=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:d}=t;switch(c){case vr:m(e,t,n,r);break;case yr:v(e,t,n,r);break;case wr:null==e&&y(t,n,r,l);break;case mr:E(e,t,n,r,o,i,l,s,a);break;default:1&d?k(e,t,n,r,o,i,l,s,a):6&d?R(e,t,n,r,o,i,l,s,a):(64&d||128&d)&&c.process(e,t,n,r,o,i,l,s,a,Q)}null!=u&&o&&ur(u,e&&e.ref,i,t||e,!t)},m=(e,t,r,o)=>{if(null==e)n(t.el=l(t.children),r,o);else{const n=t.el=e.el;t.children!==e.children&&a(n,t.children)}},v=(e,t,r,o)=>{null==e?n(t.el=s(t.children||""),r,o):t.el=e.el},y=(e,t,n,r)=>{[e.el,e.anchor]=f(e.children,t,n,r,e.el,e.anchor)},w=(e,t,r)=>{let o,{el:i,anchor:l}=e;for(;i&&i!==l;)o=d(i),n(i,t,r),i=o;n(l,t,r)},b=e=>{let t,{el:n,anchor:o}=e;for(;n&&n!==o;)t=d(n),r(n),n=t;r(o)},k=(e,t,n,r,o,i,l,s,a)=>{l=l||"svg"===t.type,null==e?x(t,n,r,o,i,l,s,a):S(e,t,o,i,l,s,a)},x=(e,t,r,l,s,a,u,d)=>{let p,f;const{type:g,props:m,shapeFlag:v,transition:y,patchFlag:w,dirs:b}=e;if(e.el&&void 0!==h&&-1===w)p=e.el=h(e.el);else{if(p=e.el=i(e.type,a,m&&m.is,m),8&v?c(p,e.children):16&v&&C(e.children,p,null,l,s,a&&"foreignObject"!==g,u,d),b&&Un(e,null,l,"created"),m){for(const t in m)"value"===t||ne(t)||o(p,t,null,m[t],a,e.children,l,s,Z);"value"in m&&o(p,"value",null,m.value),(f=m.onVnodeBeforeMount)&&Br(f,l,e)}_(p,e,e.scopeId,u,l)}b&&Un(e,null,l,"beforeMount");const k=(!s||s&&!s.pendingBranch)&&y&&!y.persisted;k&&y.beforeEnter(p),n(p,t,r),((f=m&&m.onVnodeMounted)||k||b)&&dr((()=>{f&&Br(f,l,e),k&&y.enter(p),b&&Un(e,null,l,"mounted")}),s)},_=(e,t,n,r,o)=>{if(n&&p(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:d,dirs:p}=t;u|=16&e.patchFlag;const h=e.props||z,f=t.props||z;let g;n&&hr(n,!1),(g=f.onVnodeBeforeUpdate)&&Br(g,n,t,e),p&&Un(t,e,n,"beforeUpdate"),n&&hr(n,!0);const m=i&&"foreignObject"!==t.type;if(d?$(e.dynamicChildren,d,a,n,r,m,l):s||M(e,t,a,null,n,r,m,l,!1),u>0){if(16&u)I(a,t,h,f,n,r,i);else if(2&u&&h.class!==f.class&&o(a,"class",null,f.class,i),4&u&&o(a,"style",h.style,f.style,i),8&u){const l=t.dynamicProps;for(let t=0;t{g&&Br(g,n,t,e),p&&Un(t,e,n,"updated")}),r)},$=(e,t,n,r,o,i,l)=>{for(let s=0;s{if(n!==r){for(const a in r){if(ne(a))continue;const c=r[a],u=n[a];c!==u&&"value"!==a&&o(e,a,u,c,s,t.children,i,l,Z)}if(n!==z)for(const a in n)ne(a)||a in r||o(e,a,n[a],null,s,t.children,i,l,Z);"value"in r&&o(e,"value",n.value,r.value)}},E=(e,t,r,o,i,s,a,c,u)=>{const d=t.el=e?e.el:l(""),p=t.anchor=e?e.anchor:l("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:g}=t;g&&(c=c?c.concat(g):g),null==e?(n(d,r,o),n(p,r,o),C(t.children,r,p,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)&&fr(e,t,!0)):M(e,t,r,p,i,s,a,c,u)},R=(e,t,n,r,o,i,l,s,a)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?o.ctx.activate(t,n,r,l,a):L(t,n,r,o,i,l,a):A(e,t,a)},L=(e,t,n,r,o,i,l)=>{const s=e.component=function(e,t,n){const r=e.type,o=(t?t.appContext:e.appContext)||Hr,i={uid:Wr++,vnode:e,type:r,parent:t,appContext:o,root:null,next:null,subTree:null,effect:null,update:null,scope:new me(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(o.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Qn(r,o),emitsOptions:fn(r,o),emit:null,emitted:null,propsDefaults:z,inheritAttrs:r.inheritAttrs,ctx:z,data:z,props:z,attrs:z,slots:z,refs:z,setupState:z,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};i.ctx={_:i},i.root=t?t.root:i,i.emit=hn.bind(null,i),e.ce&&e.ce(i);return i}(e,r,o);if(e.type.__isKeepAlive&&(s.ctx.renderer=Q),function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];Jr=t;const{props:n,children:r}=e.vnode,o=Qr(e);Zn(e,n,o,t),lr(e,r);const i=o?Yr(e,t):void 0;Jr=!1}(s),s.asyncDep){if(o&&o.registerDep(s,T),!e.el){const e=s.subTree=jr(yr);v(null,e,t,n)}}else T(s,e,t,n,o,i,l)},A=(e,t,n)=>{const r=t.component=e.component;if(function(e,t,n){const{props:r,children:o,component:i}=e,{props:l,children:s,patchFlag:a}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&a>=0))return!(!o&&!s||s&&s.$stable)||r!==l&&(r?!l||xn(r,l,c):!!l);if(1024&a)return!0;if(16&a)return r?xn(r,l,c):!!l;if(8&a){const e=t.dynamicProps;for(let t=0;tYt&&Jt.splice(t,1)}(r.update),r.update()}else t.el=e.el,r.vnode=t},T=(e,t,n,r,o,i,l)=>{const s=()=>{if(e.isMounted){let t,{next:n,bu:r,u:s,parent:a,vnode:c}=e,d=n;hr(e,!1),n?(n.el=c.el,P(e,n,l)):n=c,r&&de(r),(t=n.props&&n.props.onVnodeBeforeUpdate)&&Br(t,a,n,c),hr(e,!0);const p=wn(e),h=e.subTree;e.subTree=p,g(h,p,u(h.el),G(h),e,o,i),n.el=p.el,null===d&&function(e,t){let{vnode:n,parent:r}=e;for(;r&&r.subTree===n;)(n=r.vnode).el=t,r=r.parent}(e,p.el),s&&dr(s,o),(t=n.props&&n.props.onVnodeUpdated)&&dr((()=>Br(t,a,n,c)),o)}else{let l;const{el:s,props:a}=t,{bm:c,m:u,parent:d}=e,p=An(t);if(hr(e,!1),c&&de(c),!p&&(l=a&&a.onVnodeBeforeMount)&&Br(l,d,t),hr(e,!0),s&&Y){const n=()=>{e.subTree=wn(e),Y(s,e.subTree,e,o,null)};p?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const l=e.subTree=wn(e);g(null,l,n,r,e,o,i),t.el=l.el}if(u&&dr(u,o),!p&&(l=a&&a.onVnodeMounted)){const e=t;dr((()=>Br(l,d,e)),o)}(256&t.shapeFlag||d&&An(d.vnode)&&256&d.vnode.shapeFlag)&&e.a&&dr(e.a,o),e.isMounted=!0,t=n=r=null}},a=e.effect=new $e(s,(()=>ln(c)),e.scope),c=e.update=()=>a.run();c.id=e.uid,hr(e,!0),c()},P=(e,t,n)=>{t.component=e;const r=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,r){const{props:o,attrs:i,vnode:{patchFlag:l}}=e,s=Rt(o),[a]=e.propsOptions;let c=!1;if(!(r||l>0)||16&l){let r;Gn(e,t,o,i)&&(c=!0);for(const i in s)t&&(V(t,i)||(r=se(i))!==i&&V(t,r))||(a?!n||void 0===n[i]&&void 0===n[r]||(o[i]=Kn(a,s,i,void 0,e,!0)):delete o[i]);if(i!==s)for(const e in i)t&&V(t,e)||(delete i[e],c=!0)}else if(8&l){const n=e.vnode.dynamicProps;for(let r=0;r{const{vnode:r,slots:o}=e;let i=!0,l=z;if(32&r.shapeFlag){const e=t._;e?n&&1===e?i=!1:(N(o,t),n||1!==e||delete o._):(i=!t.$stable,or(t,o)),l=t}else t&&(ir(e,t),l={default:1});if(i)for(const e in o)tr(e)||e in l||delete o[e]})(e,t.children,n),Le(),an(),Ae()},M=function(e,t,n,r,o,i,l,s){let a=arguments.length>8&&void 0!==arguments[8]&&arguments[8];const u=e&&e.children,d=e?e.shapeFlag:0,p=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void F(u,p,n,r,o,i,l,s,a);if(256&h)return void U(u,p,n,r,o,i,l,s,a)}8&f?(16&d&&Z(u,o,i),p!==u&&c(n,p)):16&d?16&f?F(u,p,n,r,o,i,l,s,a):Z(u,o,i,!0):(8&d&&c(n,""),16&f&&C(p,n,r,o,i,l,s,a))},U=(e,t,n,r,o,i,l,s,a)=>{t=t||O;const c=(e=e||O).length,u=t.length,d=Math.min(c,u);let p;for(p=0;pu?Z(e,o,i,!0,!1,d):C(t,n,r,o,i,l,s,a,d)},F=(e,t,n,r,o,i,l,s,a)=>{let c=0;const u=t.length;let d=e.length-1,p=u-1;for(;c<=d&&c<=p;){const r=e[c],u=t[c]=a?Fr(t[c]):Nr(t[c]);if(!Rr(r,u))break;g(r,u,n,null,o,i,l,s,a),c++}for(;c<=d&&c<=p;){const r=e[d],c=t[p]=a?Fr(t[p]):Nr(t[p]);if(!Rr(r,c))break;g(r,c,n,null,o,i,l,s,a),d--,p--}if(c>d){if(c<=p){const e=p+1,d=ep)for(;c<=d;)B(e[c],o,i,!0),c++;else{const h=c,f=c,m=new Map;for(c=f;c<=p;c++){const e=t[c]=a?Fr(t[c]):Nr(t[c]);null!=e.key&&m.set(e.key,c)}let v,y=0;const w=p-f+1;let b=!1,k=0;const x=new Array(w);for(c=0;c=w){B(r,o,i,!0);continue}let u;if(null!=r.key)u=m.get(r.key);else for(v=f;v<=p;v++)if(0===x[v-f]&&Rr(r,t[v])){u=v;break}void 0===u?B(r,o,i,!0):(x[u-f]=c+1,u>=k?k=u:b=!0,g(r,t[u],n,null,o,i,l,s,a),y++)}const _=b?function(e){const t=e.slice(),n=[0];let r,o,i,l,s;const a=e.length;for(r=0;r>1,e[n[s]]0&&(t[r]=n[i-1]),n[i]=r)}}i=n.length,l=n[i-1];for(;i-- >0;)n[i]=l,l=t[l];return n}(x):O;for(v=_.length-1,c=w-1;c>=0;c--){const e=f+c,d=t[e],p=e+14&&void 0!==arguments[4]?arguments[4]:null;const{el:l,type:s,transition:a,children:c,shapeFlag:u}=e;if(6&u)return void D(e.component.subTree,t,r,o);if(128&u)return void e.suspense.move(t,r,o);if(64&u)return void s.move(e,t,r,Q);if(s===mr){n(l,t,r);for(let e=0;ea.enter(l)),i);else{const{leave:e,delayLeave:o,afterLeave:i}=a,s=()=>n(l,t,r),c=()=>{e(l,(()=>{s(),i&&i()}))};o?o(l,s,c):c()}else n(l,t,r)},B=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];const{type:i,props:l,ref:s,children:a,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:p}=e;if(null!=s&&ur(s,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const h=1&u&&p,f=!An(e);let g;if(f&&(g=l&&l.onVnodeBeforeUnmount)&&Br(g,t,e),6&u)q(e.component,n,r);else{if(128&u)return void e.suspense.unmount(n,r);h&&Un(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,o,Q,r):c&&(i!==mr||d>0&&64&d)?Z(c,t,n,!1,!0):(i===mr&&384&d||!o&&16&u)&&Z(a,t,n),r&&H(e)}(f&&(g=l&&l.onVnodeUnmounted)||h)&&dr((()=>{g&&Br(g,t,e),h&&Un(e,null,t,"unmounted")}),n)},H=e=>{const{type:t,el:n,anchor:o,transition:i}=e;if(t===mr)return void W(n,o);if(t===wr)return void b(e);const l=()=>{r(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){const{leave:t,delayLeave:r}=i,o=()=>t(n,l);r?r(e.el,l,o):o()}else l()},W=(e,t)=>{let n;for(;e!==t;)n=d(e),r(e),e=n;r(t)},q=(e,t,n)=>{const{bum:r,scope:o,update:i,subTree:l,um:s}=e;r&&de(r),o.stop(),i&&(i.active=!1,B(l,e,t,n)),s&&dr(s,t),dr((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},Z=function(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=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?G(e.component.subTree):128&e.shapeFlag?e.suspense.next():d(e.anchor||e.el),K=(e,t,n)=>{null==e?t._vnode&&B(t._vnode,null,null,!0):g(t._vnode||null,e,t,null,null,null,n),an(),cn(),t._vnode=e},Q={p:g,um:B,m:D,r:H,mt:L,mc:C,pc:M,pbc:$,n:G,o:e};let J,Y;t&&([J,Y]=t(Q));return{render:K,hydrate:J,createApp:cr(K,J)}}(e)}function hr(e,t){let{effect:n,update:r}=e;n.allowRecurse=r.allowRecurse=t}function fr(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=e.children,o=t.children;if(B(r)&&B(o))for(let e=0;ee.__isTeleport,mr=Symbol(void 0),vr=Symbol(void 0),yr=Symbol(void 0),wr=Symbol(void 0),br=[];let kr=null;function xr(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];br.push(kr=e?null:[])}let _r=1;function Cr(e){_r+=e}function Sr(e){return e.dynamicChildren=_r>0?kr||O:null,br.pop(),kr=br[br.length-1]||null,_r>0&&kr&&kr.push(e),e}function $r(e,t,n,r,o,i){return Sr(Or(e,t,n,r,o,i,!0))}function Ir(e,t,n,r,o){return Sr(jr(e,t,n,r,o,!0))}function Er(e){return!!e&&!0===e.__v_isVNode}function Rr(e,t){return e.type===t.type&&e.key===t.key}const Lr="__vInternal",Ar=e=>{let{key:t}=e;return null!=t?t:null},zr=e=>{let{ref:t,ref_key:n,ref_for:r}=e;return null!=t?G(t)||Tt(t)||Z(t)?{i:mn,r:t,k:n,f:!!r}:t:null};function Or(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,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e===mr?0:1,l=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&&Ar(t),ref:t&&zr(t),scopeId:vn,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:o,dynamicChildren:null,appContext:null};return s?(Dr(a,n),128&i&&e.normalize(a)):n&&(a.shapeFlag|=G(n)?8:16),_r>0&&!l&&kr&&(a.patchFlag>0||6&i)&&32!==a.patchFlag&&kr.push(a),a}const jr=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,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=arguments.length>5&&void 0!==arguments[5]&&arguments[5];e&&e!==Dn||(e=yr);if(Er(e)){const r=Pr(e,t,!0);return n&&Dr(r,n),_r>0&&!i&&kr&&(6&r.shapeFlag?kr[kr.indexOf(e)]=r:kr.push(r)),r.patchFlag|=-2,r}ro(e)&&(e=e.__vccOpts);if(t){t=Tr(t);let{class:e,style:n}=t;e&&!G(e)&&(t.class=I(e)),Q(n)&&(Et(n)&&!B(n)&&(n=N({},n)),t.style=_(n))}const l=G(e)?1:_n(e)?128:gr(e)?64:Q(e)?4:Z(e)?2:0;return Or(e,t,n,r,o,l,i,!0)};function Tr(e){return e?Et(e)||Lr in e?N({},e):e:null}function Pr(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{props:r,ref:o,patchFlag:i,children:l}=e,s=t?Vr(r||{},t):r,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&Ar(s),ref:t&&t.ref?n&&o?B(o)?o.concat(zr(t)):[o,zr(t)]:zr(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==mr?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Pr(e.ssContent),ssFallback:e.ssFallback&&Pr(e.ssFallback),el:e.el,anchor:e.anchor};return a}function Mr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:" ",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return jr(vr,null,e,t)}function Ur(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?(xr(),Ir(yr,null,e)):jr(yr,null,e)}function Nr(e){return null==e||"boolean"==typeof e?jr(yr):B(e)?jr(mr,null,e.slice()):"object"==typeof e?Fr(e):jr(vr,null,String(e))}function Fr(e){return null===e.el||e.memo?e:Pr(e)}function Dr(e,t){let n=0;const{shapeFlag:r}=e;if(null==t)t=null;else if(B(t))n=16;else if("object"==typeof t){if(65&r){const n=t.default;return void(n&&(n._c&&(n._d=!1),Dr(e,n()),n._c&&(n._d=!0)))}{n=32;const r=t._;r||Lr in t?3===r&&mn&&(1===mn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=mn}}else Z(t)?(t={default:t,_ctx:mn},n=32):(t=String(t),64&r?(n=16,t=[Mr(t)]):n=8);e.children=t,e.shapeFlag|=n}function Vr(){const e={};for(let t=0;t3&&void 0!==arguments[3]?arguments[3]:null;qt(e,t,7,[n,r])}const Hr=sr();let Wr=0;let qr=null;const Zr=()=>qr||mn,Gr=e=>{qr=e,e.scope.on()},Kr=()=>{qr&&qr.scope.off(),qr=null};function Qr(e){return 4&e.vnode.shapeFlag}let Jr=!1;function Yr(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Lt(new Proxy(e.ctx,qn));const{setup:r}=n;if(r){const n=e.setupContext=r.length>1?function(e){const t=t=>{e.exposed=t||{}};let n;return{get attrs(){return n||(n=function(e){return new Proxy(e.attrs,{get:(t,n)=>(ze(e,0,"$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t}}(e):null;Gr(e),Le();const o=Wt(r,e,0,[e.props,n]);if(Ae(),Kr(),J(o)){if(o.then(Kr,Kr),t)return o.then((n=>{Xr(e,n,t)})).catch((t=>{Zt(t,e,0)}));e.asyncDep=o}else Xr(e,o,t)}else eo(e,t)}function Xr(e,t,n){Z(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Q(t)&&(e.setupState=Vt(t)),eo(e,n)}function eo(e,t,n){const r=e.type;e.render||(e.render=r.render||j)}function to(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Vt(Lt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Wn?Wn[n](e):void 0}))}function no(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Z(e)?e.displayName||e.name:e.name||t&&e.__name}function ro(e){return Z(e)&&"__vccOpts"in e}const oo=(e,t)=>function(e,t){let n,r,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const i=Z(e);i?(n=e,r=j):(n=e.get,r=e.set);return new Ht(n,r,i||!r,o)}(e,t,Jr);function io(e,t,n){const r=arguments.length;return 2===r?Q(t)&&!B(t)?Er(t)?jr(e,null,[t]):jr(e,t):jr(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):3===r&&Er(n)&&(n=[n]),jr(e,t,n))}const lo="3.2.39",so="undefined"!=typeof document?document:null,ao=so&&so.createElement("template"),co={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t?so.createElementNS("http://www.w3.org/2000/svg",e):so.createElement(e,n?{is:n}:void 0);return"select"===e&&r&&null!=r.multiple&&o.setAttribute("multiple",r.multiple),o},createText:e=>so.createTextNode(e),createComment:e=>so.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>so.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,r,o,i){const l=n?n.previousSibling:t.lastChild;if(o&&(o===i||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),o!==i&&(o=o.nextSibling););else{ao.innerHTML=r?`${e}`:e;const o=ao.content;if(r){const e=o.firstChild;for(;e.firstChild;)o.appendChild(e.firstChild);o.removeChild(e)}t.insertBefore(o,n)}return[l?l.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function uo(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}function po(e,t,n){const r=e.style,o=G(n);if(n&&!o){for(const e in n)fo(r,e,n[e]);if(t&&!G(t))for(const e in t)null==n[e]&&fo(r,e,"")}else{const i=r.display;o?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const ho=/\s*!important$/;function fo(e,t,n){if(B(n))n.forEach((n=>fo(e,t,n)));else if(null==n&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=function(e,t){const n=mo[t];if(n)return n;let r=ie(t);if("filter"!==r&&r in e)return mo[t]=r;r=ae(r);for(let n=0;n{let e=Date.now,t=!1;if("undefined"!=typeof window){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let xo=0;const _o=Promise.resolve(),Co=()=>{xo=0};function So(e,t,n,r){e.addEventListener(t,n,r)}function $o(e,t,n,r){e.removeEventListener(t,n,r)}function Io(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;const i=e._vei||(e._vei={}),l=i[t];if(r&&l)l.value=r;else{const[n,s]=Ro(t);if(r){So(e,n,i[t]=Lo(r,o),s)}else l&&($o(e,n,l,s),i[t]=void 0)}}const Eo=/(?:Once|Passive|Capture)$/;function Ro(e){let t;if(Eo.test(e)){let n;for(t={};n=e.match(Eo);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):se(e.slice(2)),t]}function Lo(e,t){const n=e=>{const r=e.timeStamp||bo();(ko||r>=n.attached-1)&&qt(function(e,t){if(B(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=xo||(_o.then(Co),xo=bo()),n}const Ao=/^on[a-z]/;function zo(e,t,n,r){return r?"innerHTML"===t||"textContent"===t||!!(t in e&&Ao.test(t)&&Z(n)):"spellcheck"!==t&&"draggable"!==t&&"translate"!==t&&("form"!==t&&(("list"!==t||"INPUT"!==e.tagName)&&(("type"!==t||"TEXTAREA"!==e.tagName)&&((!Ao.test(t)||!G(n))&&t in e))))}const Oo=e=>{const t=e.props["onUpdate:modelValue"]||!1;return B(t)?e=>de(t,e):t};function jo(e){e.target.composing=!0}function To(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Po={created(e,t,n){let{modifiers:{lazy:r,trim:o,number:i}}=t;e._assign=Oo(n);const l=i||n.props&&"number"===n.props.type;So(e,r?"change":"input",(t=>{if(t.target.composing)return;let n=e.value;o&&(n=n.trim()),l&&(n=he(n)),e._assign(n)})),o&&So(e,"change",(()=>{e.value=e.value.trim()})),r||(So(e,"compositionstart",jo),So(e,"compositionend",To),So(e,"change",To))},mounted(e,t){let{value:n}=t;e.value=null==n?"":n},beforeUpdate(e,t,n){let{value:r,modifiers:{lazy:o,trim:i,number:l}}=t;if(e._assign=Oo(n),e.composing)return;if(document.activeElement===e&&"range"!==e.type){if(o)return;if(i&&e.value.trim()===r)return;if((l||"number"===e.type)&&he(e.value)===r)return}const s=null==r?"":r;e.value!==s&&(e.value=s)}},Mo={deep:!0,created(e,t,n){e._assign=Oo(n),So(e,"change",(()=>{const t=e._modelValue,n=Vo(e),r=e.checked,o=e._assign;if(B(t)){const e=R(t,n),i=-1!==e;if(r&&!i)o(t.concat(n));else if(!r&&i){const n=[...t];n.splice(e,1),o(n)}}else if(W(t)){const e=new Set(t);r?e.add(n):e.delete(n),o(e)}else o(Bo(e,r))}))},mounted:Uo,beforeUpdate(e,t,n){e._assign=Oo(n),Uo(e,t,n)}};function Uo(e,t,n){let{value:r,oldValue:o}=t;e._modelValue=r,B(r)?e.checked=R(r,n.props.value)>-1:W(r)?e.checked=r.has(n.props.value):r!==o&&(e.checked=E(r,Bo(e,!0)))}const No={created(e,t,n){let{value:r}=t;e.checked=E(r,n.props.value),e._assign=Oo(n),So(e,"change",(()=>{e._assign(Vo(e))}))},beforeUpdate(e,t,n){let{value:r,oldValue:o}=t;e._assign=Oo(n),r!==o&&(e.checked=E(r,n.props.value))}},Fo={deep:!0,created(e,t,n){let{value:r,modifiers:{number:o}}=t;const i=W(r);So(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>o?he(Vo(e)):Vo(e)));e._assign(e.multiple?i?new Set(t):t:t[0])})),e._assign=Oo(n)},mounted(e,t){let{value:n}=t;Do(e,n)},beforeUpdate(e,t,n){e._assign=Oo(n)},updated(e,t){let{value:n}=t;Do(e,n)}};function Do(e,t){const n=e.multiple;if(!n||B(t)||W(t)){for(let r=0,o=e.options.length;r-1:o.selected=t.has(i);else if(E(Vo(o),t))return void(e.selectedIndex!==r&&(e.selectedIndex=r))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function Vo(e){return"_value"in e?e._value:e.value}function Bo(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Ho={created(e,t,n){Wo(e,t,n,null,"created")},mounted(e,t,n){Wo(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){Wo(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){Wo(e,t,n,r,"updated")}};function Wo(e,t,n,r,o){const i=function(e,t){switch(e){case"SELECT":return Fo;case"TEXTAREA":return Po;default:switch(t){case"checkbox":return Mo;case"radio":return No;default:return Po}}}(e.tagName,n.props&&n.props.type)[o];i&&i(e,t,n,r)}const qo={beforeMount(e,t,n){let{value:r}=t,{transition:o}=n;e._vod="none"===e.style.display?"":e.style.display,o&&r?o.beforeEnter(e):Zo(e,r)},mounted(e,t,n){let{value:r}=t,{transition:o}=n;o&&r&&o.enter(e)},updated(e,t,n){let{value:r,oldValue:o}=t,{transition:i}=n;!r!=!o&&(i?r?(i.beforeEnter(e),Zo(e,!0),i.enter(e)):i.leave(e,(()=>{Zo(e,!1)})):Zo(e,r))},beforeUnmount(e,t){let{value:n}=t;Zo(e,n)}};function Zo(e,t){e.style.display=t?e._vod:"none"}const Go=N({patchProp:function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=arguments.length>5?arguments[5]:void 0,l=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?uo(e,r,o):"style"===t?po(e,n,r):M(t)?U(t)||Io(e,t,n,r,l):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):zo(e,t,r,o))?wo(e,t,r,i,l,s,a):("true-value"===t?e._trueValue=r:"false-value"===t&&(e._falseValue=r),yo(e,t,r,o))}},co);let Ko;function Qo(){return Ko||(Ko=pr(Go))}function Jo(e){if(G(e)){return document.querySelector(e)}return e}var Yo;const Xo="undefined"!=typeof window,ei=e=>"function"==typeof e,ti=e=>"string"==typeof e,ni=()=>{};function ri(e){return"function"==typeof e?e():Ft(e)}function oi(e,t){return function(){for(var n=arguments.length,r=new Array(n),o=0;ot.apply(this,r)),{fn:t,thisArg:this,args:r})}}Xo&&(null==(Yo=null==window?void 0:window.navigator)?void 0:Yo.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);const ii=e=>e();function li(e){let t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const o=o=>{const i=ri(e),l=ri(r.maxWait);if(t&&clearTimeout(t),i<=0||void 0!==l&&l<=0)return n&&(clearTimeout(n),n=null),o();l&&!n&&(n=setTimeout((()=>{t&&clearTimeout(t),n=null,o()}),l)),t=setTimeout((()=>{n&&clearTimeout(n),n=null,o()}),i)};return o}function si(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ii;const t=Pt(!0);function n(){t.value=!1}function r(){t.value=!0}const o=function(){t.value&&e(...arguments)};return{isActive:t,pause:n,resume:r,eventFilter:o}}function ai(e){return!!ge&&(function(e){ge&&ge.cleanups.push(e)}(e),!0)}function ci(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];Zr()?jn(e):t?e():on(e)}function ui(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:o=!1}=n;let i=null;const l=Pt(!1);function s(){i&&(clearInterval(i),i=null)}function a(){l.value=!1,s()}function c(){Ft(t)<=0||(l.value=!0,o&&e(),s(),i=setInterval(e,ri(t)))}if(r&&Xo&&c(),Tt(t)){ai(In(t,(()=>{l.value&&Xo&&c()})))}return ai(a),{isActive:l,pause:a,resume:c}}var di=Object.getOwnPropertySymbols,pi=Object.prototype.hasOwnProperty,hi=Object.prototype.propertyIsEnumerable,fi=(e,t)=>{var n={};for(var r in e)pi.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&di)for(var r of di(e))t.indexOf(r)<0&&hi.call(e,r)&&(n[r]=e[r]);return n};function gi(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=n,{eventFilter:o=ii}=r,i=fi(r,["eventFilter"]);return In(e,oi(o,t),i)}var mi=Object.defineProperty,vi=Object.defineProperties,yi=Object.getOwnPropertyDescriptors,wi=Object.getOwnPropertySymbols,bi=Object.prototype.hasOwnProperty,ki=Object.prototype.propertyIsEnumerable,xi=(e,t,n)=>t in e?mi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,_i=(e,t)=>{for(var n in t||(t={}))bi.call(t,n)&&xi(e,n,t[n]);if(wi)for(var n of wi(t))ki.call(t,n)&&xi(e,n,t[n]);return e},Ci=(e,t)=>vi(e,yi(t)),Si=(e,t)=>{var n={};for(var r in e)bi.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&wi)for(var r of wi(e))t.indexOf(r)<0&&ki.call(e,r)&&(n[r]=e[r]);return n};function $i(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const r=n,{eventFilter:o}=r,i=Si(r,["eventFilter"]),{eventFilter:l,pause:s,resume:a,isActive:c}=si(o),u=gi(e,t,Ci(_i({},i),{eventFilter:l}));return{stop:u,pause:s,resume:a,isActive:c}}function Ii(e){var t;const n=ri(e);return null!=(t=null==n?void 0:n.$el)?t:n}const Ei=Xo?window:void 0,Ri=Xo?window.document:void 0;function Li(){let e,t,n,r;for(var o=arguments.length,i=new Array(o),l=0;lIi(e)),(e=>{s(),e&&(e.addEventListener(t,n,r),s=()=>{e.removeEventListener(t,n,r),s=ni})}),{immediate:!0,flush:"post"}),c=()=>{a(),s()};return ai(c),c}Xo&&window.navigator,Xo&&window.location;const Ai="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},zi="__vueuse_ssr_handlers__";Ai[zi]=Ai[zi]||{};const Oi=Ai[zi];function ji(e,t){return Oi[e]||t}function Ti(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||Array.isArray(e)?"object":Number.isNaN(e)?"any":"number"}var Pi=Object.defineProperty,Mi=Object.getOwnPropertySymbols,Ui=Object.prototype.hasOwnProperty,Ni=Object.prototype.propertyIsEnumerable,Fi=(e,t,n)=>t in e?Pi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Di=(e,t)=>{for(var n in t||(t={}))Ui.call(t,n)&&Fi(e,n,t[n]);if(Mi)for(var n of Mi(t))Ni.call(t,n)&&Fi(e,n,t[n]);return e};const Vi={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()}};function Bi(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};var o;const{flush:i="pre",deep:l=!0,listenToStorageChanges:s=!0,writeDefaults:a=!0,mergeDefaults:c=!1,shallow:u,window:d=Ei,eventFilter:p,onError:h=(e=>{console.error(e)})}=r,f=(u?Mt:Pt)(t);if(!n)try{n=ji("getDefaultStorage",(()=>{var e;return null==(e=Ei)?void 0:e.localStorage}))()}catch(e){h(e)}if(!n)return f;const g=ri(t),m=Ti(g),v=null!=(o=r.serializer)?o:Vi[m],{pause:y,resume:w}=$i(f,(()=>b(f.value)),{flush:i,deep:l,eventFilter:p});return d&&s&&Li(d,"storage",x),x(),f;function b(t){try{null==t?n.removeItem(e):n.setItem(e,v.write(t))}catch(e){h(e)}}function k(t){if(!t||t.key===e){y();try{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 ei(c)?c(e,g):"object"!==m||Array.isArray(e)?e:Di(Di({},g),e)}return"string"!=typeof r?r:v.read(r)}catch(e){h(e)}finally{w()}}}function x(t){t&&t.key!==e||(f.value=k(t))}}function Hi(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{immediate:n=!0,window:r=Ei}=t,o=Pt(!1);let i=null;function l(){o.value&&r&&(e(),i=r.requestAnimationFrame(l))}function s(){!o.value&&r&&(o.value=!0,l())}function a(){o.value=!1,null!=i&&r&&(r.cancelAnimationFrame(i),i=null)}return n&&s(),ai(a),{isActive:o,pause:a,resume:s}}var Wi,qi,Zi=Object.defineProperty,Gi=Object.getOwnPropertySymbols,Ki=Object.prototype.hasOwnProperty,Qi=Object.prototype.propertyIsEnumerable,Ji=(e,t,n)=>t in e?Zi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Yi=(e,t)=>{for(var n in t||(t={}))Ki.call(t,n)&&Ji(e,n,t[n]);if(Gi)for(var n of Gi(t))Qi.call(t,n)&&Ji(e,n,t[n]);return e};(qi=Wi||(Wi={})).UP="UP",qi.RIGHT="RIGHT",qi.DOWN="DOWN",qi.LEFT="LEFT",qi.NONE="NONE";let Xi=0;var el=Object.defineProperty,tl=Object.getOwnPropertySymbols,nl=Object.prototype.hasOwnProperty,rl=Object.prototype.propertyIsEnumerable,ol=(e,t,n)=>t in e?el(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;((e,t)=>{for(var n in t||(t={}))nl.call(t,n)&&ol(e,n,t[n]);if(tl)for(var n of tl(t))rl.call(t,n)&&ol(e,n,t[n])})({linear:function(e){return e}},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});const il=e=>{try{e=decodeURI(e)}catch(e){}return e},ll=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/\/$/u,"")},sl=e=>/^(https?:)?\/\//.test(e),al=e=>{const t=ll(e);return sl(t)?t:`https://${t}`},cl=e=>Array.isArray(e)?e:!!e&&[0,e],ul=(e,t)=>"function"==typeof e?e:!1!==e&&t,dl="{--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}",pl=(e,t)=>{let n=e.toString();for(;n.length{if(!e)return"";const r="string"==typeof e?new Date(-1!==e.indexOf(" ")?e.replace(/-/g,"/"):e):e,o=t.getTime()-r.getTime(),i=Math.floor(o/864e5);if(0===i){const e=o%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=pl(e.getDate(),2),n=pl(e.getMonth()+1,2);return`${pl(e.getFullYear(),2)}-${n}-${t}`})(r)},fl=e=>{const t=Bi("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 o={folder:e,...r};return n&&(t.value[e]=o),o}))},gl=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return`${t?`${t}/`:""}${n}${e}${r?`.${r}`:""}`},ml=e=>{"AbortError"!==e.name&&console.error(e.message)},vl={"Content-Type":"application/json"},yl=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if("object"==typeof e&&e.errno)throw new TypeError(`Fetch ${t} failed with ${e.errno}: ${e.errmsg}`);return e},wl=e=>{let{serverURL:t,lang:n,token:r,objectId:o,...i}=e;return fetch(`${t}/comment/${o}?lang=${n}`,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:`Bearer ${r}`},body:JSON.stringify(i)}).then((e=>e.json()))},bl=e=>{let{serverURL:t,lang:n,paths:r,signal:o}=e;return fetch(`${t}/article?path=${encodeURIComponent(r.join(","))}&lang=${n}`,{signal:o}).then((e=>e.json())).then((e=>yl(e,"visit count"))).then((e=>Array.isArray(e)?e:[e]))},kl=e=>{let{serverURL:t,lang:n,path:r}=e;return fetch(`${t}/article?lang=${n}`,{method:"POST",headers:vl,body:JSON.stringify({path:r})}).then((e=>e.json())).then((e=>yl(e,"visit count")))},xl=e=>e instanceof HTMLElement?e:"string"==typeof e?document.querySelector(e):null,_l=e=>e.type.includes("image"),Cl=e=>{const t=Array.from(e).find(_l);return t?t.getAsFile():null};function Sl(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}}let $l={async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1};const Il=/[&<>"']/,El=/[&<>"']/g,Rl=/[<>"']|&(?!#?\w+;)/,Ll=/[<>"']|&(?!#?\w+;)/g,Al={"&":"&","<":"<",">":">",'"':""","'":"'"},zl=e=>Al[e];function Ol(e,t){if(t){if(Il.test(e))return e.replace(El,zl)}else if(Rl.test(e))return e.replace(Ll,zl);return e}const jl=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function Tl(e){return e.replace(jl,((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 Pl=/(^|[^\[])\^/g;function Ml(e,t){e="string"==typeof e?e:e.source,t=t||"";const n={replace:(t,r)=>(r=(r=r.source||r).replace(Pl,"$1"),e=e.replace(t,r),n),getRegex:()=>new RegExp(e,t)};return n}const Ul=/[^\w:]/g,Nl=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function Fl(e,t,n){if(e){let e;try{e=decodeURIComponent(Tl(n)).replace(Ul,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!Nl.test(n)&&(n=function(e,t){Dl[" "+e]||(Vl.test(e)?Dl[" "+e]=e+"/":Dl[" "+e]=Gl(e,"/",!0));const n=-1===(e=Dl[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(Bl,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(Hl,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}const Dl={},Vl=/^[^:]+:\/*[^/]*$/,Bl=/^([^:]+:)[\s\S]*$/,Hl=/^([^:]+:\/*[^/]*)[\s\S]*$/;const Wl={exec:function(){}};function ql(e){let t,n,r=1;for(;r{let r=!1,o=t;for(;--o>=0&&"\\"===n[o];)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 Jl(e,t,n,r){const o=t.href,i=t.title?Ol(t.title):null,l=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){r.state.inLink=!0;const e={type:"link",raw:n,href:o,title:i,text:l,tokens:r.inlineTokens(l)};return r.state.inLink=!1,e}return{type:"image",raw:n,href:o,title:i,text:Ol(l)}}class Yl{constructor(e){this.options=e||$l}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:Gl(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():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=Gl(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,"");return{type:"blockquote",raw:t[0],tokens:this.lexer.blockTokens(e,[]),text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,r,o,i,l,s,a,c,u,d,p,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],u=e.split("\n",1)[0],this.options.pedantic?(i=2,p=c.trimLeft()):(i=t[2].search(/[^ ]/),i=i>4?1:i,p=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}[.)])((?: [^\\n]*)?(?:\\n|$))`),r=new RegExp(`^ {0,${Math.min(3,i-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),o=new RegExp(`^ {0,${Math.min(3,i-1)}}(?:\`\`\`|~~~)`),l=new RegExp(`^ {0,${Math.min(3,i-1)}}#`);for(;e&&(d=e.split("\n",1)[0],c=d,this.options.pedantic&&(c=c.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),!o.test(c))&&!l.test(c)&&!t.test(c)&&!r.test(e);){if(c.search(/[^ ]/)>=i||!c.trim())p+="\n"+c.slice(i);else{if(s)break;p+="\n"+c}s||c.trim()||(s=!0),n+=d+"\n",e=e.substring(d.length+1)}}m.loose||(a?m.loose=!0:/\n *\n *$/.test(n)&&(a=!0)),this.options.gfm&&(r=/^\[[ xX]\] /.exec(p),r&&(o="[ ] "!==r[0],p=p.replace(/^\[[ xX]\] +/,""))),m.items.push({type:"list_item",raw:n,task:!!r,checked:o,loose:!1,text:p}),m.raw+=n}m.items[m.items.length-1].raw=n.trimRight(),m.items[m.items.length-1].text=p.trimRight(),m.raw=m.raw.trimRight();const y=m.items.length;for(l=0;l"space"===e.type)),t=e.every((e=>{const t=e.raw.split("");let n=0;for(const e of t)if("\n"===e&&(n+=1),n>1)return!0;return!1}));!m.loose&&e.length&&t&&(m.loose=!0,m.items[l].loose=!0)}return m}}html(e){const t=this.rules.block.html.exec(e);if(t){const e={type:"html",raw:t[0],pre:!this.options.sanitizer&&("pre"===t[1]||"script"===t[1]||"style"===t[1]),text:t[0]};if(this.options.sanitize){const n=this.options.sanitizer?this.options.sanitizer(t[0]):Ol(t[0]);e.type="paragraph",e.text=n,e.tokens=this.lexer.inline(n)}return e}}def(e){const t=this.rules.block.def.exec(e);if(t){t[3]&&(t[3]=t[3].substring(1,t[3].length-1));return{type:"def",tag:t[1].toLowerCase().replace(/\s+/g," "),raw:t[0],href:t[2],title:t[3]}}}table(e){const t=this.rules.block.table.exec(e);if(t){const e={type:"table",header:Zl(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,o,i,l=e.align.length;for(n=0;n({text:e})));for(l=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]):Ol(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=Gl(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,o=0;for(;o-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)),Jl(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||!e.href){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return Jl(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 o=r[1]||r[2]||"";if(!o||o&&(""===n||this.rules.inline.punctuation.exec(n))){const n=r[0].length-1;let o,i,l=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(o=r[1]||r[2]||r[3]||r[4]||r[5]||r[6],!o)continue;if(i=o.length,r[3]||r[4]){l+=i;continue}if((r[5]||r[6])&&n%3&&!((n+i)%3)){s+=i;continue}if(l-=i,l>0)continue;if(i=Math.min(i,i+l+s),Math.min(n,i)%2){const t=e.slice(1,n+r.index+i);return{type:"em",raw:e.slice(0,n+r.index+i+1),text:t,tokens:this.lexer.inlineTokens(t)}}const t=e.slice(2,n+r.index+i-1);return{type:"strong",raw:e.slice(0,n+r.index+i+1),text:t,tokens:this.lexer.inlineTokens(t)}}}}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=Ol(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=Ol(this.options.mangle?t(n[1]):n[1]),r="mailto:"+e):(e=Ol(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=Ol(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=Ol(n[0]),r="www."===n[1]?"http://"+e:e}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]):Ol(n[0]):n[0]:Ol(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}const Xl={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 *)?]+)>?(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:Wl,lheading:/^([^\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?'|\([^()]*\))/};Xl.def=Ml(Xl.def).replace("label",Xl._label).replace("title",Xl._title).getRegex(),Xl.bullet=/(?:[*+-]|\d{1,9}[.)])/,Xl.listItemStart=Ml(/^( *)(bull) */).replace("bull",Xl.bullet).getRegex(),Xl.list=Ml(Xl.list).replace(/bull/g,Xl.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+Xl.def.source+")").getRegex(),Xl._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",Xl._comment=/|$)/,Xl.html=Ml(Xl.html,"i").replace("comment",Xl._comment).replace("tag",Xl._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Xl.paragraph=Ml(Xl._paragraph).replace("hr",Xl.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",Xl._tag).getRegex(),Xl.blockquote=Ml(Xl.blockquote).replace("paragraph",Xl.paragraph).getRegex(),Xl.normal=ql({},Xl),Xl.gfm=ql({},Xl.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),Xl.gfm.table=Ml(Xl.gfm.table).replace("hr",Xl.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",Xl._tag).getRegex(),Xl.gfm.paragraph=Ml(Xl._paragraph).replace("hr",Xl.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",Xl.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",Xl._tag).getRegex(),Xl.pedantic=ql({},Xl.normal,{html:Ml("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",Xl._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:Wl,paragraph:Ml(Xl.normal._paragraph).replace("hr",Xl.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",Xl.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const es={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:Wl,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:Wl,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(n="x"+n.toString(16)),r+="&#"+n+";";return r}es._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",es.punctuation=Ml(es.punctuation).replace(/punctuation/g,es._punctuation).getRegex(),es.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,es.escapedEmSt=/\\\*|\\_/g,es._comment=Ml(Xl._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),es.emStrong.lDelim=Ml(es.emStrong.lDelim).replace(/punct/g,es._punctuation).getRegex(),es.emStrong.rDelimAst=Ml(es.emStrong.rDelimAst,"g").replace(/punct/g,es._punctuation).getRegex(),es.emStrong.rDelimUnd=Ml(es.emStrong.rDelimUnd,"g").replace(/punct/g,es._punctuation).getRegex(),es._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,es._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,es._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])?)+(?![-_])/,es.autolink=Ml(es.autolink).replace("scheme",es._scheme).replace("email",es._email).getRegex(),es._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,es.tag=Ml(es.tag).replace("comment",es._comment).replace("attribute",es._attribute).getRegex(),es._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,es._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,es._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,es.link=Ml(es.link).replace("label",es._label).replace("href",es._href).replace("title",es._title).getRegex(),es.reflink=Ml(es.reflink).replace("label",es._label).replace("ref",Xl._label).getRegex(),es.nolink=Ml(es.nolink).replace("ref",Xl._label).getRegex(),es.reflinkSearch=Ml(es.reflinkSearch,"g").replace("reflink",es.reflink).replace("nolink",es.nolink).getRegex(),es.normal=ql({},es),es.pedantic=ql({},es.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:Ml(/^!?\[(label)\]\((.*?)\)/).replace("label",es._label).getRegex(),reflink:Ml(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",es._label).getRegex()}),es.gfm=ql({},es.normal,{escape:Ml(es.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 o;this.options.extensions.startBlock.forEach((function(e){o=e.call({lexer:this},n),"number"==typeof o&&o>=0&&(t=Math.min(t,o))})),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],o&&"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),o=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,o,i,l,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!=(o=this.tokenizer.rules.inline.reflinkSearch.exec(a));)e.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(a=a.slice(0,o.index)+"["+Ql("a",o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(o=this.tokenizer.rules.inline.blockSkip.exec(a));)a=a.slice(0,o.index)+"["+Ql("a",o[0].length-2)+"]"+a.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(o=this.tokenizer.rules.inline.escapedEmSt.exec(a));)a=a.slice(0,o.index)+"++"+a.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);for(;e;)if(i||(l=""),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,l))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,ns))e=e.substring(t.raw.length),s.push(t);else if(this.state.inLink||!(t=this.tokenizer.url(e,ns))){if(r=e,this.options.extensions&&this.options.extensions.startInline){let t=1/0;const n=e.slice(1);let o;this.options.extensions.startInline.forEach((function(e){o=e.call({lexer:this},n),"number"==typeof o&&o>=0&&(t=Math.min(t,o))})),t<1/0&&t>=0&&(r=e.substring(0,t+1))}if(t=this.tokenizer.inlineText(r,ts))e=e.substring(t.raw.length),"_"!==t.raw.slice(-1)&&(l=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 os{constructor(e){this.options=e||$l}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:Ol(e,!0))+"
\n":"
"+(n?e:Ol(e,!0))+"
\n"}blockquote(e){return`
\n${e}
\n`}html(e){return e}heading(e,t,n,r){if(this.options.headerIds){return`${e}\n`}return`${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=Fl(this.options.sanitize,this.options.baseUrl,e)))return n;let r='",r}image(e,t,n){if(null===(e=Fl(this.options.sanitize,this.options.baseUrl,e)))return n;let r=`${n}":">",r}text(e){return e}}class is{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 ls{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 ss{constructor(e){this.options=e||$l,this.options.renderer=this.options.renderer||new os,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new is,this.slugger=new ls}static parse(e,t){return new ss(t).parse(e)}static parseInline(e,t){return new ss(t).parseInline(e)}parse(e){let t,n,r,o,i,l,s,a,c,u,d,p,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,d,p);continue;case"html":k+=this.renderer.html(u.text);continue;case"paragraph":k+=this.renderer.paragraph(this.parseInline(u.tokens));continue;case"text":for(c=u.tokens?this.parseInline(u.tokens):u.text;t+1{r(e.text,e.lang,(function(t,n){if(t)return i(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),l--,0===l&&i()}))}),0))})),void(0===l&&i())}function r(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"

    An error occurred:

    "+Ol(e.message+"",!0)+"
    ";throw e}try{const n=rs.lex(e,t);if(t.walkTokens){if(t.async)return Promise.all(as.walkTokens(n,t.walkTokens)).then((()=>ss.parse(n,t))).catch(r);as.walkTokens(n,t.walkTokens)}return ss.parse(n,t)}catch(e){r(e)}}as.options=as.setOptions=function(e){var t;return ql(as.defaults,e),t=as.defaults,$l=t,as},as.getDefaults=Sl,as.defaults=$l,as.use=function(){for(var e=arguments.length,t=new Array(e),n=0;n{if(e.extensions&&(i=!0,e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if(e.renderer){const t=o.renderers?o.renderers[e.name]:null;o.renderers[e.name]=t?function(){for(var n=arguments.length,r=new Array(n),o=0;oAn error occurred:

    "+Ol(e.message+"",!0)+"
    ";throw e}},as.Parser=ss,as.parser=ss.parse,as.Renderer=os,as.TextRenderer=is,as.Lexer=rs,as.lexer=rs.lex,as.Tokenizer=Yl,as.Slugger=ls,as.parse=as;const cs=/\$.*?\$/,us=/^\$(.*?)\$/,ds=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,ps=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.replace(/:(.+?):/g,((e,n)=>t[n]?`${n}`:e))},hs=(e,t)=>{let{emojiMap:n,highlighter:r,texRenderer:o}=t;if(as.setOptions({highlight:r||void 0,breaks:!0,smartLists:!0,smartypants:!0}),o){const e=(e=>[{name:"blockMath",level:"block",tokenizer(t){const n=ds.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(cs);return-1!==t?t:e.length},tokenizer(t){const n=us.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!1,n[1])}}}])(o);as.use({extensions:e})}return as.parse(ps(e,n))},fs=e=>e.dataset.path||e.getAttribute("id"),gs=(e,t)=>{const n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=Pt(new Date),o=()=>r.value=new Date,i="requestAnimationFrame"===n?Hi(o,{immediate:!0}):ui(o,n,{immediate:!0});return t?Yi({now:r},i):r}();return oo((()=>hl(e,n.value,t)))};let ms=null;const vs=()=>ms||(ms=Bi("WALINE_USER",{}));let ys=null;const ws=()=>ys||(ys=Bi("WALINE_LIKE",[])),bs=e=>{var t;let{serverURL:n,path:r=window.location.pathname,selector:o=".waline-comment-count",lang:i="zh-CN"}=e;const l=new AbortController,s=document.querySelectorAll(o),a=vs();return s.length&&(e=>{let{serverURL:t,lang:n,paths:r,signal:o,token:i}=e;const l={};return i&&(l.Authorization=`Bearer ${i}`),fetch(`${t}/comment?type=count&url=${encodeURIComponent(r.join(","))}&lang=${n}`,{signal:o,headers:l}).then((e=>e.json())).then((e=>yl(e,"comment count"))).then((e=>Array.isArray(e)?e:[e]))})({serverURL:al(n),paths:Array.from(s).map((e=>il(e.dataset.path||e.getAttribute("id")||r))),lang:i,signal:l.signal,token:null===(t=a.value)||void 0===t?void 0:t.token}).then((e=>{s.forEach(((t,n)=>{t.innerText=e[n].toString()}))})).catch(ml),l.abort.bind(l)};e.commentCount=bs;var ks="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},xs={},_s={},Cs={},Ss=ks&&ks.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function l(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?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(l,s)}a((r=r.apply(e,t||[])).next())}))},$s=ks&&ks.__generator||function(e,t){var n,r,o,i,l={label:0,sent:function(){if(1&o[0])throw o[1];return o[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(;l;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return l.label++,{value:i[1],done:!1};case 5:l.label++,r=i[1],i=[0];continue;case 7:i=l.ops.pop(),l.trys.pop();continue;default:if(!(o=l.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){l=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{n.value=!0,r.value=t,e.config.globalProperties.$recaptcha=Ts(r),e.config.globalProperties.$recaptchaInstance=r,zs.loadedWaiters.forEach((e=>e.resolve(!0)))})).catch((e=>{zs.error=e,zs.loadedWaiters.forEach((t=>t.reject(e)))})),e.provide(As,{instance:r,isLoaded:n,executeRecaptcha:Ts(r),recaptchaLoaded:js(n)})}};function js(e){return()=>new Promise(((t,n)=>null!==zs.error?n(zs.error):e.value?t(!0):void zs.loadedWaiters.push({resolve:t,reject:n})))}function Ts(e){return async t=>{var n;return await(null===(n=e.value)||void 0===n?void 0:n.execute(t))}}var Ps,Ms,Us="function"==typeof Map?new Map:(Ps=[],Ms=[],{has:function(e){return Ps.indexOf(e)>-1},get:function(e){return Ms[Ps.indexOf(e)]},set:function(e,t){-1===Ps.indexOf(e)&&(Ps.push(e),Ms.push(t))},delete:function(e){var t=Ps.indexOf(e);t>-1&&(Ps.splice(t,1),Ms.splice(t,1))}}),Ns=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(Ps){Ns=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function Fs(e){var t=Us.get(e);t&&t.destroy()}function Ds(e){var t=Us.get(e);t&&t.update()}var Vs=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((Vs=function(e){return e}).destroy=function(e){return e},Vs.update=function(e){return e}):((Vs=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&&!Us.has(e)){var t,n=null,r=null,o=null,i=function(){e.clientWidth!==r&&c()},l=function(t){window.removeEventListener("resize",i,!1),e.removeEventListener("input",c,!1),e.removeEventListener("keyup",c,!1),e.removeEventListener("autosize:destroy",l,!1),e.removeEventListener("autosize:update",c,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),Us.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",l,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",c,!1),window.addEventListener("resize",i,!1),e.addEventListener("input",c,!1),e.addEventListener("autosize:update",c,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",Us.set(e,{destroy:l,update:c}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),c()}function s(t){var n=e.style.width;e.style.width="0px",e.style.width=n,e.style.overflowY=t}function a(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),o=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),o&&(document.documentElement.scrollTop=o)}}function c(){a();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r{let{size:t}=e;return io("svg",{width:t,height:t,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},io("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},io("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"})))};var Ws=Ln({name:"ImageWall",components:{LoadingIcon:Hs},props:{items:{type:Array,default:()=>[]},columnWidth:{type:Number,default:300},gap:{type:Number,default:0}},emits:["insert"],setup(e){let t=null;const n=Pt(null),r=Pt({}),o=Pt([]),i=()=>{const t=Math.floor((n.value.getBoundingClientRect().width+e.gap)/(e.columnWidth+e.gap));return t>0?t:1},l=e=>new Array(e).fill(null).map((()=>[])),s=async t=>{var r;if(t>=e.items.length)return;await on();const i=Array.from((null===(r=n.value)||void 0===r?void 0:r.children)||[]).reduce(((e,t)=>t.getBoundingClientRect().height0&&void 0!==arguments[0]&&arguments[0];if(o.value.length===i()&&!e)return;o.value=l(i());const t=window.scrollY;await s(0),window.scrollTo({top:t})};return In((()=>[e.items]),(()=>{r.value={},a(!0)})),In((()=>[e.columnWidth,e.gap]),(()=>a())),jn((()=>{a(!0),t=new ResizeObserver((()=>a())),t.observe(n.value)})),Tn((()=>t.unobserve(n.value))),{columns:o,state:r,wall:n}}}),qs=(e,t)=>{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n};const Zs=["data-index"],Gs=["src","title","onLoad","onClick"];var Ks=Ln({name:"CommentBox",components:{CloseIcon:e=>{let{size:t}=e;return io("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:t,height:t},[io("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"}),io("path",{d:"m640.683 587.52-75.947-75.861 75.904-75.862a37.29 37.29 0 0 0 0-52.778 37.205 37.205 0 0 0-52.779 0l-75.946 75.818-75.862-75.946a37.419 37.419 0 0 0-52.821 0 37.419 37.419 0 0 0 0 52.821l75.947 75.947-75.776 75.733a37.29 37.29 0 1 0 52.778 52.821l75.776-75.776 75.947 75.947a37.376 37.376 0 0 0 52.779-52.821z",fill:"#888"})])},EmojiIcon:()=>io("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},io("path",{d:"M563.2 463.3 677 540c1.7 1.2 3.7 1.8 5.8 1.8.7 0 1.4-.1 2-.2 2.7-.5 5.1-2.1 6.6-4.4l25.3-37.8c1.5-2.3 2.1-5.1 1.6-7.8s-2.1-5.1-4.4-6.6l-73.6-49.1 73.6-49.1c2.3-1.5 3.9-3.9 4.4-6.6.5-2.7 0-5.5-1.6-7.8l-25.3-37.8a10.1 10.1 0 0 0-6.6-4.4c-.7-.1-1.3-.2-2-.2-2.1 0-4.1.6-5.8 1.8l-113.8 76.6c-9.2 6.2-14.7 16.4-14.7 27.5.1 11 5.5 21.3 14.7 27.4zM387 348.8h-45.5c-5.7 0-10.4 4.7-10.4 10.4v153.3c0 5.7 4.7 10.4 10.4 10.4H387c5.7 0 10.4-4.7 10.4-10.4V359.2c0-5.7-4.7-10.4-10.4-10.4zm333.8 241.3-41-20a10.3 10.3 0 0 0-8.1-.5c-2.6.9-4.8 2.9-5.9 5.4-30.1 64.9-93.1 109.1-164.4 115.2-5.7.5-9.9 5.5-9.5 11.2l3.9 45.5c.5 5.3 5 9.5 10.3 9.5h.9c94.8-8 178.5-66.5 218.6-152.7 2.4-5 .3-11.2-4.8-13.6zm186-186.1c-11.9-42-30.5-81.4-55.2-117.1-24.1-34.9-53.5-65.6-87.5-91.2-33.9-25.6-71.5-45.5-111.6-59.2-41.2-14-84.1-21.1-127.8-21.1h-1.2c-75.4 0-148.8 21.4-212.5 61.7-63.7 40.3-114.3 97.6-146.5 165.8-32.2 68.1-44.3 143.6-35.1 218.4 9.3 74.8 39.4 145 87.3 203.3.1.2.3.3.4.5l36.2 38.4c1.1 1.2 2.5 2.1 3.9 2.6 73.3 66.7 168.2 103.5 267.5 103.5 73.3 0 145.2-20.3 207.7-58.7 37.3-22.9 70.3-51.5 98.1-85 27.1-32.7 48.7-69.5 64.2-109.1 15.5-39.7 24.4-81.3 26.6-123.8 2.4-43.6-2.5-87-14.5-129zm-60.5 181.1c-8.3 37-22.8 72-43 104-19.7 31.1-44.3 58.6-73.1 81.7-28.8 23.1-61 41-95.7 53.4-35.6 12.7-72.9 19.1-110.9 19.1-82.6 0-161.7-30.6-222.8-86.2l-34.1-35.8c-23.9-29.3-42.4-62.2-55.1-97.7-12.4-34.7-18.8-71-19.2-107.9-.4-36.9 5.4-73.3 17.1-108.2 12-35.8 30-69.2 53.4-99.1 31.7-40.4 71.1-72 117.2-94.1 44.5-21.3 94-32.6 143.4-32.6 49.3 0 97 10.8 141.8 32 34.3 16.3 65.3 38.1 92 64.8 26.1 26 47.5 56 63.6 89.2 16.2 33.2 26.6 68.5 31 105.1 4.6 37.5 2.7 75.3-5.6 112.3z",fill:"currentColor"})),ImageIcon:()=>io("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[io("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"}),io("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"})]),ImageWall:qs(Ws,[["render",function(e,t,n,r,o,i){const l=Fn("LoadingIcon");return xr(),$r("div",{ref:"wall",class:"wl-gallery",style:_({gap:`${e.gap}px`})},[(xr(!0),$r(mr,null,Bn(e.columns,((t,n)=>(xr(),$r("div",{key:n,class:"wl-gallery-column","data-index":n,style:_({gap:`${e.gap}px`})},[(xr(!0),$r(mr,null,Bn(t,(t=>(xr(),$r(mr,{key:t},[e.state[e.items[t].src]?Ur("v-if",!0):(xr(),Ir(l,{key:0,size:36,style:{margin:"20px auto"}})),Or("img",{class:"wl-gallery-item",src:e.items[t].src,title:e.items[t].title,loading:"lazy",onLoad:n=>e.state[e.items[t].src]=!0,onClick:n=>e.$emit("insert",`![](${e.items[t].src})`)},null,40,Gs)],64)))),128))],12,Zs)))),128))],4)}],["__file","ImageWall.vue"]]),MarkdownIcon:()=>io("svg",{width:"16",height:"16",ariaHidden:"true"},io("path",{d:"M14.85 3H1.15C.52 3 0 3.52 0 4.15v7.69C0 12.48.52 13 1.15 13h13.69c.64 0 1.15-.52 1.15-1.15v-7.7C16 3.52 15.48 3 14.85 3zM9 11H7V8L5.5 9.92 4 8v3H2V5h2l1.5 2L7 5h2v6zm2.99.5L9.5 8H11V5h2v3h1.5l-2.51 3.5z",fill:"currentColor"})),PreviewIcon:()=>io("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[io("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"}),io("path",{d:"M703.319 121.603H321.03c-109.8 0-199.469 89.146-199.469 199.38v382.034c0 109.796 89.236 199.38 199.469 199.38h207.397c20.653 0 37.384-16.645 37.384-37.299 0-20.649-16.731-37.296-37.384-37.296H321.03c-68.582 0-124.352-55.77-124.352-124.267V321.421c0-68.496 55.77-124.267 124.352-124.267h382.289c68.582 0 124.352 55.771 124.352 124.267V524.72c0 20.654 16.736 37.299 37.385 37.299 20.654 0 37.384-16.645 37.384-37.299V320.549c-.085-109.8-89.321-198.946-199.121-198.946zm0 0",fill:"currentColor"})]),LoadingIcon:Hs,GifIcon:()=>io("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[io("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"}),io("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"})])},props:{rootId:{type:String,default:""},replyId:{type:String,default:""},replyUser:{type:String,default:""},edit:{type:Object,default:null}},emits:["submit","cancel-reply","cancel-edit"],setup(e,t){let{emit:n}=t;const r=Cn("config"),o=Bi("WALINE_COMMENT_BOX_EDITOR",""),i=Bi("WALINE_USER_META",{nick:"",mail:"",link:""}),l=vs(),s=Cn(As),a=Pt({}),c=Pt(null),u=Pt(null),d=Pt(null),p=Pt(null),h=Pt(null),f=Pt(null),g=Pt(null),m=Pt({tabs:[],map:{}}),v=Pt(0),y=Pt(!1),w=Pt(!1),b=Pt(!1),k=Pt(""),x=Pt(0),_=kt({loading:!0,list:[]}),C=Pt(0),S=Pt(!1),$=Pt(""),I=Pt(!1),E=oo((()=>r.value.locale)),R=oo((()=>{var e;return Boolean(null===(e=l.value)||void 0===e?void 0:e.token)})),L=oo((()=>!1!==r.value.imageUploader)),A=e=>{const t=c.value,n=t.selectionStart,r=t.selectionEnd||0,i=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=i},z=e=>{const t=`![${r.value.locale.uploading} ${e.name}]()`;return A(t),Promise.resolve().then((()=>r.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,"")}))},O=async()=>{var t,u;const{serverURL:d,lang:p,login:h,wordLimit:f,requiredMeta:g}=r.value;let v="";if(s){const{executeRecaptcha:e,recaptchaLoaded:t}=s;await t(),v=await e("social")}const y={comment:$.value,nick:i.value.nick,mail:i.value.mail,link:i.value.link,ua:navigator.userAgent,url:r.value.path,recaptchaV3:v};if(null!==(t=l.value)&&void 0!==t&&t.token)y.nick=l.value.display_name,y.mail=l.value.email,y.link=l.value.url;else{if("force"===h)return;var w,b,_;if(g.indexOf("nick")>-1&&!y.nick)return null===(w=a.value.nick)||void 0===w||w.focus(),alert(E.value.nickError);if(g.indexOf("mail")>-1&&!y.mail||y.mail&&!/^\w(?:[\w._-]*\w)?@(?:\w(?:[\w-]*\w)?\.)*\w+$/.exec(y.mail))return null===(b=a.value.mail)||void 0===b||b.focus(),alert(E.value.mailError);if(!y.comment)return void(null===(_=c.value)||void 0===_||_.focus());y.nick||(y.nick=E.value.anonymous)}if(!S.value)return alert(E.value.wordHint.replace("$0",f[0].toString()).replace("$1",f[1].toString()).replace("$2",x.value.toString()));y.comment=ps(y.comment,m.value.map),e.replyId&&e.rootId?(y.pid=e.replyId,y.rid=e.rootId,y.at=e.replyUser):e.edit&&(y.eid=e.edit.objectId),I.value=!0,(e=>{let{serverURL:t,lang:n,token:r,comment:o}=e;const i={"Content-Type":"application/json"};return r&&(i.Authorization=`Bearer ${r}`),o.eid?fetch(`${t}/comment/${o.eid}?lang=${n}`,{method:"PUT",headers:i,body:JSON.stringify(o)}).then((e=>e.json())):fetch(`${t}/comment?lang=${n}`,{method:"POST",headers:i,body:JSON.stringify(o)}).then((e=>e.json()))})({serverURL:d,lang:p,token:null===(u=l.value)||void 0===u?void 0:u.token,comment:y}).then((t=>{var r;if(I.value=!1,t.errmsg)return alert(t.errmsg);n("submit",t.data),o.value="",k.value="",e.replyId&&n("cancel-reply"),null!==(r=e.edit)&&void 0!==r&&r.objectId&&n("cancel-edit")})).catch((e=>{I.value=!1,alert(e.message)}))},j=e=>{d.value.contains(e.target)||p.value.contains(e.target)||(y.value=!1),h.value.contains(e.target)||f.value.contains(e.target)||(w.value=!1)},T=async e=>{var t;const{scrollTop:n,clientHeight:o,scrollHeight:i}=e.target,l=(o+n)/i,s=r.value.search,a=(null===(t=g.value)||void 0===t?void 0:t.value)||"";l<.9||_.loading||(_.loading=!0,_.list.push(...s.more?await s.more(a,_.list.length):await s.search(a)),_.loading=!1,setTimeout((()=>{e.target.scrollTop=n}),50))},P=function(e){return oi(li(arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),e)}((e=>{_.list=[],T(e)}),300);In([r,x],(e=>{let[t,n]=e;const{wordLimit:r}=t;r?nr[1]?(C.value=r[1],S.value=!1):(C.value=r[1],S.value=!0):(C.value=0,S.value=!0)}),{immediate:!0}),In(w,(async e=>{if(!e)return;const t=r.value.search;g.value&&(g.value.value=""),_.loading=!0,_.list=t.default?await t.default():await t.search(""),_.loading=!1}));const M=e=>{let{data:t}=e;t&&"profile"===t.type&&(l.value={...l.value,...t.data},[localStorage,sessionStorage].filter((e=>e.getItem("WALINE_USER"))).forEach((e=>e.setItem("WALINE_USER",JSON.stringify(l)))))};return jn((()=>{var t;document.body.addEventListener("click",j),window.addEventListener("message",M),null!==(t=e.edit)&&void 0!==t&&t.objectId&&(o.value=e.edit.orig),In((()=>o.value),(e=>{const{highlighter:t,texRenderer:n}=r.value;$.value=e,k.value=hs(e,{emojiMap:m.value.map,highlighter:t,texRenderer:n}),x.value=(e=>(e=>e.match(/[\w\d\s\u00C0-\u024F]+/giu)||[])(e).reduce(((e,t)=>e+(""===t.trim()?0:t.trim().split(/\s+/u).length)),0)+(e=>e.match(/[\u4E00-\u9FA5]/gu)||[])(e).length)(e),e?Bs(c.value):Bs.destroy(c.value)}),{immediate:!0}),In((()=>r.value.emoji),(e=>{return(t=Array.isArray(e)?e:[],Promise.all(t.map((e=>"string"==typeof e?fl(ll(e)):Promise.resolve(e)))).then((e=>{const t={tabs:[],map:{}};return e.forEach((e=>{const{name:n,folder:r,icon:o,prefix:i,type:l,items:s}=e;t.tabs.push({name:n,icon:gl(o,r,i,l),items:s.map((e=>{const n=`${i||""}${e}`;return t.map[n]=gl(e,r,i,l),n}))})})),t}))).then((e=>{m.value=e}));var t}),{immediate:!0})})),Pn((()=>{document.body.removeEventListener("click",j),window.removeEventListener("message",M)})),{config:r,locale:E,insert:A,onChange:()=>{const e=u.value;e.files&&L.value&&z(e.files[0]).then((()=>{e.value=""}))},onDrop:e=>{var t;if(null!==(t=e.dataTransfer)&&void 0!==t&&t.items){const t=Cl(e.dataTransfer.items);t&&L.value&&(z(t),e.preventDefault())}},onKeyDown:e=>{const t=e.key;(e.ctrlKey||e.metaKey)&&"Enter"===t&&O()},onPaste:e=>{if(e.clipboardData){const t=Cl(e.clipboardData.items);t&&L.value&&z(t)}},onLogin:e=>{e.preventDefault();const{lang:t,serverURL:n}=r.value,o=(window.innerWidth-450)/2,i=(window.innerHeight-450)/2,s=window.open(`${n}/ui/login?lng=${encodeURIComponent(t)}`,"_blank",`width=450,height=450,left=${o},top=${i},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);null==s||s.postMessage({type:"TOKEN",data:null},"*");const a=e=>{let{data:t}=e;t&&"userInfo"===t.type&&t.data.token&&(null==s||s.close(),l.value=t.data,(t.data.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(t.data)),window.removeEventListener("message",a))};window.addEventListener("message",a)},onLogout:()=>{l.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null")},onProfile:e=>{e.preventDefault();const{lang:t,serverURL:n}=r.value,o=(window.innerWidth-800)/2,i=(window.innerHeight-800)/2,s=window.open(`${n}/ui/profile?lng=${encodeURIComponent(t)}`,"_blank",`width=800,height=800,left=${o},top=${i},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);null==s||s.postMessage({type:"TOKEN",data:l.value.token},"*")},submitComment:O,onImageWallScroll:T,onGifSearch:P,isLogin:R,userInfo:l,isSubmitting:I,wordNumber:x,wordLimit:C,isWordNumberLegal:S,editor:o,userMeta:i,emoji:m,emojiTabIndex:v,showEmoji:y,gifData:_,showGif:w,canUploadImage:L,previewText:k,showPreview:b,inputRefs:a,editorRef:c,emojiButtonRef:d,emojiPopupRef:p,gifButtonRef:h,gifPopupRef:f,imageUploadRef:u,gifSearchInputRef:g}}});const Qs={class:"wl-comment"},Js={key:0,class:"wl-login-info"},Ys={class:"wl-avatar"},Xs=["title"],ea=["title"],ta=["src"],na=["title","textContent"],ra={class:"wl-panel"},oa=["for","textContent"],ia=["id","onUpdate:modelValue","name","type"],la=["placeholder"],sa={class:"wl-preview"},aa=Or("hr",null,null,-1),ca=["innerHTML"],ua={class:"wl-footer"},da={class:"wl-actions"},pa={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noreferrer"},ha=["title"],fa=["title"],ga=["title"],ma=["title"],va={class:"wl-info"},ya={class:"wl-text-number"},wa={key:0},ba=Mr("  /  "),ka=["textContent"],xa=["textContent"],_a=["disabled"],Ca=["placeholder"],Sa={key:0,class:"wl-loading"},$a={key:0,class:"wl-tab-wrapper"},Ia=["title","onClick"],Ea=["src","alt"],Ra={key:0,class:"wl-tabs"},La=["onClick"],Aa=["src","alt","title"],za=["title"];var Oa=qs(Ks,[["render",function(e,t,n,r,o,i){var l,s;const a=Fn("CloseIcon"),c=Fn("MarkdownIcon"),u=Fn("EmojiIcon"),d=Fn("GifIcon"),p=Fn("ImageIcon"),h=Fn("PreviewIcon"),f=Fn("LoadingIcon"),g=Fn("ImageWall");return xr(),$r("div",Qs,["disable"===e.config.login||!e.isLogin||null!==(l=e.edit)&&void 0!==l&&l.objectId?Ur("v-if",!0):(xr(),$r("div",Js,[Or("div",Ys,[Or("button",{class:"wl-logout-btn",title:e.locale.logout,onClick:t[0]||(t[0]=function(){return e.onLogout&&e.onLogout(...arguments)})},[jr(a,{size:14})],8,Xs),Or("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:e.locale.profile,onClick:t[1]||(t[1]=function(){return e.onProfile&&e.onProfile(...arguments)})},[Or("img",{src:e.userInfo.avatar,alt:"avatar"},null,8,ta)],8,ea)]),Or("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:e.locale.profile,onClick:t[2]||(t[2]=function(){return e.onProfile&&e.onProfile(...arguments)}),textContent:L(e.userInfo.display_name)},null,8,na)])),Or("div",ra,["force"!==e.config.login&&e.config.meta.length&&!e.isLogin?(xr(),$r("div",{key:0,class:I(["wl-header",`item${e.config.meta.length}`])},[(xr(!0),$r(mr,null,Bn(e.config.meta,(t=>(xr(),$r("div",{key:t,class:"wl-header-item"},[Or("label",{for:t,textContent:L(e.locale[t]+(e.config.requiredMeta.includes(t)||!e.config.requiredMeta.length?"":`(${e.locale.optional})`))},null,8,oa),Mn(Or("input",{id:`wl-${t}`,ref_for:!0,ref:n=>{n&&(e.inputRefs[t]=n)},"onUpdate:modelValue":n=>e.userMeta[t]=n,class:I(["wl-input",`wl-${t}`]),name:t,type:"mail"===t?"email":"text"},null,10,ia),[[Ho,e.userMeta[t]]])])))),128))],2)):Ur("v-if",!0),Mn(Or("textarea",{id:"wl-edit",ref:"editorRef","onUpdate:modelValue":t[3]||(t[3]=t=>e.editor=t),class:"wl-editor",placeholder:e.replyUser?`@${e.replyUser}`:e.locale.placeholder,onKeydown:t[4]||(t[4]=function(){return e.onKeyDown&&e.onKeyDown(...arguments)}),onDrop:t[5]||(t[5]=function(){return e.onDrop&&e.onDrop(...arguments)}),onPaste:t[6]||(t[6]=function(){return e.onPaste&&e.onPaste(...arguments)})},null,40,la),[[Po,e.editor]]),Mn(Or("div",sa,[aa,Or("h4",null,L(e.locale.preview)+":",1),Ur(" eslint-disable-next-line vue/no-v-html "),Or("div",{class:"wl-content",innerHTML:e.previewText},null,8,ca)],512),[[qo,e.showPreview]]),Or("div",ua,[Or("div",da,[Or("a",pa,[jr(c)]),Mn(Or("button",{ref:"emojiButtonRef",class:I(["wl-action",{actived:e.showEmoji}]),title:e.locale.emoji,onClick:t[7]||(t[7]=t=>e.showEmoji=!e.showEmoji)},[jr(u)],10,ha),[[qo,e.emoji.tabs.length]]),e.config.search?(xr(),$r("button",{key:0,ref:"gifButtonRef",class:I(["wl-action",{actived:e.showGif}]),title:e.locale.gif,onClick:t[8]||(t[8]=t=>e.showGif=!e.showGif)},[jr(d)],10,fa)):Ur("v-if",!0),Or("input",{id:"wl-image-upload",ref:"imageUploadRef",class:"upload",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:t[9]||(t[9]=function(){return e.onChange&&e.onChange(...arguments)})},null,544),e.canUploadImage?(xr(),$r("label",{key:1,for:"wl-image-upload",class:"wl-action",title:e.locale.uploadImage},[jr(p)],8,ga)):Ur("v-if",!0),Or("button",{class:I(["wl-action",{actived:e.showPreview}]),title:e.locale.preview,onClick:t[10]||(t[10]=t=>e.showPreview=!e.showPreview)},[jr(h)],10,ma)]),Or("div",va,[Or("div",ya,[Mr(L(e.wordNumber)+" ",1),e.config.wordLimit?(xr(),$r("span",wa,[ba,Or("span",{class:I({illegal:!e.isWordNumberLegal}),textContent:L(e.wordLimit)},null,10,ka)])):Ur("v-if",!0),Mr("  "+L(e.locale.word),1)]),"disable"===e.config.login||e.isLogin?Ur("v-if",!0):(xr(),$r("button",{key:0,class:"wl-btn",onClick:t[11]||(t[11]=function(){return e.onLogin&&e.onLogin(...arguments)}),textContent:L(e.locale.login)},null,8,xa)),"force"!==e.config.login||e.isLogin?(xr(),$r("button",{key:1,class:"wl-btn primary",title:"Cmd|Ctrl + Enter",disabled:e.isSubmitting,onClick:t[12]||(t[12]=function(){return e.submitComment&&e.submitComment(...arguments)})},[e.isSubmitting?(xr(),Ir(f,{key:0,size:16})):(xr(),$r(mr,{key:1},[Mr(L(e.locale.submit),1)],64))],8,_a)):Ur("v-if",!0)]),Or("div",{ref:"gifPopupRef",class:I(["wl-gif-popup",{display:e.showGif}])},[Or("input",{ref:"gifSearchInputRef",type:"text",placeholder:e.locale.gifSearchPlaceholder,onInput:t[13]||(t[13]=function(){return e.onGifSearch&&e.onGifSearch(...arguments)})},null,40,Ca),jr(g,{items:e.gifData.list,"column-width":200,gap:6,onInsert:t[14]||(t[14]=t=>e.insert(t)),onScroll:e.onImageWallScroll},null,8,["items","onScroll"]),e.gifData.loading?(xr(),$r("div",Sa,[jr(f,{size:30})])):Ur("v-if",!0)],2),Or("div",{ref:"emojiPopupRef",class:I(["wl-emoji-popup",{display:e.showEmoji}])},[(xr(!0),$r(mr,null,Bn(e.emoji.tabs,((t,n)=>(xr(),$r(mr,{key:t.name},[n===e.emojiTabIndex?(xr(),$r("div",$a,[(xr(!0),$r(mr,null,Bn(t.items,(t=>(xr(),$r("button",{key:t,title:t,onClick:n=>e.insert(`:${t}:`)},[e.showEmoji?(xr(),$r("img",{key:0,class:"wl-emoji",src:e.emoji.map[t],alt:t,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Ea)):Ur("v-if",!0)],8,Ia)))),128))])):Ur("v-if",!0)],64)))),128)),e.emoji.tabs.length>1?(xr(),$r("div",Ra,[(xr(!0),$r(mr,null,Bn(e.emoji.tabs,((t,n)=>(xr(),$r("button",{key:t.name,class:I(["wl-tab",{active:e.emojiTabIndex===n}]),onClick:t=>e.emojiTabIndex=n},[Or("img",{class:"wl-emoji",src:t.icon,alt:t.name,title:t.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Aa)],10,La)))),128))])):Ur("v-if",!0)],2)])]),e.replyId||null!==(s=e.edit)&&void 0!==s&&s.objectId?(xr(),$r("button",{key:1,class:"wl-close",title:e.locale.cancelReply,onClick:t[15]||(t[15]=t=>e.$emit(e.replyId?"cancel-reply":"cancel-edit"))},[jr(a,{size:24})],8,za)):Ur("v-if",!0)])}],["__file","CommentBox.vue"]]);const ja=["approved","waiting","spam"];var Ta=Ln({components:{CommentBox:Oa,DeleteIcon:()=>io("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},io("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"})),LikeIcon:e=>{let{active:t=!1}=e;return io("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[io("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"})])},ReplyIcon:()=>io("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},io("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"})),EditIcon:()=>io("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},io("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"})),VerifiedIcon:()=>io("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},io("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"}))},props:{comment:{type:Object,required:!0},rootId:{type:String,required:!0},reply:{type:Object,default:null},edit:{type:Object,default:null}},emits:["submit","reply","like","delete","status","sticky","edit"],setup(e){const t=Cn("config"),n=ws(),r=vs(),o=oo((()=>t.value.locale)),i=oo((()=>{const{link:t}=e.comment;return t?sl(t)?t:`https://${t}`:""})),l=oo((()=>n.value.includes(e.comment.objectId))),s=gs(e.comment.insertedAt,o.value),a=oo((()=>"administrator"===r.value.type)),c=oo((()=>e.comment.user_id&&r.value.objectId===e.comment.user_id)),u=oo((()=>{var t;return e.comment.objectId===(null===(t=e.reply)||void 0===t?void 0:t.objectId)})),d=oo((()=>{var t;return e.comment.objectId===(null===(t=e.edit)||void 0===t?void 0:t.objectId)}));return{config:t,locale:o,isReplyingCurrent:u,isEditingCurrent:d,link:i,like:l,time:s,isAdmin:a,isOwner:c,commentStatus:ja}}});const Pa=["id"],Ma={class:"wl-user","aria-hidden":"true"},Ua=["src"],Na={class:"wl-card"},Fa={class:"wl-head"},Da=["href"],Va={key:1,class:"wl-nick"},Ba=["textContent"],Ha=["textContent"],Wa=["textContent"],qa=["textContent"],Za=["textContent"],Ga={class:"wl-comment-actions"},Ka=["title"],Qa=["textContent"],Ja=["title"],Ya={class:"wl-meta","aria-hidden":"true"},Xa=["data-value","textContent"],ec=["data-value","textContent"],tc=["data-value","textContent"],nc=["innerHTML"],rc={key:1,class:"wl-admin-actions"},oc={class:"wl-comment-status"},ic=["disabled","onClick","textContent"],lc={key:3,class:"wl-quote"};const sc=[{key:"insertedAt_desc",name:"latest"},{key:"insertedAt_asc",name:"oldest"},{key:"like_desc",name:"hottest"}];var ac=Ln({name:"WalineRoot",components:{CommentBox:Oa,CommentCard:qs(Ta,[["render",function(e,t,n,r,o,i){var l;const s=Fn("VerifiedIcon"),a=Fn("EditIcon"),c=Fn("DeleteIcon"),u=Fn("LikeIcon"),d=Fn("ReplyIcon"),p=Fn("CommentBox"),h=Fn("CommentCard",!0);return xr(),$r("div",{id:e.comment.objectId,class:"wl-item"},[Or("div",Ma,[e.comment.avatar?(xr(),$r("img",{key:0,src:e.comment.avatar},null,8,Ua)):Ur("v-if",!0),e.comment.type?(xr(),Ir(s,{key:1})):Ur("v-if",!0)]),Or("div",Na,[Or("div",Fa,[e.link?(xr(),$r("a",{key:0,class:"wl-nick",href:e.link,target:"_blank",rel:"nofollow noreferrer"},L(e.comment.nick),9,Da)):(xr(),$r("span",Va,L(e.comment.nick),1)),"administrator"===e.comment.type?(xr(),$r("span",{key:2,class:"wl-badge",textContent:L(e.locale.admin)},null,8,Ba)):Ur("v-if",!0),e.comment.label?(xr(),$r("span",{key:3,class:"wl-badge",textContent:L(e.comment.label)},null,8,Ha)):Ur("v-if",!0),e.comment.sticky?(xr(),$r("span",{key:4,class:"wl-badge",textContent:L(e.locale.sticky)},null,8,Wa)):Ur("v-if",!0),void 0!==e.comment.level&&e.comment.level>=0?(xr(),$r("span",{key:5,class:I(`wl-badge level${e.comment.level}`),textContent:L(e.locale[`level${e.comment.level}`]||`Level ${e.comment.level}`)},null,10,qa)):Ur("v-if",!0),Or("span",{class:"wl-time",textContent:L(e.time)},null,8,Za),Or("div",Ga,[e.isAdmin||e.isOwner?(xr(),$r("button",{key:0,class:"wl-edit",onClick:t[0]||(t[0]=t=>e.$emit("edit",e.comment))},[jr(a)])):Ur("v-if",!0),e.isAdmin||e.isOwner?(xr(),$r("button",{key:1,class:"wl-delete",onClick:t[1]||(t[1]=t=>e.$emit("delete",e.comment))},[jr(c)])):Ur("v-if",!0),Or("button",{class:"wl-like",title:e.like?e.locale.cancelLike:e.locale.like,onClick:t[2]||(t[2]=t=>e.$emit("like",e.comment))},[jr(u,{active:e.like},null,8,["active"]),"like"in e.comment?(xr(),$r("span",{key:0,textContent:L(e.comment.like)},null,8,Qa)):Ur("v-if",!0)],8,Ka),Or("button",{class:I(["wl-reply",{active:e.isReplyingCurrent}]),title:e.isReplyingCurrent?e.locale.cancelReply:e.locale.reply,onClick:t[3]||(t[3]=t=>e.$emit("reply",e.isReplyingCurrent?null:e.comment))},[jr(d)],10,Ja)])]),Or("div",Ya,[e.comment.addr?(xr(),$r("span",{key:0,class:"wl-addr","data-value":e.comment.addr,textContent:L(e.comment.addr)},null,8,Xa)):Ur("v-if",!0),e.comment.browser?(xr(),$r("span",{key:1,class:"wl-browser","data-value":e.comment.browser,textContent:L(e.comment.browser)},null,8,ec)):Ur("v-if",!0),e.comment.os?(xr(),$r("span",{key:2,class:"wl-os","data-value":e.comment.os,textContent:L(e.comment.os)},null,8,tc)):Ur("v-if",!0)]),Ur(" eslint-disable vue/no-v-html "),e.isEditingCurrent?Ur("v-if",!0):(xr(),$r("div",{key:0,class:"wl-content",innerHTML:e.comment.comment},null,8,nc)),Ur(" eslint-enable vue/no-v-html "),e.isAdmin&&!e.isEditingCurrent?(xr(),$r("div",rc,[Or("span",oc,[(xr(!0),$r(mr,null,Bn(e.commentStatus,(t=>(xr(),$r("button",{key:t,class:I(`wl-btn wl-${t}`),disabled:e.comment.status===t,onClick:n=>e.$emit("status",{status:t,comment:e.comment}),textContent:L(e.locale[t])},null,10,ic)))),128))]),e.isAdmin&&!e.comment.rid?(xr(),$r("button",{key:0,class:"wl-btn wl-sticky",onClick:t[4]||(t[4]=t=>e.$emit("sticky",e.comment))},L(e.comment.sticky?e.locale.unsticky:e.locale.sticky),1)):Ur("v-if",!0)])):Ur("v-if",!0),e.isReplyingCurrent||e.isEditingCurrent?(xr(),$r("div",{key:2,class:I({"wl-reply-wrapper":e.isReplyingCurrent,"wl-edit-wrapper":e.isEditingCurrent})},[jr(p,{edit:e.edit,"reply-id":null===(l=e.reply)||void 0===l?void 0:l.objectId,"reply-user":e.comment.nick,"root-id":e.rootId,onSubmit:t[5]||(t[5]=t=>e.$emit("submit",t)),onCancelReply:t[6]||(t[6]=t=>e.$emit("reply",null)),onCancelEdit:t[7]||(t[7]=t=>e.$emit("edit",null))},null,8,["edit","reply-id","reply-user","root-id"])],2)):Ur("v-if",!0),e.comment.children?(xr(),$r("div",lc,[(xr(!0),$r(mr,null,Bn(e.comment.children,(n=>(xr(),Ir(h,{key:n.objectId,comment:n,reply:e.reply,edit:e.edit,"root-id":e.rootId,onReply:t[8]||(t[8]=t=>e.$emit("reply",t)),onSubmit:t[9]||(t[9]=t=>e.$emit("submit",t)),onLike:t[10]||(t[10]=t=>e.$emit("like",t)),onEdit:t[11]||(t[11]=t=>e.$emit("edit",t)),onDelete:t[12]||(t[12]=t=>e.$emit("delete",t)),onStatus:t[13]||(t[13]=t=>e.$emit("status",t)),onSticky:t[14]||(t[14]=t=>e.$emit("sticky",t))},null,8,["comment","reply","edit","root-id"])))),128))])):Ur("v-if",!0)])],8,Pa)}],["__file","CommentCard.vue"]]),LoadingIcon:Hs},props:["serverURL","path","meta","requiredMeta","dark","lang","locale","pageSize","wordLimit","emoji","login","highlighter","texRenderer","imageUploader","search","copyright"],setup(e){const t=oo((()=>(e=>{let{serverURL:t,path:s=location.pathname,lang:a=r,locale:c,emoji:d=["//unpkg.com/@waline/emojis@1.1.0/weibo"],meta:p=["nick","mail","link"],requiredMeta:h=[],dark:f=!1,pageSize:g=10,wordLimit:m,imageUploader:v,highlighter:y,texRenderer:b,copyright:k=!0,login:x="enable",search:_=l(),...C}=e;return{serverURL:al(t),path:il(s),locale:{...w[a]||w[r],..."object"==typeof c?c:{}},wordLimit:cl(m),meta:n(p),requiredMeta:n(h),imageUploader:ul(v,o),highlighter:ul(y,u),texRenderer:ul(b,i),lang:a,dark:f,emoji:d,pageSize:g,login:x,copyright:k,search:_,...C}})(e))),s=vs(),a=ws(),c=Pt("loading"),d=Pt(0),p=Pt(1),h=Pt(0),f=Pt(sc[0].key),g=Pt([]),m=Pt(null),v=Pt(null),y=oo((()=>{return"string"==typeof(e=t.value.dark)?"auto"===e?`@media(prefers-color-scheme:dark){body${dl}}`:`${e}${dl}`:!0===e?`:root${dl}`:"";var e}));let b;!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Pt(!1),{document:r=Ri,immediate:o=!0,manual:i=!1,id:l="vueuse_styletag_"+ ++Xi}=t,s=Pt(e);let a=()=>{};const c=()=>{if(!r)return;const e=r.getElementById(l)||r.createElement("style");e.type="text/css",e.id=l,t.media&&(e.media=t.media),r.head.appendChild(e),n.value||(a=In(s,(t=>{e.innerText=t}),{immediate:!0}),n.value=!0)},u=()=>{r&&n.value&&(a(),r.head.removeChild(r.getElementById(l)),n.value=!1)};o&&!i&&ci(c),i||ai(u),_t(n)}(y);const k=e=>{var n,r;const{serverURL:o,path:i,pageSize:l}=t.value,a=new AbortController;c.value="loading",null===(n=b)||void 0===n||n(),(e=>{let{serverURL:t,lang:n,path:r,page:o,pageSize:i,sortBy:l,signal:s,token:a}=e;const c={};return a&&(c.Authorization=`Bearer ${a}`),fetch(`${t}/comment?path=${encodeURIComponent(r)}&pageSize=${i}&page=${o}&lang=${n}&sortBy=${l}`,{signal:s,headers:c}).then((e=>e.json())).then((e=>yl(e,"comment list")))})({serverURL:o,lang:t.value.lang,path:i,pageSize:l,sortBy:f.value,page:e,signal:a.signal,token:null===(r=s.value)||void 0===r?void 0:r.token}).then((t=>{c.value="success",d.value=t.count,g.value.push(...t.data),p.value=e,h.value=t.totalPages})).catch((e=>{"AbortError"!==e.name&&(console.error(e.message),c.value="error")})),b=a.abort.bind(a)},x=()=>{d.value=0,g.value=[],k(1)};return function(e,t){if(qr){let n=qr.provides;const r=qr.parent&&qr.parent.provides;r===n&&(n=qr.provides=Object.create(r)),n[e]=t}}("config",t),In((()=>e.path),x),jn((()=>x())),{config:t,darkmodeStyle:y,i18n:oo((()=>t.value.locale)),status:c,count:d,page:p,totalPages:h,sortBy:f,sortByItems:sc,data:g,reply:m,edit:v,loadMore:()=>k(p.value+1),refresh:x,onSortByChange:e=>{f.value!==e&&(f.value=e,x())},onReply:e=>{m.value=e},onSubmit:e=>{if(v.value)v.value.comment=e.comment,v.value.orig=e.orig;else if(e.rid){const t=g.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 g.value.unshift(e)},onStatusChange:async e=>{var n;let{comment:r,status:o}=e;if(r.status===o)return;const{serverURL:i,lang:l}=t.value;await wl({serverURL:i,lang:l,token:null===(n=s.value)||void 0===n?void 0:n.token,objectId:r.objectId,status:o}),r.status=o},onDelete:async e=>{var n;let{objectId:r}=e;if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:o,lang:i}=t.value;await(e=>{let{serverURL:t,lang:n,token:r,objectId:o}=e;return fetch(`${t}/comment/${o}?lang=${n}`,{method:"DELETE",headers:{Authorization:`Bearer ${r}`}}).then((e=>e.json()))})({serverURL:o,lang:i,token:null===(n=s.value)||void 0===n?void 0:n.token,objectId:r}),g.value.some(((e,t)=>e.objectId===r?(g.value=g.value.filter(((e,n)=>n!==t)),!0):e.children.some(((n,o)=>n.objectId===r&&(g.value[t].children=e.children.filter(((e,t)=>t!==o)),!0)))))},onSticky:async e=>{var n;if(e.rid)return;const{serverURL:r,lang:o}=t.value;await wl({serverURL:r,lang:o,token:null===(n=s.value)||void 0===n?void 0:n.token,objectId:e.objectId,sticky:e.sticky?0:1}),e.sticky=!e.sticky},onLike:async e=>{const{serverURL:n,lang:r}=t.value,{objectId:o}=e,i=a.value.includes(o);await(e=>{let{serverURL:t,lang:n,objectId:r,like:o}=e;return fetch(`${t}/comment/${r}?lang=${n}`,{method:"PUT",headers:vl,body:JSON.stringify({like:o})}).then((e=>e.json()))})({serverURL:n,lang:r,objectId:o,like:!i}),i?a.value=a.value.filter((e=>e!==o)):(a.value=[...a.value,o],a.value.length>50&&(a.value=a.value.slice(-50))),e.like=(e.like||0)+(i?-1:1)},onEdit:e=>{v.value=e},version:"2.10.0"}}});const cc={"data-waline":""},uc={class:"wl-meta-head"},dc={class:"wl-count"},pc=["textContent"],hc={class:"wl-sort"},fc=["onClick"],gc={class:"wl-cards"},mc={key:1,class:"wl-operation"},vc=["textContent"],yc={key:0,class:"wl-loading"},wc=["textContent"],bc={class:"wl-operation"},kc=["textContent"],xc={key:3,class:"wl-power"},_c=Mr(" Powered by "),Cc=Or("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noreferrer"}," Waline ",-1);var Sc=qs(ac,[["render",function(e,t,n,r,o,i){const l=Fn("CommentBox"),s=Fn("CommentCard"),a=Fn("LoadingIcon");return xr(),$r("div",cc,[e.reply?Ur("v-if",!0):(xr(),Ir(l,{key:0,onSubmit:e.onSubmit},null,8,["onSubmit"])),Or("div",uc,[Or("div",dc,[e.count?(xr(),$r("span",{key:0,class:"wl-num",textContent:L(e.count)},null,8,pc)):Ur("v-if",!0),Mr(" "+L(e.i18n.comment),1)]),Or("ul",hc,[(xr(!0),$r(mr,null,Bn(e.sortByItems,(t=>(xr(),$r("li",{key:t.key,class:I([t.key===e.sortBy?"active":""]),onClick:n=>e.onSortByChange(t.key)},L(e.i18n[t.name]),11,fc)))),128))])]),Or("div",gc,[(xr(!0),$r(mr,null,Bn(e.data,(t=>(xr(),Ir(s,{key:t.objectId,"root-id":t.objectId,comment:t,reply:e.reply,edit:e.edit,onReply:e.onReply,onEdit:e.onEdit,onSubmit:e.onSubmit,onStatus:e.onStatusChange,onDelete:e.onDelete,onSticky:e.onSticky,onLike:e.onLike},null,8,["root-id","comment","reply","edit","onReply","onEdit","onSubmit","onStatus","onDelete","onSticky","onLike"])))),128))]),"error"===e.status?(xr(),$r("div",mc,[Or("button",{type:"button",class:"wl-btn",onClick:t[0]||(t[0]=function(){return e.refresh&&e.refresh(...arguments)}),textContent:L(e.i18n.refresh)},null,8,vc)])):(xr(),$r(mr,{key:2},["loading"===e.status?(xr(),$r("div",yc,[jr(a,{size:30})])):e.data.length?e.page{t.forEach(((t,n)=>{t.innerText=e[n].toString()}))},Ic=e=>{let{serverURL:t,path:n=window.location.pathname,selector:r=".waline-pageview-count",update:o=!0,lang:i="zh-CN"}=e;const l=new AbortController,s=Array.from(document.querySelectorAll(r)),a=e=>{const t=fs(e);return null!==t&&n!==t},c=e=>bl({serverURL:al(t),paths:e.map((e=>fs(e)||n)),lang:i,signal:l.signal}).then((t=>$c(t,e))).catch(ml);if(o){const e=s.filter((e=>!a(e))),r=s.filter(a);kl({serverURL:al(t),path:n,lang:i}).then((t=>$c(new Array(e.length).fill(t),e))),r.length&&c(r)}else c(s);return l.abort.bind(l)};e.pageviewCount=Ic;e.init=e=>{let{el:t="#waline",path:n=window.location.pathname,comment:r=!1,pageview:o=!1,...i}=e;const l=t?xl(t):null;if(t&&!l)throw new Error("Option 'el' do not match any domElement!");if(!i.serverURL)throw new Error("Option 'serverURL' is missing!");const s=kt({...i}),a=kt({comment:r,pageview:o,path:n}),c=l?function(){const e=Qo().createApp(...arguments),{mount:t}=e;return e.mount=n=>{const r=Jo(n);if(!r)return;const o=e._component;Z(o)||o.render||o.template||(o.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}((()=>io(Sc,{path:a.path,...s}))):null;c&&i.recaptchaV3Key&&c.use(Os,{siteKey:i.recaptchaV3Key,loaderOptions:{useRecaptchaNet:!0,autoHideBadge:!0}}),c&&c.mount(l);const u=Sn((()=>{a.comment&&bs({serverURL:s.serverURL,path:a.path,selector:"string"==typeof a.comment?a.comment:void 0})})),d=Sn((()=>{a.pageview&&Ic({serverURL:s.serverURL,path:a.path,selector:"string"==typeof a.pageview?a.pageview:void 0})}));return{el:l,update:function(){let{comment:e,pageview:t,path:n=window.location.pathname,...r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.entries(r).forEach((e=>{let[t,n]=e;s[t]=n})),a.path=n,void 0!==e&&(a.comment=e),void 0!==t&&(a.pageview=t)},destroy:()=>{null==c||c.unmount(),u(),d()}}};e.version="2.10.0";e.RecentComments=e=>{var t;let{el:n,serverURL:r,count:o,lang:i="zh-CN"}=e;const l=vs(),s=xl(n),a=new AbortController;return(e=>{let{serverURL:t,lang:n,count:r,signal:o,token:i}=e;const l={};return i&&(l.Authorization=`Bearer ${i}`),fetch(`${t}/comment?type=recent&count=${r}&lang=${n}`,{signal:o,headers:l}).then((e=>e.json())).then((e=>yl(e,"recent comment")))})({serverURL:r,count:o,lang:i,signal:a.signal,token:null===(t=l.value)||void 0===t?void 0:t.token}).then((e=>s&&e.length?(s.innerHTML=`
    `,{comments:e,destroy:()=>{a.abort(),s.innerHTML=""}}):{comments:e,destroy:()=>a.abort()}))}})); +!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=e=>new Promise(((t,n)=>{if(e.size>128e3)return n(new Error("File too large! File size limit 128KB"));const r=new FileReader;r.readAsDataURL(e),r.onload=()=>{var e;return t((null===(e=r.result)||void 0===e?void 0:e.toString())||"")},r.onerror=n})),o=e=>!0===e?'

    Tex is not available in preview

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

    An error occurred:

    "+qi(e.message+"",!0)+"
    ";throw e}try{const n=vo.lex(e,t);if(t.walkTokens){if(t.async)return Promise.all(xo.walkTokens(n,t.walkTokens)).then((()=>ko.parse(n,t))).catch(r);xo.walkTokens(n,t.walkTokens)}return ko.parse(n,t)}catch(e){r(e)}}xo.options=xo.setOptions=function(e){var t;return io(xo.defaults,e),t=xo.defaults,Fi=t,xo},xo.getDefaults=function(){return{async:!1,baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},xo.defaults=Fi,xo.use=function(){const e=xo.defaults.extensions||{renderers:{},childTokens:{}};for(var t=arguments.length,n=new Array(t),r=0;r{const n=io({},t);if(n.async=xo.defaults.async||n.async,t.extensions&&(t.extensions.forEach((t=>{if(!t.name)throw new Error("extension name required");if(t.renderer){const n=e.renderers[t.name];e.renderers[t.name]=n?function(){for(var e=arguments.length,r=new Array(e),l=0;lAn error occurred:

    "+qi(e.message+"",!0)+"
    ";throw e}},xo.Parser=ko,xo.parser=ko.parse,xo.Renderer=yo,xo.TextRenderer=wo,xo.Lexer=vo,xo.lexer=vo.lex,xo.Tokenizer=po,xo.Slugger=bo,xo.parse=xo;const _o=/\$.*?\$/,$o=/^\$(.*?)\$/,Co=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,So=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.replace(/:(.+?):/g,((e,n)=>t[n]?`${n}`:e))},Eo=e=>e.dataset.path||e.getAttribute("id"),Ro=e=>{let{serverURL:t,path:n=window.location.pathname,selector:r=".waline-comment-count",lang:l=navigator.language}=e;const i=new AbortController,o=document.querySelectorAll(r);return o.length&&(e=>{let{serverURL:t,lang:n,paths:r,signal:l}=e;return fetch(`${t}/comment?type=count&url=${encodeURIComponent(r.join(","))}&lang=${n}`,{signal:l}).then((e=>e.json())).then((e=>Array.isArray(e)?e:[e]))})({serverURL:I(t),paths:Array.from(o).map((e=>E(e.dataset.path||e.getAttribute("id")||n))),lang:l,signal:i.signal}).then((e=>{o.forEach(((t,n)=>{t.innerText=e[n].toString()}))})).catch(Ti),i.abort.bind(i)},Ao=e=>{let{size:t}=e;return ol("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:t,height:t},[ol("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"}),ol("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"})])},Io=()=>ol("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ol("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"})),Lo=()=>ol("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ol("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"})),zo=()=>ol("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ol("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"}),ol("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"})]),Oo=e=>{let{active:t=!1}=e;return ol("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ol("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"})])},jo=()=>ol("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[ol("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"}),ol("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"})]),To=()=>ol("svg",{width:"16",height:"16",ariaHidden:"true"},ol("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"})),Uo=()=>ol("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ol("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"})),Po=()=>ol("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},ol("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"})),Mo=()=>ol("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},ol("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"})),Fo=e=>{let{size:t}=e;return ol("svg",{width:t,height:t,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},ol("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},ol("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"})))},No=()=>ol("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[ol("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"}),ol("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=Ro;let Vo=null;const Do=()=>Vo||(Vo=bi("WALINE_LIKE",[]));let Bo=null;var Ho="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Wo={},qo={},Zo={},Qo=Ho&&Ho.__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())}))},Ko=Ho&&Ho.__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]ts??(ts=bi("WALINE_USER",{})),rs={key:0,class:"wl-reaction"},ls=["textContent"],is={class:"wl-reaction-list"},os=["onClick"],ss={class:"wl-reaction-img"},as=["src","alt"],cs=["textContent"],us=["textContent"];var ps,ds,hs=Nn({__name:"ArticleReaction",setup(e,t){let{expose:n}=t;n();const r=Bo??(Bo=bi("WALINE_REACTION",{})),l=jn("config"),i=Qt(-1),o=Qt([]),s=il((()=>l.value.locale)),a=il((()=>l.value.reaction.length>0)),c=il((()=>{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 Bn((()=>{Pn((()=>[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})})),Wn((()=>{var e;return null===(e=u)||void 0===e?void 0:e()})),(e,t)=>Xt(c).length?(Ar(),Or("div",rs,[Nr("div",{class:"wl-reaction-title",textContent:q(Xt(s).reactionTitle)},null,8,ls),Nr("ul",is,[(Ar(!0),Or(_r,null,Jn(Xt(c),((e,t)=>{let{active:n,icon:s,desc:a}=e;return Ar(),Or("li",{key:t,class:V(["wl-reaction-item",{active:n}]),onClick:e=>(async e=>{if(-1===i.value){const{serverURL:t,lang:n,path:s}=l.value,a=r.value[s];i.value=e,void 0!==a&&(await C({serverURL:t,lang:n,path:s,type:`reaction${a}`,action:"desc"}),o.value[a]=Math.max(o.value[a]-1,0)),a!==e&&(await C({serverURL:t,lang:n,path:s,type:`reaction${e}`}),o.value[e]=(o.value[e]||0)+1),a===e?delete r.value[s]:r.value[s]=e,i.value=-1}})(t)},[Nr("div",ss,[Nr("img",{src:s,alt:a},null,8,as),i.value===t?(Ar(),jr(Xt(Fo),{key:0,class:"wl-reaction-loading"})):(Ar(),Or("div",{key:1,class:"wl-reaction-votes",textContent:q(o.value[t]||0)},null,8,cs))]),Nr("div",{class:"wl-reaction-text",textContent:q(a)},null,8,us)],10,os)})),128))])])):Hr("v-if",!0)}}),fs=(e,t)=>{const n=e.__vccOpts||e;for(const[e,r]of t)n[e]=r;return n},gs=fs(hs,[["__file","ArticleReaction.vue"]]),ms="function"==typeof Map?new Map:(ps=[],ds=[],{has:function(e){return ps.indexOf(e)>-1},get:function(e){return ds[ps.indexOf(e)]},set:function(e,t){-1===ps.indexOf(e)&&(ps.push(e),ds.push(t))},delete:function(e){var t=ps.indexOf(e);t>-1&&(ps.splice(t,1),ds.splice(t,1))}}),vs=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(ps){vs=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function ys(e){var t=ms.get(e);t&&t.destroy()}function ws(e){var t=ms.get(e);t&&t.update()}var bs=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((bs=function(e){return e}).destroy=function(e){return e},bs.update=function(e){return e}):((bs=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&&!ms.has(e)){var t,n=null,r=null,l=null,i=function(){e.clientWidth!==r&&c()},o=function(t){window.removeEventListener("resize",i,!1),e.removeEventListener("input",c,!1),e.removeEventListener("keyup",c,!1),e.removeEventListener("autosize:destroy",o,!1),e.removeEventListener("autosize:update",c,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),ms.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",o,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",c,!1),window.addEventListener("resize",i,!1),e.addEventListener("input",c,!1),e.addEventListener("autosize:update",c,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",ms.set(e,{destroy:o,update:c}),"vertical"===(t=window.getComputedStyle(e,null)).resize?e.style.resize="none":"both"===t.resize&&(e.style.resize="horizontal"),n="content-box"===t.boxSizing?-(parseFloat(t.paddingTop)+parseFloat(t.paddingBottom)):parseFloat(t.borderTopWidth)+parseFloat(t.borderBottomWidth),isNaN(n)&&(n=0),c()}function s(t){var n=e.style.width;e.style.width="0px",e.style.width=n,e.style.overflowY=t}function a(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&(e.parentNode.style.scrollBehavior="auto",t.push([e.parentNode,e.parentNode.scrollTop])),e=e.parentNode;return function(){return t.forEach((function(e){var t=e[0];t.scrollTop=e[1],t.style.scrollBehavior=null}))}}(e);e.style.height="",e.style.height=e.scrollHeight+n+"px",r=e.clientWidth,t()}}function c(){a();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),r="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(r[]},columnWidth:{default:300},gap:{default:0}},emits:["insert"],setup(e,t){let{expose:n}=t;const r=e;n();let l=null;const i=Qt(null),o=Qt({}),s=Qt([]),a=()=>{const e=Math.floor((i.value.getBoundingClientRect().width+r.gap)/(r.columnWidth+r.gap));return e>0?e:1},c=async e=>{var t;if(e>=r.items.length)return;await mn();const n=Array.from((null===(t=i.value)||void 0===t?void 0:t.children)||[]).reduce(((e,t)=>t.getBoundingClientRect().height0&&void 0!==arguments[0]&&arguments[0];if(s.value.length===a()&&!e)return;var t;s.value=(t=a(),new Array(t).fill(null).map((()=>[])));const n=window.scrollY;await c(0),window.scrollTo({top:n})},p=e=>{o.value[e.target.src]=!0};return Bn((()=>{u(!0),l=new ResizeObserver((()=>{u()})),l.observe(i.value),Pn((()=>[r.items]),(()=>{o.value={},u(!0)})),Pn((()=>[r.columnWidth,r.gap]),(()=>{u()}))})),Hn((()=>l.unobserve(i.value))),(t,n)=>(Ar(),Or("div",{ref_key:"wall",ref:i,class:"wl-gallery",style:U({gap:`${e.gap}px`})},[(Ar(!0),Or(_r,null,Jn(s.value,((n,r)=>(Ar(),Or("div",{key:r,class:"wl-gallery-column","data-index":r,style:U({gap:`${e.gap}px`})},[(Ar(!0),Or(_r,null,Jn(n,(n=>(Ar(),Or(_r,{key:n},[o.value[e.items[n].src]?Hr("v-if",!0):(Ar(),jr(Xt(Fo),{key:0,size:36,style:{margin:"20px auto"}})),Nr("img",{class:"wl-gallery-item",src:e.items[n].src,title:e.items[n].title,loading:"lazy",onLoad:p,onClick:r=>t.$emit("insert",`![](${e.items[n].src})`)},null,40,_s)],64)))),128))],12,xs)))),128))],4))}}),Cs=fs($s,[["__file","ImageWall.vue"]]);const Ss={class:"wl-comment"},Es={key:0,class:"wl-login-info"},Rs={class:"wl-avatar"},As=["title"],Is=["title"],Ls=["src"],zs=["title","textContent"],Os={class:"wl-panel"},js=["for","textContent"],Ts=["id","onUpdate:modelValue","name","type"],Us=["placeholder"],Ps={class:"wl-preview"},Ms=Nr("hr",null,null,-1),Fs=["innerHTML"],Ns={class:"wl-footer"},Vs={class:"wl-actions"},Ds={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noopener noreferrer"},Bs=["title"],Hs=["title"],Ws=["title"],qs=["title"],Zs={class:"wl-info"},Qs={class:"wl-text-number"},Ks={key:0},Gs=["textContent"],Js=["textContent"],Xs=["disabled"],Ys=["placeholder"],ea={key:0,class:"wl-loading"},ta={key:0,class:"wl-tab-wrapper"},na=["title","onClick"],ra=["src","alt"],la={key:0,class:"wl-tabs"},ia=["onClick"],oa=["src","alt","title"],sa=["title"];var aa=Nn({__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=jn("config"),o=bi("WALINE_COMMENT_BOX_EDITOR",""),s=bi("WALINE_USER_META",{nick:"",mail:"",link:""}),a=ns(),c=Qt({}),u=Qt(null),p=Qt(null),d=Qt(null),h=Qt(null),f=Qt(null),g=Qt(null),m=Qt(null),v=Qt({tabs:[],map:{}}),y=Qt(0),w=Qt(!1),b=Qt(!1),k=Qt(!1),x=Qt(""),_=Qt(0),$=jt({loading:!0,list:[]}),C=Qt(0),E=Qt(!1),A=Qt(""),I=Qt(!1),L=Qt(!1),z=il((()=>i.value.locale)),O=il((()=>{var e;return Boolean(null===(e=a.value)||void 0===e?void 0:e.token)})),j=il((()=>!1!==i.value.imageUploader)),T=e=>{const t=u.value,n=t.selectionStart,r=t.selectionEnd||0,l=t.scrollTop;o.value=t.value.substring(0,n)+e+t.value.substring(r,t.value.length),t.focus(),t.selectionStart=n+e.length,t.selectionEnd=n+e.length,t.scrollTop=l},U=e=>{const t=e.key;(e.ctrlKey||e.metaKey)&&"Enter"===t&&D()},P=e=>{const t=`![${i.value.locale.uploading} ${e.name}]()`;return T(t),Promise.resolve().then((()=>i.value.imageUploader(e))).then((n=>{o.value=o.value.replace(t,`\r\n![${e.name}](${n})`)})).catch((e=>{alert(e.message),o.value=o.value.replace(t,"")}))},M=e=>{var t;if(null!==(t=e.dataTransfer)&&void 0!==t&&t.items){const t=Mi(e.dataTransfer.items);t&&j.value&&(P(t),e.preventDefault())}},F=e=>{if(e.clipboardData){const t=Mi(e.clipboardData.items);t&&j.value&&P(t)}},N=()=>{const e=p.value;e.files&&j.value&&P(e.files[0]).then((()=>{e.value=""}))},D=async()=>{var e,t;const{serverURL:n,lang:p,login:d,wordLimit:h,requiredMeta:f}=i.value;let g="";i.value.recaptchaV3Key&&(g=await(e=>{const t=es[e]??(es[e]=Wo.load(e,{useRecaptchaNet:!0,autoHideBadge:!0}));return{execute:e=>t.then((t=>t.execute(e)))}})(i.value.recaptchaV3Key).execute("social"));const m={comment:A.value,nick:s.value.nick,mail:s.value.mail,link:s.value.link,ua:navigator.userAgent,url:i.value.path,recaptchaV3:g};if(null!==(e=a.value)&&void 0!==e&&e.token)m.nick=a.value.display_name,m.mail=a.value.email,m.link=a.value.url;else{var y,w,b;if("force"===d)return;if(f.indexOf("nick")>-1&&!m.nick)return null!==(y=c.value.nick)&&void 0!==y&&y.focus(),alert(z.value.nickError);if(f.indexOf("mail")>-1&&!m.mail||m.mail&&!/^\w(?:[\w._-]*\w)?@(?:\w(?:[\w-]*\w)?\.)*\w+$/.exec(m.mail))return null!==(w=c.value.mail)&&void 0!==w&&w.focus(),alert(z.value.mailError);if(!m.comment)return void(null===(b=u.value)||void 0===b||b.focus());m.nick||(m.nick=z.value.anonymous)}if(!E.value)return alert(z.value.wordHint.replace("$0",h[0].toString()).replace("$1",h[1].toString()).replace("$2",_.value.toString()));m.comment=So(m.comment,v.value.map),l.replyId&&l.rootId&&(m.pid=l.replyId,m.rid=l.rootId,m.at=l.replyUser),I.value=!0;const k={serverURL:n,lang:p,token:null===(t=a.value)||void 0===t?void 0:t.token,comment:m};(l.edit?S({objectId:l.edit.objectId,...k}):(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()))})(k)).then((e=>{var t;if(I.value=!1,e.errmsg)return alert(e.errmsg);r("submit",e.data),o.value="",x.value="",l.replyId&&r("cancelReply"),(null===(t=l.edit)||void 0===t?void 0:t.objectId)&&r("cancelEdit")})).catch((e=>{I.value=!1,alert(e.message)}))},B=e=>{e.preventDefault();const{lang:t,serverURL:n}=i.value;(e=>{let{lang:t,serverURL:n}=e;const r=(window.innerWidth-450)/2,l=(window.innerHeight-450)/2,i=window.open(`${n}/ui/login?lng=${encodeURIComponent(t)}`,"_blank",`width=450,height=450,left=${r},top=${l},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`);return null!=i&&i.postMessage({type:"TOKEN",data:null},"*"),new Promise((e=>{const t=n=>{let{data:r}=n;r&&"object"==typeof r&&"userInfo"===r.type&&r.data.token&&(null!=i&&i.close(),window.removeEventListener("message",t),e(r.data))};window.addEventListener("message",t)}))})({serverURL:n,lang:t}).then((e=>{a.value=e,(e.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(e)),r("log")}))},H=()=>{a.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null"),r("log")},W=e=>{var t;e.preventDefault();const{lang:n,serverURL:r}=i.value,l=(window.innerWidth-800)/2,o=(window.innerHeight-800)/2,s=new URLSearchParams({lng:n,token:a.value.token});null===(t=window.open(`${r}/ui/profile?${s.toString()}`,"_blank",`width=800,height=800,left=${l},top=${o},scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no`))||void 0===t||t.postMessage({type:"TOKEN",data:a.value.token},"*")},Z=e=>{var t,n,r,l;null!==(t=d.value)&&void 0!==t&&t.contains(e.target)||null!==(n=h.value)&&void 0!==n&&n.contains(e.target)||(w.value=!1),(null===(r=f.value)||void 0===r?void 0:r.contains(e.target))||(null===(l=g.value)||void 0===l?void 0:l.contains(e.target))||(b.value=!1)},Q=async e=>{var t;const{scrollTop:n,clientHeight:r,scrollHeight:l}=e.target,o=(r+n)/l,s=i.value.search,a=(null===(t=m.value)||void 0===t?void 0:t.value)||"";o<.9||$.loading||L.value||($.loading=!0,(s.more&&$.list.length?await s.more(a,$.list.length):await s.search(a)).length?$.list=[...$.list,...s.more&&$.list.length?await s.more(a,$.list.length):await s.search(a)]:L.value=!0,$.loading=!1,setTimeout((()=>{e.target.scrollTop=n}),50))},K=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Wl(function(e){let t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=Bl;const i=e=>{clearTimeout(e),l(),l=Bl};return o=>{const s=Hl(e),a=Hl(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)}))}}(t,n),e)}((e=>{$.list=[],L.value=!1,Q(e)}),300);Pn([i,_],(e=>{let[t,n]=e;const{wordLimit:r}=t;r?nr[1]?(C.value=r[1],E.value=!1):(C.value=r[1],E.value=!0):(C.value=0,E.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 Bn((()=>{var e;document.body.addEventListener("click",Z),window.addEventListener("message",G),null!==(e=l.edit)&&void 0!==e&&e.objectId&&(o.value=l.edit.orig),Pn(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})),Pn((()=>o.value),(e=>{const{highlighter:t,texRenderer:n}=i.value;A.value=e,x.value=((e,t)=>{let{emojiMap:n,highlighter:r,texRenderer:l}=t;if(xo.setOptions({highlight:r||void 0,breaks:!0,smartLists:!0,smartypants:!0}),l){const e=(e=>[{name:"blockMath",level:"block",tokenizer(t){const n=Co.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(_o);return-1!==t?t:e.length},tokenizer(t){const n=$o.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!1,n[1])}}}])(l);xo.use({extensions:e})}return xo.parse(So(e,n))})(e,{emojiMap:v.value.map,highlighter:t,texRenderer:n}),_.value=(e=>(e=>e.match(/[\w\d\s\u00C0-\u024F]+/giu)||[])(e).reduce(((e,t)=>e+(""===t.trim()?0:t.trim().split(/\s+/u).length)),0)+(e=>e.match(/[\u4E00-\u9FA5]/gu)||[])(e).length)(e),e?ks(u.value):ks.destroy(u.value)}),{immediate:!0}),Pn((()=>i.value.emoji),(e=>{return(t=e,Promise.all(t.map((e=>"string"==typeof e?(e=>{const t=bi("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:ji(l,r,i,o),items:s.map((e=>{const n=`${i||""}${e}`;return t.map[n]=ji(e,r,i,o),n}))})})),t}))).then((e=>{v.value=e}));var t}),{immediate:!0})})),Wn((()=>{document.body.removeEventListener("click",Z),window.removeEventListener("message",G)})),(t,n)=>{var r,l;return Ar(),Or("div",Ss,["disable"===Xt(i).login||!Xt(O)||null!==(r=e.edit)&&void 0!==r&&r.objectId?Hr("v-if",!0):(Ar(),Or("div",Es,[Nr("div",Rs,[Nr("button",{type:"submit",class:"wl-logout-btn",title:Xt(z).logout,onClick:H},[Vr(Xt(Ao),{size:14})],8,As),Nr("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:Xt(z).profile,onClick:W},[Nr("img",{src:Xt(a).avatar,alt:"avatar"},null,8,Ls)],8,Is)]),Nr("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",title:Xt(z).profile,onClick:W,textContent:q(Xt(a).display_name)},null,8,zs)])),Nr("div",Os,["force"!==Xt(i).login&&Xt(i).meta.length&&!Xt(O)?(Ar(),Or("div",{key:0,class:V(["wl-header",`item${Xt(i).meta.length}`])},[(Ar(!0),Or(_r,null,Jn(Xt(i).meta,(e=>(Ar(),Or("div",{key:e,class:"wl-header-item"},[Nr("label",{for:`wl-${e}`,textContent:q(Xt(z)[e]+(Xt(i).requiredMeta.includes(e)||!Xt(i).requiredMeta.length?"":`(${Xt(z).optional})`))},null,8,js),qn(Nr("input",{id:`wl-${e}`,ref_for:!0,ref:t=>{t&&(c.value[e]=t)},"onUpdate:modelValue":t=>Xt(s)[e]=t,class:V(["wl-input",`wl-${e}`]),name:e,type:"mail"===e?"email":"text"},null,10,Ts),[[Tl,Xt(s)[e]]])])))),128))],2)):Hr("v-if",!0),qn(Nr("textarea",{id:"wl-edit",ref_key:"editorRef",ref:u,"onUpdate:modelValue":n[0]||(n[0]=e=>Zt(o)?o.value=e:null),class:"wl-editor",placeholder:e.replyUser?`@${e.replyUser}`:Xt(z).placeholder,onKeydown:U,onDrop:M,onPaste:F},null,40,Us),[[El,Xt(o)]]),qn(Nr("div",Ps,[Ms,Nr("h4",null,q(Xt(z).preview)+":",1),Nr("div",{class:"wl-content",innerHTML:x.value},null,8,Fs)],512),[[Pl,k.value]]),Nr("div",Ns,[Nr("div",Vs,[Nr("a",Ds,[Vr(Xt(To))]),qn(Nr("button",{ref_key:"emojiButtonRef",ref:d,type:"button",class:V(["wl-action",{active:w.value}]),title:Xt(z).emoji,onClick:n[1]||(n[1]=e=>w.value=!w.value)},[Vr(Xt(Lo))],10,Bs),[[Pl,v.value.tabs.length]]),Xt(i).search?(Ar(),Or("button",{key:0,ref_key:"gifButtonRef",ref:f,type:"button",class:V(["wl-action",{active:b.value}]),title:Xt(z).gif,onClick:n[2]||(n[2]=e=>b.value=!b.value)},[Vr(Xt(No))],10,Hs)):Hr("v-if",!0),Nr("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),Xt(j)?(Ar(),Or("label",{key:1,for:"wl-image-upload",class:"wl-action",title:Xt(z).uploadImage},[Vr(Xt(zo))],8,Ws)):Hr("v-if",!0),Nr("button",{type:"button",class:V(["wl-action",{active:k.value}]),title:Xt(z).preview,onClick:n[3]||(n[3]=e=>k.value=!k.value)},[Vr(Xt(jo))],10,qs)]),Nr("div",Zs,[Nr("div",Qs,[Br(q(_.value)+" ",1),Xt(i).wordLimit?(Ar(),Or("span",Ks,[Br("  /  "),Nr("span",{class:V({illegal:!E.value}),textContent:q(C.value)},null,10,Gs)])):Hr("v-if",!0),Br("  "+q(Xt(z).word),1)]),"disable"===Xt(i).login||Xt(O)?Hr("v-if",!0):(Ar(),Or("button",{key:0,type:"button",class:"wl-btn",onClick:B,textContent:q(Xt(z).login)},null,8,Js)),"force"!==Xt(i).login||Xt(O)?(Ar(),Or("button",{key:1,type:"submit",class:"primary wl-btn",title:"Cmd|Ctrl + Enter",disabled:I.value,onClick:D},[I.value?(Ar(),jr(Xt(Fo),{key:0,size:16})):(Ar(),Or(_r,{key:1},[Br(q(Xt(z).submit),1)],64))],8,Xs)):Hr("v-if",!0)]),Nr("div",{ref_key:"gifPopupRef",ref:g,class:V(["wl-gif-popup",{display:b.value}])},[Nr("input",{ref_key:"gifSearchInputRef",ref:m,type:"text",placeholder:Xt(z).gifSearchPlaceholder,onInput:n[4]||(n[4]=function(){return Xt(K)&&Xt(K)(...arguments)})},null,40,Ys),Vr(Cs,{items:$.list,"column-width":200,gap:6,onInsert:n[5]||(n[5]=e=>T(e)),onScroll:Q},null,8,["items"]),$.loading?(Ar(),Or("div",ea,[Vr(Xt(Fo),{size:30})])):Hr("v-if",!0)],2),Nr("div",{ref_key:"emojiPopupRef",ref:h,class:V(["wl-emoji-popup",{display:w.value}])},[(Ar(!0),Or(_r,null,Jn(v.value.tabs,((e,t)=>(Ar(),Or(_r,{key:e.name},[t===y.value?(Ar(),Or("div",ta,[(Ar(!0),Or(_r,null,Jn(e.items,(e=>(Ar(),Or("button",{key:e,type:"button",title:e,onClick:t=>T(`:${e}:`)},[w.value?(Ar(),Or("img",{key:0,class:"wl-emoji",src:v.value.map[e],alt:e,loading:"lazy",referrerPolicy:"no-referrer"},null,8,ra)):Hr("v-if",!0)],8,na)))),128))])):Hr("v-if",!0)],64)))),128)),v.value.tabs.length>1?(Ar(),Or("div",la,[(Ar(!0),Or(_r,null,Jn(v.value.tabs,((e,t)=>(Ar(),Or("button",{key:e.name,type:"button",class:V(["wl-tab",{active:y.value===t}]),onClick:e=>y.value=t},[Nr("img",{class:"wl-emoji",src:e.icon,alt:e.name,title:e.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,oa)],10,ia)))),128))])):Hr("v-if",!0)],2)])]),e.replyId||null!==(l=e.edit)&&void 0!==l&&l.objectId?(Ar(),Or("button",{key:1,type:"button",class:"wl-close",title:Xt(z).cancelReply,onClick:n[6]||(n[6]=n=>t.$emit(e.replyId?"cancelReply":"cancelEdit"))},[Vr(Xt(Ao),{size:24})],8,sa)):Hr("v-if",!0)])}}}),ca=fs(aa,[["__file","CommentBox.vue"]]);const ua=["id"],pa={class:"wl-user","aria-hidden":"true"},da=["src"],ha={class:"wl-card"},fa={class:"wl-head"},ga=["href"],ma={key:1,class:"wl-nick"},va=["textContent"],ya=["textContent"],wa=["textContent"],ba=["textContent"],ka=["textContent"],xa={class:"wl-comment-actions"},_a=["title"],$a=["textContent"],Ca=["title"],Sa={class:"wl-meta","aria-hidden":"true"},Ea=["data-value","textContent"],Ra=["data-value","textContent"],Aa=["data-value","textContent"],Ia=["innerHTML"],La={key:1,class:"wl-admin-actions"},za={class:"wl-comment-status"},Oa=["disabled","onClick","textContent"],ja={key:3,class:"wl-quote"};var Ta=fs(Nn({__name:"CommentCard",props:{comment:null,edit:{default:null},rootId:null,reply:{default:null}},emits:["log","submit","delete","edit","like","status","sticky","reply"],setup(e){const t=e,n=["approved","waiting","spam"],r=jn("config"),l=Do(),i=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{controls:t=!1,interval:n="requestAnimationFrame"}=e,r=Qt(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=si}=t,l=Qt(!1);let i=0,o=null;function s(t){l.value&&r&&(e({delta:t-i,timestamp:t}),i=t,o=r.requestAnimationFrame(s))}function a(){!l.value&&r&&(l.value=!0,o=r.requestAnimationFrame(s))}function c(){l.value=!1,null!=o&&r&&(r.cancelAnimationFrame(o),o=null)}return n&&a(),Zl(c),{isActive: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=Qt(!1);function s(){i&&(clearInterval(i),i=null)}function a(){o.value=!1,s()}function c(){Xt(t)<=0||(o.value=!0,l&&e(),s(),i=setInterval(e,Hl(t)))}return r&&Vl&&c(),(Zt(t)||Dl(t))&&Zl(Pn(t,(()=>{o.value&&Vl&&c()}))),Zl(a),{isActive:o,pause:a,resume:c}}(l,n,{immediate:!0});return t?((e,t)=>{for(var n in t||(t={}))Ci.call(t,n)&&Ei(e,n,t[n]);if($i)for(var n of $i(t))Si.call(t,n)&&Ei(e,n,t[n]);return e})({now:r},i):r}(),o=ns(),s=il((()=>r.value.locale)),a=il((()=>{const{link:e}=t.comment;return e?A(e)?e:`https://${e}`:""})),c=il((()=>l.value.includes(t.comment.objectId))),u=il((()=>((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=il((()=>"administrator"===o.value.type)),d=il((()=>t.comment.user_id&&o.value.objectId===t.comment.user_id)),h=il((()=>{var e;return t.comment.objectId===(null===(e=t.reply)||void 0===e?void 0:e.objectId)})),f=il((()=>{var e;return t.comment.objectId===(null===(e=t.edit)||void 0===e?void 0:e.objectId)}));return(t,r)=>{var l;const i=function(e,t){return function(e,t){let n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const r=En||Jr;if(r){const l=r.type;if(e===Qn){const e=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return ce(e)?e.displayName||e.name:e.name||t&&e.__name}(l,!1);if(e&&(e===t||e===ke(t)||e===$e(ke(t))))return l}const i=Gn(r[e]||l[e],t)||Gn(r.appContext[e],t);return!i&&n?l:i}}(Qn,e,!0,t)||e}("CommentCard",!0);return Ar(),Or("div",{id:e.comment.objectId,class:"wl-card-item"},[Nr("div",pa,[e.comment.avatar?(Ar(),Or("img",{key:0,src:e.comment.avatar},null,8,da)):Hr("v-if",!0),e.comment.type?(Ar(),jr(Xt(Mo),{key:1})):Hr("v-if",!0)]),Nr("div",ha,[Nr("div",fa,[Xt(a)?(Ar(),Or("a",{key:0,class:"wl-nick",href:Xt(a),target:"_blank",rel:"noopener noreferrer"},q(e.comment.nick),9,ga)):(Ar(),Or("span",ma,q(e.comment.nick),1)),"administrator"===e.comment.type?(Ar(),Or("span",{key:2,class:"wl-badge",textContent:q(Xt(s).admin)},null,8,va)):Hr("v-if",!0),e.comment.label?(Ar(),Or("span",{key:3,class:"wl-badge",textContent:q(e.comment.label)},null,8,ya)):Hr("v-if",!0),e.comment.sticky?(Ar(),Or("span",{key:4,class:"wl-badge",textContent:q(Xt(s).sticky)},null,8,wa)):Hr("v-if",!0),void 0!==e.comment.level&&e.comment.level>=0?(Ar(),Or("span",{key:5,class:V(`wl-badge level${e.comment.level}`),textContent:q(Xt(s)[`level${e.comment.level}`]||`Level ${e.comment.level}`)},null,10,ba)):Hr("v-if",!0),Nr("span",{class:"wl-time",textContent:q(Xt(u))},null,8,ka),Nr("div",xa,[Xt(p)||Xt(d)?(Ar(),Or("button",{key:0,type:"button",class:"wl-edit",onClick:r[0]||(r[0]=()=>t.$emit("edit",e.comment))},[Vr(Xt(Po))])):Hr("v-if",!0),Xt(p)||Xt(d)?(Ar(),Or("button",{key:1,type:"button",class:"wl-delete",onClick:r[1]||(r[1]=n=>t.$emit("delete",e.comment))},[Vr(Xt(Io))])):Hr("v-if",!0),Nr("button",{type:"button",class:"wl-like",title:Xt(c)?Xt(s).cancelLike:Xt(s).like,onClick:r[2]||(r[2]=n=>t.$emit("like",e.comment))},[Vr(Xt(Oo),{active:Xt(c)},null,8,["active"]),"like"in e.comment?(Ar(),Or("span",{key:0,textContent:q(e.comment.like)},null,8,$a)):Hr("v-if",!0)],8,_a),Nr("button",{type:"button",class:V(["wl-reply",{active:Xt(h)}]),title:Xt(h)?Xt(s).cancelReply:Xt(s).reply,onClick:r[3]||(r[3]=n=>t.$emit("reply",Xt(h)?null:e.comment))},[Vr(Xt(Uo))],10,Ca)])]),Nr("div",Sa,[e.comment.addr?(Ar(),Or("span",{key:0,class:"wl-addr","data-value":e.comment.addr,textContent:q(e.comment.addr)},null,8,Ea)):Hr("v-if",!0),e.comment.browser?(Ar(),Or("span",{key:1,class:"wl-browser","data-value":e.comment.browser,textContent:q(e.comment.browser)},null,8,Ra)):Hr("v-if",!0),e.comment.os?(Ar(),Or("span",{key:2,class:"wl-os","data-value":e.comment.os,textContent:q(e.comment.os)},null,8,Aa)):Hr("v-if",!0)]),Xt(f)?Hr("v-if",!0):(Ar(),Or("div",{key:0,class:"wl-content",innerHTML:e.comment.comment},null,8,Ia)),Xt(p)&&!Xt(f)?(Ar(),Or("div",La,[Nr("span",za,[(Ar(),Or(_r,null,Jn(n,(n=>Nr("button",{key:n,type:"submit",class:V(`wl-btn wl-${n}`),disabled:e.comment.status===n,onClick:r=>t.$emit("status",{status:n,comment:e.comment}),textContent:q(Xt(s)[n])},null,10,Oa))),64))]),Xt(p)&&!e.comment.rid?(Ar(),Or("button",{key:0,type:"submit",class:"wl-btn wl-sticky",onClick:r[4]||(r[4]=n=>t.$emit("sticky",e.comment))},q(e.comment.sticky?Xt(s).unsticky:Xt(s).sticky),1)):Hr("v-if",!0)])):Hr("v-if",!0),Xt(h)||Xt(f)?(Ar(),Or("div",{key:2,class:V({"wl-reply-wrapper":Xt(h),"wl-edit-wrapper":Xt(f)})},[Vr(ca,{edit:e.edit,"reply-id":null===(l=e.reply)||void 0===l?void 0:l.objectId,"reply-user":e.comment.nick,"root-id":e.rootId,onLog:r[5]||(r[5]=e=>t.$emit("log")),onCancelReply:r[6]||(r[6]=e=>t.$emit("reply",null)),onCancelEdit:r[7]||(r[7]=e=>t.$emit("edit",null)),onSubmit:r[8]||(r[8]=e=>t.$emit("submit",e))},null,8,["edit","reply-id","reply-user","root-id"])],2)):Hr("v-if",!0),e.comment.children?(Ar(),Or("div",ja,[(Ar(!0),Or(_r,null,Jn(e.comment.children,(n=>(Ar(),jr(i,{key:n.objectId,comment:n,reply:e.reply,edit:e.edit,"root-id":e.rootId,onLog:r[9]||(r[9]=e=>t.$emit("log")),onDelete:r[10]||(r[10]=e=>t.$emit("delete",e)),onEdit:r[11]||(r[11]=e=>t.$emit("edit",e)),onLike:r[12]||(r[12]=e=>t.$emit("like",e)),onReply:r[13]||(r[13]=e=>t.$emit("reply",e)),onStatus:r[14]||(r[14]=e=>t.$emit("status",e)),onSticky:r[15]||(r[15]=e=>t.$emit("sticky",e)),onSubmit:r[16]||(r[16]=e=>t.$emit("submit",e))},null,8,["comment","reply","edit","root-id"])))),128))])):Hr("v-if",!0)])],8,ua)}}}),[["__file","CommentCard.vue"]]);const Ua="2.14.7",Pa={"data-waline":""},Ma={class:"wl-meta-head"},Fa={class:"wl-count"},Na=["textContent"],Va={class:"wl-sort"},Da=["onClick"],Ba={class:"wl-cards"},Ha={key:1,class:"wl-operation"},Wa=["textContent"],qa={key:0,class:"wl-loading"},Za=["textContent"],Qa={key:2,class:"wl-operation"},Ka=["textContent"],Ga={key:3,class:"wl-power"},Ja=Nr("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noopener noreferrer"}," Waline ",-1);e.version=Ua;var Xa=Nn({__name:"WalineComment",props:["serverURL","path","meta","requiredMeta","dark","commentSorting","lang","locale","pageSize","wordLimit","emoji","login","highlighter","texRenderer","imageUploader","search","copyright","recaptchaV3Key","reaction"],setup(e){const t=e,c={latest:"insertedAt_desc",oldest:"insertedAt_asc",hottest:"like_desc"},u=Object.keys(c),p=ns(),h=Do(),f=Qt("loading"),g=Qt(0),m=Qt(1),v=Qt(0),y=il((()=>(e=>{let{serverURL:t,path:c=location.pathname,lang:u=("undefined"==typeof navigator?"en-US":navigator.language),locale:p,emoji:h=r,meta:f=["nick","mail","link"],requiredMeta:g=[],dark:m=!1,pageSize:v=10,wordLimit:y,imageUploader:w,highlighter:b,texRenderer:x,copyright:_=!0,login:$="enable",search:C,reaction:S,recaptchaV3Key:R="",commentSorting:A="latest",...O}=e;return{serverURL:I(t),path:E(c),locale:{...k[u]||k[l],..."object"==typeof p?p:{}},wordLimit:L(y),meta:n(f),requiredMeta:n(g),imageUploader:z(w,i),highlighter:z(b,d),texRenderer:z(x,o),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:s(u)),recaptchaV3Key:R,reaction:Array.isArray(S)?S:!0===S?a:[],commentSorting:A,...O}})(t))),w=Qt(y.value.commentSorting),b=Qt([]),x=Qt(null),$=Qt(null),C=il((()=>{return"string"==typeof(e=y.value.dark)?"auto"===e?`@media(prefers-color-scheme:dark){body${O}}`:`${e}${O}`:!0===e?`:root${O}`:"";var e})),R=il((()=>y.value.locale));let A;!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Qt(!1),{document:r=ai,immediate:l=!0,manual:i=!1,id:o="vueuse_styletag_"+ ++Ri}=t,s=Qt(e);let a=()=>{};const c=()=>{if(!r)return;const e=r.getElementById(o)||r.createElement("style");e.isConnected||(e.type="text/css",e.id=o,t.media&&(e.media=t.media),r.head.appendChild(e)),n.value||(a=Pn(s,(t=>{e.textContent=t}),{immediate:!0}),n.value=!0)},u=()=>{r&&n.value&&(a(),r.head.removeChild(r.getElementById(o)),n.value=!1)};l&&!i&&Ql(c),i||Zl(u),Tt(n)}(C);const j=e=>{var t,n;const{serverURL:r,path:l,pageSize:i}=y.value,o=new AbortController;f.value="loading",null!==(t=A)&&void 0!==t&&t(),(e=>{let{serverURL:t,lang:n,path:r,page:l,pageSize:i,sortBy:o,signal:s,token:a}=e;const c={};return a&&(c.Authorization=`Bearer ${a}`),fetch(`${t}/comment?path=${encodeURIComponent(r)}&pageSize=${i}&page=${l}&lang=${n}&sortBy=${o}`,{signal:s,headers:c}).then((e=>e.json())).then((e=>_(e,"Get comment data")))})({serverURL:r,lang:y.value.lang,path:l,pageSize:i,sortBy:c[w.value],page:e,signal:o.signal,token:null===(n=p.value)||void 0===n?void 0:n.token}).then((t=>{f.value="success",g.value=t.count,b.value.push(...t.data),m.value=e,v.value=t.totalPages})).catch((e=>{"AbortError"!==e.name&&(console.error(e.message),f.value="error")})),A=o.abort.bind(o)},T=()=>j(m.value+1),U=()=>{g.value=0,b.value=[],j(1)},P=e=>{x.value=e},M=e=>{$.value=e},F=e=>{if($.value)$.value.comment=e.comment,$.value.orig=e.orig;else if(e.rid){const t=b.value.find((t=>{let{objectId:n}=t;return n===e.rid}));if(!t)return;Array.isArray(t.children)||(t.children=[]),t.children.push(e)}else b.value.unshift(e)},N=async e=>{var t;let{comment:n,status:r}=e;if(n.status===r)return;const{serverURL:l,lang:i}=y.value;await S({serverURL:l,lang:i,token:null===(t=p.value)||void 0===t?void 0:t.token,objectId:n.objectId,comment:{status:r}}),n.status=r},D=async e=>{var t;if(e.rid)return;const{serverURL:n,lang:r}=y.value;await S({serverURL:n,lang:r,token:null===(t=p.value)||void 0===t?void 0:t.token,objectId:e.objectId,comment:{sticky:e.sticky?0:1}}),e.sticky=!e.sticky},B=async e=>{var t;let{objectId:n}=e;if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:r,lang:l}=y.value;await(e=>{let{serverURL:t,lang:n,token:r,objectId:l}=e;return fetch(`${t}/comment/${l}?lang=${n}`,{method:"DELETE",headers:{Authorization:`Bearer ${r}`}}).then((e=>e.json())).then((e=>_(e,"Delete comment")))})({serverURL:r,lang:l,token:null===(t=p.value)||void 0===t?void 0:t.token,objectId:n}),b.value.some(((e,t)=>e.objectId===n?(b.value=b.value.filter(((e,n)=>n!==t)),!0):e.children.some(((r,l)=>r.objectId===n&&(b.value[t].children=e.children.filter(((e,t)=>t!==l)),!0)))))},H=async e=>{var t;const{serverURL:n,lang:r}=y.value,{objectId:l}=e,i=h.value.includes(l);await S({serverURL:n,lang:r,objectId:l,token:null===(t=p.value)||void 0===t?void 0:t.token,comment:{like:!i}}),i?h.value=h.value.filter((e=>e!==l)):(h.value=[...h.value,l],h.value.length>50&&(h.value=h.value.slice(-50))),e.like=(e.like||0)+(i?-1:1)};return function(e,t){if(Jr){let e=Jr.provides;const n=Jr.parent&&Jr.parent.provides;n===e&&(e=Jr.provides=Object.create(n)),e.config=t}}(0,y),Bn((()=>{Pn((()=>[t.serverURL,t.path]),(()=>U()),{immediate:!0})})),Wn((()=>{var e;return null===(e=A)||void 0===e?void 0:e()})),(e,t)=>(Ar(),Or("div",Pa,[Vr(gs),x.value?Hr("v-if",!0):(Ar(),jr(ca,{key:0,onLog:U,onSubmit:F})),Nr("div",Ma,[Nr("div",Fa,[g.value?(Ar(),Or("span",{key:0,class:"wl-num",textContent:q(g.value)},null,8,Na)):Hr("v-if",!0),Br(" "+q(Xt(R).comment),1)]),Nr("ul",Va,[(Ar(!0),Or(_r,null,Jn(Xt(u),(e=>(Ar(),Or("li",{key:e,class:V([e===w.value?"active":""]),onClick:t=>(e=>{w.value!==e&&(w.value=e,U())})(e)},q(Xt(R)[e]),11,Da)))),128))])]),Nr("div",Ba,[(Ar(!0),Or(_r,null,Jn(b.value,(e=>(Ar(),jr(Ta,{key:e.objectId,"root-id":e.objectId,comment:e,reply:x.value,edit:$.value,onLog:U,onReply:P,onEdit:M,onSubmit:F,onStatus:N,onDelete:B,onSticky:D,onLike:H},null,8,["root-id","comment","reply","edit"])))),128))]),"error"===f.value?(Ar(),Or("div",Ha,[Nr("button",{type:"button",class:"wl-btn",onClick:U,textContent:q(Xt(R).refresh)},null,8,Wa)])):(Ar(),Or(_r,{key:2},["loading"===f.value?(Ar(),Or("div",qa,[Vr(Xt(Fo),{size:30})])):b.value.length?m.value{t.forEach(((t,n)=>{t.innerText=e[n].toString()}))},tc=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=Eo(e);return null!==t&&n!==t},c=e=>(e=>{let{serverURL:t,lang:n,paths:r,signal:l}=e;return $({serverURL:t,lang:n,paths:r,type:["time"],signal:l}).then((e=>Array.isArray(e)?e:[e]))})({serverURL:I(t),paths:e.map((e=>Eo(e)||n)),lang:i,signal:o.signal}).then((t=>ec(t,e))).catch(Ti);if(l){const e=s.filter((e=>!a(e))),r=s.filter(a);(u={serverURL:I(t),path:n,lang:i},C({...u,type:"time",action:"inc"})).then((t=>ec(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=Ui(t),c=new AbortController;return(e=>{let{serverURL:t,signal:n,pageSize:r,lang:l}=e;return fetch(`${t}/user?pageSize=${r}&lang=${l}`,{signal:n}).then((e=>e.json())).then((e=>_(e,"user list"))).then((e=>e.data))})({serverURL:n,pageSize:r,lang:o,signal:c.signal}).then((e=>a&&e.length?(i={...k[o]||k[l],..."object"==typeof i?i:{}},a.innerHTML=`
    `,{users:e,destroy:()=>{c.abort(),a.innerHTML=""}}):{users:e,destroy:()=>c.abort()}))},e.RecentComments=e=>{var t;let{el:n,serverURL:r,count:l,lang:i=navigator.language}=e;const o=ns(),s=Ui(n),a=new AbortController;return(e=>{let{serverURL:t,lang:n,count:r,signal:l,token:i}=e;const o={};return i&&(o.Authorization=`Bearer ${i}`),fetch(`${t}/comment?type=recent&count=${r}&lang=${n}`,{signal:l,headers:o}).then((e=>e.json()))})({serverURL:r,count:l,lang:i,signal:a.signal,token:null===(t=o.value)||void 0===t?void 0:t.token}).then((e=>s&&e.length?(s.innerHTML=`
      ${e.map((e=>`
    • ${e.nick}:${e.comment}
    • `)).join("")}
    `,{comments:e,destroy:()=>{a.abort(),s.innerHTML=""}}):{comments:e,destroy:()=>a.abort()}))},e.init=e=>{let{el:t="#waline",path:n=window.location.pathname,comment:r=!1,pageview:l=!1,...i}=e;const o=t?Ui(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=jt({...i}),a=jt({comment:r,pageview:l,path:n}),c=o?function(){const e=(Nl||(Nl=br(Fl))).createApp(...arguments),{mount:t}=e;return e.mount=n=>{const r=function(e){return ue(e)?document.querySelector(e):e}(n);if(!r)return;const l=e._component;ce(l)||l.render||l.template||(l.template=r.innerHTML),r.innerHTML="";const i=t(r,!1,r instanceof SVGElement);return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},e}((()=>ol(Ya,{path:a.path,...s}))):null;c&&c.mount(o);const u=Tn((()=>{a.comment&&Ro({serverURL:s.serverURL,path:a.path,selector:"string"==typeof a.comment?a.comment:void 0})})),p=Tn((()=>{a.pageview&&tc({serverURL:s.serverURL,path:a.path,selector:"string"==typeof a.pageview?a.pageview:void 0})}));return{el:o,update:function(){let{comment:e,pageview:t,path:n=window.location.pathname,...r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.entries(r).forEach((e=>{let[t,n]=e;s[t]=n})),a.path=n,void 0!==e&&(a.comment=e),void 0!==t&&(a.pageview=t)},destroy:()=>{null!=c&&c.unmount(),u(),p()}}},e.pageviewCount=tc})); diff --git a/config.toml b/config.toml index 88f7b030..6b086781 100644 --- a/config.toml +++ b/config.toml @@ -380,6 +380,8 @@ readingTime = true # FixIt 0.2.17 | NEW end of post flag endFlag = "" + # FixIt 0.2.18 | NEW whether to enable instant.page + instantPage = false # FixIt 0.2.15 | NEW Repost config [params.page.repost] @@ -558,6 +560,7 @@ texRenderer = false # FixIt 0.2.16 | NEW search = false # FixIt 0.2.16 | NEW recaptchaV3Key = "" # FixIt 0.2.16 | NEW + reaction = false # FixIt 0.2.18 | NEW # Facebook comment config (https://developers.facebook.com/docs/plugins/comments) [params.page.comment.facebook] enable = false @@ -607,6 +610,7 @@ category = "" categoryId = "" mapping = "" + term = "" reactionsEnabled = "1" emitMetadata = "0" inputPosition = "bottom" # ["top", "bottom"] diff --git a/layouts/partials/assets.html b/layouts/partials/assets.html index 77952251..5b2c8df9 100644 --- a/layouts/partials/assets.html +++ b/layouts/partials/assets.html @@ -42,6 +42,12 @@ {{- $source := $cdn.lazysizesJS | default "lib/lazysizes/lazysizes.min.js" -}} {{- dict "Source" $source "Fingerprint" $fingerprint "Async" true "Defer" true | dict "Scratch" .Scratch "Data" | partial "scratch/script.html" -}} +{{- /* instant.page */ -}} +{{- if $params.instantPage -}} + {{- $source := $cdn.instantPage | default "lib/instant-page/instantpage.min.js" -}} + {{- dict "Source" $source "Fingerprint" $fingerprint "Attr" "type=\"module\"" "Async" true "Defer" true | dict "Scratch" .Scratch "Data" | partial "scratch/script.html" -}} +{{- end -}} + {{- /* twemoji */ -}} {{- if $params.twemoji -}} {{- $source := $cdn.twemojiJS | default "lib/twemoji/twemoji.min.js" -}} diff --git a/layouts/partials/plugin/reward.html b/layouts/partials/plugin/reward.html index c555586f..3736fb72 100644 --- a/layouts/partials/plugin/reward.html +++ b/layouts/partials/plugin/reward.html @@ -14,7 +14,7 @@ {{- end -}} {{- if $image -}}
    - {{ $author }} {{ $way }} + {{- dict "Src" $image "Alt" (printf "%v %v" $author $way) "Resources" $.Resources | partial "plugin/image.html" -}} {{- $way -}}
    {{- end -}} diff --git a/layouts/partials/single/comment.html b/layouts/partials/single/comment.html index 7c87176a..f88b609b 100644 --- a/layouts/partials/single/comment.html +++ b/layouts/partials/single/comment.html @@ -156,6 +156,9 @@ {{- with $waline.recaptchaV3Key -}} {{- $commentConfig = dict "recaptchaV3Key" . | dict "waline" | merge $commentConfig -}} {{- end -}} + {{- with $waline.reaction -}} + {{- $commentConfig = dict "reaction" . | dict "waline" | merge $commentConfig -}} + {{- end -}}