diff --git a/CHANGELOG.md b/CHANGELOG.md index 297f6ffa..451f7494 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ All notable changes to this project will be documented in this file. - :wrench: Feat(cdn): add unpkg cdn support - :arrow_up: Chore(libs): update some third-party libraries - Update Artalk from 2.2.12 to 2.3.4 ([#150](https://github.com/Lruihao/FixIt/issues/150)) + - Update Waline from 1.5.2 to 2.6.1 - **Full Changelog:** @Lruihao [`v0.2.14...v0.2.15`](https://github.com/Lruihao/FixIt/compare/v0.2.14...v0.2.15) ## v0.2.14 [2022.5.15] diff --git a/assets/data/cdn/jsdelivr.yml b/assets/data/cdn/jsdelivr.yml index cf0dd85e..14789a0c 100644 --- a/assets/data/cdn/jsdelivr.yml +++ b/assets/data/cdn/jsdelivr.yml @@ -76,6 +76,6 @@ libFiles: typeitJS: typeit@7.0.4/dist/typeit.min.js # valine@1.4.16 https://github.com/xCss/Valine valineJS: valine@1.4.18/dist/Valine.min.js - # waline@1.5.2 https://github.com/walinejs/waline - # TODO update - walineJS: '@waline/client@1.5.2/dist/Waline.min.js' \ No newline at end of file + # waline@2.6.1 https://github.com/walinejs/waline + walineCSS: '@waline/client@2.6.1/dist/waline.css' + walineJS: '@waline/client@2.6.1/dist/waline.js' \ No newline at end of file diff --git a/assets/data/cdn/unpkg.yml b/assets/data/cdn/unpkg.yml index c019b318..d992b653 100644 --- a/assets/data/cdn/unpkg.yml +++ b/assets/data/cdn/unpkg.yml @@ -76,6 +76,6 @@ libFiles: typeitJS: typeit@7.0.4/dist/typeit.min.js # valine@1.4.16 https://github.com/xCss/Valine valineJS: valine@1.4.18/dist/Valine.min.js - # waline@1.5.2 https://github.com/walinejs/waline - # TODO update - walineJS: '@waline/client@1.5.2/dist/Waline.min.js' \ No newline at end of file + # waline@2.6.1 https://github.com/walinejs/waline + walineCSS: '@waline/client@2.6.1/dist/waline.css' + walineJS: '@waline/client@2.6.1/dist/waline.js' \ No newline at end of file diff --git a/assets/js/theme.min.js b/assets/js/theme.min.js index 7f85cc9a..2749b580 100644 --- a/assets/js/theme.min.js +++ b/assets/js/theme.min.js @@ -1,3 +1,3 @@ -"use strict";function _readOnlyError(a){throw new TypeError("\""+a+"\" is read-only")}function _objectDestructuringEmpty(a){if(null==a)throw new TypeError("Cannot destructure undefined")}function _createForOfIteratorHelper(a,b){var c="undefined"!=typeof Symbol&&a[Symbol.iterator]||a["@@iterator"];if(!c){if(Array.isArray(a)||(c=_unsupportedIterableToArray(a))||b&&a&&"number"==typeof a.length){c&&(a=c);var d=0,e=function(){};return{s:e,n:function n(){return d>=a.length?{done:!0}:{done:!1,value:a[d++]}},e:function e(a){throw a},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var f,g=!0,h=!1;return{s:function s(){c=c.call(a)},n:function n(){var a=c.next();return g=a.done,a},e:function e(a){h=!0,f=a},f:function f(){try{g||null==c.return||c.return()}finally{if(h)throw f}}}}function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function _toConsumableArray(a){return _arrayWithoutHoles(a)||_iterableToArray(a)||_unsupportedIterableToArray(a)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(a,b){if(a){if("string"==typeof a)return _arrayLikeToArray(a,b);var c=Object.prototype.toString.call(a).slice(8,-1);return"Object"===c&&a.constructor&&(c=a.constructor.name),"Map"===c||"Set"===c?Array.from(a):"Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?_arrayLikeToArray(a,b):void 0}}function _iterableToArray(a){if("undefined"!=typeof Symbol&&null!=a[Symbol.iterator]||null!=a["@@iterator"])return Array.from(a)}function _arrayWithoutHoles(a){if(Array.isArray(a))return _arrayLikeToArray(a)}function _arrayLikeToArray(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=Array(b);c.nested-item"),function(a){a.addEventListener("click",function(){this.parentNode.querySelector(".sub-menu").classList.toggle("open"),this.querySelector(".dropdown-icon").classList.toggle("open")})})}},{key:"initSwitchTheme",value:function initSwitchTheme(){var a=this;this.util.forEach(document.getElementsByClassName("theme-switch"),function(b){b.addEventListener("click",function(){document.body.setAttribute("theme","dark"===document.body.getAttribute("theme")?"light":"dark"),a.isDark=!a.isDark,window.localStorage&&localStorage.setItem("theme",a.isDark?"dark":"light");var b,c=_createForOfIteratorHelper(a.switchThemeEventSet);try{for(c.s();!(b=c.n()).done;){var d=b.value;d()}}catch(a){c.e(a)}finally{c.f()}},!1)})}},{key:"initSearch",value:function initSearch(){var a=this,b=this.config.search,c=this.util.isMobile();if(!(!b||c&&this._searchMobileOnce||!c&&this._searchDesktopOnce)){var d=b.maxResultLength||10,e=b.snippetLength||50,f=b.highlightTag||"em",g=c?"mobile":"desktop",h=document.getElementById("header-".concat(g)),i=document.getElementById("search-input-".concat(g)),j=document.getElementById("search-toggle-".concat(g)),k=document.getElementById("search-loading-".concat(g)),l=document.getElementById("search-clear-".concat(g));c?(this._searchMobileOnce=!0,i.addEventListener("focus",function(){a.disableScrollEvent=!0,document.body.classList.add("blur"),h.classList.add("open")},!1),document.getElementById("search-cancel-mobile").addEventListener("click",function(){a.disableScrollEvent=!1,h.classList.remove("open"),document.body.classList.remove("blur"),document.getElementById("menu-toggle-mobile").classList.remove("active"),document.getElementById("menu-mobile").classList.remove("active"),k.style.display="none",l.style.display="none",a._searchMobile&&a._searchMobile.autocomplete.setVal("")},!1),l.addEventListener("click",function(){l.style.display="none",a._searchMobile&&a._searchMobile.autocomplete.setVal("")},!1),this._searchMobileOnClickMask=this._searchMobileOnClickMask||function(){h.classList.remove("open"),k.style.display="none",l.style.display="none",a._searchMobile&&a._searchMobile.autocomplete.setVal("")},this.clickMaskEventSet.add(this._searchMobileOnClickMask)):(this._searchDesktopOnce=!0,j.addEventListener("click",function(){document.body.classList.add("blur"),h.classList.add("open"),i.focus()},!1),l.addEventListener("click",function(){l.style.display="none",a._searchDesktop&&a._searchDesktop.autocomplete.setVal("")},!1),this._searchDesktopOnClickMask=this._searchDesktopOnClickMask||function(){h.classList.remove("open"),k.style.display="none",l.style.display="none",a._searchDesktop&&a._searchDesktop.autocomplete.setVal("")},this.clickMaskEventSet.add(this._searchDesktopOnClickMask)),i.addEventListener("input",function(){l.style.display=""===i.value?"none":"inline"},!1);var m=function(){var h=autocomplete("#search-input-".concat(g),{hint:!1,autoselect:!0,dropdownMenuContainer:"#search-dropdown-".concat(g),clearOnSelected:!0,cssClasses:{noPrefix:!0},debug:!0},{name:"search",source:function source(c,g){k.style.display="inline",l.style.display="none";var h=function(a){k.style.display="none",l.style.display="inline",g(a)};if("lunr"===b.type){var i=function(){lunr.queryHandler&&(c=lunr.queryHandler(c));var b={};return a._index.search(c).forEach(function(c){var d=c.ref,g=c.matchData.metadata,h=a._indexData[d],i=h.uri,j=h.title,k=h.content;if(!b[i]){var l=0;Object.values(g).forEach(function(a){var b=a.content;if(b){var c=b.position[0][0];(c$1")),k=k.replace(new RegExp("(".concat(a,")"),"gi"),"<".concat(f,">$1"))}),b[i]={uri:i,title:j,date:h.date,context:k}}}),Object.values(b).slice(0,d)};a._index?h(i()):fetch(b.lunrIndexURL).then(function(a){return a.json()}).then(function(c){var d={};a._index=lunr(function(){var a=this;b.lunrLanguageCode&&this.use(lunr[b.lunrLanguageCode]),this.ref("objectID"),this.field("title",{boost:50}),this.field("tags",{boost:20}),this.field("categories",{boost:20}),this.field("content",{boost:10}),this.metadataWhitelist=["position"],c.forEach(function(b){d[b.objectID]=b,a.add(b)})}),a._indexData=d,h(i())}).catch(function(a){console.error(a),h([])})}else"algolia"===b.type&&(a._algoliaIndex=a._algoliaIndex||algoliasearch(b.algoliaAppID,b.algoliaSearchKey).initIndex(b.algoliaIndex),a._algoliaIndex.search(c,{offset:0,length:8*d,attributesToHighlight:["title"],attributesToSnippet:["content:".concat(e)],highlightPreTag:"<".concat(f,">"),highlightPostTag:"")}).then(function(a){var b=a.hits,c={};b.forEach(function(a){var b=a.uri,d=a.date,e=a._highlightResult.title,f=a._snippetResult.content;c[b]&&c[b].context.length>f.value||(c[b]={uri:b,title:e.value,date:d,context:f.value})}),h(Object.values(c).slice(0,d))}).catch(function(a){console.error(a),h([])}))},templates:{suggestion:function suggestion(a){var b=a.title,c=a.date,d=a.context;return"
".concat(b,"").concat(c,"
").concat(d,"
")},empty:function empty(a){var c=a.query;return"
".concat(b.noResultsFound,": \"").concat(c,"\"
")},footer:function footer(a){_objectDestructuringEmpty(a);var c="algolia"===b.type?{searchType:"algolia",icon:"",href:"https://www.algolia.com/"}:{searchType:"Lunr.js",icon:"",href:"https://lunrjs.com/"},d=c.searchType,e=c.icon,f=c.href;return"")}}});h.on("autocomplete:selected",function(a,b){window.location.assign(b.uri)}),c?a._searchMobile=h:a._searchDesktop=h};if(b.lunrSegmentitURL&&!document.getElementById("lunr-segmentit")){var n=document.createElement("script");n.id="lunr-segmentit",n.type="text/javascript",n.src=b.lunrSegmentitURL,n.async=!0,n.readyState?n.onreadystatechange=function(){("loaded"==n.readyState||"complete"==n.readyState)&&(n.onreadystatechange=null,m())}:n.onload=function(){m()},document.body.appendChild(n)}else m()}}},{key:"initDetails",value:function initDetails(){this.util.forEach(document.getElementsByClassName("details"),function(a){var b=a.querySelector(".details-summary");b.addEventListener("click",function(){a.classList.toggle("open")},!1)})}},{key:"initLightGallery",value:function initLightGallery(){this.config.lightGallery&&lightGallery(document.getElementById("content"),this.config.lightGallery)}},{key:"initHighlight",value:function initHighlight(){var a=this;this.util.forEach(document.querySelectorAll(".highlight > pre.chroma"),function(a){var b=document.createElement("div");b.className=a.className;var c=document.createElement("table");b.appendChild(c);var d=document.createElement("tbody");c.appendChild(d);var e=document.createElement("tr");d.appendChild(e);var f=document.createElement("td");e.appendChild(f),a.parentElement.replaceChild(b,a),f.appendChild(a)}),this.util.forEach(document.querySelectorAll(".highlight > .chroma"),function(b){var c=b.querySelectorAll("pre.chroma > code");if(c.length){var d=c[c.length-1],e=document.createElement("div");e.className="code-header "+d.className.toLowerCase();var f=document.createElement("span");f.classList.add("code-title"),f.insertAdjacentHTML("afterbegin",""),f.addEventListener("click",function(){b.classList.toggle("open")},!1),e.appendChild(f);var g=document.createElement("span");if(g.insertAdjacentHTML("afterbegin",""),g.classList.add("ellipses"),g.addEventListener("click",function(){b.classList.add("open")},!1),e.appendChild(g),a.config.code.editable){var h=document.createElement("span");h.classList.add("edit"),h.insertAdjacentHTML("afterbegin","")),h.addEventListener("click",function(){var b=h.querySelector(".fa-key"),c=h.querySelector(".fa-lock"),d=h.parentElement.parentElement.querySelectorAll("pre.chroma"),e=2===d.length?d[1]:d[0];b?(b.classList.add("fa-lock"),b.classList.remove("fa-key"),b.title=a.config.code.editLockTitle,e.setAttribute("contenteditable",!0),e.focus()):(c.classList.add("fa-key"),c.classList.remove("fa-lock"),c.title=a.config.code.editUnLockTitle,e.setAttribute("contenteditable",!1),e.blur())},!1),e.appendChild(h)}if(a.config.code.copyTitle){var i=document.createElement("span");i.insertAdjacentHTML("afterbegin",""),i.classList.add("copy");var j=d.innerText;(0>a.config.code.maxShownLines||j.split("\n").length=a;a++)this.util.forEach(document.querySelectorAll(".single .content > h"+a),function(a){a.classList.add("header-link"),a.insertAdjacentHTML("afterbegin",""))})}},{key:"initToc",value:function initToc(){var a=this,b=document.getElementById("TableOfContents");if(null!==b)if("true"===document.getElementById("toc-static").getAttribute("kept")||this.util.isTocStatic()){var h=document.getElementById("toc-content-static");b.parentElement!==h&&(b.parentElement.removeChild(b),h.appendChild(b)),this._tocOnScroll&&this.scrollEventSet.delete(this._tocOnScroll)}else{var i=document.getElementById("toc-content-auto");b.parentElement!==i&&(b.parentElement.removeChild(b),i.appendChild(b));var j=document.getElementById("toc-auto");j.style.visibility="visible",this.util.animateCSS(j,["animate__fadeIn","animate__faster"],!0),j.style.marginTop=document.querySelector(".single-title").clientHeight+document.querySelector(".post-meta").clientHeight+"px",j.style.marginBottom=document.getElementById("post-footer").clientHeight+"px";var c=b.querySelectorAll("a:first-child"),d=b.getElementsByTagName("li"),e=document.getElementsByClassName("header-link"),f="normal"!==document.body.getAttribute("header-desktop"),g=document.getElementById("header-desktop").offsetHeight;this._tocOnScroll=this._tocOnScroll||function(){var h=document.getElementById("comments");h&&(j.style.marginBottom=document.getElementById("post-footer").clientHeight+h.clientHeight+"px"),a.util.forEach(c,function(a){a.classList.remove("active")}),a.util.forEach(d,function(a){a.classList.remove("has-active")});for(var k=20+(f?g:0),l=e.length-1,m=0;mk||n<=k&&o>k){l=m;break}}if(-1!==l){c[l].classList.add("active");for(var p=c[l].parentElement;p!==b;)p.classList.add("has-active"),p=p.parentElement.parentElement}},this._tocOnScroll(),this.scrollEventSet.add(this._tocOnScroll)}}},{key:"initTocListener",value:function initTocListener(){var a,b=this,c=document.getElementById("toc-auto"),d=document.getElementById("toc-content-auto");null===(a=document.querySelector("#toc-auto>.toc-title"))||void 0===a?void 0:a.addEventListener("click",function(){var a=["animate__faster"],e=c.classList.contains("toc-hidden");a.push(e?"animate__fadeIn":"animate__fadeOut"),d.classList.remove(e?"animate__fadeOut":"animate__fadeIn"),b.util.animateCSS(d,a,!0),c.classList.toggle("toc-hidden")},!1)}},{key:"initMath",value:function initMath(){this.config.math&&renderMathInElement(document.body,this.config.math)}},{key:"initMermaid",value:function initMermaid(){var a=this,b=document.getElementsByClassName("mermaid");b.length&&(mermaid.initialize({startOnLoad:!1,theme:"default"}),this.util.forEach(b,function(b){mermaid.mermaidAPI.render("svg-"+b.id,a.data[b.id],function(a){b.insertAdjacentHTML("afterbegin",a)},b)}))}},{key:"initEcharts",value:function initEcharts(){var a=this;this._echartsOnSwitchTheme=this._echartsOnSwitchTheme||function(){a._echartsArr=a._echartsArr||[];for(var b=0;bscript");a&&(h._giscusOnSwitchTheme(),a.parentElement.removeChild(a)),window.removeEventListener("message",h.giscus2parentMsg)}))}}}},{key:"initCookieconsent",value:function initCookieconsent(){this.config.cookieconsent&&cookieconsent.initialise(this.config.cookieconsent)}},{key:"initSiteTime",value:function initSiteTime(){var a=this;this.config.siteTime&&(this.siteTime=setInterval(this.getSiteTime,500),document.addEventListener("visibilitychange",function(){return document.hidden?clearInterval(a.siteTime):void(a.siteTime=setInterval(a.getSiteTime,500))},!1))}},{key:"initServiceWorker",value:function initServiceWorker(){this.config.enablePWA&&"serviceWorker"in navigator&&(navigator.serviceWorker.register("/service-worker.min.js",{scope:"/"}).then(function(){}).catch(function(a){console.error("error: ",a)}),navigator.serviceWorker.ready.then(function(){}))}},{key:"initWatermark",value:function initWatermark(){var a;(null===(a=this.config.watermark)||void 0===a?void 0:a.enable)&&new Watermark({content:this.config.watermark.content||"\"FixIt FixIt Theme",appendTo:this.config.watermark.appendto||".wrapper>main",opacity:this.config.watermark.opacity,width:this.config.watermark.width,height:this.config.watermark.height,rowSpacing:this.config.watermark.rowspacing,colSpacing:this.config.watermark.colspacing,rotate:this.config.watermark.rotate,fontSize:this.config.watermark.fontsize,fontFamily:this.config.watermark.fontfamily})}},{key:"initPangu",value:function initPangu(){this.config.enablePangu&&pangu.autoSpacingPage()}},{key:"initFixItDecryptor",value:function initFixItDecryptor(){var a,b,c=this,d=document.querySelectorAll("#toc-auto>.d-none, #toc-static.d-none");this.decryptor=new FixItDecryptor({decrypted:function decrypted(){c.initTwemoji(),c.initDetails(),c.initLightGallery(),c.initHighlight(),c.initTable(),c.initHeaderLink(),c.initMath(),c.initMermaid(),c.initEcharts(),c.initTypeit(),c.initMapbox(),c.util.forEach(d,function(a){a.classList.remove("d-none")}),c.initToc(),c.initTocListener(),c.initPangu()},reset:function reset(){c.util.forEach(d,function(a){a.classList.add("d-none")})}}),null!==(a=this.config.encryption)&&void 0!==a&&a.shortcode&&(this.decryptor.addEventListener("decrypted",function(){c.decryptor.initShortcodes()}),this.decryptor.initShortcodes()),(null===(b=this.config.encryption)||void 0===b?void 0:b.all)&&this.decryptor.init()}},{key:"onScroll",value:function onScroll(){var a=this,b=[];if("auto"===document.body.getAttribute("header-desktop")&&b.push(document.getElementById("header-desktop")),"auto"===document.body.getAttribute("header-mobile")&&b.push(document.getElementById("header-mobile")),document.getElementById("comments")){var e=document.getElementById("view-comments");e.href="#comments",e.style.display="block"}var c=document.getElementById("fixed-buttons"),d=20;window.addEventListener("scroll",function(e){if(a.disableScrollEvent)return void e.preventDefault();var f=document.getElementById("mask");a.newScrollTop=a.util.getScrollTop();var g=a.newScrollTop-a.oldScrollTop,h=a.util.isMobile();a.util.forEach(b,function(b){g>d?(b.classList.remove("animate__fadeInDown"),a.util.animateCSS(b,["animate__fadeOutUp","animate__faster"],!0),f.click()):g<-d&&(b.classList.remove("animate__fadeOutUp"),a.util.animateCSS(b,["animate__fadeInDown","animate__faster"],!0),f.click())}),a.newScrollTop>100?h&&g>d?(c.classList.remove("animate__fadeIn"),a.util.animateCSS(c,["animate__fadeOut","animate__faster"],!0)):(!h||g<-d)&&(c.style.display="block",c.classList.remove("animate__fadeOut"),a.util.animateCSS(c,["animate__fadeIn","animate__faster"],!0)):(!h&&(c.classList.remove("animate__fadeIn"),a.util.animateCSS(c,["animate__fadeOut","animate__faster"],!0)),c.style.display="none");var i,j=_createForOfIteratorHelper(a.scrollEventSet);try{for(j.s();!(i=j.n()).done;){var k=i.value;k()}}catch(a){j.e(a)}finally{j.f()}a.oldScrollTop=a.newScrollTop},!1)}},{key:"onResize",value:function onResize(){var a=this,b=this.util.isMobile();window.addEventListener("resize",function(){a._resizeTimeout||(a._resizeTimeout=window.setTimeout(function(){a._resizeTimeout=null;var c,d=_createForOfIteratorHelper(a.resizeEventSet);try{for(d.s();!(c=d.n()).done;){var e=c.value;e()}}catch(a){d.e(a)}finally{d.f()}a.initToc(),a.initMermaid(),a.initSearch(),isMobile=a.util.isMobile(),isMobile!==b&&(document.getElementById("mask").click(),isMobile,_readOnlyError("resizeBefore"))},100))},!1)}},{key:"onClickMask",value:function onClickMask(){var a=this;document.getElementById("mask").addEventListener("click",function(){if(document.body.classList.contains("blur")){var b,c=_createForOfIteratorHelper(a.clickMaskEventSet);try{for(c.s();!(b=c.n()).done;){var d=b.value;d()}}catch(a){c.e(a)}finally{c.f()}a.disableScrollEvent=!1,document.body.classList.remove("blur")}},!1)}},{key:"init",value:function init(){var a=this;try{var b;this.config.encryption?this.initFixItDecryptor():!(null!==(b=this.config.encryption)&&void 0!==b&&b.all)&&(this.initTwemoji(),this.initDetails(),this.initLightGallery(),this.initHighlight(),this.initTable(),this.initHeaderLink(),this.initMath(),this.initMermaid(),this.initEcharts(),this.initTypeit(),this.initMapbox(),this.initPangu()),this.initSVGIcon(),this.initMenu(),this.initSwitchTheme(),this.initSearch(),this.initCookieconsent(),this.initSiteTime(),this.initServiceWorker(),this.initWatermark(),window.setTimeout(function(){var b;a.initComment(),null!==(b=a.config.encryption)&&void 0!==b&&b.all||(a.initToc(),a.initTocListener()),a.onScroll(),a.onResize(),a.onClickMask()},100)}catch(a){console.error(a)}}}]),a}(),themeInit=function(){window.fixit=new FixIt,window.fixit.init()};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",themeInit,!1):themeInit(); +"use strict";function _readOnlyError(a){throw new TypeError("\""+a+"\" is read-only")}function _objectDestructuringEmpty(a){if(null==a)throw new TypeError("Cannot destructure undefined")}function _createForOfIteratorHelper(a,b){var c="undefined"!=typeof Symbol&&a[Symbol.iterator]||a["@@iterator"];if(!c){if(Array.isArray(a)||(c=_unsupportedIterableToArray(a))||b&&a&&"number"==typeof a.length){c&&(a=c);var d=0,e=function(){};return{s:e,n:function n(){return d>=a.length?{done:!0}:{done:!1,value:a[d++]}},e:function e(a){throw a},f:e}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var f,g=!0,h=!1;return{s:function s(){c=c.call(a)},n:function n(){var a=c.next();return g=a.done,a},e:function e(a){h=!0,f=a},f:function f(){try{g||null==c.return||c.return()}finally{if(h)throw f}}}}function _defineProperty(a,b,c){return b in a?Object.defineProperty(a,b,{value:c,enumerable:!0,configurable:!0,writable:!0}):a[b]=c,a}function _toConsumableArray(a){return _arrayWithoutHoles(a)||_iterableToArray(a)||_unsupportedIterableToArray(a)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(a,b){if(a){if("string"==typeof a)return _arrayLikeToArray(a,b);var c=Object.prototype.toString.call(a).slice(8,-1);return"Object"===c&&a.constructor&&(c=a.constructor.name),"Map"===c||"Set"===c?Array.from(a):"Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?_arrayLikeToArray(a,b):void 0}}function _iterableToArray(a){if("undefined"!=typeof Symbol&&null!=a[Symbol.iterator]||null!=a["@@iterator"])return Array.from(a)}function _arrayWithoutHoles(a){if(Array.isArray(a))return _arrayLikeToArray(a)}function _arrayLikeToArray(a,b){(null==b||b>a.length)&&(b=a.length);for(var c=0,d=Array(b);c.nested-item"),function(a){a.addEventListener("click",function(){this.parentNode.querySelector(".sub-menu").classList.toggle("open"),this.querySelector(".dropdown-icon").classList.toggle("open")})})}},{key:"initSwitchTheme",value:function initSwitchTheme(){var a=this;this.util.forEach(document.getElementsByClassName("theme-switch"),function(b){b.addEventListener("click",function(){document.body.setAttribute("theme","dark"===document.body.getAttribute("theme")?"light":"dark"),a.isDark=!a.isDark,window.localStorage&&localStorage.setItem("theme",a.isDark?"dark":"light");var b,c=_createForOfIteratorHelper(a.switchThemeEventSet);try{for(c.s();!(b=c.n()).done;){var d=b.value;d()}}catch(a){c.e(a)}finally{c.f()}},!1)})}},{key:"initSearch",value:function initSearch(){var a=this,b=this.config.search,c=this.util.isMobile();if(!(!b||c&&this._searchMobileOnce||!c&&this._searchDesktopOnce)){var d=b.maxResultLength||10,e=b.snippetLength||50,f=b.highlightTag||"em",g=c?"mobile":"desktop",h=document.getElementById("header-".concat(g)),i=document.getElementById("search-input-".concat(g)),j=document.getElementById("search-toggle-".concat(g)),k=document.getElementById("search-loading-".concat(g)),l=document.getElementById("search-clear-".concat(g));c?(this._searchMobileOnce=!0,i.addEventListener("focus",function(){a.disableScrollEvent=!0,document.body.classList.add("blur"),h.classList.add("open")},!1),document.getElementById("search-cancel-mobile").addEventListener("click",function(){a.disableScrollEvent=!1,h.classList.remove("open"),document.body.classList.remove("blur"),document.getElementById("menu-toggle-mobile").classList.remove("active"),document.getElementById("menu-mobile").classList.remove("active"),k.style.display="none",l.style.display="none",a._searchMobile&&a._searchMobile.autocomplete.setVal("")},!1),l.addEventListener("click",function(){l.style.display="none",a._searchMobile&&a._searchMobile.autocomplete.setVal("")},!1),this._searchMobileOnClickMask=this._searchMobileOnClickMask||function(){h.classList.remove("open"),k.style.display="none",l.style.display="none",a._searchMobile&&a._searchMobile.autocomplete.setVal("")},this.clickMaskEventSet.add(this._searchMobileOnClickMask)):(this._searchDesktopOnce=!0,j.addEventListener("click",function(){document.body.classList.add("blur"),h.classList.add("open"),i.focus()},!1),l.addEventListener("click",function(){l.style.display="none",a._searchDesktop&&a._searchDesktop.autocomplete.setVal("")},!1),this._searchDesktopOnClickMask=this._searchDesktopOnClickMask||function(){h.classList.remove("open"),k.style.display="none",l.style.display="none",a._searchDesktop&&a._searchDesktop.autocomplete.setVal("")},this.clickMaskEventSet.add(this._searchDesktopOnClickMask)),i.addEventListener("input",function(){l.style.display=""===i.value?"none":"inline"},!1);var m=function(){var h=autocomplete("#search-input-".concat(g),{hint:!1,autoselect:!0,dropdownMenuContainer:"#search-dropdown-".concat(g),clearOnSelected:!0,cssClasses:{noPrefix:!0},debug:!0},{name:"search",source:function source(c,g){k.style.display="inline",l.style.display="none";var h=function(a){k.style.display="none",l.style.display="inline",g(a)};if("lunr"===b.type){var i=function(){lunr.queryHandler&&(c=lunr.queryHandler(c));var b={};return a._index.search(c).forEach(function(c){var d=c.ref,g=c.matchData.metadata,h=a._indexData[d],i=h.uri,j=h.title,k=h.content;if(!b[i]){var l=0;Object.values(g).forEach(function(a){var b=a.content;if(b){var c=b.position[0][0];(c$1")),k=k.replace(new RegExp("(".concat(a,")"),"gi"),"<".concat(f,">$1"))}),b[i]={uri:i,title:j,date:h.date,context:k}}}),Object.values(b).slice(0,d)};a._index?h(i()):fetch(b.lunrIndexURL).then(function(a){return a.json()}).then(function(c){var d={};a._index=lunr(function(){var a=this;b.lunrLanguageCode&&this.use(lunr[b.lunrLanguageCode]),this.ref("objectID"),this.field("title",{boost:50}),this.field("tags",{boost:20}),this.field("categories",{boost:20}),this.field("content",{boost:10}),this.metadataWhitelist=["position"],c.forEach(function(b){d[b.objectID]=b,a.add(b)})}),a._indexData=d,h(i())}).catch(function(a){console.error(a),h([])})}else"algolia"===b.type&&(a._algoliaIndex=a._algoliaIndex||algoliasearch(b.algoliaAppID,b.algoliaSearchKey).initIndex(b.algoliaIndex),a._algoliaIndex.search(c,{offset:0,length:8*d,attributesToHighlight:["title"],attributesToSnippet:["content:".concat(e)],highlightPreTag:"<".concat(f,">"),highlightPostTag:"")}).then(function(a){var b=a.hits,c={};b.forEach(function(a){var b=a.uri,d=a.date,e=a._highlightResult.title,f=a._snippetResult.content;c[b]&&c[b].context.length>f.value||(c[b]={uri:b,title:e.value,date:d,context:f.value})}),h(Object.values(c).slice(0,d))}).catch(function(a){console.error(a),h([])}))},templates:{suggestion:function suggestion(a){var b=a.title,c=a.date,d=a.context;return"
".concat(b,"").concat(c,"
").concat(d,"
")},empty:function empty(a){var c=a.query;return"
".concat(b.noResultsFound,": \"").concat(c,"\"
")},footer:function footer(a){_objectDestructuringEmpty(a);var c="algolia"===b.type?{searchType:"algolia",icon:"",href:"https://www.algolia.com/"}:{searchType:"Lunr.js",icon:"",href:"https://lunrjs.com/"},d=c.searchType,e=c.icon,f=c.href;return"")}}});h.on("autocomplete:selected",function(a,b){window.location.assign(b.uri)}),c?a._searchMobile=h:a._searchDesktop=h};if(b.lunrSegmentitURL&&!document.getElementById("lunr-segmentit")){var n=document.createElement("script");n.id="lunr-segmentit",n.type="text/javascript",n.src=b.lunrSegmentitURL,n.async=!0,n.readyState?n.onreadystatechange=function(){("loaded"==n.readyState||"complete"==n.readyState)&&(n.onreadystatechange=null,m())}:n.onload=function(){m()},document.body.appendChild(n)}else m()}}},{key:"initDetails",value:function initDetails(){this.util.forEach(document.getElementsByClassName("details"),function(a){var b=a.querySelector(".details-summary");b.addEventListener("click",function(){a.classList.toggle("open")},!1)})}},{key:"initLightGallery",value:function initLightGallery(){this.config.lightGallery&&lightGallery(document.getElementById("content"),this.config.lightGallery)}},{key:"initHighlight",value:function initHighlight(){var a=this;this.util.forEach(document.querySelectorAll(".highlight > pre.chroma"),function(a){var b=document.createElement("div");b.className=a.className;var c=document.createElement("table");b.appendChild(c);var d=document.createElement("tbody");c.appendChild(d);var e=document.createElement("tr");d.appendChild(e);var f=document.createElement("td");e.appendChild(f),a.parentElement.replaceChild(b,a),f.appendChild(a)}),this.util.forEach(document.querySelectorAll(".highlight > .chroma"),function(b){var c=b.querySelectorAll("pre.chroma > code");if(c.length){var d=c[c.length-1],e=document.createElement("div");e.className="code-header "+d.className.toLowerCase();var f=document.createElement("span");f.classList.add("code-title"),f.insertAdjacentHTML("afterbegin",""),f.addEventListener("click",function(){b.classList.toggle("open")},!1),e.appendChild(f);var g=document.createElement("span");if(g.insertAdjacentHTML("afterbegin",""),g.classList.add("ellipses"),g.addEventListener("click",function(){b.classList.add("open")},!1),e.appendChild(g),a.config.code.editable){var h=document.createElement("span");h.classList.add("edit"),h.insertAdjacentHTML("afterbegin","")),h.addEventListener("click",function(){var b=h.querySelector(".fa-key"),c=h.querySelector(".fa-lock"),d=h.parentElement.parentElement.querySelectorAll("pre.chroma"),e=2===d.length?d[1]:d[0];b?(b.classList.add("fa-lock"),b.classList.remove("fa-key"),b.title=a.config.code.editLockTitle,e.setAttribute("contenteditable",!0),e.focus()):(c.classList.add("fa-key"),c.classList.remove("fa-lock"),c.title=a.config.code.editUnLockTitle,e.setAttribute("contenteditable",!1),e.blur())},!1),e.appendChild(h)}if(a.config.code.copyTitle){var i=document.createElement("span");i.insertAdjacentHTML("afterbegin",""),i.classList.add("copy");var j=d.innerText;(0>a.config.code.maxShownLines||j.split("\n").length=a;a++)this.util.forEach(document.querySelectorAll(".single .content > h"+a),function(a){a.classList.add("header-link"),a.insertAdjacentHTML("afterbegin",""))})}},{key:"initToc",value:function initToc(){var a=this,b=document.getElementById("TableOfContents");if(null!==b)if("true"===document.getElementById("toc-static").getAttribute("kept")||this.util.isTocStatic()){var h=document.getElementById("toc-content-static");b.parentElement!==h&&(b.parentElement.removeChild(b),h.appendChild(b)),this._tocOnScroll&&this.scrollEventSet.delete(this._tocOnScroll)}else{var i=document.getElementById("toc-content-auto");b.parentElement!==i&&(b.parentElement.removeChild(b),i.appendChild(b));var j=document.getElementById("toc-auto");j.style.visibility="visible",this.util.animateCSS(j,["animate__fadeIn","animate__faster"],!0),j.style.marginTop=document.querySelector(".single-title").clientHeight+document.querySelector(".post-meta").clientHeight+"px",j.style.marginBottom=document.getElementById("post-footer").clientHeight+"px";var c=b.querySelectorAll("a:first-child"),d=b.getElementsByTagName("li"),e=document.getElementsByClassName("header-link"),f="normal"!==document.body.getAttribute("header-desktop"),g=document.getElementById("header-desktop").offsetHeight;this._tocOnScroll=this._tocOnScroll||function(){var h=document.getElementById("comments");h&&(j.style.marginBottom=document.getElementById("post-footer").clientHeight+h.clientHeight+"px"),a.util.forEach(c,function(a){a.classList.remove("active")}),a.util.forEach(d,function(a){a.classList.remove("has-active")});for(var k=20+(f?g:0),l=e.length-1,m=0;mk||n<=k&&o>k){l=m;break}}if(-1!==l){c[l].classList.add("active");for(var p=c[l].parentElement;p!==b;)p.classList.add("has-active"),p=p.parentElement.parentElement}},this._tocOnScroll(),this.scrollEventSet.add(this._tocOnScroll)}}},{key:"initTocListener",value:function initTocListener(){var a,b=this,c=document.getElementById("toc-auto"),d=document.getElementById("toc-content-auto");null===(a=document.querySelector("#toc-auto>.toc-title"))||void 0===a?void 0:a.addEventListener("click",function(){var a=["animate__faster"],e=c.classList.contains("toc-hidden");a.push(e?"animate__fadeIn":"animate__fadeOut"),d.classList.remove(e?"animate__fadeOut":"animate__fadeIn"),b.util.animateCSS(d,a,!0),c.classList.toggle("toc-hidden")},!1)}},{key:"initMath",value:function initMath(){this.config.math&&renderMathInElement(document.body,this.config.math)}},{key:"initMermaid",value:function initMermaid(){var a=this,b=document.getElementsByClassName("mermaid");b.length&&(mermaid.initialize({startOnLoad:!1,theme:"default"}),this.util.forEach(b,function(b){mermaid.mermaidAPI.render("svg-"+b.id,a.data[b.id],function(a){b.insertAdjacentHTML("afterbegin",a)},b)}))}},{key:"initEcharts",value:function initEcharts(){var a=this;this._echartsOnSwitchTheme=this._echartsOnSwitchTheme||function(){a._echartsArr=a._echartsArr||[];for(var b=0;bscript");a&&(h._giscusOnSwitchTheme(),a.parentElement.removeChild(a)),window.removeEventListener("message",h.giscus2parentMsg)}))}}}},{key:"initCookieconsent",value:function initCookieconsent(){this.config.cookieconsent&&cookieconsent.initialise(this.config.cookieconsent)}},{key:"initSiteTime",value:function initSiteTime(){var a=this;this.config.siteTime&&(this.siteTime=setInterval(this.getSiteTime,500),document.addEventListener("visibilitychange",function(){return document.hidden?clearInterval(a.siteTime):void(a.siteTime=setInterval(a.getSiteTime,500))},!1))}},{key:"initServiceWorker",value:function initServiceWorker(){this.config.enablePWA&&"serviceWorker"in navigator&&(navigator.serviceWorker.register("/service-worker.min.js",{scope:"/"}).then(function(){}).catch(function(a){console.error("error: ",a)}),navigator.serviceWorker.ready.then(function(){}))}},{key:"initWatermark",value:function initWatermark(){var a;(null===(a=this.config.watermark)||void 0===a?void 0:a.enable)&&new Watermark({content:this.config.watermark.content||"\"FixIt FixIt Theme",appendTo:this.config.watermark.appendto||".wrapper>main",opacity:this.config.watermark.opacity,width:this.config.watermark.width,height:this.config.watermark.height,rowSpacing:this.config.watermark.rowspacing,colSpacing:this.config.watermark.colspacing,rotate:this.config.watermark.rotate,fontSize:this.config.watermark.fontsize,fontFamily:this.config.watermark.fontfamily})}},{key:"initPangu",value:function initPangu(){this.config.enablePangu&&pangu.autoSpacingPage()}},{key:"initFixItDecryptor",value:function initFixItDecryptor(){var a,b,c=this,d=document.querySelectorAll("#toc-auto>.d-none, #toc-static.d-none");this.decryptor=new FixItDecryptor({decrypted:function decrypted(){c.initTwemoji(),c.initDetails(),c.initLightGallery(),c.initHighlight(),c.initTable(),c.initHeaderLink(),c.initMath(),c.initMermaid(),c.initEcharts(),c.initTypeit(),c.initMapbox(),c.util.forEach(d,function(a){a.classList.remove("d-none")}),c.initToc(),c.initTocListener(),c.initPangu()},reset:function reset(){c.util.forEach(d,function(a){a.classList.add("d-none")})}}),null!==(a=this.config.encryption)&&void 0!==a&&a.shortcode&&(this.decryptor.addEventListener("decrypted",function(){c.decryptor.initShortcodes()}),this.decryptor.initShortcodes()),(null===(b=this.config.encryption)||void 0===b?void 0:b.all)&&this.decryptor.init()}},{key:"onScroll",value:function onScroll(){var a=this,b=[];if("auto"===document.body.getAttribute("header-desktop")&&b.push(document.getElementById("header-desktop")),"auto"===document.body.getAttribute("header-mobile")&&b.push(document.getElementById("header-mobile")),document.getElementById("comments")){var e=document.getElementById("view-comments");e.href="#comments",e.style.display="block"}var c=document.getElementById("fixed-buttons"),d=20;window.addEventListener("scroll",function(e){if(a.disableScrollEvent)return void e.preventDefault();var f=document.getElementById("mask");a.newScrollTop=a.util.getScrollTop();var g=a.newScrollTop-a.oldScrollTop,h=a.util.isMobile();a.util.forEach(b,function(b){g>d?(b.classList.remove("animate__fadeInDown"),a.util.animateCSS(b,["animate__fadeOutUp","animate__faster"],!0),f.click()):g<-d&&(b.classList.remove("animate__fadeOutUp"),a.util.animateCSS(b,["animate__fadeInDown","animate__faster"],!0),f.click())}),a.newScrollTop>100?h&&g>d?(c.classList.remove("animate__fadeIn"),a.util.animateCSS(c,["animate__fadeOut","animate__faster"],!0)):(!h||g<-d)&&(c.style.display="block",c.classList.remove("animate__fadeOut"),a.util.animateCSS(c,["animate__fadeIn","animate__faster"],!0)):(!h&&(c.classList.remove("animate__fadeIn"),a.util.animateCSS(c,["animate__fadeOut","animate__faster"],!0)),c.style.display="none");var i,j=_createForOfIteratorHelper(a.scrollEventSet);try{for(j.s();!(i=j.n()).done;){var k=i.value;k()}}catch(a){j.e(a)}finally{j.f()}a.oldScrollTop=a.newScrollTop},!1)}},{key:"onResize",value:function onResize(){var a=this,b=this.util.isMobile();window.addEventListener("resize",function(){a._resizeTimeout||(a._resizeTimeout=window.setTimeout(function(){a._resizeTimeout=null;var c,d=_createForOfIteratorHelper(a.resizeEventSet);try{for(d.s();!(c=d.n()).done;){var f=c.value;f()}}catch(a){d.e(a)}finally{d.f()}a.initToc(),a.initMermaid(),a.initSearch();var e=a.util.isMobile();e!==b&&(document.getElementById("mask").click(),e,_readOnlyError("resizeBefore"))},100))},!1)}},{key:"onClickMask",value:function onClickMask(){var a=this;document.getElementById("mask").addEventListener("click",function(){if(document.body.classList.contains("blur")){var b,c=_createForOfIteratorHelper(a.clickMaskEventSet);try{for(c.s();!(b=c.n()).done;){var d=b.value;d()}}catch(a){c.e(a)}finally{c.f()}a.disableScrollEvent=!1,document.body.classList.remove("blur")}},!1)}},{key:"init",value:function init(){var a=this;try{var b;this.config.encryption?this.initFixItDecryptor():!(null!==(b=this.config.encryption)&&void 0!==b&&b.all)&&(this.initTwemoji(),this.initDetails(),this.initLightGallery(),this.initHighlight(),this.initTable(),this.initHeaderLink(),this.initMath(),this.initMermaid(),this.initEcharts(),this.initTypeit(),this.initMapbox(),this.initPangu()),this.initSVGIcon(),this.initMenu(),this.initSwitchTheme(),this.initSearch(),this.initCookieconsent(),this.initSiteTime(),this.initServiceWorker(),this.initWatermark(),window.setTimeout(function(){var b;a.initComment(),null!==(b=a.config.encryption)&&void 0!==b&&b.all||(a.initToc(),a.initTocListener()),a.onScroll(),a.onResize(),a.onClickMask()},100)}catch(a){console.error(a)}}}]),a}(),themeInit=function(){window.fixit=new FixIt,window.fixit.init()};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",themeInit,!1):themeInit(); //# sourceMappingURL=theme.min.js.map \ No newline at end of file diff --git a/assets/js/theme.min.js.map b/assets/js/theme.min.js.map index 1d16c47b..b979cf96 100644 --- a/assets/js/theme.min.js.map +++ b/assets/js/theme.min.js.map @@ -1 +1 @@ -{"version":3,"sources":["../../src/js/theme.js"],"names":[],"mappings":"y5EAAM,CAAA,I,6FACJ,iBAAQ,CAAR,CAAkB,CAAlB,CAA2B,CACzB,CAAQ,CAAG,CAAQ,EAAI,EADE,CAEzB,IAAI,GAAI,CAAA,CAAC,CAAG,CAAZ,CAAe,CAAC,CAAG,CAAQ,CAAC,MAA5B,CAAoC,CAAC,EAArC,CACE,CAAO,CAAC,CAAQ,CAAC,CAAD,CAAT,CAEV,C,4BAED,uBAAe,CACb,MAAQ,CAAA,QAAQ,CAAC,eAAT,EAA4B,QAAQ,CAAC,eAAT,CAAyB,SAAtD,EAAoE,QAAQ,CAAC,IAAT,CAAc,SAC1F,C,wBAED,mBAAW,CACT,MAAO,CAAA,MAAM,CAAC,UAAP,CAAkB,oCAAlB,EAAwD,OAChE,C,2BAED,sBAAc,CACZ,MAAO,CAAA,MAAM,CAAC,UAAP,CAAkB,oCAAlB,EAAwD,OAChE,C,0BASD,oBAAW,CAAX,CAAoB,CAApB,CAA+B,CAA/B,CAAyC,CAAzC,CAAmD,OAChD,KAAK,CAAC,OAAN,CAAc,CAAd,CAAD,GAA8B,CAAS,CAAG,CAAC,CAAD,CAA1C,CADiD,CAEjD,GAAA,CAAO,CAAC,SAAR,EAAkB,GAAlB,UAAsB,mBAAtB,4BAA8C,CAA9C,GAFiD,CAGjD,GAAM,CAAA,CAAO,CAAG,UAAM,OACpB,GAAA,CAAO,CAAC,SAAR,EAAkB,MAAlB,UAAyB,mBAAzB,4BAAiD,CAAjD,GADoB,CAEpB,CAAO,CAAC,mBA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C,KAAR,CAAc,CAAd,CACD,CACF,C,SAGG,SAAS,CAAG,UAAM,CACtB,MAAM,CAAC,KAAP,CAAe,GAAI,CAAA,KADG,CAEtB,MAAM,CAAC,KAAP,CAAa,IAAb,EACD,C,CAE2B,SAAxB,GAAA,QAAQ,CAAC,U,CAGX,QAAQ,CAAC,gBAAT,CAA0B,kBAA1B,CAA8C,SAA9C,I,CAFA,SAAS,E","file":"theme.min.js","sourcesContent":["class Util {\n forEach(elements, handler) {\n elements = elements || [];\n for(let i = 0; i < elements.length; i++){\n handler(elements[i]);\n }\n }\n\n getScrollTop() {\n return (document.documentElement && document.documentElement.scrollTop) || document.body.scrollTop;\n }\n\n isMobile() {\n return window.matchMedia('only screen and (max-width: 680px)').matches;\n }\n\n isTocStatic() {\n return window.matchMedia('only screen and (max-width: 960px)').matches;\n }\n\n /**\n * add animate to element\n * @param {Element} element animate element\n * @param {String|Array} animation animation name\n * @param {Boolean} reserved reserved animation\n * @param {Function} callback remove callback\n */\n animateCSS(element, animation, reserved, callback) {\n !Array.isArray(animation) && (animation = [animation]);\n element.classList.add('animate__animated', ...animation);\n const handler = () => {\n element.classList.remove('animate__animated', ...animation);\n element.removeEventListener('animationend', handler);\n typeof callback === 'function' && callback();\n };\n !reserved && element.addEventListener('animationend', handler, false);\n }\n \n /**\n * date validator\n * @param {*} date may be date or not\n * @returns {Boolean}\n */\n isValidDate(date) {\n return date instanceof Date && !isNaN(date.getTime());\n }\n}\n\nclass FixIt {\n constructor() {\n this.config = window.config;\n this.data = this.config.data;\n this.isDark = document.body.getAttribute('theme') === 'dark';\n this.util = new Util();\n this.newScrollTop = this.util.getScrollTop();\n this.oldScrollTop = this.newScrollTop;\n this.scrollEventSet = new Set();\n this.resizeEventSet = new Set();\n this.switchThemeEventSet = new Set();\n this.clickMaskEventSet = new Set();\n this.disableScrollEvent = false;\n window.objectFitImages && objectFitImages();\n }\n\n initSVGIcon() {\n this.util.forEach(document.querySelectorAll('[data-svg-src]'), ($icon) => {\n fetch($icon.getAttribute('data-svg-src'))\n .then((response) => response.text())\n .then((svg) => {\n const $temp = document.createElement('div');\n $temp.insertAdjacentHTML('afterbegin', svg);\n const $svg = $temp.firstChild;\n $svg.setAttribute('data-svg-src', $icon.getAttribute('data-svg-src'));\n $svg.classList.add('icon');\n const $titleElements = $svg.getElementsByTagName('title');\n $titleElements.length && $svg.removeChild($titleElements[0])\n $icon.parentElement.replaceChild($svg, $icon);\n })\n .catch((err) => {\n console.error(err);\n });\n });\n }\n\n initTwemoji() {\n this.config.twemoji && twemoji.parse(document.body);\n }\n\n initMenu() {\n this.initMenuDesktop();\n this.initMenuMobile();\n }\n\n initMenuDesktop() {\n // This is a dirty hack for fixing sub menu position error in desktop header\n this.util.forEach(document.querySelectorAll('[has-children], #header-desktop .language'), ($item) => {\n $item.addEventListener('mouseover', function(){\n this.querySelector('.sub-menu').style.left= `${this.getBoundingClientRect().left}px`;\n })\n $item.querySelector('.sub-menu').style.minWidth= `${$item.offsetWidth - 8}px`;\n });\n }\n\n initMenuMobile() {\n const $menuToggleMobile = document.getElementById('menu-toggle-mobile');\n const $menuMobile = document.getElementById('menu-mobile');\n $menuToggleMobile.addEventListener('click', (event) => {\n document.body.classList.toggle('blur');\n $menuToggleMobile.classList.toggle('active');\n $menuMobile.classList.toggle('active');\n this.disableScrollEvent = document.body.classList.contains('blur')\n }, false);\n this._menuMobileOnClickMask = this._menuMobileOnClickMask || (() => {\n $menuToggleMobile.classList.remove('active');\n $menuMobile.classList.remove('active');\n });\n this.clickMaskEventSet.add(this._menuMobileOnClickMask);\n // add nested menu toggler\n this.util.forEach(document.querySelectorAll('.menu-item>.nested-item'), ($nestedItem) => {\n $nestedItem.addEventListener('click', function () {\n this.parentNode.querySelector('.sub-menu').classList.toggle('open');\n this.querySelector('.dropdown-icon').classList.toggle('open');\n })\n });\n }\n\n initSwitchTheme() {\n this.util.forEach(document.getElementsByClassName('theme-switch'), ($themeSwitch) => {\n $themeSwitch.addEventListener('click', () => {\n document.body.setAttribute('theme', document.body.getAttribute('theme') === 'dark' ? 'light' : 'dark');\n this.isDark = !this.isDark;\n window.localStorage && localStorage.setItem('theme', this.isDark ? 'dark' : 'light');\n for (let event of this.switchThemeEventSet) {\n event();\n }\n }, false);\n });\n }\n\n initSearch() {\n const searchConfig = this.config.search;\n const isMobile = this.util.isMobile();\n if (!searchConfig || (isMobile && this._searchMobileOnce) || (!isMobile && this._searchDesktopOnce)) {\n return;\n }\n const maxResultLength = searchConfig.maxResultLength || 10;\n const snippetLength = searchConfig.snippetLength || 50;\n const highlightTag = searchConfig.highlightTag || 'em';\n const suffix = isMobile ? 'mobile' : 'desktop';\n const $header = document.getElementById(`header-${suffix}`);\n const $searchInput = document.getElementById(`search-input-${suffix}`);\n const $searchToggle = document.getElementById(`search-toggle-${suffix}`);\n const $searchLoading = document.getElementById(`search-loading-${suffix}`);\n const $searchClear = document.getElementById(`search-clear-${suffix}`);\n\n if (isMobile) {\n this._searchMobileOnce = true;\n $searchInput.addEventListener('focus', () => {\n this.disableScrollEvent = true;\n document.body.classList.add('blur');\n $header.classList.add('open');\n }, false);\n document.getElementById('search-cancel-mobile').addEventListener('click', () => {\n this.disableScrollEvent = false;\n $header.classList.remove('open');\n document.body.classList.remove('blur');\n document.getElementById('menu-toggle-mobile').classList.remove('active');\n document.getElementById('menu-mobile').classList.remove('active');\n $searchLoading.style.display = 'none';\n $searchClear.style.display = 'none';\n this._searchMobile && this._searchMobile.autocomplete.setVal('');\n }, false);\n $searchClear.addEventListener('click', () => {\n $searchClear.style.display = 'none';\n this._searchMobile && this._searchMobile.autocomplete.setVal('');\n }, false);\n this._searchMobileOnClickMask = this._searchMobileOnClickMask || (() => {\n $header.classList.remove('open');\n $searchLoading.style.display = 'none';\n $searchClear.style.display = 'none';\n this._searchMobile && this._searchMobile.autocomplete.setVal('');\n });\n this.clickMaskEventSet.add(this._searchMobileOnClickMask);\n } else {\n this._searchDesktopOnce = true;\n $searchToggle.addEventListener('click', () => {\n document.body.classList.add('blur');\n $header.classList.add('open');\n $searchInput.focus();\n }, false);\n $searchClear.addEventListener('click', () => {\n $searchClear.style.display = 'none';\n this._searchDesktop && this._searchDesktop.autocomplete.setVal('');\n }, false);\n this._searchDesktopOnClickMask = this._searchDesktopOnClickMask ||(() => {\n $header.classList.remove('open');\n $searchLoading.style.display = 'none';\n $searchClear.style.display = 'none';\n this._searchDesktop && this._searchDesktop.autocomplete.setVal('');\n });\n this.clickMaskEventSet.add(this._searchDesktopOnClickMask);\n }\n $searchInput.addEventListener('input', () => {\n if ($searchInput.value === '') $searchClear.style.display = 'none';\n else $searchClear.style.display = 'inline';\n }, false);\n\n const initAutosearch = () => {\n const autosearch = autocomplete(`#search-input-${suffix}`,\n {\n hint: false,\n autoselect: true,\n dropdownMenuContainer: `#search-dropdown-${suffix}`,\n clearOnSelected: true,\n cssClasses: { noPrefix: true },\n debug: true\n },\n {\n name: 'search',\n source: (query, callback) => {\n $searchLoading.style.display = 'inline';\n $searchClear.style.display = 'none';\n const finish = (results) => {\n $searchLoading.style.display = 'none';\n $searchClear.style.display = 'inline';\n callback(results);\n };\n if (searchConfig.type === 'lunr') {\n const search = () => {\n if (lunr.queryHandler) {\n query = lunr.queryHandler(query);\n }\n const results = {};\n this._index.search(query).forEach(({ ref, matchData: { metadata } }) => {\n const matchData = this._indexData[ref];\n let { uri, title, content: context } = matchData;\n if (results[uri]) {\n return;\n }\n let position = 0;\n Object.values(metadata).forEach(({ content }) => {\n if (content) {\n const matchPosition = content.position[0][0];\n if (matchPosition < position || position === 0) {\n position = matchPosition;\n }\n }\n });\n position -= snippetLength / 5;\n if (position > 0) {\n position += context.substr(position, 20).lastIndexOf(' ') + 1;\n context = '...' + context.substr(position, snippetLength);\n } else {\n context = context.substr(0, snippetLength);\n }\n Object.keys(metadata).forEach((key) => {\n title = title.replace(new RegExp(`(${key})`, 'gi'), `<${highlightTag}>$1`);\n context = context.replace(new RegExp(`(${key})`, 'gi'), `<${highlightTag}>$1`);\n });\n results[uri] = {\n uri: uri,\n title: title,\n date: matchData.date,\n context: context\n };\n });\n return Object.values(results).slice(0, maxResultLength);\n };\n if (!this._index) {\n fetch(searchConfig.lunrIndexURL)\n .then((response) => response.json())\n .then((data) => {\n const indexData = {};\n this._index = lunr(function () {\n if (searchConfig.lunrLanguageCode) this.use(lunr[searchConfig.lunrLanguageCode]);\n this.ref('objectID');\n this.field('title', { boost: 50 });\n this.field('tags', { boost: 20 });\n this.field('categories', { boost: 20 });\n this.field('content', { boost: 10 });\n this.metadataWhitelist = ['position'];\n data.forEach((record) => {\n indexData[record.objectID] = record;\n this.add(record);\n });\n });\n this._indexData = indexData;\n finish(search());\n })\n .catch((err) => {\n console.error(err);\n finish([]);\n });\n } else finish(search());\n } else if (searchConfig.type === 'algolia') {\n this._algoliaIndex =\n this._algoliaIndex || algoliasearch(searchConfig.algoliaAppID, searchConfig.algoliaSearchKey).initIndex(searchConfig.algoliaIndex);\n this._algoliaIndex\n .search(query, {\n offset: 0,\n length: maxResultLength * 8,\n attributesToHighlight: ['title'],\n attributesToSnippet: [`content:${snippetLength}`],\n highlightPreTag: `<${highlightTag}>`,\n highlightPostTag: ``\n })\n .then(({ hits }) => {\n const results = {};\n hits.forEach(({ uri, date, _highlightResult: { title }, _snippetResult: { content } }) => {\n if (results[uri] && results[uri].context.length > content.value) {\n return;\n }\n results[uri] = {\n uri: uri,\n title: title.value,\n date: date,\n context: content.value\n };\n });\n finish(Object.values(results).slice(0, maxResultLength));\n })\n .catch((err) => {\n console.error(err);\n finish([]);\n });\n }\n },\n templates: {\n suggestion: ({ title, date, context }) =>\n `
${title}${date}
${context}
`,\n empty: ({ query }) => `
${searchConfig.noResultsFound}: \"${query}\"
`,\n footer: ({}) => {\n const { searchType, icon, href } =\n searchConfig.type === 'algolia'\n ? {\n searchType: 'algolia',\n icon: '',\n href: 'https://www.algolia.com/'\n }\n : {\n searchType: 'Lunr.js',\n icon: '',\n href: 'https://lunrjs.com/'\n };\n return ``;\n }\n }\n }\n );\n autosearch.on('autocomplete:selected', (_event, suggestion, _dataset, _context) => {\n window.location.assign(suggestion.uri);\n });\n if (isMobile) {\n this._searchMobile = autosearch;\n } else {\n this._searchDesktop = autosearch;\n }\n };\n if (searchConfig.lunrSegmentitURL && !document.getElementById('lunr-segmentit')) {\n const script = document.createElement('script');\n script.id = 'lunr-segmentit';\n script.type = 'text/javascript';\n script.src = searchConfig.lunrSegmentitURL;\n script.async = true;\n if (script.readyState) {\n script.onreadystatechange = () => {\n if (script.readyState == 'loaded' || script.readyState == 'complete') {\n script.onreadystatechange = null;\n initAutosearch();\n }\n };\n } else {\n script.onload = () => {\n initAutosearch();\n };\n }\n document.body.appendChild(script);\n } else {\n initAutosearch();\n }\n }\n\n initDetails() {\n this.util.forEach(document.getElementsByClassName('details'), ($details) => {\n const $summary = $details.querySelector('.details-summary');\n $summary.addEventListener('click', () => {\n $details.classList.toggle('open');\n }, false);\n });\n }\n\n initLightGallery() {\n this.config.lightGallery && lightGallery(document.getElementById('content'), this.config.lightGallery);\n }\n\n initHighlight() {\n this.util.forEach(document.querySelectorAll('.highlight > pre.chroma'), ($preChroma) => {\n const $chroma = document.createElement('div');\n $chroma.className = $preChroma.className;\n const $table = document.createElement('table');\n $chroma.appendChild($table);\n const $tbody = document.createElement('tbody');\n $table.appendChild($tbody);\n const $tr = document.createElement('tr');\n $tbody.appendChild($tr);\n const $td = document.createElement('td');\n $tr.appendChild($td);\n $preChroma.parentElement.replaceChild($chroma, $preChroma);\n $td.appendChild($preChroma);\n });\n this.util.forEach(document.querySelectorAll('.highlight > .chroma'), ($chroma) => {\n const $codeElements = $chroma.querySelectorAll('pre.chroma > code');\n if ($codeElements.length) {\n const $code = $codeElements[$codeElements.length - 1];\n const $header = document.createElement('div');\n $header.className = 'code-header ' + $code.className.toLowerCase();\n // code title\n const $title = document.createElement('span');\n $title.classList.add('code-title');\n $title.insertAdjacentHTML('afterbegin', '');\n $title.addEventListener('click', () => {\n $chroma.classList.toggle('open');\n }, false);\n $header.appendChild($title);\n // ellipses icon\n const $ellipses = document.createElement('span');\n $ellipses.insertAdjacentHTML('afterbegin', '');\n $ellipses.classList.add('ellipses');\n $ellipses.addEventListener('click', () => {\n $chroma.classList.add('open');\n }, false);\n $header.appendChild($ellipses);\n // edit button\n if (this.config.code.editable) {\n const $edit = document.createElement('span');\n $edit.classList.add('edit');\n $edit.insertAdjacentHTML('afterbegin', ``);\n $edit.addEventListener('click', () => {\n const $iconKey = $edit.querySelector('.fa-key');\n const $iconLock = $edit.querySelector('.fa-lock');\n const $preChromas = $edit.parentElement.parentElement.querySelectorAll('pre.chroma');\n const $preChroma = $preChromas.length === 2 ? $preChromas[1] : $preChromas[0];\n if ($iconKey) {\n $iconKey.classList.add('fa-lock');\n $iconKey.classList.remove('fa-key');\n $iconKey.title = this.config.code.editLockTitle;\n $preChroma.setAttribute('contenteditable', true);\n $preChroma.focus();\n } else {\n $iconLock.classList.add('fa-key');\n $iconLock.classList.remove('fa-lock');\n $iconLock.title = this.config.code.editUnLockTitle;\n $preChroma.setAttribute('contenteditable', false);\n $preChroma.blur();\n }\n }, false);\n $header.appendChild($edit);\n }\n // copy button\n if (this.config.code.copyTitle) {\n const $copy = document.createElement('span');\n $copy.insertAdjacentHTML('afterbegin', '');\n $copy.classList.add('copy');\n const code = $code.innerText;\n if (this.config.code.maxShownLines < 0 || code.split('\\n').length < this.config.code.maxShownLines + 2) {\n $chroma.classList.add('open');\n }\n $copy.title = this.config.code.copyTitle;\n $copy.addEventListener('click', () => {\n navigator.clipboard.writeText(code).then(() => {\n this.util.animateCSS($code, 'animate__flash');\n }, () => {\n console.error('Clipboard write failed!', 'Your browser does not support clipboard API!');\n });\n }, false);\n $header.appendChild($copy);\n }\n $chroma.insertBefore($header, $chroma.firstChild);\n }\n });\n }\n\n initTable() {\n this.util.forEach(document.querySelectorAll('.content table'), ($table) => {\n const $wrapper = document.createElement('div');\n $wrapper.className = 'table-wrapper';\n $table.parentElement.replaceChild($wrapper, $table);\n $wrapper.appendChild($table);\n });\n }\n\n initHeaderLink() {\n for (let num = 1; num <= 6; num++) {\n this.util.forEach(document.querySelectorAll('.single .content > h' + num), ($header) => {\n $header.classList.add('header-link');\n $header.insertAdjacentHTML('afterbegin', ``);\n });\n }\n }\n /**\n * init table of contents\n */\n initToc() {\n const $tocCore = document.getElementById('TableOfContents');\n if ($tocCore === null) {\n return;\n }\n if (document.getElementById('toc-static').getAttribute('kept') === 'true' || this.util.isTocStatic()) {\n const $tocContentStatic = document.getElementById('toc-content-static');\n if ($tocCore.parentElement !== $tocContentStatic) {\n $tocCore.parentElement.removeChild($tocCore);\n $tocContentStatic.appendChild($tocCore);\n }\n this._tocOnScroll && this.scrollEventSet.delete(this._tocOnScroll);\n } else {\n const $tocContentAuto = document.getElementById('toc-content-auto');\n if ($tocCore.parentElement !== $tocContentAuto) {\n $tocCore.parentElement.removeChild($tocCore);\n $tocContentAuto.appendChild($tocCore);\n }\n const $toc = document.getElementById('toc-auto');\n $toc.style.visibility = 'visible';\n this.util.animateCSS($toc, ['animate__fadeIn', 'animate__faster'], true);\n $toc.style.marginTop = document.querySelector('.single-title').clientHeight + document.querySelector('.post-meta').clientHeight + 'px';\n $toc.style.marginBottom = document.getElementById('post-footer').clientHeight + 'px';\n const $tocLinkElements = $tocCore.querySelectorAll('a:first-child');\n const $tocLiElements = $tocCore.getElementsByTagName('li');\n const $headerLinkElements = document.getElementsByClassName('header-link');\n const headerIsFixed = document.body.getAttribute('header-desktop') !== 'normal';\n const headerHeight = document.getElementById('header-desktop').offsetHeight;\n this._tocOnScroll = this._tocOnScroll || (() => {\n const $comments = document.getElementById('comments');\n if ($comments) {\n $toc.style.marginBottom = document.getElementById('post-footer').clientHeight + $comments.clientHeight + 'px';\n }\n this.util.forEach($tocLinkElements, ($tocLink) => {\n $tocLink.classList.remove('active');\n });\n this.util.forEach($tocLiElements, ($tocLi) => {\n $tocLi.classList.remove('has-active');\n });\n const INDEX_SPACING = 20 + (headerIsFixed ? headerHeight : 0);\n let activeTocIndex = $headerLinkElements.length - 1;\n for (let i = 0; i < $headerLinkElements.length - 1; i++) {\n const thisTop = $headerLinkElements[i].getBoundingClientRect().top;\n const nextTop = $headerLinkElements[i + 1].getBoundingClientRect().top;\n if ((i == 0 && thisTop > INDEX_SPACING) || (thisTop <= INDEX_SPACING && nextTop > INDEX_SPACING)) {\n activeTocIndex = i;\n break;\n }\n }\n if (activeTocIndex !== -1) {\n $tocLinkElements[activeTocIndex].classList.add('active');\n let $parent = $tocLinkElements[activeTocIndex].parentElement;\n while ($parent !== $tocCore) {\n $parent.classList.add('has-active');\n $parent = $parent.parentElement.parentElement;\n }\n }\n });\n this._tocOnScroll();\n this.scrollEventSet.add(this._tocOnScroll);\n }\n }\n\n initTocListener() {\n const $toc = document.getElementById('toc-auto');\n const $tocContentAuto = document.getElementById('toc-content-auto');\n document.querySelector('#toc-auto>.toc-title')?.addEventListener('click', () => {\n const animation = ['animate__faster']\n const tocHidden = $toc.classList.contains('toc-hidden');\n animation.push(tocHidden ? 'animate__fadeIn' : 'animate__fadeOut');\n $tocContentAuto.classList.remove(tocHidden ? 'animate__fadeOut' : 'animate__fadeIn');\n this.util.animateCSS($tocContentAuto, animation, true);\n $toc.classList.toggle('toc-hidden');\n }, false)\n }\n\n initMath() {\n if (this.config.math) {\n renderMathInElement(document.body, this.config.math);\n }\n }\n\n initMermaid() {\n const $mermaidElements = document.getElementsByClassName('mermaid');\n if ($mermaidElements.length) {\n mermaid.initialize({ startOnLoad: false, theme: 'default' });\n this.util.forEach($mermaidElements, ($mermaid) => {\n mermaid.mermaidAPI.render(\n 'svg-' + $mermaid.id,\n this.data[$mermaid.id],\n (svgCode) => {\n $mermaid.insertAdjacentHTML('afterbegin', svgCode);\n },\n $mermaid\n );\n });\n }\n }\n\n initEcharts() {\n this._echartsOnSwitchTheme = this._echartsOnSwitchTheme || (() => {\n this._echartsArr = this._echartsArr || [];\n for (let i = 0; i < this._echartsArr.length; i++) {\n this._echartsArr[i].dispose();\n }\n this._echartsArr = [];\n this.util.forEach(document.getElementsByClassName('echarts'), ($echarts) => {\n const chart = echarts.init($echarts, this.isDark ? 'dark' : 'macarons', {\n renderer: 'svg'\n });\n chart.setOption(JSON.parse(this.data[$echarts.id]));\n this._echartsArr.push(chart);\n });\n });\n this.switchThemeEventSet.add(this._echartsOnSwitchTheme);\n this._echartsOnSwitchTheme();\n this._echartsOnResize = this._echartsOnResize || (() => {\n for (let i = 0; i < this._echartsArr.length; i++) {\n this._echartsArr[i].resize();\n }\n });\n this.resizeEventSet.add(this._echartsOnResize);\n }\n\n initMapbox() {\n if (this.config.mapbox) {\n mapboxgl.accessToken = this.config.mapbox.accessToken;\n mapboxgl.setRTLTextPlugin(this.config.mapbox.RTLTextPlugin);\n this._mapboxArr = this._mapboxArr || [];\n this.util.forEach(document.getElementsByClassName('mapbox'), ($mapbox) => {\n const { lng, lat, zoom, lightStyle, darkStyle, marked, navigation, geolocate, scale, fullscreen } = this.data[$mapbox.id];\n const mapbox = new mapboxgl.Map({\n container: $mapbox,\n center: [lng, lat],\n zoom: zoom,\n minZoom: 0.2,\n style: this.isDark ? darkStyle : lightStyle,\n attributionControl: false\n });\n if (marked) {\n new mapboxgl.Marker().setLngLat([lng, lat]).addTo(mapbox);\n }\n if (navigation) {\n mapbox.addControl(new mapboxgl.NavigationControl(), 'bottom-right');\n }\n if (geolocate) {\n mapbox.addControl(\n new mapboxgl.GeolocateControl({\n positionOptions: {\n enableHighAccuracy: true\n },\n showUserLocation: true,\n trackUserLocation: true\n }),\n 'bottom-right'\n );\n }\n if (scale) {\n mapbox.addControl(new mapboxgl.ScaleControl());\n }\n if (fullscreen) {\n mapbox.addControl(new mapboxgl.FullscreenControl());\n }\n mapbox.addControl(new MapboxLanguage());\n this._mapboxArr.push(mapbox);\n });\n this._mapboxOnSwitchTheme = this._mapboxOnSwitchTheme || (() => {\n this.util.forEach(this._mapboxArr, (mapbox) => {\n const $mapbox = mapbox.getContainer();\n const { lightStyle, darkStyle } = this.data[$mapbox.id];\n mapbox.setStyle(this.isDark ? darkStyle : lightStyle);\n mapbox.addControl(new MapboxLanguage());\n });\n });\n this.switchThemeEventSet.add(this._mapboxOnSwitchTheme);\n }\n }\n\n initTypeit() {\n if (this.config.typeit) {\n const typeitConfig = this.config.typeit;\n const speed = typeitConfig.speed || 100;\n const cursorSpeed = typeitConfig.cursorSpeed || 1000;\n const cursorChar = typeitConfig.cursorChar || '|';\n Object.values(typeitConfig.data).forEach((group) => {\n const typeone = (i) => {\n const id = group[i];\n const instance = new TypeIt(`#${id}`, {\n strings: this.data[id],\n speed: speed,\n lifeLike: true,\n cursorSpeed: cursorSpeed,\n cursorChar: cursorChar,\n waitUntilVisible: true,\n afterComplete: () => {\n if (i === group.length - 1 && typeitConfig.duration >= 0) {\n window.setTimeout(() => {\n instance.destroy();\n }, typeitConfig.duration);\n return;\n }\n instance.destroy();\n typeone(i + 1);\n }\n }).go();\n };\n typeone(0);\n });\n }\n }\n\n initCommentLightGallery(comments, images) {\n if (!this.config.lightGallery) {\n return;\n }\n document.querySelectorAll(comments).forEach(($content) => {\n const $imgs = $content.querySelectorAll(images + ':not([lightgallery-loaded])');\n $imgs.forEach(($img) => {\n $img.setAttribute('lightgallery-loaded', '');\n const $link = document.createElement('a');\n $link.setAttribute('class', 'comment-lightgallery');\n $link.setAttribute('href', $img.src);\n $link.append($img.cloneNode());\n $img.replaceWith($link);\n });\n if ($imgs.length) {\n lightGallery($content, {\n selector: '.comment-lightgallery',\n actualSize: false,\n hideBarsDelay: 2000,\n speed: 400\n });\n }\n });\n }\n\n initComment() {\n if (!this.config.comment) {\n return;\n }\n if (this.config.comment.artalk) {\n const artalk = new Artalk(this.config.comment.artalk);\n artalk.setDarkMode(this.isDark);\n this.switchThemeEventSet.add(() => {\n artalk.setDarkMode(this.isDark);\n });\n artalk.on('comments-loaded', () => {\n this.config.comment.artalk.lightgallery && this.initCommentLightGallery('.atk-comment .atk-content', 'img:not([atk-emoticon])');\n });\n return artalk;\n }\n if (this.config.comment.gitalk) {\n this.config.comment.gitalk.body = decodeURI(window.location.href);\n const gitalk = new Gitalk(this.config.comment.gitalk);\n gitalk.render('gitalk');\n return gitalk;\n }\n if (this.config.comment.valine) {\n return new Valine(this.config.comment.valine);\n }\n if (this.config.comment.waline) {\n return new Waline(this.config.comment.waline);\n }\n if (this.config.comment.utterances) {\n const utterancesConfig = this.config.comment.utterances;\n const script = document.createElement('script');\n script.src = 'https://utteranc.es/client.js';\n script.type = 'text/javascript';\n script.setAttribute('repo', utterancesConfig.repo);\n script.setAttribute('issue-term', utterancesConfig.issueTerm);\n if (utterancesConfig.label) script.setAttribute('label', utterancesConfig.label);\n script.setAttribute('theme', this.isDark ? utterancesConfig.darkTheme : utterancesConfig.lightTheme);\n script.crossOrigin = 'anonymous';\n script.async = true;\n document.getElementById('utterances').appendChild(script);\n this._utterancesOnSwitchTheme = this._utterancesOnSwitchTheme || (() => {\n const message = {\n type: 'set-theme',\n theme: this.isDark ? utterancesConfig.darkTheme : utterancesConfig.lightTheme\n };\n document.querySelector('.utterances-frame')?.contentWindow.postMessage(message, 'https://utteranc.es');\n });\n this.switchThemeEventSet.add(this._utterancesOnSwitchTheme);\n return;\n }\n if (this.config.comment.twikoo) {\n const twikooConfig = this.config.comment.twikoo;\n if (twikooConfig.lightgallery) {\n twikooConfig.onCommentLoaded = () => {\n this.initCommentLightGallery('.tk-comments .tk-content', 'img:not(.tk-owo-emotion)');\n };\n }\n twikoo.init(twikooConfig);\n if (twikooConfig.commentCount) {\n // https://twikoo.js.org/api.html#get-comments-count\n twikoo\n .getCommentsCount({\n envId: twikooConfig.envId,\n region: twikooConfig.region,\n urls: [window.location.pathname],\n includeReply: false\n })\n .then(function (response) {\n const twikooCommentCount = document.getElementById('twikoo-comment-count');\n if (twikooCommentCount) twikooCommentCount.innerHTML = response[0].count;\n });\n }\n return;\n }\n if (this.config.comment.giscus) {\n const giscusConfig = this.config.comment.giscus;\n this._giscusOnSwitchTheme = this._giscusOnSwitchTheme || (() => {\n const message = { setConfig: { theme: this.isDark ? giscusConfig.darkTheme : giscusConfig.lightTheme }};\n document.querySelector('.giscus-frame')?.contentWindow.postMessage({ giscus: message }, 'https://giscus.app');\n });\n this.switchThemeEventSet.add(this._giscusOnSwitchTheme);\n const _this = this;\n _this.giscus2parentMsg = window.addEventListener('message', (event) => {\n const $script = document.querySelector('#giscus>script');\n if ($script){\n _this._giscusOnSwitchTheme();\n $script.parentElement.removeChild($script);\n }\n window.removeEventListener('message', _this.giscus2parentMsg);\n });\n return;\n }\n }\n\n initCookieconsent() {\n this.config.cookieconsent && cookieconsent.initialise(this.config.cookieconsent);\n }\n\n getSiteTime = () => {\n let now = new Date();\n let run = new Date(this.config.siteTime);\n let $runTimes = document.querySelector('.run-times');\n if (!this.util.isValidDate(run) || !$runTimes) {\n clearInterval(this.siteTime);\n $runTimes && $runTimes.parentNode.remove();\n return;\n }\n let runTime = (now - run) / 1000,\n days = Math.floor(runTime / 60 / 60 / 24),\n hours = Math.floor(runTime / 60 / 60 - 24 * days),\n minutes = Math.floor(runTime / 60 - 24 * 60 * days - 60 * hours),\n seconds = Math.floor((now - run) / 1000 - 24 * 60 * 60 * days - 60 * 60 * hours - 60 * minutes);\n $runTimes.innerHTML = `${days}, ${String(hours).padStart(2, 0)}:${String(minutes).padStart(2, 0)}:${String(seconds).padStart(2, 0)}`;\n }\n\n initSiteTime() {\n if (this.config.siteTime) {\n this.siteTime = setInterval(this.getSiteTime, 500);\n document.addEventListener('visibilitychange', () => {\n if (document.hidden) {\n return clearInterval(this.siteTime);\n }\n this.siteTime = setInterval(this.getSiteTime, 500);\n }, false);\n }\n }\n\n initServiceWorker() {\n if (this.config.enablePWA && 'serviceWorker' in navigator) {\n navigator.serviceWorker\n .register('/service-worker.min.js', { scope: '/' })\n .then(function (registration) {\n // console.log('Service Worker Registered');\n })\n .catch(function (error) {\n console.error('error: ', error);\n });\n navigator.serviceWorker.ready.then(function (registration) {\n // console.log('Service Worker Ready');\n });\n }\n }\n\n initWatermark() {\n this.config.watermark?.enable &&\n new Watermark({\n content: this.config.watermark.content || '\"FixIt FixIt Theme',\n appendTo: this.config.watermark.appendto || '.wrapper>main',\n opacity: this.config.watermark.opacity,\n width: this.config.watermark.width,\n height: this.config.watermark.height,\n rowSpacing: this.config.watermark.rowspacing,\n colSpacing: this.config.watermark.colspacing,\n rotate: this.config.watermark.rotate,\n fontSize: this.config.watermark.fontsize,\n fontFamily: this.config.watermark.fontfamily\n });\n }\n\n initPangu() {\n // TODO 待优化:只渲染\n this.config.enablePangu && pangu.autoSpacingPage();\n }\n\n initFixItDecryptor() {\n const $tocNodes = document.querySelectorAll('#toc-auto>.d-none, #toc-static.d-none');\n this.decryptor = new FixItDecryptor({\n decrypted: () => {\n this.initTwemoji();\n this.initDetails();\n this.initLightGallery();\n this.initHighlight();\n this.initTable();\n this.initHeaderLink();\n this.initMath();\n this.initMermaid();\n this.initEcharts();\n this.initTypeit();\n this.initMapbox();\n this.util.forEach($tocNodes, ($element) => {\n $element.classList.remove('d-none');\n });\n this.initToc();\n this.initTocListener();\n this.initPangu();\n },\n reset: () => {\n this.util.forEach($tocNodes, ($element) => {\n $element.classList.add('d-none');\n });\n }\n });\n if (this.config.encryption?.shortcode) {\n this.decryptor.addEventListener('decrypted', () => {\n this.decryptor.initShortcodes();\n })\n this.decryptor.initShortcodes();\n }\n this.config.encryption?.all && this.decryptor.init();\n }\n\n onScroll() {\n const $headers = [];\n if (document.body.getAttribute('header-desktop') === 'auto') {\n $headers.push(document.getElementById('header-desktop'));\n }\n if (document.body.getAttribute('header-mobile') === 'auto') {\n $headers.push(document.getElementById('header-mobile'));\n }\n if (document.getElementById('comments')) {\n const $viewComments = document.getElementById('view-comments');\n $viewComments.href = `#comments`;\n $viewComments.style.display = 'block';\n }\n const $fixedButtons = document.getElementById('fixed-buttons');\n const ACCURACY = 20, MINIMUM = 100;\n window.addEventListener('scroll', (event) => {\n if (this.disableScrollEvent) {\n event.preventDefault();\n return;\n }\n const $mask = document.getElementById('mask');\n this.newScrollTop = this.util.getScrollTop();\n const scroll = this.newScrollTop - this.oldScrollTop;\n const isMobile = this.util.isMobile();\n this.util.forEach($headers, ($header) => {\n if (scroll > ACCURACY) {\n $header.classList.remove('animate__fadeInDown');\n this.util.animateCSS($header, ['animate__fadeOutUp', 'animate__faster'], true);\n $mask.click();\n } else if (scroll < -ACCURACY) {\n $header.classList.remove('animate__fadeOutUp');\n this.util.animateCSS($header, ['animate__fadeInDown', 'animate__faster'], true);\n $mask.click();\n }\n });\n // whether to show b2t button\n if (this.newScrollTop > MINIMUM) {\n if (isMobile && scroll > ACCURACY) {\n $fixedButtons.classList.remove('animate__fadeIn');\n this.util.animateCSS($fixedButtons, ['animate__fadeOut', 'animate__faster'], true);\n } else if (!isMobile || scroll < -ACCURACY) {\n $fixedButtons.style.display = 'block';\n $fixedButtons.classList.remove('animate__fadeOut');\n this.util.animateCSS($fixedButtons, ['animate__fadeIn', 'animate__faster'], true);\n }\n } else {\n if (!isMobile) {\n $fixedButtons.classList.remove('animate__fadeIn');\n this.util.animateCSS($fixedButtons, ['animate__fadeOut', 'animate__faster'], true);\n }\n $fixedButtons.style.display = 'none';\n }\n for (let event of this.scrollEventSet) {\n event();\n }\n this.oldScrollTop = this.newScrollTop;\n }, false);\n }\n\n onResize() {\n const resizeBefore = this.util.isMobile();\n window.addEventListener('resize', () => {\n if (!this._resizeTimeout) {\n this._resizeTimeout = window.setTimeout(() => {\n this._resizeTimeout = null;\n for (let event of this.resizeEventSet) {\n event();\n }\n this.initToc();\n this.initMermaid();\n this.initSearch();\n\n isMobile = this.util.isMobile()\n if (isMobile !== resizeBefore) {\n document.getElementById('mask').click();\n resizeBefore = isMobile;\n }\n }, 100);\n }\n }, false);\n }\n\n onClickMask() {\n document.getElementById('mask').addEventListener('click', () => {\n if (!document.body.classList.contains('blur')) {\n return;\n }\n for (let event of this.clickMaskEventSet) {\n event();\n }\n this.disableScrollEvent = false;\n document.body.classList.remove('blur');\n }, false);\n }\n\n init() {\n try {\n if (this.config.encryption) {\n this.initFixItDecryptor();\n } else if(!this.config.encryption?.all) {\n this.initTwemoji();\n this.initDetails();\n this.initLightGallery();\n this.initHighlight();\n this.initTable();\n this.initHeaderLink();\n this.initMath();\n this.initMermaid();\n this.initEcharts();\n this.initTypeit();\n this.initMapbox();\n this.initPangu();\n }\n this.initSVGIcon();\n this.initMenu();\n this.initSwitchTheme();\n this.initSearch();\n this.initCookieconsent();\n this.initSiteTime();\n this.initServiceWorker();\n this.initWatermark();\n\n window.setTimeout(() => {\n this.initComment();\n if (!this.config.encryption?.all) {\n this.initToc();\n this.initTocListener();\n }\n this.onScroll();\n this.onResize();\n this.onClickMask();\n }, 100);\n } catch (err) {\n console.error(err);\n }\n }\n}\n\nconst themeInit = () => {\n window.fixit = new FixIt();\n window.fixit.init();\n};\n\nif (document.readyState !== 'loading') {\n themeInit();\n} else {\n document.addEventListener('DOMContentLoaded', themeInit, false);\n}\n"]} \ No newline at end of file +{"version":3,"sources":["../../src/js/theme.js"],"names":[],"mappings":"y5EAAM,CAAA,I,6FACJ,iBAAQ,CAAR,CAAkB,CAAlB,CAA2B,CACzB,CAAQ,CAAG,CAAQ,EAAI,EADE,CAEzB,IAAI,GAAI,CAAA,CAAC,CAAG,CAAZ,CAAe,CAAC,CAAG,CAAQ,CAAC,MAA5B,CAAoC,CAAC,EAArC,CACE,CAAO,CAAC,CAAQ,CAAC,CAAD,CAAT,CAEV,C,4BAED,uBAAe,CACb,MAAQ,CAAA,QAAQ,CAAC,eAAT,EAA4B,QAAQ,CAAC,eAAT,CAAyB,SAAtD,EAAoE,QAAQ,CAAC,IAAT,CAAc,SAC1F,C,wBAED,mBAAW,CACT,MAAO,CAAA,MAAM,CAAC,UAAP,CAAkB,oCAAlB,EAAwD,OAChE,C,2BAED,sBAAc,CACZ,MAAO,CAAA,MAAM,CAAC,UAAP,CAAkB,oCAAlB,EAAwD,OAChE,C,0BASD,oBAAW,CAAX,CAAoB,CAApB,CAA+B,CAA/B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AxBE,CA0BF,MAAM,CAAC,UAAP,CAAkB,UAAM,OACtB,CAAI,CAAC,WAAL,EADsB,WAEjB,CAAI,CAAC,MAAL,CAAY,UAFK,eAEjB,EAAwB,GAFP,GAGpB,CAAI,CAAC,OAAL,EAHoB,CAIpB,CAAI,CAAC,eAAL,EAJoB,EAMtB,CAAI,CAAC,QAAL,EANsB,CAOtB,CAAI,CAAC,QAAL,EAPsB,CAQtB,CAAI,CAAC,WAAL,EACD,CATD,CASG,GATH,CAUD,CAAC,MAAO,CAAP,CAAY,CACZ,OAAO,CAAC,KAAR,CAAc,CAAd,CACD,CACF,C,SAGG,SAAS,CAAG,UAAM,CACtB,MAAM,CAAC,KAAP,CAAe,GAAI,CAAA,KADG,CAEtB,MAAM,CAAC,KAAP,CAAa,IAAb,EACD,C,CAE2B,SAAxB,GAAA,QAAQ,CAAC,U,CAGX,QAAQ,CAAC,gBAAT,CAA0B,kBAA1B,CAA8C,SAA9C,I,CAFA,SAAS,E","file":"theme.min.js","sourcesContent":["class Util {\n forEach(elements, handler) {\n elements = elements || [];\n for(let i = 0; i < elements.length; i++){\n handler(elements[i]);\n }\n }\n\n getScrollTop() {\n return (document.documentElement && document.documentElement.scrollTop) || document.body.scrollTop;\n }\n\n isMobile() {\n return window.matchMedia('only screen and (max-width: 680px)').matches;\n }\n\n isTocStatic() {\n return window.matchMedia('only screen and (max-width: 960px)').matches;\n }\n\n /**\n * add animate to element\n * @param {Element} element animate element\n * @param {String|Array} animation animation name\n * @param {Boolean} reserved reserved animation\n * @param {Function} callback remove callback\n */\n animateCSS(element, animation, reserved, callback) {\n !Array.isArray(animation) && (animation = [animation]);\n element.classList.add('animate__animated', ...animation);\n const handler = () => {\n element.classList.remove('animate__animated', ...animation);\n element.removeEventListener('animationend', handler);\n typeof callback === 'function' && callback();\n };\n !reserved && element.addEventListener('animationend', handler, false);\n }\n \n /**\n * date validator\n * @param {*} date may be date or not\n * @returns {Boolean}\n */\n isValidDate(date) {\n return date instanceof Date && !isNaN(date.getTime());\n }\n}\n\nclass FixIt {\n constructor() {\n this.config = window.config;\n this.data = this.config.data;\n this.isDark = document.body.getAttribute('theme') === 'dark';\n this.util = new Util();\n this.newScrollTop = this.util.getScrollTop();\n this.oldScrollTop = this.newScrollTop;\n this.scrollEventSet = new Set();\n this.resizeEventSet = new Set();\n this.switchThemeEventSet = new Set();\n this.clickMaskEventSet = new Set();\n this.disableScrollEvent = false;\n window.objectFitImages && objectFitImages();\n }\n\n initSVGIcon() {\n this.util.forEach(document.querySelectorAll('[data-svg-src]'), ($icon) => {\n fetch($icon.getAttribute('data-svg-src'))\n .then((response) => response.text())\n .then((svg) => {\n const $temp = document.createElement('div');\n $temp.insertAdjacentHTML('afterbegin', svg);\n const $svg = $temp.firstChild;\n $svg.setAttribute('data-svg-src', $icon.getAttribute('data-svg-src'));\n $svg.classList.add('icon');\n const $titleElements = $svg.getElementsByTagName('title');\n $titleElements.length && $svg.removeChild($titleElements[0])\n $icon.parentElement.replaceChild($svg, $icon);\n })\n .catch((err) => {\n console.error(err);\n });\n });\n }\n\n initTwemoji() {\n this.config.twemoji && twemoji.parse(document.body);\n }\n\n initMenu() {\n this.initMenuDesktop();\n this.initMenuMobile();\n }\n\n initMenuDesktop() {\n // This is a dirty hack for fixing sub menu position error in desktop header\n this.util.forEach(document.querySelectorAll('[has-children], #header-desktop .language'), ($item) => {\n $item.addEventListener('mouseover', function(){\n this.querySelector('.sub-menu').style.left= `${this.getBoundingClientRect().left}px`;\n })\n $item.querySelector('.sub-menu').style.minWidth= `${$item.offsetWidth - 8}px`;\n });\n }\n\n initMenuMobile() {\n const $menuToggleMobile = document.getElementById('menu-toggle-mobile');\n const $menuMobile = document.getElementById('menu-mobile');\n $menuToggleMobile.addEventListener('click', (event) => {\n document.body.classList.toggle('blur');\n $menuToggleMobile.classList.toggle('active');\n $menuMobile.classList.toggle('active');\n this.disableScrollEvent = document.body.classList.contains('blur')\n }, false);\n this._menuMobileOnClickMask = this._menuMobileOnClickMask || (() => {\n $menuToggleMobile.classList.remove('active');\n $menuMobile.classList.remove('active');\n });\n this.clickMaskEventSet.add(this._menuMobileOnClickMask);\n // add nested menu toggler\n this.util.forEach(document.querySelectorAll('.menu-item>.nested-item'), ($nestedItem) => {\n $nestedItem.addEventListener('click', function () {\n this.parentNode.querySelector('.sub-menu').classList.toggle('open');\n this.querySelector('.dropdown-icon').classList.toggle('open');\n })\n });\n }\n\n initSwitchTheme() {\n this.util.forEach(document.getElementsByClassName('theme-switch'), ($themeSwitch) => {\n $themeSwitch.addEventListener('click', () => {\n document.body.setAttribute('theme', document.body.getAttribute('theme') === 'dark' ? 'light' : 'dark');\n this.isDark = !this.isDark;\n window.localStorage && localStorage.setItem('theme', this.isDark ? 'dark' : 'light');\n for (let event of this.switchThemeEventSet) {\n event();\n }\n }, false);\n });\n }\n\n initSearch() {\n const searchConfig = this.config.search;\n const isMobile = this.util.isMobile();\n if (!searchConfig || (isMobile && this._searchMobileOnce) || (!isMobile && this._searchDesktopOnce)) {\n return;\n }\n const maxResultLength = searchConfig.maxResultLength || 10;\n const snippetLength = searchConfig.snippetLength || 50;\n const highlightTag = searchConfig.highlightTag || 'em';\n const suffix = isMobile ? 'mobile' : 'desktop';\n const $header = document.getElementById(`header-${suffix}`);\n const $searchInput = document.getElementById(`search-input-${suffix}`);\n const $searchToggle = document.getElementById(`search-toggle-${suffix}`);\n const $searchLoading = document.getElementById(`search-loading-${suffix}`);\n const $searchClear = document.getElementById(`search-clear-${suffix}`);\n\n if (isMobile) {\n this._searchMobileOnce = true;\n $searchInput.addEventListener('focus', () => {\n this.disableScrollEvent = true;\n document.body.classList.add('blur');\n $header.classList.add('open');\n }, false);\n document.getElementById('search-cancel-mobile').addEventListener('click', () => {\n this.disableScrollEvent = false;\n $header.classList.remove('open');\n document.body.classList.remove('blur');\n document.getElementById('menu-toggle-mobile').classList.remove('active');\n document.getElementById('menu-mobile').classList.remove('active');\n $searchLoading.style.display = 'none';\n $searchClear.style.display = 'none';\n this._searchMobile && this._searchMobile.autocomplete.setVal('');\n }, false);\n $searchClear.addEventListener('click', () => {\n $searchClear.style.display = 'none';\n this._searchMobile && this._searchMobile.autocomplete.setVal('');\n }, false);\n this._searchMobileOnClickMask = this._searchMobileOnClickMask || (() => {\n $header.classList.remove('open');\n $searchLoading.style.display = 'none';\n $searchClear.style.display = 'none';\n this._searchMobile && this._searchMobile.autocomplete.setVal('');\n });\n this.clickMaskEventSet.add(this._searchMobileOnClickMask);\n } else {\n this._searchDesktopOnce = true;\n $searchToggle.addEventListener('click', () => {\n document.body.classList.add('blur');\n $header.classList.add('open');\n $searchInput.focus();\n }, false);\n $searchClear.addEventListener('click', () => {\n $searchClear.style.display = 'none';\n this._searchDesktop && this._searchDesktop.autocomplete.setVal('');\n }, false);\n this._searchDesktopOnClickMask = this._searchDesktopOnClickMask ||(() => {\n $header.classList.remove('open');\n $searchLoading.style.display = 'none';\n $searchClear.style.display = 'none';\n this._searchDesktop && this._searchDesktop.autocomplete.setVal('');\n });\n this.clickMaskEventSet.add(this._searchDesktopOnClickMask);\n }\n $searchInput.addEventListener('input', () => {\n if ($searchInput.value === '') $searchClear.style.display = 'none';\n else $searchClear.style.display = 'inline';\n }, false);\n\n const initAutosearch = () => {\n const autosearch = autocomplete(`#search-input-${suffix}`,\n {\n hint: false,\n autoselect: true,\n dropdownMenuContainer: `#search-dropdown-${suffix}`,\n clearOnSelected: true,\n cssClasses: { noPrefix: true },\n debug: true\n },\n {\n name: 'search',\n source: (query, callback) => {\n $searchLoading.style.display = 'inline';\n $searchClear.style.display = 'none';\n const finish = (results) => {\n $searchLoading.style.display = 'none';\n $searchClear.style.display = 'inline';\n callback(results);\n };\n if (searchConfig.type === 'lunr') {\n const search = () => {\n if (lunr.queryHandler) {\n query = lunr.queryHandler(query);\n }\n const results = {};\n this._index.search(query).forEach(({ ref, matchData: { metadata } }) => {\n const matchData = this._indexData[ref];\n let { uri, title, content: context } = matchData;\n if (results[uri]) {\n return;\n }\n let position = 0;\n Object.values(metadata).forEach(({ content }) => {\n if (content) {\n const matchPosition = content.position[0][0];\n if (matchPosition < position || position === 0) {\n position = matchPosition;\n }\n }\n });\n position -= snippetLength / 5;\n if (position > 0) {\n position += context.substr(position, 20).lastIndexOf(' ') + 1;\n context = '...' + context.substr(position, snippetLength);\n } else {\n context = context.substr(0, snippetLength);\n }\n Object.keys(metadata).forEach((key) => {\n title = title.replace(new RegExp(`(${key})`, 'gi'), `<${highlightTag}>$1`);\n context = context.replace(new RegExp(`(${key})`, 'gi'), `<${highlightTag}>$1`);\n });\n results[uri] = {\n uri: uri,\n title: title,\n date: matchData.date,\n context: context\n };\n });\n return Object.values(results).slice(0, maxResultLength);\n };\n if (!this._index) {\n fetch(searchConfig.lunrIndexURL)\n .then((response) => response.json())\n .then((data) => {\n const indexData = {};\n this._index = lunr(function () {\n if (searchConfig.lunrLanguageCode) this.use(lunr[searchConfig.lunrLanguageCode]);\n this.ref('objectID');\n this.field('title', { boost: 50 });\n this.field('tags', { boost: 20 });\n this.field('categories', { boost: 20 });\n this.field('content', { boost: 10 });\n this.metadataWhitelist = ['position'];\n data.forEach((record) => {\n indexData[record.objectID] = record;\n this.add(record);\n });\n });\n this._indexData = indexData;\n finish(search());\n })\n .catch((err) => {\n console.error(err);\n finish([]);\n });\n } else finish(search());\n } else if (searchConfig.type === 'algolia') {\n this._algoliaIndex =\n this._algoliaIndex || algoliasearch(searchConfig.algoliaAppID, searchConfig.algoliaSearchKey).initIndex(searchConfig.algoliaIndex);\n this._algoliaIndex\n .search(query, {\n offset: 0,\n length: maxResultLength * 8,\n attributesToHighlight: ['title'],\n attributesToSnippet: [`content:${snippetLength}`],\n highlightPreTag: `<${highlightTag}>`,\n highlightPostTag: ``\n })\n .then(({ hits }) => {\n const results = {};\n hits.forEach(({ uri, date, _highlightResult: { title }, _snippetResult: { content } }) => {\n if (results[uri] && results[uri].context.length > content.value) {\n return;\n }\n results[uri] = {\n uri: uri,\n title: title.value,\n date: date,\n context: content.value\n };\n });\n finish(Object.values(results).slice(0, maxResultLength));\n })\n .catch((err) => {\n console.error(err);\n finish([]);\n });\n }\n },\n templates: {\n suggestion: ({ title, date, context }) =>\n `
${title}${date}
${context}
`,\n empty: ({ query }) => `
${searchConfig.noResultsFound}: \"${query}\"
`,\n footer: ({}) => {\n const { searchType, icon, href } =\n searchConfig.type === 'algolia'\n ? {\n searchType: 'algolia',\n icon: '',\n href: 'https://www.algolia.com/'\n }\n : {\n searchType: 'Lunr.js',\n icon: '',\n href: 'https://lunrjs.com/'\n };\n return ``;\n }\n }\n }\n );\n autosearch.on('autocomplete:selected', (_event, suggestion, _dataset, _context) => {\n window.location.assign(suggestion.uri);\n });\n if (isMobile) {\n this._searchMobile = autosearch;\n } else {\n this._searchDesktop = autosearch;\n }\n };\n if (searchConfig.lunrSegmentitURL && !document.getElementById('lunr-segmentit')) {\n const script = document.createElement('script');\n script.id = 'lunr-segmentit';\n script.type = 'text/javascript';\n script.src = searchConfig.lunrSegmentitURL;\n script.async = true;\n if (script.readyState) {\n script.onreadystatechange = () => {\n if (script.readyState == 'loaded' || script.readyState == 'complete') {\n script.onreadystatechange = null;\n initAutosearch();\n }\n };\n } else {\n script.onload = () => {\n initAutosearch();\n };\n }\n document.body.appendChild(script);\n } else {\n initAutosearch();\n }\n }\n\n initDetails() {\n this.util.forEach(document.getElementsByClassName('details'), ($details) => {\n const $summary = $details.querySelector('.details-summary');\n $summary.addEventListener('click', () => {\n $details.classList.toggle('open');\n }, false);\n });\n }\n\n initLightGallery() {\n this.config.lightGallery && lightGallery(document.getElementById('content'), this.config.lightGallery);\n }\n\n initHighlight() {\n this.util.forEach(document.querySelectorAll('.highlight > pre.chroma'), ($preChroma) => {\n const $chroma = document.createElement('div');\n $chroma.className = $preChroma.className;\n const $table = document.createElement('table');\n $chroma.appendChild($table);\n const $tbody = document.createElement('tbody');\n $table.appendChild($tbody);\n const $tr = document.createElement('tr');\n $tbody.appendChild($tr);\n const $td = document.createElement('td');\n $tr.appendChild($td);\n $preChroma.parentElement.replaceChild($chroma, $preChroma);\n $td.appendChild($preChroma);\n });\n this.util.forEach(document.querySelectorAll('.highlight > .chroma'), ($chroma) => {\n const $codeElements = $chroma.querySelectorAll('pre.chroma > code');\n if ($codeElements.length) {\n const $code = $codeElements[$codeElements.length - 1];\n const $header = document.createElement('div');\n $header.className = 'code-header ' + $code.className.toLowerCase();\n // code title\n const $title = document.createElement('span');\n $title.classList.add('code-title');\n $title.insertAdjacentHTML('afterbegin', '');\n $title.addEventListener('click', () => {\n $chroma.classList.toggle('open');\n }, false);\n $header.appendChild($title);\n // ellipses icon\n const $ellipses = document.createElement('span');\n $ellipses.insertAdjacentHTML('afterbegin', '');\n $ellipses.classList.add('ellipses');\n $ellipses.addEventListener('click', () => {\n $chroma.classList.add('open');\n }, false);\n $header.appendChild($ellipses);\n // edit button\n if (this.config.code.editable) {\n const $edit = document.createElement('span');\n $edit.classList.add('edit');\n $edit.insertAdjacentHTML('afterbegin', ``);\n $edit.addEventListener('click', () => {\n const $iconKey = $edit.querySelector('.fa-key');\n const $iconLock = $edit.querySelector('.fa-lock');\n const $preChromas = $edit.parentElement.parentElement.querySelectorAll('pre.chroma');\n const $preChroma = $preChromas.length === 2 ? $preChromas[1] : $preChromas[0];\n if ($iconKey) {\n $iconKey.classList.add('fa-lock');\n $iconKey.classList.remove('fa-key');\n $iconKey.title = this.config.code.editLockTitle;\n $preChroma.setAttribute('contenteditable', true);\n $preChroma.focus();\n } else {\n $iconLock.classList.add('fa-key');\n $iconLock.classList.remove('fa-lock');\n $iconLock.title = this.config.code.editUnLockTitle;\n $preChroma.setAttribute('contenteditable', false);\n $preChroma.blur();\n }\n }, false);\n $header.appendChild($edit);\n }\n // copy button\n if (this.config.code.copyTitle) {\n const $copy = document.createElement('span');\n $copy.insertAdjacentHTML('afterbegin', '');\n $copy.classList.add('copy');\n const code = $code.innerText;\n if (this.config.code.maxShownLines < 0 || code.split('\\n').length < this.config.code.maxShownLines + 2) {\n $chroma.classList.add('open');\n }\n $copy.title = this.config.code.copyTitle;\n $copy.addEventListener('click', () => {\n navigator.clipboard.writeText(code).then(() => {\n this.util.animateCSS($code, 'animate__flash');\n }, () => {\n console.error('Clipboard write failed!', 'Your browser does not support clipboard API!');\n });\n }, false);\n $header.appendChild($copy);\n }\n $chroma.insertBefore($header, $chroma.firstChild);\n }\n });\n }\n\n initTable() {\n this.util.forEach(document.querySelectorAll('.content table'), ($table) => {\n const $wrapper = document.createElement('div');\n $wrapper.className = 'table-wrapper';\n $table.parentElement.replaceChild($wrapper, $table);\n $wrapper.appendChild($table);\n });\n }\n\n initHeaderLink() {\n for (let num = 1; num <= 6; num++) {\n this.util.forEach(document.querySelectorAll('.single .content > h' + num), ($header) => {\n $header.classList.add('header-link');\n $header.insertAdjacentHTML('afterbegin', ``);\n });\n }\n }\n /**\n * init table of contents\n */\n initToc() {\n const $tocCore = document.getElementById('TableOfContents');\n if ($tocCore === null) {\n return;\n }\n if (document.getElementById('toc-static').getAttribute('kept') === 'true' || this.util.isTocStatic()) {\n const $tocContentStatic = document.getElementById('toc-content-static');\n if ($tocCore.parentElement !== $tocContentStatic) {\n $tocCore.parentElement.removeChild($tocCore);\n $tocContentStatic.appendChild($tocCore);\n }\n this._tocOnScroll && this.scrollEventSet.delete(this._tocOnScroll);\n } else {\n const $tocContentAuto = document.getElementById('toc-content-auto');\n if ($tocCore.parentElement !== $tocContentAuto) {\n $tocCore.parentElement.removeChild($tocCore);\n $tocContentAuto.appendChild($tocCore);\n }\n const $toc = document.getElementById('toc-auto');\n $toc.style.visibility = 'visible';\n this.util.animateCSS($toc, ['animate__fadeIn', 'animate__faster'], true);\n $toc.style.marginTop = document.querySelector('.single-title').clientHeight + document.querySelector('.post-meta').clientHeight + 'px';\n $toc.style.marginBottom = document.getElementById('post-footer').clientHeight + 'px';\n const $tocLinkElements = $tocCore.querySelectorAll('a:first-child');\n const $tocLiElements = $tocCore.getElementsByTagName('li');\n const $headerLinkElements = document.getElementsByClassName('header-link');\n const headerIsFixed = document.body.getAttribute('header-desktop') !== 'normal';\n const headerHeight = document.getElementById('header-desktop').offsetHeight;\n this._tocOnScroll = this._tocOnScroll || (() => {\n const $comments = document.getElementById('comments');\n if ($comments) {\n $toc.style.marginBottom = document.getElementById('post-footer').clientHeight + $comments.clientHeight + 'px';\n }\n this.util.forEach($tocLinkElements, ($tocLink) => {\n $tocLink.classList.remove('active');\n });\n this.util.forEach($tocLiElements, ($tocLi) => {\n $tocLi.classList.remove('has-active');\n });\n const INDEX_SPACING = 20 + (headerIsFixed ? headerHeight : 0);\n let activeTocIndex = $headerLinkElements.length - 1;\n for (let i = 0; i < $headerLinkElements.length - 1; i++) {\n const thisTop = $headerLinkElements[i].getBoundingClientRect().top;\n const nextTop = $headerLinkElements[i + 1].getBoundingClientRect().top;\n if ((i == 0 && thisTop > INDEX_SPACING) || (thisTop <= INDEX_SPACING && nextTop > INDEX_SPACING)) {\n activeTocIndex = i;\n break;\n }\n }\n if (activeTocIndex !== -1) {\n $tocLinkElements[activeTocIndex].classList.add('active');\n let $parent = $tocLinkElements[activeTocIndex].parentElement;\n while ($parent !== $tocCore) {\n $parent.classList.add('has-active');\n $parent = $parent.parentElement.parentElement;\n }\n }\n });\n this._tocOnScroll();\n this.scrollEventSet.add(this._tocOnScroll);\n }\n }\n\n initTocListener() {\n const $toc = document.getElementById('toc-auto');\n const $tocContentAuto = document.getElementById('toc-content-auto');\n document.querySelector('#toc-auto>.toc-title')?.addEventListener('click', () => {\n const animation = ['animate__faster']\n const tocHidden = $toc.classList.contains('toc-hidden');\n animation.push(tocHidden ? 'animate__fadeIn' : 'animate__fadeOut');\n $tocContentAuto.classList.remove(tocHidden ? 'animate__fadeOut' : 'animate__fadeIn');\n this.util.animateCSS($tocContentAuto, animation, true);\n $toc.classList.toggle('toc-hidden');\n }, false)\n }\n\n initMath() {\n if (this.config.math) {\n renderMathInElement(document.body, this.config.math);\n }\n }\n\n initMermaid() {\n const $mermaidElements = document.getElementsByClassName('mermaid');\n if ($mermaidElements.length) {\n mermaid.initialize({ startOnLoad: false, theme: 'default' });\n this.util.forEach($mermaidElements, ($mermaid) => {\n mermaid.mermaidAPI.render(\n 'svg-' + $mermaid.id,\n this.data[$mermaid.id],\n (svgCode) => {\n $mermaid.insertAdjacentHTML('afterbegin', svgCode);\n },\n $mermaid\n );\n });\n }\n }\n\n initEcharts() {\n this._echartsOnSwitchTheme = this._echartsOnSwitchTheme || (() => {\n this._echartsArr = this._echartsArr || [];\n for (let i = 0; i < this._echartsArr.length; i++) {\n this._echartsArr[i].dispose();\n }\n this._echartsArr = [];\n this.util.forEach(document.getElementsByClassName('echarts'), ($echarts) => {\n const chart = echarts.init($echarts, this.isDark ? 'dark' : 'macarons', {\n renderer: 'svg'\n });\n chart.setOption(JSON.parse(this.data[$echarts.id]));\n this._echartsArr.push(chart);\n });\n });\n this.switchThemeEventSet.add(this._echartsOnSwitchTheme);\n this._echartsOnSwitchTheme();\n this._echartsOnResize = this._echartsOnResize || (() => {\n for (let i = 0; i < this._echartsArr.length; i++) {\n this._echartsArr[i].resize();\n }\n });\n this.resizeEventSet.add(this._echartsOnResize);\n }\n\n initMapbox() {\n if (this.config.mapbox) {\n mapboxgl.accessToken = this.config.mapbox.accessToken;\n mapboxgl.setRTLTextPlugin(this.config.mapbox.RTLTextPlugin);\n this._mapboxArr = this._mapboxArr || [];\n this.util.forEach(document.getElementsByClassName('mapbox'), ($mapbox) => {\n const { lng, lat, zoom, lightStyle, darkStyle, marked, navigation, geolocate, scale, fullscreen } = this.data[$mapbox.id];\n const mapbox = new mapboxgl.Map({\n container: $mapbox,\n center: [lng, lat],\n zoom: zoom,\n minZoom: 0.2,\n style: this.isDark ? darkStyle : lightStyle,\n attributionControl: false\n });\n if (marked) {\n new mapboxgl.Marker().setLngLat([lng, lat]).addTo(mapbox);\n }\n if (navigation) {\n mapbox.addControl(new mapboxgl.NavigationControl(), 'bottom-right');\n }\n if (geolocate) {\n mapbox.addControl(\n new mapboxgl.GeolocateControl({\n positionOptions: {\n enableHighAccuracy: true\n },\n showUserLocation: true,\n trackUserLocation: true\n }),\n 'bottom-right'\n );\n }\n if (scale) {\n mapbox.addControl(new mapboxgl.ScaleControl());\n }\n if (fullscreen) {\n mapbox.addControl(new mapboxgl.FullscreenControl());\n }\n mapbox.addControl(new MapboxLanguage());\n this._mapboxArr.push(mapbox);\n });\n this._mapboxOnSwitchTheme = this._mapboxOnSwitchTheme || (() => {\n this.util.forEach(this._mapboxArr, (mapbox) => {\n const $mapbox = mapbox.getContainer();\n const { lightStyle, darkStyle } = this.data[$mapbox.id];\n mapbox.setStyle(this.isDark ? darkStyle : lightStyle);\n mapbox.addControl(new MapboxLanguage());\n });\n });\n this.switchThemeEventSet.add(this._mapboxOnSwitchTheme);\n }\n }\n\n initTypeit() {\n if (this.config.typeit) {\n const typeitConfig = this.config.typeit;\n const speed = typeitConfig.speed || 100;\n const cursorSpeed = typeitConfig.cursorSpeed || 1000;\n const cursorChar = typeitConfig.cursorChar || '|';\n Object.values(typeitConfig.data).forEach((group) => {\n const typeone = (i) => {\n const id = group[i];\n const instance = new TypeIt(`#${id}`, {\n strings: this.data[id],\n speed: speed,\n lifeLike: true,\n cursorSpeed: cursorSpeed,\n cursorChar: cursorChar,\n waitUntilVisible: true,\n afterComplete: () => {\n if (i === group.length - 1 && typeitConfig.duration >= 0) {\n window.setTimeout(() => {\n instance.destroy();\n }, typeitConfig.duration);\n return;\n }\n instance.destroy();\n typeone(i + 1);\n }\n }).go();\n };\n typeone(0);\n });\n }\n }\n\n initCommentLightGallery(comments, images) {\n if (!this.config.lightGallery) {\n return;\n }\n document.querySelectorAll(comments).forEach(($content) => {\n const $imgs = $content.querySelectorAll(images + ':not([lightgallery-loaded])');\n $imgs.forEach(($img) => {\n $img.setAttribute('lightgallery-loaded', '');\n const $link = document.createElement('a');\n $link.setAttribute('class', 'comment-lightgallery');\n $link.setAttribute('href', $img.src);\n $link.append($img.cloneNode());\n $img.replaceWith($link);\n });\n if ($imgs.length) {\n lightGallery($content, {\n selector: '.comment-lightgallery',\n actualSize: false,\n hideBarsDelay: 2000,\n speed: 400\n });\n }\n });\n }\n\n initComment() {\n if (!this.config.comment) {\n return;\n }\n if (this.config.comment.artalk) {\n const artalk = new Artalk(this.config.comment.artalk);\n artalk.setDarkMode(this.isDark);\n this.switchThemeEventSet.add(() => {\n artalk.setDarkMode(this.isDark);\n });\n artalk.on('comments-loaded', () => {\n this.config.comment.artalk.lightgallery && this.initCommentLightGallery('.atk-comment .atk-content', 'img:not([atk-emoticon])');\n });\n return artalk;\n }\n if (this.config.comment.gitalk) {\n this.config.comment.gitalk.body = decodeURI(window.location.href);\n const gitalk = new Gitalk(this.config.comment.gitalk);\n gitalk.render('gitalk');\n return gitalk;\n }\n if (this.config.comment.valine) {\n return new Valine(this.config.comment.valine);\n }\n if (this.config.comment.waline) {\n return Waline.init(this.config.comment.waline);\n }\n if (this.config.comment.utterances) {\n const utterancesConfig = this.config.comment.utterances;\n const script = document.createElement('script');\n script.src = 'https://utteranc.es/client.js';\n script.type = 'text/javascript';\n script.setAttribute('repo', utterancesConfig.repo);\n script.setAttribute('issue-term', utterancesConfig.issueTerm);\n if (utterancesConfig.label) script.setAttribute('label', utterancesConfig.label);\n script.setAttribute('theme', this.isDark ? utterancesConfig.darkTheme : utterancesConfig.lightTheme);\n script.crossOrigin = 'anonymous';\n script.async = true;\n document.getElementById('utterances').appendChild(script);\n this._utterancesOnSwitchTheme = this._utterancesOnSwitchTheme || (() => {\n const message = {\n type: 'set-theme',\n theme: this.isDark ? utterancesConfig.darkTheme : utterancesConfig.lightTheme\n };\n document.querySelector('.utterances-frame')?.contentWindow.postMessage(message, 'https://utteranc.es');\n });\n this.switchThemeEventSet.add(this._utterancesOnSwitchTheme);\n return;\n }\n if (this.config.comment.twikoo) {\n const twikooConfig = this.config.comment.twikoo;\n if (twikooConfig.lightgallery) {\n twikooConfig.onCommentLoaded = () => {\n this.initCommentLightGallery('.tk-comments .tk-content', 'img:not(.tk-owo-emotion)');\n };\n }\n twikoo.init(twikooConfig);\n if (twikooConfig.commentCount) {\n // https://twikoo.js.org/api.html#get-comments-count\n twikoo\n .getCommentsCount({\n envId: twikooConfig.envId,\n region: twikooConfig.region,\n urls: [window.location.pathname],\n includeReply: false\n })\n .then(function (response) {\n const twikooCommentCount = document.getElementById('twikoo-comment-count');\n if (twikooCommentCount) twikooCommentCount.innerHTML = response[0].count;\n });\n }\n return;\n }\n if (this.config.comment.giscus) {\n const giscusConfig = this.config.comment.giscus;\n this._giscusOnSwitchTheme = this._giscusOnSwitchTheme || (() => {\n const message = { setConfig: { theme: this.isDark ? giscusConfig.darkTheme : giscusConfig.lightTheme }};\n document.querySelector('.giscus-frame')?.contentWindow.postMessage({ giscus: message }, 'https://giscus.app');\n });\n this.switchThemeEventSet.add(this._giscusOnSwitchTheme);\n const _this = this;\n _this.giscus2parentMsg = window.addEventListener('message', (event) => {\n const $script = document.querySelector('#giscus>script');\n if ($script){\n _this._giscusOnSwitchTheme();\n $script.parentElement.removeChild($script);\n }\n window.removeEventListener('message', _this.giscus2parentMsg);\n });\n return;\n }\n }\n\n initCookieconsent() {\n this.config.cookieconsent && cookieconsent.initialise(this.config.cookieconsent);\n }\n\n getSiteTime = () => {\n let now = new Date();\n let run = new Date(this.config.siteTime);\n let $runTimes = document.querySelector('.run-times');\n if (!this.util.isValidDate(run) || !$runTimes) {\n clearInterval(this.siteTime);\n $runTimes && $runTimes.parentNode.remove();\n return;\n }\n let runTime = (now - run) / 1000,\n days = Math.floor(runTime / 60 / 60 / 24),\n hours = Math.floor(runTime / 60 / 60 - 24 * days),\n minutes = Math.floor(runTime / 60 - 24 * 60 * days - 60 * hours),\n seconds = Math.floor((now - run) / 1000 - 24 * 60 * 60 * days - 60 * 60 * hours - 60 * minutes);\n $runTimes.innerHTML = `${days}, ${String(hours).padStart(2, 0)}:${String(minutes).padStart(2, 0)}:${String(seconds).padStart(2, 0)}`;\n }\n\n initSiteTime() {\n if (this.config.siteTime) {\n this.siteTime = setInterval(this.getSiteTime, 500);\n document.addEventListener('visibilitychange', () => {\n if (document.hidden) {\n return clearInterval(this.siteTime);\n }\n this.siteTime = setInterval(this.getSiteTime, 500);\n }, false);\n }\n }\n\n initServiceWorker() {\n if (this.config.enablePWA && 'serviceWorker' in navigator) {\n navigator.serviceWorker\n .register('/service-worker.min.js', { scope: '/' })\n .then(function (registration) {\n // console.log('Service Worker Registered');\n })\n .catch(function (error) {\n console.error('error: ', error);\n });\n navigator.serviceWorker.ready.then(function (registration) {\n // console.log('Service Worker Ready');\n });\n }\n }\n\n initWatermark() {\n this.config.watermark?.enable &&\n new Watermark({\n content: this.config.watermark.content || '\"FixIt FixIt Theme',\n appendTo: this.config.watermark.appendto || '.wrapper>main',\n opacity: this.config.watermark.opacity,\n width: this.config.watermark.width,\n height: this.config.watermark.height,\n rowSpacing: this.config.watermark.rowspacing,\n colSpacing: this.config.watermark.colspacing,\n rotate: this.config.watermark.rotate,\n fontSize: this.config.watermark.fontsize,\n fontFamily: this.config.watermark.fontfamily\n });\n }\n\n initPangu() {\n // TODO 待优化:只渲染\n this.config.enablePangu && pangu.autoSpacingPage();\n }\n\n initFixItDecryptor() {\n const $tocNodes = document.querySelectorAll('#toc-auto>.d-none, #toc-static.d-none');\n this.decryptor = new FixItDecryptor({\n decrypted: () => {\n this.initTwemoji();\n this.initDetails();\n this.initLightGallery();\n this.initHighlight();\n this.initTable();\n this.initHeaderLink();\n this.initMath();\n this.initMermaid();\n this.initEcharts();\n this.initTypeit();\n this.initMapbox();\n this.util.forEach($tocNodes, ($element) => {\n $element.classList.remove('d-none');\n });\n this.initToc();\n this.initTocListener();\n this.initPangu();\n },\n reset: () => {\n this.util.forEach($tocNodes, ($element) => {\n $element.classList.add('d-none');\n });\n }\n });\n if (this.config.encryption?.shortcode) {\n this.decryptor.addEventListener('decrypted', () => {\n this.decryptor.initShortcodes();\n })\n this.decryptor.initShortcodes();\n }\n this.config.encryption?.all && this.decryptor.init();\n }\n\n onScroll() {\n const $headers = [];\n if (document.body.getAttribute('header-desktop') === 'auto') {\n $headers.push(document.getElementById('header-desktop'));\n }\n if (document.body.getAttribute('header-mobile') === 'auto') {\n $headers.push(document.getElementById('header-mobile'));\n }\n if (document.getElementById('comments')) {\n const $viewComments = document.getElementById('view-comments');\n $viewComments.href = `#comments`;\n $viewComments.style.display = 'block';\n }\n const $fixedButtons = document.getElementById('fixed-buttons');\n const ACCURACY = 20, MINIMUM = 100;\n window.addEventListener('scroll', (event) => {\n if (this.disableScrollEvent) {\n event.preventDefault();\n return;\n }\n const $mask = document.getElementById('mask');\n this.newScrollTop = this.util.getScrollTop();\n const scroll = this.newScrollTop - this.oldScrollTop;\n const isMobile = this.util.isMobile();\n this.util.forEach($headers, ($header) => {\n if (scroll > ACCURACY) {\n $header.classList.remove('animate__fadeInDown');\n this.util.animateCSS($header, ['animate__fadeOutUp', 'animate__faster'], true);\n $mask.click();\n } else if (scroll < -ACCURACY) {\n $header.classList.remove('animate__fadeOutUp');\n this.util.animateCSS($header, ['animate__fadeInDown', 'animate__faster'], true);\n $mask.click();\n }\n });\n // whether to show b2t button\n if (this.newScrollTop > MINIMUM) {\n if (isMobile && scroll > ACCURACY) {\n $fixedButtons.classList.remove('animate__fadeIn');\n this.util.animateCSS($fixedButtons, ['animate__fadeOut', 'animate__faster'], true);\n } else if (!isMobile || scroll < -ACCURACY) {\n $fixedButtons.style.display = 'block';\n $fixedButtons.classList.remove('animate__fadeOut');\n this.util.animateCSS($fixedButtons, ['animate__fadeIn', 'animate__faster'], true);\n }\n } else {\n if (!isMobile) {\n $fixedButtons.classList.remove('animate__fadeIn');\n this.util.animateCSS($fixedButtons, ['animate__fadeOut', 'animate__faster'], true);\n }\n $fixedButtons.style.display = 'none';\n }\n for (let event of this.scrollEventSet) {\n event();\n }\n this.oldScrollTop = this.newScrollTop;\n }, false);\n }\n\n onResize() {\n const resizeBefore = this.util.isMobile();\n window.addEventListener('resize', () => {\n if (!this._resizeTimeout) {\n this._resizeTimeout = window.setTimeout(() => {\n this._resizeTimeout = null;\n for (let event of this.resizeEventSet) {\n event();\n }\n this.initToc();\n this.initMermaid();\n this.initSearch();\n\n const isMobile = this.util.isMobile()\n if (isMobile !== resizeBefore) {\n document.getElementById('mask').click();\n resizeBefore = isMobile;\n }\n }, 100);\n }\n }, false);\n }\n\n onClickMask() {\n document.getElementById('mask').addEventListener('click', () => {\n if (!document.body.classList.contains('blur')) {\n return;\n }\n for (let event of this.clickMaskEventSet) {\n event();\n }\n this.disableScrollEvent = false;\n document.body.classList.remove('blur');\n }, false);\n }\n\n init() {\n try {\n if (this.config.encryption) {\n this.initFixItDecryptor();\n } else if(!this.config.encryption?.all) {\n this.initTwemoji();\n this.initDetails();\n this.initLightGallery();\n this.initHighlight();\n this.initTable();\n this.initHeaderLink();\n this.initMath();\n this.initMermaid();\n this.initEcharts();\n this.initTypeit();\n this.initMapbox();\n this.initPangu();\n }\n this.initSVGIcon();\n this.initMenu();\n this.initSwitchTheme();\n this.initSearch();\n this.initCookieconsent();\n this.initSiteTime();\n this.initServiceWorker();\n this.initWatermark();\n\n window.setTimeout(() => {\n this.initComment();\n if (!this.config.encryption?.all) {\n this.initToc();\n this.initTocListener();\n }\n this.onScroll();\n this.onResize();\n this.onClickMask();\n }, 100);\n } catch (err) {\n console.error(err);\n }\n }\n}\n\nconst themeInit = () => {\n window.fixit = new FixIt();\n window.fixit.init();\n};\n\nif (document.readyState !== 'loading') {\n themeInit();\n} else {\n document.addEventListener('DOMContentLoaded', themeInit, false);\n}\n"]} \ No newline at end of file diff --git a/assets/lib/VERSION b/assets/lib/VERSION index 070a6145..a98ad868 100644 --- a/assets/lib/VERSION +++ b/assets/lib/VERSION @@ -26,4 +26,4 @@ simple-icons@5.21.1 https://github.com/simple-icons/simple-icons twemoji@14.0.2 https://github.com/twitter/twemoji typeit@7.0.4 https://github.com/alexmacarthur/typeit valine@1.4.18 https://github.com/xCss/Valine -waline@1.5.2 https://github.com/walinejs/waline +waline@2.6.1 https://github.com/walinejs/waline diff --git a/assets/lib/waline/Waline.min.js b/assets/lib/waline/Waline.min.js deleted file mode 100644 index b7bb41ab..00000000 --- a/assets/lib/waline/Waline.min.js +++ /dev/null @@ -1 +0,0 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Waline=t():e.Waline=t()}(this,(function(){return(()=>{var e={523:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var o=n(601),r=n.n(o),a=n(609),i=n.n(a)()(r());i.push([e.id,':root{--waline-font-size: 16px;--waline-white: #fff;--waline-light-grey: #999;--waline-dark-grey: #666;--waline-theme-color: #27ae60;--waline-active-color: #2ecc71;--waline-text-color: #444;--waline-bgcolor: #fff;--waline-bgcolor-light: #f8f8f8;--waline-bgcolor-hover: #f0f0f0;--waline-border-color: #ddd;--waline-disable-bgcolor: #f8f8f8;--waline-disable-color: #000;--waline-code-bgcolor: #282c34;--waline-bq-color: #f0f0f0;--waline-avatar-size: 3.25rem;--waline-mobile-avatar-size: calc(var(--waline-avatar-size) * 9 / 13);--waline-badge-color: #3498db;--waline-badge-font-size: 0.775em;--waline-info-bgcolor: #f8f8f8;--waline-info-color: #999;--waline-info-font-size: 0.625em;--waline-border: 1px solid var(--waline-border-color);--waline-avatar-radius: 50%;--waline-box-shadow: none}.v[data-class=v]{font-size:var(--waline-font-size);text-align:left}.v[data-class=v] *{box-sizing:content-box;line-height:1.75}.v[data-class=v] p{color:var(--waline-text-color)}.v[data-class=v] a{position:relative;display:inline-block;color:var(--waline-theme-color);text-decoration:none;cursor:pointer}.v[data-class=v] a:hover{color:var(--waline-active-color)}.v[data-class=v] img{max-width:100%;max-height:400px;border:none}.v[data-class=v] hr{margin:.825em 0;border-style:dashed;border-color:var(--waline-bgcolor-light)}.v[data-class=v] code,.v[data-class=v] pre{margin:0;padding:.2em .4em;border-radius:3px;background:var(--waline-bgcolor-light);font-size:85%}.v[data-class=v] pre{overflow:auto;padding:10px;line-height:1.45}.v[data-class=v] pre::-webkit-scrollbar{width:6px;height:6px}.v[data-class=v] pre::-webkit-scrollbar-track-piece:horizontal{border-radius:6px;background:rgba(0,0,0,.1)}.v[data-class=v] pre::-webkit-scrollbar-thumb:horizontal{width:6px;border-radius:6px;background:var(--waline-theme-color)}.v[data-class=v] pre code{padding:0;background:transparent;color:var(--waline-text-color);white-space:pre-wrap;word-break:keep-all}.v[data-class=v] blockquote{margin:.5em 0;padding:.5em 0 .5em 1em;border-left:8px solid var(--waline-bq-color);color:var(--waline-dark-grey)}.v[data-class=v] blockquote>p{margin:0}.v[data-class=v] ol,.v[data-class=v] ul{margin-left:1.25em;padding:0}.v[data-class=v] input[type=checkbox],.v[data-class=v] input[type=radio]{display:inline-block;vertical-align:middle;margin-top:-2px}.v[data-class=v] .vbtn{display:inline-block;vertical-align:middle;min-width:2.5em;margin-bottom:0;padding:.5em 1em;border:1px solid var(--waline-border-color);border-radius:.5em;background:transparent;color:var(--waline-text-color);font-weight:400;font-size:.75em;line-height:1.5;text-align:center;white-space:nowrap;cursor:pointer;-webkit-user-select:none;user-select:none;transition-duration:.4s;touch-action:manipulation}.v[data-class=v] .vbtn:hover,.v[data-class=v] .vbtn:active{border-color:var(--waline-theme-color);color:var(--waline-theme-color)}.v[data-class=v] .vbtn:disabled{border-color:var(--waline-border-color);background:var(--waline-disable-bgcolor);color:var(--waline-disable-color);cursor:not-allowed}.v[data-class=v] .vbtn.primary{border-color:var(--waline-theme-color);background:var(--waline-theme-color);color:var(--waline-white)}.v[data-class=v] .vbtn.primary:hover,.v[data-class=v] .vbtn.primary:active{border-color:var(--waline-active-color);background:var(--waline-active-color);color:var(--waline-white)}.v[data-class=v] .vbtn.primary:disabled{border-color:var(--waline-border-color);background:var(--waline-disable-bgcolor);color:var(--waline-disable-color);cursor:not-allowed}.v[data-class=v] .vloading{text-align:center}.v[data-class=v] .vloading svg{margin:0 auto}.v[data-class=v] .vcomment{position:relative;display:flex;margin-bottom:.75em}.v[data-class=v] .vclose{position:absolute;top:-4px;right:-4px;padding:0;border:none;background:transparent;line-height:1;cursor:pointer}.v[data-class=v] .vlogin-info{max-width:80px;margin-top:.75em;text-align:center}.v[data-class=v] .vlogout-btn{position:absolute;top:-10px;right:-10px;padding:3px;border:none;background:transparent;line-height:0;cursor:pointer}.v[data-class=v] .vavatar{position:relative;width:var(--waline-avatar-size);height:var(--waline-avatar-size);margin:0 auto;border:var(--waline-border);border-radius:var(--waline-avatar-radius)}@media(max-width: 720px){.v[data-class=v] .vavatar{width:var(--waline-mobile-avatar-size);height:var(--waline-mobile-avatar-size)}}.v[data-class=v] .vavatar img{width:100%;height:100%;border-radius:var(--waline-avatar-radius)}.v[data-class=v] .vlogin-nick{display:block;color:var(--waline-theme-color);font-size:.75em;word-break:break-all}.v[data-class=v] .vpanel{position:relative;width:100%;flex-shrink:1;margin:.5em;border:var(--waline-border);border-radius:.75em;background:var(--waline-bgcolor);box-shadow:var(--waline-box-shadow)}.v[data-class=v] .vheader{display:flex;padding:0 4px;border-bottom:2px dashed var(--waline-border-color);border-top-left-radius:.75em;border-top-right-radius:.75em;overflow:hidden}@media(max-width: 580px){.v[data-class=v] .vheader{display:block}}.v[data-class=v] .vheader .vheader-item{display:flex;flex:1}@media(max-width: 580px){.v[data-class=v] .vheader .vheader-item:not(:last-child){border-bottom:2px dashed var(--waline-border-color)}}.v[data-class=v] .vheader.vheader-1 .vheader-item{width:100%}.v[data-class=v] .vheader.vheader-2 .vheader-item{width:50%}@media(max-width: 580px){.v[data-class=v] .vheader.vheader-2 .vheader-item{flex:0;width:100%}}.v[data-class=v] .vheader.vheader-3 .vheader-item{width:33.33%}@media(max-width: 580px){.v[data-class=v] .vheader.vheader-3 .vheader-item{width:100%}}.v[data-class=v] .vheader label{min-width:40px;padding:.75em .5em;color:var(--waline-text-color);font-size:.75em;text-align:center}.v[data-class=v] .vheader input{flex:1;width:0;padding:.5em;background:transparent;font-size:.625em;resize:none}.v[data-class=v] .veditor,.v[data-class=v] .vinput{max-width:100%;border:none;color:var(--waline-text-color);outline:none;transition:all .25s ease}.v[data-class=v] .veditor:focus,.v[data-class=v] .vinput:focus{background:var(--waline-bgcolor-light)}.v[data-class=v] .veditor{position:relative;width:calc(100% - 1em);min-height:8.75em;margin:.75em .5em;border-radius:.5em;background:transparent;font-size:.875em;resize:vertical}.v[data-class=v] .vpreview{padding:0 .5em .5em}.v[data-class=v] .vpreview h4{margin:.25em;font-weight:bold;font-size:.9375em}.v[data-class=v] .vpreview .vcontent{padding:.25em;min-height:1.25em;border:var(--waline-border);border-radius:.25em;word-break:break-word;-webkit-hyphens:auto;hyphens:auto}.v[data-class=v] .vpreview .vcontent>*:first-child{margin-top:0}.v[data-class=v] .vpreview .vcontent>*:last-child{margin-bottom:0}.v[data-class=v] .vfooter{position:relative;display:flex;flex-wrap:wrap;margin:.5em .75em}.v[data-class=v] .vactions{display:flex;flex:2;align-items:center}.v[data-class=v] .vaction{width:1.5em;height:1.5em;border:none;margin:2px;padding:0;background:transparent;font-size:16px;cursor:pointer;color:var(--waline-text-color);display:inline-flex;justify-content:center;align-items:center}.v[data-class=v] .vaction:hover{color:var(--waline-theme-color)}.v[data-class=v] .vaction.actived{color:var(--waline-active-color)}.v[data-class=v] #waline-image-upload{display:none}.v[data-class=v] #waline-image-upload:focus+label{color:var(--waline-text-color)}.v[data-class=v] #waline-image-upload:focus-visible+label{outline:-webkit-focus-ring-color auto 1px}.v[data-class=v] .vinfo{display:flex;flex:3;align-items:center;justify-content:flex-end}.v[data-class=v] .vinfo .vtext-number{color:var(--waline-info-color);font-size:.75em}.v[data-class=v] .vinfo .vtext-number .illegal{color:red}.v[data-class=v] .vinfo button{margin-left:.75em}.v[data-class=v] .vinfo button svg{display:block;margin:0 auto;line-height:18px}.v[data-class=v] .vemoji-popup{position:absolute;top:100%;left:1.25em;z-index:10;max-width:526px;border:var(--waline-border);border-radius:6px;background:var(--waline-bgcolor);box-shadow:var(--waline-box-shadow);visibility:hidden;opacity:0;transform:scale(0.9, 0.9);transform-origin:0 0;transition:transform .2s ease-out,opacity .2s ease-out}.v[data-class=v] .vemoji-popup.display{visibility:visible;opacity:1;transform:none}.v[data-class=v] .vemoji-popup button{display:inline-block;vertical-align:middle;background:transparent;width:2em;margin:.125em;padding:0;border-width:0;font-size:inherit;line-height:2;text-align:center;cursor:pointer}.v[data-class=v] .vemoji-popup button:hover{background:var(--waline-bgcolor-hover)}.v[data-class=v] .vemoji-popup .vemoji{display:inline-block;vertical-align:middle;max-width:1.5em;max-height:1.5em}.v[data-class=v] .vemoji-popup .vtab-wrapper{max-height:145px;overflow-y:auto;padding:.5em}.v[data-class=v] .vemoji-popup .vtab-wrapper::-webkit-scrollbar{width:6px;height:6px}.v[data-class=v] .vemoji-popup .vtab-wrapper::-webkit-scrollbar-track-piece:vertical{border-radius:6px;background:rgba(0,0,0,.1)}.v[data-class=v] .vemoji-popup .vtab-wrapper::-webkit-scrollbar-thumb:vertical{width:6px;border-radius:6px;background:var(--waline-theme-color)}.v[data-class=v] .vemoji-popup .vtabs{position:relative;height:2em;padding:0 6px}.v[data-class=v] .vemoji-popup .vtabs::before{content:" ";position:absolute;z-index:2;left:0;top:0;right:0;height:1px;background:var(--waline-border-color)}.v[data-class=v] .vemoji-popup .vtab{position:relative;margin:0;padding:0 .5em}.v[data-class=v] .vemoji-popup .vtab.active{z-index:3;background:var(--waline-bgcolor);border:1px solid var(--waline-border-color);border-top-width:0;border-bottom-left-radius:6px;border-bottom-right-radius:6px}.v[data-class=v] .vcards .vitem{position:relative;display:flex;padding:.5em}.v[data-class=v] .vcards .vitem .vuser{width:var(--waline-avatar-size);height:var(--waline-avatar-size);margin-right:.75em;border-radius:var(--waline-avatar-radius);box-shadow:var(--waline-box-shadow)}@media(max-width: 720px){.v[data-class=v] .vcards .vitem .vuser{width:var(--waline-mobile-avatar-size);height:var(--waline-mobile-avatar-size)}}.v[data-class=v] .vcards .vitem:last-child .vcard{border-bottom:none}.v[data-class=v] .vcards .vcard .vitem{padding-right:0}.v[data-class=v] .vcard{flex:1;width:0;padding-bottom:.5em;border-bottom:1px dashed var(--waline-border-color)}.v[data-class=v] .vcard:first-child{margin-left:1em}.v[data-class=v] .vcard .vhead{line-height:1.5}.v[data-class=v] .vcard .vhead .vnick{position:relative;display:inline-block;margin-right:.5em;font-weight:bold;font-size:.875em;line-height:1;text-decoration:none}.v[data-class=v] .vcard .vhead .vnick svg{position:relative;bottom:-0.125em;line-height:1}.v[data-class=v] .vcard .vhead span.vnick{color:var(--waline-dark-grey)}.v[data-class=v] .vcard .vhead .vbadge{display:inline-block;margin-right:.5em;padding:0 .3em;border-radius:3px;background:var(--waline-badge-color);color:var(--waline-white);font-size:var(--waline-badge-font-size)}.v[data-class=v] .vcard .vhead .vtime{margin-right:.875em;color:var(--waline-info-color);font-size:.75em}.v[data-class=v] .vcard .vhead .vreply{float:right;cursor:pointer;padding:4px;border:none;background:transparent;color:var(--waline-text-color);line-height:1;transition:color .2s ease}.v[data-class=v] .vcard .vhead .vreply:hover{color:var(--waline-theme-color)}.v[data-class=v] .vcard .vhead .vreply.active{color:var(--waline-active-color)}.v[data-class=v] .vcard .vmeta{position:relative;line-height:1}.v[data-class=v] .vcard .vmeta>span{display:inline-block;margin-right:.25em;padding:2px 4px;border-radius:.2em;background:var(--waline-info-bgcolor);color:var(--waline-info-color);font-size:var(--waline-info-font-size);line-height:1.5}@media(max-width: 520px){.v[data-class=v] .vcard .vmeta>span{display:none}}.v[data-class=v] .vcard .vmeta>span:empty{display:none}.v[data-class=v] .vcard .vcontent{line-height:2;position:relative;margin-bottom:.75em;padding-top:.625em;font-size:.875em;word-wrap:break-word}.v[data-class=v] .vcard .vcontent.expand{overflow:hidden;max-height:8em;cursor:pointer}.v[data-class=v] .vcard .vcontent.expand::before{content:"";position:absolute;top:0;bottom:3.15em;left:0;z-index:999;display:block;width:100%;background:linear-gradient(180deg, #000, rgba(255, 255, 255, 0.9))}.v[data-class=v] .vcard .vcontent.expand::after{content:attr(data-expand);position:absolute;bottom:0;left:0;z-index:999;display:block;width:100%;height:3.15em;background:rgba(255,255,255,.9);color:#828586;line-height:3.15em;text-align:center}.v[data-class=v] .vcard .vcontent>*:first-child{margin-top:0}.v[data-class=v] .vcard .vcontent>*:last-child{margin-bottom:0}.v[data-class=v] .vcard .vquote{border-left:1px dashed rgba(237,237,237,.5)}.v[data-class=v] .vcard .vquote .vuser{width:var(--waline-mobile-avatar-size);height:var(--waline-mobile-avatar-size)}.v[data-class=v] .vclose-icon{color:var(--waline-border-color)}.v[data-class=v] .vcontent .vemoji{display:inline-block;vertical-align:middle;width:1.25em;margin:.25em}.v[data-class=v] .vcontent .vtex{background:var(--waline-info-bgcolor);color:var(--waline-info-color)}.v[data-class=v] .vcontent span.vtex{display:inline-block;margin-right:.25em;padding:2px 4px;border-radius:.2em;font-size:var(--waline-info-font-size);line-height:1.5}.v[data-class=v] .vcontent p.vtex{text-align:center}.v[data-class=v] .vcontent .katex-display{padding-top:.2em;padding-bottom:.2em;overflow:auto hidden;-webkit-overflow-scrolling:touch}.v[data-class=v] .vcontent .katex-display::-webkit-scrollbar{height:3px}.v[data-class=v] .vcontent .katex-error{color:red}.v[data-class=v] .vcount{padding:.375em;font-weight:bold;font-size:1.25em}.v[data-class=v] .vempty{overflow:auto;padding:1.25em;color:var(--waline-text-color);text-align:center}.v[data-class=v] .vmore{text-align:center}.v[data-class=v] .vmore button{margin:1em 0}.v[data-class=v] .vpower{padding:.5em 0;color:var(--waline-light-grey);font-size:var(--waline-info-font-size);text-align:right}.v[data-class=v] pre,.v[data-class=v] pre[class*=language-]{line-height:1.4;padding:1rem 1.25rem;margin:.75rem 0;background:var(--waline-code-bgcolor);border-radius:6px;overflow:auto}.v[data-class=v] pre code,.v[data-class=v] pre[class*=language-] code{color:#bbb;padding:0;background:transparent !important;border-radius:0}.v[data-class=v] code[class*=language-],.v[data-class=v] pre[class*=language-]{color:#ccc;background:none;font-family:Consolas,Monaco,"Andale Mono","Ubuntu Mono",monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;-moz-tab-size:4;tab-size:4;-webkit-hyphens:none;hyphens:none}.v[data-class=v] pre[class*=language-]{overflow:auto}.v[data-class=v] :not(pre)>code[class*=language-],.v[data-class=v] pre[class*=language-]{background:#2d2d2d}.v[data-class=v] :not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.v[data-class=v] .token.comment,.v[data-class=v] .token.block-comment,.v[data-class=v] .token.prolog,.v[data-class=v] .token.doctype,.v[data-class=v] .token.cdata{color:#999}.v[data-class=v] .token.punctuation{color:#ccc}.v[data-class=v] .token.tag,.v[data-class=v] .token.attr-name,.v[data-class=v] .token.namespace,.v[data-class=v] .token.deleted{color:#e2777a}.v[data-class=v] .token.function-name{color:#6196cc}.v[data-class=v] .token.boolean,.v[data-class=v] .token.number,.v[data-class=v] .token.function{color:#f08d49}.v[data-class=v] .token.property,.v[data-class=v] .token.class-name,.v[data-class=v] .token.constant,.v[data-class=v] .token.symbol{color:#f8c555}.v[data-class=v] .token.selector,.v[data-class=v] .token.important,.v[data-class=v] .token.atrule,.v[data-class=v] .token.keyword,.v[data-class=v] .token.builtin{color:#cc99cd}.v[data-class=v] .token.string,.v[data-class=v] .token.char,.v[data-class=v] .token.attr-value,.v[data-class=v] .token.regex,.v[data-class=v] .token.variable{color:#7ec699}.v[data-class=v] .token.operator,.v[data-class=v] .token.entity,.v[data-class=v] .token.url{color:#67cdcc}.v[data-class=v] .token.important,.v[data-class=v] .token.bold{font-weight:bold}.v[data-class=v] .token.italic{font-style:italic}.v[data-class=v] .token.entity{cursor:help}.v[data-class=v] .token.inserted{color:green}.waline-widget-item p{display:inline}',""]);const l=i},609:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",o=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),o&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),o&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,o,r,a){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(o)for(var l=0;l0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=a),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),t.push(u))}},t}},601:e=>{"use strict";e.exports=function(e){return e[1]}},948:function(e){e.exports=function(){"use strict";var e=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){var t=e.exports=function(){return new RegExp("(?:"+t.line().source+")|(?:"+t.block().source+")","gm")};t.line=function(){return/(?:^|\s)\/\/(.+?)$/gm},t.block=function(){return/\/\*([\S\s]*?)\*\//gm}})),t=["23AC69","91C132","F19726","E8552D","1AAB8E","E1147F","2980C1","1BA1E6","9FA0A0","F19726","E30B20","E30B20","A3338B"];return function(n,o){void 0===o&&(o={});var r=o.colors;void 0===r&&(r=t);var a=0,i={},l=new RegExp("("+/[\u4E00-\u9FFF\u3400-\u4dbf\uf900-\ufaff\u3040-\u309f\uac00-\ud7af\u0400-\u04FF]+|\w+/.source+"|"+/'+e+""}(n);if("<"===t)return"<";var o;i[t]?o=i[t]:(o=r[a],i[t]=o);var l=''+t+"";return a=++a%r.length,l}))}}()},62:e=>{"use strict";var t=[];function n(e){for(var n=-1,o=0;o{"use strict";var t={};e.exports=function(e,n){var o=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(n)}},173:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},892:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},36:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var o="";n.supports&&(o+="@supports (".concat(n.supports,") {")),n.media&&(o+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(o+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),o+=n.css,r&&(o+="}"),n.media&&(o+="}"),n.supports&&(o+="}");var a=n.sourceMap;a&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")),t.styleTagTransform(o,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},464:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},407:(e,t)=>{"use strict";t.Z=(e,t)=>{const n=e.__vccOpts||e;for(const[e,o]of t)n[e]=o;return n}}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var a=t[o]={id:o,exports:{}};return e[o].call(a.exports,a,a.exports,n),a.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o={};return(()=>{"use strict";function e(e,t){const n=Object.create(null),o=e.split(",");for(let e=0;e!!n[e.toLowerCase()]:e=>!!n[e]}n.d(o,{default:()=>Os});const t=()=>{},r=Object.assign,a=Object.prototype.hasOwnProperty,i=(e,t)=>a.call(e,t),l=Array.isArray,s=e=>"[object Map]"===p(e),c=e=>"symbol"==typeof e,u=e=>null!==e&&"object"==typeof e,d=Object.prototype.toString,p=e=>d.call(e),h=e=>"string"==typeof e&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,f=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},v=/-(\w)/g,m=(f((e=>e.replace(v,((e,t)=>t?t.toUpperCase():"")))),/\B([A-Z])/g),g=(f((e=>e.replace(m,"-$1").toLowerCase())),f((e=>e.charAt(0).toUpperCase()+e.slice(1)))),b=(f((e=>e?`on${g(e)}`:"")),(e,t)=>!Object.is(e,t));let w;const y=[];class k{constructor(e=!1){this.active=!0,this.effects=[],this.cleanups=[],!e&&w&&(this.parent=w,this.index=(w.scopes||(w.scopes=[])).push(this)-1)}run(e){if(this.active)try{return this.on(),e()}finally{this.off()}}on(){this.active&&(y.push(this),w=this)}off(){this.active&&(y.pop(),w=y[y.length-1])}stop(e){if(this.active){if(this.effects.forEach((e=>e.stop())),this.cleanups.forEach((e=>e())),this.scopes&&this.scopes.forEach((e=>e.stop(!0))),this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.active=!1}}}const x=e=>{const t=new Set(e);return t.w=0,t.n=0,t},_=e=>(e.w&E)>0,C=e=>(e.n&E)>0,S=new WeakMap;let z=0,E=1;const A=[];let L;const T=Symbol(""),O=Symbol("");class R{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],function(e,t){(t=t||w)&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();if(!A.includes(this))try{return A.push(L=this),$.push(j),j=!0,E=1<<++z,z<=30?(({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o0?A[e-1]:void 0}}stop(){this.active&&(I(this),this.onStop&&this.onStop(),this.active=!1)}}function I(e){const{deps:t}=e;if(t.length){for(let n=0;n{("length"===t||t>=o)&&c.push(e)}));else switch(void 0!==n&&c.push(i.get(n)),t){case"add":l(e)?h(n)&&c.push(i.get("length")):(c.push(i.get(T)),s(e)&&c.push(i.get(O)));break;case"delete":l(e)||(c.push(i.get(T)),s(e)&&c.push(i.get(O)));break;case"set":s(e)&&c.push(i.get(T))}if(1===c.length)c[0]&&D(c[0]);else{const e=[];for(const t of c)t&&e.push(...t);D(x(e))}}function D(e,t){for(const t of l(e)?e:[...e])(t!==L||t.allowRecurse)&&(t.scheduler?t.scheduler():t.run())}const B=e("__proto__,__v_isRef,__isVue"),q=new Set(Object.getOwnPropertyNames(Symbol).map((e=>Symbol[e])).filter(c)),W=Q(),H=Q(!1,!0),Z=Q(!0),J=K();function K(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Re(this);for(let e=0,t=this.length;e{e[t]=function(...e){M();const n=Re(this)[t].apply(this,e);return U(),n}})),e}function Q(e=!1,t=!1){return function(n,o,r){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_raw"===o&&r===(e?t?Se:Ce:t?_e:xe).get(n))return n;const a=l(n);if(!e&&a&&i(J,o))return Reflect.get(J,o,r);const s=Reflect.get(n,o,r);return(c(o)?q.has(o):B(o))?s:(e||P(n,0,o),t?s:Pe(s)?a&&h(o)?s:s.value:u(s)?e?Ee(s):ze(s):s)}}function Y(e=!1){return function(t,n,o,r){let a=t[n];if(!e&&(o=Re(o),a=Re(a),!l(t)&&Pe(a)&&!Pe(o)))return a.value=o,!0;const s=l(t)&&h(n)?Number(n)!0,deleteProperty:(e,t)=>!0},ee=r({},X,{get:H,set:Y(!0)}),te=e=>e,ne=e=>Reflect.getPrototypeOf(e);function oe(e,t,n=!1,o=!1){const r=Re(e=e.__v_raw),a=Re(t);t!==a&&!n&&P(r,0,t),!n&&P(r,0,a);const{has:i}=ne(r),l=o?te:n?$e:je;return i.call(r,t)?l(e.get(t)):i.call(r,a)?l(e.get(a)):void(e!==r&&e.get(t))}function re(e,t=!1){const n=this.__v_raw,o=Re(n),r=Re(e);return e!==r&&!t&&P(o,0,e),!t&&P(o,0,r),e===r?n.has(e):n.has(e)||n.has(r)}function ae(e,t=!1){return e=e.__v_raw,!t&&P(Re(e),0,T),Reflect.get(e,"size",e)}function ie(e){e=Re(e);const t=Re(this);return ne(t).has.call(t,e)||(t.add(e),V(t,"add",e,e)),this}function le(e,t){t=Re(t);const n=Re(this),{has:o,get:r}=ne(n);let a=o.call(n,e);a||(e=Re(e),a=o.call(n,e));const i=r.call(n,e);return n.set(e,t),a?b(t,i)&&V(n,"set",e,t):V(n,"add",e,t),this}function se(e){const t=Re(this),{has:n,get:o}=ne(t);let r=n.call(t,e);r||(e=Re(e),r=n.call(t,e)),o&&o.call(t,e);const a=t.delete(e);return r&&V(t,"delete",e,void 0),a}function ce(){const e=Re(this),t=0!==e.size,n=e.clear();return t&&V(e,"clear",void 0,void 0),n}function ue(e,t){return function(n,o){const r=this,a=r.__v_raw,i=Re(a),l=t?te:e?$e:je;return!e&&P(i,0,T),a.forEach(((e,t)=>n.call(o,l(e),l(t),r)))}}function de(e,t,n){return function(...o){const r=this.__v_raw,a=Re(r),i=s(a),l="entries"===e||e===Symbol.iterator&&i,c="keys"===e&&i,u=r[e](...o),d=n?te:t?$e:je;return!t&&P(a,0,c?O:T),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:l?[d(e[0]),d(e[1])]:d(e),done:t}},[Symbol.iterator](){return this}}}}function pe(e){return function(...t){return"delete"!==e&&this}}function he(){const e={get(e){return oe(this,e)},get size(){return ae(this)},has:re,add:ie,set:le,delete:se,clear:ce,forEach:ue(!1,!1)},t={get(e){return oe(this,e,!1,!0)},get size(){return ae(this)},has:re,add:ie,set:le,delete:se,clear:ce,forEach:ue(!1,!0)},n={get(e){return oe(this,e,!0)},get size(){return ae(this,!0)},has(e){return re.call(this,e,!0)},add:pe("add"),set:pe("set"),delete:pe("delete"),clear:pe("clear"),forEach:ue(!0,!1)},o={get(e){return oe(this,e,!0,!0)},get size(){return ae(this,!0)},has(e){return re.call(this,e,!0)},add:pe("add"),set:pe("set"),delete:pe("delete"),clear:pe("clear"),forEach:ue(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=de(r,!1,!1),n[r]=de(r,!0,!1),t[r]=de(r,!1,!0),o[r]=de(r,!0,!0)})),[e,n,t,o]}const[fe,ve,me,ge]=he();function be(e,t){const n=t?e?ge:me:e?ve:fe;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(i(n,o)&&o in t?n:t,o,r)}const we={get:be(!1,!1)},ye={get:be(!1,!0)},ke={get:be(!0,!1)},xe=new WeakMap,_e=new WeakMap,Ce=new WeakMap,Se=new WeakMap;function ze(e){return e&&e.__v_isReadonly?e:Ae(e,!1,X,we,xe)}function Ee(e){return Ae(e,!0,G,ke,Ce)}function Ae(e,t,n,o,r){if(!u(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const a=r.get(e);if(a)return a;const i=(l=e).__v_skip||!Object.isExtensible(l)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>p(e).slice(8,-1))(l));var l;if(0===i)return e;const s=new Proxy(e,2===i?o:n);return r.set(e,s),s}function Le(e){return Te(e)?Le(e.__v_raw):!(!e||!e.__v_isReactive)}function Te(e){return!(!e||!e.__v_isReadonly)}function Oe(e){return Le(e)||Te(e)}function Re(e){const t=e&&e.__v_raw;return t?Re(t):e}function Ie(e){return t=e,Object.defineProperty(t,"__v_skip",{configurable:!0,enumerable:!1,value:!0}),e;var t}const je=e=>u(e)?ze(e):e,$e=e=>u(e)?Ee(e):e;function Me(e){F()&&((e=Re(e)).dep||(e.dep=x()),N(e.dep))}function Ue(e,t){(e=Re(e)).dep&&D(e.dep)}function Pe(e){return Boolean(e&&!0===e.__v_isRef)}function Fe(e){return n=!1,Pe(t=e)?t:new Ne(t,n);var t,n}class Ne{constructor(e,t){this._shallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Re(e),this._value=t?e:je(e)}get value(){return Me(this),this._value}set value(e){e=this._shallow?e:Re(e),b(e,this._rawValue)&&(this._rawValue=e,this._value=this._shallow?e:je(e),Ue(this))}}const Ve={get:(e,t,n)=>{return Pe(o=Reflect.get(e,t,n))?o.value:o;var o},set:(e,t,n,o)=>{const r=e[t];return Pe(r)&&!Pe(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function De(e){return Le(e)?e:new Proxy(e,Ve)}class Be{constructor(e,t,n){this._setter=t,this.dep=void 0,this._dirty=!0,this.__v_isRef=!0,this.effect=new R(e,(()=>{this._dirty||(this._dirty=!0,Ue(this))})),this.__v_isReadonly=n}get value(){const e=Re(this);return Me(e),e._dirty&&(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function qe(e,n){let o,r;const a="function"==typeof e;return a?(o=e,r=t):(o=e.get,r=e.set),new Be(o,r,a||!r)}function We(e,t){const n=Object.create(null),o=e.split(",");for(let e=0;e!!n[e.toLowerCase()]:e=>!!n[e]}function He(e){if(ct(e)){const t={};for(let n=0;n{if(e){const n=e.split(Je);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function Qe(e){let t="";if(ht(e))t=e;else if(ct(e))for(let n=0;nnull==e?"":ct(e)||ft(e)&&(e.toString===mt||!pt(e.toString))?JSON.stringify(e,Xe,2):String(e),Xe=(e,t)=>t&&t.__v_isRef?Xe(e,t.value):ut(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:dt(t)?{[`Set(${t.size})`]:[...t.values()]}:!ft(t)||ct(t)||bt(t)?t:String(t),Ge={},et=[],tt=()=>{},nt=()=>!1,ot=/^on[^a-z]/,rt=e=>ot.test(e),at=e=>e.startsWith("onUpdate:"),it=Object.assign,lt=Object.prototype.hasOwnProperty,st=(e,t)=>lt.call(e,t),ct=Array.isArray,ut=e=>"[object Map]"===gt(e),dt=e=>"[object Set]"===gt(e),pt=e=>"function"==typeof e,ht=e=>"string"==typeof e,ft=e=>null!==e&&"object"==typeof e,vt=e=>ft(e)&&pt(e.then)&&pt(e.catch),mt=Object.prototype.toString,gt=e=>mt.call(e),bt=e=>"[object Object]"===gt(e),wt=We(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),yt=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},kt=/-(\w)/g,xt=yt((e=>e.replace(kt,((e,t)=>t?t.toUpperCase():"")))),_t=/\B([A-Z])/g,Ct=yt((e=>e.replace(_t,"-$1").toLowerCase())),St=yt((e=>e.charAt(0).toUpperCase()+e.slice(1))),zt=yt((e=>e?`on${St(e)}`:"")),Et=(e,t)=>!Object.is(e,t),At=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Tt=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Ot;const Rt=()=>Ot||(Ot="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==n.g?n.g:{});new Set,new Map;let It,jt=[],$t=!1;function Mt(e,...t){It?It.emit(e,...t):$t||jt.push({event:e,args:t})}function Ut(e,t){It=e,It?(It.enabled=!0,jt.forEach((({event:e,args:t})=>It.emit(e,...t))),jt=[]):"undefined"==typeof window||navigator.userAgent.includes("jsdom")?($t=!0,jt=[]):((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push((e=>{Ut(e,t)})),setTimeout((()=>{It||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,$t=!0,jt=[])}),3e3))}const Pt=Vt("component:added"),Ft=Vt("component:updated"),Nt=Vt("component:removed");function Vt(e){return t=>{Mt(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}function Dt(e,t,...n){const o=e.vnode.props||Ge;let r=n;const a=t.startsWith("update:"),i=a&&t.slice(7);if(i&&i in o){const e=`${"modelValue"===i?"model":i}Modifiers`,{number:t,trim:a}=o[e]||Ge;a?r=n.map((e=>e.trim())):t&&(r=n.map(Tt))}let l;__VUE_PROD_DEVTOOLS__&&function(e,t,n){Mt("component:emit",e.appContext.app,e,t,n)}(e,t,r);let s=o[l=zt(t)]||o[l=zt(xt(t))];!s&&a&&(s=o[l=zt(Ct(t))]),s&&Lo(s,e,6,r);const c=o[l+"Once"];if(c){if(e.emitted){if(e.emitted[l])return}else e.emitted={};e.emitted[l]=!0,Lo(c,e,6,r)}}function Bt(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(void 0!==r)return r;const a=e.emits;let i={};return a?(ct(a)?a.forEach((e=>i[e]=null)):it(i,a),o.set(e,i),i):(o.set(e,null),null)}function qt(e,t){return!(!e||!rt(t))&&(t=t.slice(2).replace(/Once$/,""),st(e,t[0].toLowerCase()+t.slice(1))||st(e,Ct(t))||st(e,t))}let Wt=null,Ht=null;function Zt(e){const t=Wt;return Wt=e,Ht=e&&e.type.__scopeId||null,t}function Jt(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:a,propsOptions:[i],slots:l,attrs:s,emit:c,render:u,renderCache:d,data:p,setupState:h,ctx:f,inheritAttrs:v}=e;let m,g;const b=Zt(e);try{if(4&n.shapeFlag){const e=r||o;m=co(u.call(e,e,d,a,h,p,f)),g=s}else{const e=t;m=co(e.length>1?e(a,{attrs:s,slots:l,emit:c}):e(a,null)),g=t.props?s:Kt(s)}}catch(t){Wn.length=0,To(t,e,1),m=ao(Bn)}let w=m;if(g&&!1!==v){const e=Object.keys(g),{shapeFlag:t}=w;e.length&&7&t&&(i&&e.some(at)&&(g=Qt(g,i)),w=io(w,g))}return n.dirs&&(w.dirs=w.dirs?w.dirs.concat(n.dirs):n.dirs),n.transition&&(w.transition=n.transition),m=w,Zt(b),m}const Kt=e=>{let t;for(const n in e)("class"===n||"style"===n||rt(n))&&((t||(t={}))[n]=e[n]);return t},Qt=(e,t)=>{const n={};for(const o in e)at(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function Yt(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r1)return n&&pt(t)?t.call(o.proxy):t}}const Gt=[Function,Array],en={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Gt,onEnter:Gt,onAfterEnter:Gt,onEnterCancelled:Gt,onBeforeLeave:Gt,onLeave:Gt,onAfterLeave:Gt,onLeaveCancelled:Gt,onBeforeAppear:Gt,onAppear:Gt,onAfterAppear:Gt,onAppearCancelled:Gt},setup(e,{slots:t}){const n=yo(),o=function(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return pn((()=>{e.isMounted=!0})),hn((()=>{e.isUnmounting=!0})),e}();let r;return()=>{const a=t.default&&ln(t.default(),!0);if(!a||!a.length)return;const i=Re(e),{mode:l}=i,s=a[0];if(o.isLeaving)return on(s);const c=rn(s);if(!c)return on(s);const u=nn(c,i,o,n);an(c,u);const d=n.subTree,p=d&&rn(d);let h=!1;const{getTransitionKey:f}=c.type;if(f){const e=f();void 0===r?r=e:e!==r&&(r=e,h=!0)}if(p&&p.type!==Bn&&(!eo(c,p)||h)){const e=nn(p,i,o,n);if(an(p,e),"out-in"===l)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,n.update()},on(s);"in-out"===l&&c.type!==Bn&&(e.delayLeave=(e,t,n)=>{tn(o,p)[String(p.key)]=p,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete u.delayedLeave},u.delayedLeave=n})}return s}}};function tn(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function nn(e,t,n,o){const{appear:r,mode:a,persisted:i=!1,onBeforeEnter:l,onEnter:s,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:d,onLeave:p,onAfterLeave:h,onLeaveCancelled:f,onBeforeAppear:v,onAppear:m,onAfterAppear:g,onAppearCancelled:b}=t,w=String(e.key),y=tn(n,e),k=(e,t)=>{e&&Lo(e,o,9,t)},x={mode:a,persisted:i,beforeEnter(t){let o=l;if(!n.isMounted){if(!r)return;o=v||l}t._leaveCb&&t._leaveCb(!0);const a=y[w];a&&eo(e,a)&&a.el._leaveCb&&a.el._leaveCb(),k(o,[t])},enter(e){let t=s,o=c,a=u;if(!n.isMounted){if(!r)return;t=m||s,o=g||c,a=b||u}let i=!1;const l=e._enterCb=t=>{i||(i=!0,k(t?a:o,[e]),x.delayedLeave&&x.delayedLeave(),e._enterCb=void 0)};t?(t(e,l),t.length<=1&&l()):l()},leave(t,o){const r=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return o();k(d,[t]);let a=!1;const i=t._leaveCb=n=>{a||(a=!0,o(),k(n?f:h,[t]),t._leaveCb=void 0,y[r]===e&&delete y[r])};y[r]=e,p?(p(t,i),p.length<=1&&i()):i()},clone:e=>nn(e,t,n,o)};return x}function on(e){if(un(e))return(e=io(e)).children=null,e}function rn(e){return un(e)?e.children?e.children[0]:void 0:e}function an(e,t){6&e.shapeFlag&&e.component?an(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ln(e,t=!1){let n=[],o=0;for(let r=0;r1)for(let e=0;e!!e.type.__asyncLoader,un=e=>e.type.__isKeepAlive;RegExp,RegExp;const dn=e=>(t,n=wo)=>(!Co||"sp"===e)&&function(e,t,n=wo,o=!1){if(n){const r=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;M(),ko(n);const r=Lo(t,n,e,o);return xo(),U(),r});return o?r.unshift(a):r.push(a),a}}(e,t,n),pn=(dn("bm"),dn("m")),hn=(dn("bu"),dn("u"),dn("bum")),fn=dn("um");function vn(e,t,n,o){const[r,a]=e.propsOptions;let i,l=!1;if(t)for(let s in t){if(wt(s))continue;const c=t[s];let u;r&&st(r,u=xt(s))?a&&a.includes(u)?(i||(i={}))[u]=c:n[u]=c:qt(e.emitsOptions,s)||c!==o[s]&&(o[s]=c,l=!0)}if(a){const t=Re(n),o=i||Ge;for(let i=0;i-1,o[1]=n<0||e-1||st(o,"default"))&&l.push(t)}}}const s=[i,l];return o.set(e,s),s}function bn(e){return"$"!==e[0]}function wn(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:null===e?"null":""}function yn(e,t){return wn(e)===wn(t)}function kn(e,t){return ct(t)?t.findIndex((t=>yn(t,e))):pt(t)&&yn(t,e)?0:-1}dn("sp"),dn("rtg"),dn("rtc");const xn=e=>"_"===e[0]||"$stable"===e,_n=e=>ct(e)?e.map(co):[co(e)],Cn=(e,t,n)=>{const o=function(e,t=Wt,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&Kn(-1);const r=Zt(t),a=e(...n);return Zt(r),o._d&&Kn(1),__VUE_PROD_DEVTOOLS__&&Ft(t),a};return o._n=!0,o._c=!0,o._d=!0,o}(((...e)=>_n(t(...e))),n);return o._c=!1,o},Sn=(e,t,n)=>{const o=e._ctx;for(const n in e){if(xn(n))continue;const r=e[n];if(pt(r))t[n]=Cn(0,r,o);else if(null!=r){const e=_n(r);t[n]=()=>e}}},zn=(e,t)=>{const n=_n(t);e.slots.default=()=>n};function En(e,t){if(null===Wt)return e;const n=Wt.proxy,o=e.dirs||(e.dirs=[]);for(let e=0;e(a.has(e)||(e&&pt(e.install)?(a.add(e),e.install(l,...t)):pt(e)&&(a.add(e),e(l,...t))),l),mixin:e=>l,component:(e,t)=>t?(r.components[e]=t,l):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,l):r.directives[e],mount(a,s,c){if(!i){const u=ao(n,o);return u.appContext=r,s&&t?t(u,a):e(u,a,c),i=!0,l._container=a,a.__vue_app__=l,__VUE_PROD_DEVTOOLS__&&(l._instance=u.component,function(e,t){Mt("app:init",e,t,{Fragment:Vn,Text:Dn,Comment:Bn,Static:qn})}(l,nr)),Eo(u.component)||u.component.proxy}},unmount(){i&&(e(null,l._container),__VUE_PROD_DEVTOOLS__&&(l._instance=null,function(e){Mt("app:unmount",e)}(l)),delete l._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,l)};return l}}const Rn=function(e,t){t&&t.pendingBranch?ct(e)?t.effects.push(...e):t.effects.push(e):Zo(e,Fo,Po,No)};function In(e,t){"boolean"!=typeof __VUE_PROD_DEVTOOLS__&&(Rt().__VUE_PROD_DEVTOOLS__=!1);const n=Rt();n.__VUE__=!0,__VUE_PROD_DEVTOOLS__&&Ut(n.__VUE_DEVTOOLS_GLOBAL_HOOK__,n);const{insert:o,remove:r,patchProp:a,createElement:i,createText:l,createComment:s,setText:c,setElementText:u,parentNode:d,nextSibling:p,setScopeId:h=tt,cloneNode:f,insertStaticContent:v}=e,m=(e,t,n,o=null,r=null,a=null,i=!1,l=null,s=!!t.dynamicChildren)=>{if(e===t)return;e&&!eo(e,t)&&(o=J(e),B(e,r,a,!0),e=null),-2===t.patchFlag&&(s=!1,t.dynamicChildren=null);const{type:c,ref:u,shapeFlag:d}=t;switch(c){case Dn:g(e,t,n,o);break;case Bn:b(e,t,n,o);break;case qn:null==e&&w(t,n,o,i);break;case Vn:A(e,t,n,o,r,a,i,l,s);break;default:1&d?y(e,t,n,o,r,a,i,l,s):6&d?L(e,t,n,o,r,a,i,l,s):(64&d||128&d)&&c.process(e,t,n,o,r,a,i,l,s,Q)}null!=u&&r&&jn(u,e&&e.ref,a,t||e,!t)},g=(e,t,n,r)=>{if(null==e)o(t.el=l(t.children),n,r);else{const n=t.el=e.el;t.children!==e.children&&c(n,t.children)}},b=(e,t,n,r)=>{null==e?o(t.el=s(t.children||""),n,r):t.el=e.el},w=(e,t,n,o)=>{[e.el,e.anchor]=v(e.children,t,n,o)},y=(e,t,n,o,r,a,i,l,s)=>{i=i||"svg"===t.type,null==e?x(t,n,o,r,a,i,l,s):S(e,t,r,a,i,l,s)},x=(e,t,n,r,l,s,c,d)=>{let p,h;const{type:v,props:m,shapeFlag:g,transition:b,patchFlag:w,dirs:y}=e;if(e.el&&void 0!==f&&-1===w)p=e.el=f(e.el);else{if(p=e.el=i(e.type,s,m&&m.is,m),8&g?u(p,e.children):16&g&&C(e.children,p,null,r,l,s&&"foreignObject"!==v,c,d),y&&An(e,null,r,"created"),m){for(const t in m)"value"===t||wt(t)||a(p,t,null,m[t],s,e.children,r,l,Z);"value"in m&&a(p,"value",null,m.value),(h=m.onVnodeBeforeMount)&&$n(h,r,e)}_(p,e,e.scopeId,c,r)}__VUE_PROD_DEVTOOLS__&&(Object.defineProperty(p,"__vnode",{value:e,enumerable:!1}),Object.defineProperty(p,"__vueParentComponent",{value:r,enumerable:!1})),y&&An(e,null,r,"beforeMount");const k=(!l||l&&!l.pendingBranch)&&b&&!b.persisted;k&&b.beforeEnter(p),o(p,t,n),((h=m&&m.onVnodeMounted)||k||y)&&Rn((()=>{h&&$n(h,r,e),k&&b.enter(p),y&&An(e,null,r,"mounted")}),l)},_=(e,t,n,o,r)=>{if(n&&h(e,n),o)for(let t=0;t{for(let c=s;c{const s=t.el=e.el;let{patchFlag:c,dynamicChildren:d,dirs:p}=t;c|=16&e.patchFlag;const h=e.props||Ge,f=t.props||Ge;let v;(v=f.onVnodeBeforeUpdate)&&$n(v,n,t,e),p&&An(t,e,n,"beforeUpdate");const m=r&&"foreignObject"!==t.type;if(d?z(e.dynamicChildren,d,s,n,o,m,i):l||$(e,t,s,null,n,o,m,i,!1),c>0){if(16&c)E(s,t,h,f,n,o,r);else if(2&c&&h.class!==f.class&&a(s,"class",null,f.class,r),4&c&&a(s,"style",h.style,f.style,r),8&c){const i=t.dynamicProps;for(let t=0;t{v&&$n(v,n,t,e),p&&An(t,e,n,"updated")}),o)},z=(e,t,n,o,r,a,i)=>{for(let l=0;l{if(n!==o){for(const s in o){if(wt(s))continue;const c=o[s],u=n[s];c!==u&&"value"!==s&&a(e,s,u,c,l,t.children,r,i,Z)}if(n!==Ge)for(const s in n)wt(s)||s in o||a(e,s,n[s],null,l,t.children,r,i,Z);"value"in o&&a(e,"value",n.value,o.value)}},A=(e,t,n,r,a,i,s,c,u)=>{const d=t.el=e?e.el:l(""),p=t.anchor=e?e.anchor:l("");let{patchFlag:h,dynamicChildren:f,slotScopeIds:v}=t;v&&(c=c?c.concat(v):v),null==e?(o(d,n,r),o(p,n,r),C(t.children,n,p,a,i,s,c,u)):h>0&&64&h&&f&&e.dynamicChildren?(z(e.dynamicChildren,f,n,a,i,s,c),(null!=t.key||a&&t===a.subTree)&&Mn(e,t,!0)):$(e,t,n,p,a,i,s,c,u)},L=(e,t,n,o,r,a,i,l,s)=>{t.slotScopeIds=l,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,i,s):T(t,n,o,r,a,i,s):O(e,t,s)},T=(e,t,n,o,r,a,i)=>{const l=e.component=function(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||go,a={uid:bo++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,update:null,scope:new k(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:gn(o,r),emitsOptions:Bt(o,r),emit:null,emitted:null,propsDefaults:Ge,inheritAttrs:o.inheritAttrs,ctx:Ge,data:Ge,props:Ge,attrs:Ge,slots:Ge,refs:Ge,setupState:Ge,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return a.ctx={_:a},a.root=t?t.root:a,a.emit=Dt.bind(null,a),e.ce&&e.ce(a),a}(e,o,r);if(un(e)&&(l.ctx.renderer=Q),function(e,t=!1){Co=t;const{props:n,children:o}=e.vnode,r=_o(e);(function(e,t,n,o=!1){const r={},a={};Lt(a,to,1),e.propsDefaults=Object.create(null),vn(e,t,r,a);for(const t in e.propsOptions[0])t in r||(r[t]=void 0);n?e.props=o?r:Ae(r,!1,ee,ye,_e):e.type.props?e.props=r:e.props=a,e.attrs=a})(e,n,r,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=Re(t),Lt(t,"_",n)):Sn(t,e.slots={})}else e.slots={},t&&zn(e,t);Lt(e.slots,to,1)})(e,o);const a=r?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Ie(new Proxy(e.ctx,mo));const{setup:o}=n;if(o){const n=e.setupContext=o.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)=>(P(e,0,"$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t}}(e):null;ko(e),M();const r=Ao(o,e,0,[e.props,n]);if(U(),xo(),vt(r)){if(r.then(xo,xo),t)return r.then((n=>{So(e,n,t)})).catch((t=>{To(t,e,0)}));e.asyncDep=r}else So(e,r,t)}else zo(e,t)}(e,t):void 0;Co=!1}(l),l.asyncDep){if(r&&r.registerDep(l,I),!e.el){const e=l.subTree=ao(Bn);b(null,e,t,n)}}else I(l,e,t,n,r,a,i)},O=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:r,component:a}=e,{props:i,children:l,patchFlag:s}=t,c=a.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&s>=0))return!(!r&&!l||l&&l.$stable)||o!==i&&(o?!i||Yt(o,i,c):!!i);if(1024&s)return!0;if(16&s)return o?Yt(o,i,c):!!i;if(8&s){const e=t.dynamicProps;for(let t=0;tjo&&Io.splice(t,1)}(o.update),o.update()}else t.component=e.component,t.el=e.el,o.vnode=t},I=(e,t,n,o,r,a,i)=>{const l=new R((()=>{if(e.isMounted){let t,{next:n,bu:o,u:s,parent:c,vnode:u}=e,p=n;l.allowRecurse=!1,n?(n.el=u.el,j(e,n,i)):n=u,o&&At(o),(t=n.props&&n.props.onVnodeBeforeUpdate)&&$n(t,c,n,u),l.allowRecurse=!0;const h=Jt(e),f=e.subTree;e.subTree=h,m(f,h,d(f.el),J(f),e,r,a),n.el=h.el,null===p&&function({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}(e,h.el),s&&Rn(s,r),(t=n.props&&n.props.onVnodeUpdated)&&Rn((()=>$n(t,c,n,u)),r),__VUE_PROD_DEVTOOLS__&&Ft(e)}else{let i;const{el:s,props:c}=t,{bm:u,m:d,parent:p}=e,h=cn(t);if(l.allowRecurse=!1,u&&At(u),!h&&(i=c&&c.onVnodeBeforeMount)&&$n(i,p,t),l.allowRecurse=!0,s&&X){const n=()=>{e.subTree=Jt(e),X(s,e.subTree,e,r,null)};h?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const i=e.subTree=Jt(e);m(null,i,n,o,e,r,a),t.el=i.el}if(d&&Rn(d,r),!h&&(i=c&&c.onVnodeMounted)){const e=t;Rn((()=>$n(i,p,e)),r)}256&t.shapeFlag&&e.a&&Rn(e.a,r),e.isMounted=!0,__VUE_PROD_DEVTOOLS__&&Pt(e),t=n=o=null}}),(()=>Wo(e.update)),e.scope),s=e.update=l.run.bind(l);s.id=e.uid,l.allowRecurse=s.allowRecurse=!0,s()},j=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:r,attrs:a,vnode:{patchFlag:i}}=e,l=Re(r),[s]=e.propsOptions;let c=!1;if(!(o||i>0)||16&i){let o;vn(e,t,r,a)&&(c=!0);for(const a in l)t&&(st(t,a)||(o=Ct(a))!==a&&st(t,o))||(s?!n||void 0===n[a]&&void 0===n[o]||(r[a]=mn(s,l,a,void 0,e,!0)):delete r[a]);if(a!==l)for(const e in a)t&&st(t,e)||(delete a[e],c=!0)}else if(8&i){const n=e.vnode.dynamicProps;for(let o=0;o{const{vnode:o,slots:r}=e;let a=!0,i=Ge;if(32&o.shapeFlag){const e=t._;e?n&&1===e?a=!1:(it(r,t),n||1!==e||delete r._):(a=!t.$stable,Sn(t,r)),i=t}else t&&(zn(e,t),i={default:1});if(a)for(const e in r)xn(e)||e in i||delete r[e]})(e,t.children,n),M(),Jo(void 0,e.update),U()},$=(e,t,n,o,r,a,i,l,s=!1)=>{const c=e&&e.children,d=e?e.shapeFlag:0,p=t.children,{patchFlag:h,shapeFlag:f}=t;if(h>0){if(128&h)return void N(c,p,n,o,r,a,i,l,s);if(256&h)return void F(c,p,n,o,r,a,i,l,s)}8&f?(16&d&&Z(c,r,a),p!==c&&u(n,p)):16&d?16&f?N(c,p,n,o,r,a,i,l,s):Z(c,r,a,!0):(8&d&&u(n,""),16&f&&C(p,n,o,r,a,i,l,s))},F=(e,t,n,o,r,a,i,l,s)=>{t=t||et;const c=(e=e||et).length,u=t.length,d=Math.min(c,u);let p;for(p=0;pu?Z(e,r,a,!0,!1,d):C(t,n,o,r,a,i,l,s,d)},N=(e,t,n,o,r,a,i,l,s)=>{let c=0;const u=t.length;let d=e.length-1,p=u-1;for(;c<=d&&c<=p;){const o=e[c],u=t[c]=s?uo(t[c]):co(t[c]);if(!eo(o,u))break;m(o,u,n,null,r,a,i,l,s),c++}for(;c<=d&&c<=p;){const o=e[d],c=t[p]=s?uo(t[p]):co(t[p]);if(!eo(o,c))break;m(o,c,n,null,r,a,i,l,s),d--,p--}if(c>d){if(c<=p){const e=p+1,d=ep)for(;c<=d;)B(e[c],r,a,!0),c++;else{const h=c,f=c,v=new Map;for(c=f;c<=p;c++){const e=t[c]=s?uo(t[c]):co(t[c]);null!=e.key&&v.set(e.key,c)}let g,b=0;const w=p-f+1;let y=!1,k=0;const x=new Array(w);for(c=0;c=w){B(o,r,a,!0);continue}let u;if(null!=o.key)u=v.get(o.key);else for(g=f;g<=p;g++)if(0===x[g-f]&&eo(o,t[g])){u=g;break}void 0===u?B(o,r,a,!0):(x[u-f]=c+1,u>=k?k=u:y=!0,m(o,t[u],n,null,r,a,i,l,s),b++)}const _=y?function(e){const t=e.slice(),n=[0];let o,r,a,i,l;const s=e.length;for(o=0;o>1,e[n[l]]0&&(t[o]=n[a-1]),n[a]=o)}}for(a=n.length,i=n[a-1];a-- >0;)n[a]=i,i=t[i];return n}(x):et;for(g=_.length-1,c=w-1;c>=0;c--){const e=f+c,d=t[e],p=e+1{const{el:i,type:l,transition:s,children:c,shapeFlag:u}=e;if(6&u)D(e.component.subTree,t,n,r);else if(128&u)e.suspense.move(t,n,r);else if(64&u)l.move(e,t,n,Q);else if(l!==Vn)if(l!==qn)if(2!==r&&1&u&&s)if(0===r)s.beforeEnter(i),o(i,t,n),Rn((()=>s.enter(i)),a);else{const{leave:e,delayLeave:r,afterLeave:a}=s,l=()=>o(i,t,n),c=()=>{e(i,(()=>{l(),a&&a()}))};r?r(i,l,c):c()}else o(i,t,n);else(({el:e,anchor:t},n,r)=>{let a;for(;e&&e!==t;)a=p(e),o(e,n,r),e=a;o(t,n,r)})(e,t,n);else{o(i,t,n);for(let e=0;e{const{type:a,props:i,ref:l,children:s,dynamicChildren:c,shapeFlag:u,patchFlag:d,dirs:p}=e;if(null!=l&&jn(l,null,n,e,!0),256&u)return void t.ctx.deactivate(e);const h=1&u&&p,f=!cn(e);let v;if(f&&(v=i&&i.onVnodeBeforeUnmount)&&$n(v,t,e),6&u)H(e.component,n,o);else{if(128&u)return void e.suspense.unmount(n,o);h&&An(e,null,t,"beforeUnmount"),64&u?e.type.remove(e,t,n,r,Q,o):c&&(a!==Vn||d>0&&64&d)?Z(c,t,n,!1,!0):(a===Vn&&384&d||!r&&16&u)&&Z(s,t,n),o&&q(e)}(f&&(v=i&&i.onVnodeUnmounted)||h)&&Rn((()=>{v&&$n(v,t,e),h&&An(e,null,t,"unmounted")}),n)},q=e=>{const{type:t,el:n,anchor:o,transition:a}=e;if(t===Vn)return void W(n,o);if(t===qn)return void(({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=p(e),r(e),e=n;r(t)})(e);const i=()=>{r(n),a&&!a.persisted&&a.afterLeave&&a.afterLeave()};if(1&e.shapeFlag&&a&&!a.persisted){const{leave:t,delayLeave:o}=a,r=()=>t(n,i);o?o(e.el,i,r):r()}else i()},W=(e,t)=>{let n;for(;e!==t;)n=p(e),r(e),e=n;r(t)},H=(e,t,n)=>{const{bum:o,scope:r,update:a,subTree:i,um:l}=e;o&&At(o),r.stop(),a&&(a.active=!1,B(i,e,t,n)),l&&Rn(l,t),Rn((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve()),__VUE_PROD_DEVTOOLS__&&Nt(e)},Z=(e,t,n,o=!1,r=!1,a=0)=>{for(let i=a;i6&e.shapeFlag?J(e.component.subTree):128&e.shapeFlag?e.suspense.next():p(e.anchor||e.el),K=(e,t,n)=>{null==e?t._vnode&&B(t._vnode,null,null,!0):m(t._vnode||null,e,t,null,null,null,n),Ko(),t._vnode=e},Q={p:m,um:B,m:D,r:q,mt:T,mc:C,pc:$,pbc:z,n:J,o:e};let Y,X;return t&&([Y,X]=t(Q)),{render:K,hydrate:Y,createApp:On(K,Y)}}function jn(e,t,n,o,r=!1){if(ct(e))return void e.forEach(((e,a)=>jn(e,t&&(ct(t)?t[a]:t),n,o,r)));if(cn(o)&&!r)return;const a=4&o.shapeFlag?Eo(o.component)||o.component.proxy:o.el,i=r?null:a,{i:l,r:s}=e,c=t&&t.r,u=l.refs===Ge?l.refs={}:l.refs,d=l.setupState;if(null!=c&&c!==s&&(ht(c)?(u[c]=null,st(d,c)&&(d[c]=null)):Pe(c)&&(c.value=null)),ht(s)){const e=()=>{u[s]=i,st(d,s)&&(d[s]=i)};i?(e.id=-1,Rn(e,n)):e()}else if(Pe(s)){const e=()=>{s.value=i};i?(e.id=-1,Rn(e,n)):e()}else pt(s)&&Ao(s,l,12,[i,u])}function $n(e,t,n,o=null){Lo(e,t,7,[n,o])}function Mn(e,t,n=!1){const o=e.children,r=t.children;if(ct(o)&&ct(r))for(let e=0;e0?Hn||et:null,Wn.pop(),Hn=Wn[Wn.length-1]||null,Jn>0&&Hn&&Hn.push(e),e}function Yn(e,t,n,o,r,a){return Qn(ro(e,t,n,o,r,a,!0))}function Xn(e,t,n,o,r){return Qn(ao(e,t,n,o,r,!0))}function Gn(e){return!!e&&!0===e.__v_isVNode}function eo(e,t){return e.type===t.type&&e.key===t.key}const to="__vInternal",no=({key:e})=>null!=e?e:null,oo=({ref:e})=>null!=e?ht(e)||Pe(e)||pt(e)?{i:Wt,r:e}:e:null;function ro(e,t=null,n=null,o=0,r=null,a=(e===Vn?0:1),i=!1,l=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&no(t),ref:t&&oo(t),scopeId:Ht,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:a,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null};return l?(po(s,n),128&a&&e.normalize(s)):n&&(s.shapeFlag|=ht(n)?8:16),Jn>0&&!i&&Hn&&(s.patchFlag>0||6&a)&&32!==s.patchFlag&&Hn.push(s),s}const ao=function(e,t=null,n=null,o=0,r=null,a=!1){if(e&&e!==Fn||(e=Bn),Gn(e)){const o=io(e,t,!0);return n&&po(o,n),o}if(i=e,pt(i)&&"__vccOpts"in i&&(e=e.__vccOpts),t){t=function(e){return e?Oe(e)||to in e?it({},e):e:null}(t);let{class:e,style:n}=t;e&&!ht(e)&&(t.class=Qe(e)),ft(n)&&(Oe(n)&&!ct(n)&&(n=it({},n)),t.style=He(n))}var i;return ro(e,t,n,o,r,ht(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:ft(e)?4:pt(e)?2:0,a,!0)};function io(e,t,n=!1){const{props:o,ref:r,patchFlag:a,children:i}=e,l=t?function(...e){const t={};for(let n=0;nt(e,n,void 0,a&&a[n])));else{const n=Object.keys(e);r=new Array(n.length);for(let o=0,i=n.length;oe?_o(e)?Eo(e)||e.proxy:fo(e.parent):null,vo=it(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=>fo(e.parent),$root:e=>fo(e.root),$emit:e=>e.emit,$options:e=>e.type,$forceUpdate:e=>()=>Wo(e.update),$nextTick:e=>qo.bind(e.proxy),$watch:e=>tt}),mo={get({_:e},t){const{ctx:n,setupState:o,data:r,props:a,accessCache:i,type:l,appContext:s}=e;let c;if("$"!==t[0]){const l=i[t];if(void 0!==l)switch(l){case 0:return o[t];case 1:return r[t];case 3:return n[t];case 2:return a[t]}else{if(o!==Ge&&st(o,t))return i[t]=0,o[t];if(r!==Ge&&st(r,t))return i[t]=1,r[t];if((c=e.propsOptions[0])&&st(c,t))return i[t]=2,a[t];if(n!==Ge&&st(n,t))return i[t]=3,n[t];i[t]=4}}const u=vo[t];let d,p;return u?("$attrs"===t&&P(e,0,t),u(e)):(d=l.__cssModules)&&(d=d[t])?d:n!==Ge&&st(n,t)?(i[t]=3,n[t]):(p=s.config.globalProperties,st(p,t)?p[t]:void 0)},set({_:e},t,n){const{data:o,setupState:r,ctx:a}=e;if(r!==Ge&&st(r,t))r[t]=n;else if(o!==Ge&&st(o,t))o[t]=n;else if(st(e.props,t))return!1;return!("$"===t[0]&&t.slice(1)in e||(a[t]=n,0))},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:a}},i){let l;return void 0!==n[i]||e!==Ge&&st(e,i)||t!==Ge&&st(t,i)||(l=a[0])&&st(l,i)||st(o,i)||st(vo,i)||st(r.config.globalProperties,i)}},go=Ln();let bo=0;let wo=null;const yo=()=>wo||Wt,ko=e=>{wo=e,e.scope.on()},xo=()=>{wo&&wo.scope.off(),wo=null};function _o(e){return 4&e.vnode.shapeFlag}let Co=!1;function So(e,t,n){pt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ft(t)&&(__VUE_PROD_DEVTOOLS__&&(e.devtoolsRawSetupState=t),e.setupState=De(t)),zo(e,n)}function zo(e,t,n){const o=e.type;e.render||(e.render=o.render||tt)}function Eo(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(De(Ie(e.exposed)),{get:(t,n)=>n in t?t[n]:n in vo?vo[n](e):void 0}))}function Ao(e,t,n,o){let r;try{r=o?e(...o):e()}catch(e){To(e,t,n)}return r}function Lo(e,t,n,o){if(pt(e)){const r=Ao(e,t,n,o);return r&&vt(r)&&r.catch((e=>{To(e,t,n)})),r}const r=[];for(let a=0;a>>1;Qo(Io[o])Qo(e)-Qo(t))),No=0;Nonull==e.id?1/0:e.id;function Yo(e){Ro=!1,Oo=!0,Jo(e),Io.sort(((e,t)=>Qo(e)-Qo(t)));try{for(jo=0;joe.value,u=!!e._shallow):Le(e)?(s=()=>e,o=!0):ct(e)?(d=!0,u=e.some(Le),s=()=>e.map((e=>Pe(e)?e.value:Le(e)?er(e):pt(e)?Ao(e,l,2):void 0))):s=pt(e)?t?()=>Ao(e,l,2):()=>{if(!l||!l.isUnmounted)return c&&c(),Lo(e,l,3,[p])}:tt,t&&o){const e=s;s=()=>er(e())}let p=e=>{c=m.onStop=()=>{Ao(e,l,4)}};if(Co)return p=tt,t?n&&Lo(t,l,3,[s(),d?[]:void 0,p]):s(),tt;let h=d?[]:Xo;const f=()=>{if(m.active)if(t){const e=m.run();(o||u||(d?e.some(((e,t)=>Et(e,h[t]))):Et(e,h)))&&(c&&c(),Lo(t,l,3,[e,h===Xo?void 0:h,p]),h=e)}else m.run()};let v;f.allowRecurse=!!t,v="sync"===r?f:"post"===r?()=>Rn(f,l&&l.suspense):()=>{!l||l.isMounted?function(e){Zo(e,Mo,$o,Uo)}(f):f()};const m=new R(s,v);return t?n?f():h=m.run():"post"===r?Rn(m.run.bind(m),l&&l.suspense):m.run(),()=>{m.stop(),l&&l.scope&&((e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)})(l.scope.effects,m)}}(e,t,n)}function er(e,t){if(!ft(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),Pe(e))er(e.value,t);else if(ct(e))for(let n=0;n{er(e,t)}));else if(bt(e))for(const n in e)er(e[n],t);return e}function tr(e,t,n){const o=arguments.length;return 2===o?ft(t)&&!ct(t)?Gn(t)?ao(e,null,[t]):ao(e,t):ao(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&Gn(n)&&(n=[n]),ao(e,t,n))}Symbol("");const nr="3.2.21";function or(e,t){const n=Object.create(null),o=e.split(",");for(let e=0;e!!n[e.toLowerCase()]:e=>!!n[e]}const rr=or("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function ar(e){return!!e||""===e}function ir(e,t){if(e===t)return!0;let n=pr(e),o=pr(t);if(n||o)return!(!n||!o)&&e.getTime()===t.getTime();if(n=ur(e),o=ur(t),n||o)return!(!n||!o)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&oir(e,t)))}const sr=/^on[^a-z]/,cr=Object.assign,ur=(Object.prototype.hasOwnProperty,Array.isArray),dr=e=>"[object Set]"===gr(e),pr=e=>e instanceof Date,hr=e=>"function"==typeof e,fr=e=>"string"==typeof e,vr=e=>null!==e&&"object"==typeof e,mr=Object.prototype.toString,gr=e=>mr.call(e),br=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},wr=/-(\w)/g,yr=(br((e=>e.replace(wr,((e,t)=>t?t.toUpperCase():"")))),/\B([A-Z])/g),kr=br((e=>e.replace(yr,"-$1").toLowerCase())),xr=br((e=>e.charAt(0).toUpperCase()+e.slice(1))),_r=(br((e=>e?`on${xr(e)}`:"")),e=>{const t=parseFloat(e);return isNaN(t)?e:t}),Cr="undefined"!=typeof document?document:null,Sr=new Map,zr={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t?Cr.createElementNS("http://www.w3.org/2000/svg",e):Cr.createElement(e,n?{is:n}:void 0);return"select"===e&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:e=>Cr.createTextNode(e),createComment:e=>Cr.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Cr.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,o){const r=n?n.previousSibling:t.lastChild;let a=Sr.get(e);if(!a){const t=Cr.createElement("template");if(t.innerHTML=o?`${e}`:e,a=t.content,o){const e=a.firstChild;for(;e.firstChild;)a.appendChild(e.firstChild);a.removeChild(e)}Sr.set(e,a)}return t.insertBefore(a.cloneNode(!0),n),[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Er=/\s*!important$/;function Ar(e,t,n){if(ur(n))n.forEach((n=>Ar(e,t,n)));else if(t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=Tr[t];if(n)return n;let o=xt(t);if("filter"!==o&&o in e)return Tr[t]=o;o=xr(o);for(let n=0;ndocument.createEvent("Event").timeStamp&&(Rr=()=>performance.now());const e=navigator.userAgent.match(/firefox\/(\d+)/i);Ir=!!(e&&Number(e[1])<=53)}let jr=0;const $r=Promise.resolve(),Mr=()=>{jr=0};function Ur(e,t,n,o){e.addEventListener(t,n,o)}const Pr=/(?:Once|Passive|Capture)$/,Fr=/^on[a-z]/;"undefined"!=typeof HTMLElement&&HTMLElement;const Nr="transition",Vr="animation",Dr=(e,{slots:t})=>tr(en,function(e){const t={};for(const n in e)n in Br||(t[n]=e[n]);if(!1===e.css)return t;const{name:n="v",type:o,duration:r,enterFromClass:a=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:s=a,appearActiveClass:c=i,appearToClass:u=l,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,f=function(e){if(null==e)return null;if(vr(e))return[Hr(e.enter),Hr(e.leave)];{const t=Hr(e);return[t,t]}}(r),v=f&&f[0],m=f&&f[1],{onBeforeEnter:g,onEnter:b,onEnterCancelled:w,onLeave:y,onLeaveCancelled:k,onBeforeAppear:x=g,onAppear:_=b,onAppearCancelled:C=w}=t,S=(e,t,n)=>{Jr(e,t?u:l),Jr(e,t?c:i),n&&n()},z=(e,t)=>{Jr(e,h),Jr(e,p),t&&t()},E=e=>(t,n)=>{const r=e?_:b,i=()=>S(t,e,n);qr(r,[t,i]),Kr((()=>{Jr(t,e?s:a),Zr(t,e?u:l),Wr(r)||Yr(t,o,v,i)}))};return cr(t,{onBeforeEnter(e){qr(g,[e]),Zr(e,a),Zr(e,i)},onBeforeAppear(e){qr(x,[e]),Zr(e,s),Zr(e,c)},onEnter:E(!1),onAppear:E(!0),onLeave(e,t){const n=()=>z(e,t);Zr(e,d),document.body.offsetHeight,Zr(e,p),Kr((()=>{Jr(e,d),Zr(e,h),Wr(y)||Yr(e,o,m,n)})),qr(y,[e,n])},onEnterCancelled(e){S(e,!1),qr(w,[e])},onAppearCancelled(e){S(e,!0),qr(C,[e])},onLeaveCancelled(e){z(e),qr(k,[e])}})}(e),t);Dr.displayName="Transition";const Br={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},qr=(Dr.props=cr({},en.props,Br),(e,t=[])=>{ur(e)?e.forEach((e=>e(...t))):e&&e(...t)}),Wr=e=>!!e&&(ur(e)?e.some((e=>e.length>1)):e.length>1);function Hr(e){return _r(e)}function Zr(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function Jr(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function Kr(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let Qr=0;function Yr(e,t,n,o){const r=e._endId=++Qr,a=()=>{r===e._endId&&o()};if(n)return setTimeout(a,n);const{type:i,timeout:l,propCount:s}=function(e,t){const n=window.getComputedStyle(e),o=e=>(n[e]||"").split(", "),r=o("transitionDelay"),a=o("transitionDuration"),i=Xr(r,a),l=o("animationDelay"),s=o("animationDuration"),c=Xr(l,s);let u=null,d=0,p=0;return t===Nr?i>0&&(u=Nr,d=i,p=a.length):t===Vr?c>0&&(u=Vr,d=c,p=s.length):(d=Math.max(i,c),u=d>0?i>c?Nr:Vr:null,p=u?u===Nr?a.length:s.length:0),{type:u,timeout:d,propCount:p,hasTransform:u===Nr&&/\b(transform|all)(,|$)/.test(n.transitionProperty)}}(e,t);if(!i)return o();const c=i+"end";let u=0;const d=()=>{e.removeEventListener(c,p),a()},p=t=>{t.target===e&&++u>=s&&d()};setTimeout((()=>{uGr(t)+Gr(e[n]))))}function Gr(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}new WeakMap,new WeakMap;const ea=e=>{const t=e.props["onUpdate:modelValue"];return ur(t)?e=>((e,t)=>{for(let n=0;n{if(t.target.composing)return;let o=e.value;n?o=o.trim():a&&(o=_r(o)),e._assign(o)})),n&&Ur(e,"change",(()=>{e.value=e.value.trim()})),t||(Ur(e,"compositionstart",ta),Ur(e,"compositionend",na),Ur(e,"change",na))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},a){if(e._assign=ea(a),e.composing)return;if(document.activeElement===e){if(n)return;if(o&&e.value.trim()===t)return;if((r||"number"===e.type)&&_r(e.value)===t)return}const i=null==t?"":t;e.value!==i&&(e.value=i)}},ra={deep:!0,created(e,t,n){e._assign=ea(n),Ur(e,"change",(()=>{const t=e._modelValue,n=ca(e),o=e.checked,r=e._assign;if(ur(t)){const e=lr(t,n),a=-1!==e;if(o&&!a)r(t.concat(n));else if(!o&&a){const n=[...t];n.splice(e,1),r(n)}}else if(dr(t)){const e=new Set(t);o?e.add(n):e.delete(n),r(e)}else r(ua(e,o))}))},mounted:aa,beforeUpdate(e,t,n){e._assign=ea(n),aa(e,t,n)}};function aa(e,{value:t,oldValue:n},o){e._modelValue=t,ur(t)?e.checked=lr(t,o.props.value)>-1:dr(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=ir(t,ua(e,!0)))}const ia={created(e,{value:t},n){e.checked=ir(t,n.props.value),e._assign=ea(n),Ur(e,"change",(()=>{e._assign(ca(e))}))},beforeUpdate(e,{value:t,oldValue:n},o){e._assign=ea(o),t!==n&&(e.checked=ir(t,o.props.value))}},la={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const r=dr(t);Ur(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?_r(ca(e)):ca(e)));e._assign(e.multiple?r?new Set(t):t:t[0])})),e._assign=ea(o)},mounted(e,{value:t}){sa(e,t)},beforeUpdate(e,t,n){e._assign=ea(n)},updated(e,{value:t}){sa(e,t)}};function sa(e,t){const n=e.multiple;if(!n||ur(t)||dr(t)){for(let o=0,r=e.options.length;o-1:r.selected=t.has(a);else if(ir(ca(r),t))return void(e.selectedIndex!==o&&(e.selectedIndex=o))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function ca(e){return"_value"in e?e._value:e.value}function ua(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const da={created(e,t,n){pa(e,t,n,null,"created")},mounted(e,t,n){pa(e,t,n,null,"mounted")},beforeUpdate(e,t,n,o){pa(e,t,n,o,"beforeUpdate")},updated(e,t,n,o){pa(e,t,n,o,"updated")}};function pa(e,t,n,o,r){let a;switch(e.tagName){case"SELECT":a=la;break;case"TEXTAREA":a=oa;break;default:switch(n.props&&n.props.type){case"checkbox":a=ra;break;case"radio":a=ia;break;default:a=oa}}const i=a[r];i&&i(e,t,n,o)}const ha=cr({patchProp:(e,t,n,o,r=!1,a,i,l,s)=>{"class"===t?function(e,t,n){const o=e._vtc;o&&(t=(t?[t,...o]:[...o]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,o,r):"style"===t?function(e,t,n){const o=e.style,r=fr(n);if(n&&!r){for(const e in n)Ar(o,e,n[e]);if(t&&!fr(t))for(const e in t)null==n[e]&&Ar(o,e,"")}else{const a=o.display;r?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=a)}}(e,n,o):(e=>sr.test(e))(t)?(e=>e.startsWith("onUpdate:"))(t)||function(e,t,n,o,r=null){const a=e._vei||(e._vei={}),i=a[t];if(o&&i)i.value=o;else{const[n,l]=function(e){let t;if(Pr.test(e)){let n;for(t={};n=e.match(Pr);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[kr(e.slice(2)),t]}(t);if(o){const i=a[t]=function(e,t){const n=e=>{const o=e.timeStamp||Rr();(Ir||o>=n.attached-1)&&Lo(function(e,t){if(ur(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>t=>!t._stopped&&e(t)))}return t}(e,n.value),t,5,[e])};return n.value=e,n.attached=jr||($r.then(Mr),jr=Rr()),n}(o,r);Ur(e,n,i,l)}else i&&(function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,i,l),a[t]=void 0)}}(e,t,0,o,i):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,o){return o?"innerHTML"===t||"textContent"===t||!!(t in e&&Fr.test(t)&&hr(n)):"spellcheck"!==t&&"draggable"!==t&&("form"!==t&&(("list"!==t||"INPUT"!==e.tagName)&&(("type"!==t||"TEXTAREA"!==e.tagName)&&((!Fr.test(t)||!fr(n))&&t in e))))}(e,t,o,r))?function(e,t,n,o,r,a,i){if("innerHTML"===t||"textContent"===t)return o&&i(o,r,a),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName){e._value=n;const o=null==n?"":n;return e.value!==o&&(e.value=o),void(null==n&&e.removeAttribute(t))}if(""===n||null==n){const o=typeof e[t];if("boolean"===o)return void(e[t]=ar(n));if(null==n&&"string"===o)return e[t]="",void e.removeAttribute(t);if("number"===o){try{e[t]=0}catch(e){}return void e.removeAttribute(t)}}try{e[t]=n}catch(e){}}(e,t,o,a,i,l,s):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),function(e,t,n,o,r){if(o&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(Or,t.slice(6,t.length)):e.setAttributeNS(Or,t,n);else{const o=rr(t);null==n||o&&!ar(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}(e,t,o,r))}},zr);let fa;const va=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if("object"==typeof e&&e.errno)throw new TypeError("Fetch ".concat(t," failed with ").concat(e.errno,": ").concat(e.errmsg));return e},ma=e=>{try{e=decodeURI(e)}catch(e){}return e},ga=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/\/$/u,"")},ba=e=>/^(https?:)?\/\//.test(e),wa=["mp","identicon","monsterid","wavatar","robohash","retro",""],ya=["nick","mail","link"],ka=e=>e&&wa.includes(e)?e:"mp",xa=e=>e.filter((e=>ya.includes(e))),_a="zh-CN",Ca=e=>new Promise(((t,n)=>{const o=new FileReader;o.readAsDataURL(e),o.onload=()=>{var e;return t((null===(e=o.result)||void 0===e?void 0:e.toString())||"")},o.onerror=n})),Sa=e=>!0===e?'

Tex is not available in preview

':'Tex is not available in preview',za=["nick","nickError","mail","mailError","link","optional","placeholder","sofa","submit","reply","cancelReply","comment","refresh","more","preview","emoji","uploadImage","seconds","minutes","hours","days","now","uploading","login","logout","admin","sticky","word","wordHint","anonymous"],Ea=e=>Object.fromEntries(e.map(((e,t)=>[za[t],e]))),Aa=Ea(["NickName","NickName cannot be less than 3 bytes.","E-Mail","Please confirm your email address.","Website","Optional","Comment here...","No comment yet.","Submit","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"]),La=Ea(["ニックネーム","3バイト以上のニックネームをご入力ください.","メールアドレス","メールアドレスをご確認ください.","サイト","オプション","ここにコメント","コメントしましょう~","提出する","返信する","キャンセル","コメント","更新","さらに読み込む","プレビュー","絵文字","画像をアップロード","秒前","分前","時間前","日前","たっだ今","アップロード","ログインする","ログアウト","管理者","トップに置く","ワード","コメントは $0 から $1 ワードの間でなければなりません!\n 現在の単語番号: $2","匿名"]),Ta=Ea(["昵称","昵称不能少于3个字符","邮箱","请填写正确的邮件地址","网址","可选","欢迎评论","来发评论吧~","提交","回复","取消回复","评论","刷新","加载更多...","预览","表情","上传图片","秒前","分钟前","小时前","天前","刚刚","正在上传","登录","退出","博主","置顶","字","评论字数应在 $0 到 $1 字之间!\n当前字数:$2","匿名"]),Oa=Ea(["暱稱","郵箱","網址","可選","暱稱不能少於3個字元","請填寫正確的郵件地址","歡迎評論","來發評論吧~","提交","回覆","取消回覆","評論","刷新","載入更多...","預覽","表情","上傳圖片","秒前","分鐘前","小時前","天前","剛剛","正在上傳","登錄","退出","博主","置頂","字","評論字數應在 $0 到 $1 字之間!\n當前字數:$2","匿名"]),Ra=Ea(["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","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"]),Ia={zh:Ta,"zh-cn":Ta,"zh-CN":Ta,"zh-tw":Oa,"zh-TW":Oa,en:Aa,"en-US":Aa,jp:La,"jp-jp":La,"jp-JP":La,"pt-br":Ra,"pt-BR":Ra},ja=e=>{let t={};const n=localStorage.getItem(e);if(n)try{t=JSON.parse(n)}catch(e){}return{get:e=>t[e]||null,set(n,o){try{t[n]=JSON.parse(JSON.stringify(o)),localStorage.setItem(e,JSON.stringify(t))}catch(e){}},update(n){t=JSON.parse(JSON.stringify(n)),localStorage.setItem(e,JSON.stringify(t))}}};let $a;const Ma=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return"".concat(t,"/").concat(n).concat(e).concat(o?".".concat(o):"")};var Ua=n(948),Pa=n.n(Ua);const Fa=e=>{const t=ga(e);return ba(t)?t:"https://".concat(t)},Na=(e,t)=>"function"==typeof e?e:!1!==e&&t,Va=e=>{let{el:t="#waline",serverURL:n,placeholder:o,langMode:r,emojiCDN:a,emojiMaps:i,requiredFields:l=[],anonymous:s,avatarCDN:c,avatar:u,avatarForce:d,previewMath:p,path:h=location.pathname,lang:f=_a,locale:v=r,emoji:m=["https://cdn.jsdelivr.net/gh/walinejs/emojis@1.0.0/weibo"],meta:g=["nick","mail","link"],requiredMeta:b=l,pageSize:w=10,wordLimit:y,uploadImage:k,highlight:x,tex:_=p,copyright:C=!0,login:S=(!0===s?"disable":!1===s?"force":"enable"),...z}=e;const E=Ia[f]||Ia[_a];o&&(E.placeholder=o);const A=a&&"object"==typeof i?Promise.resolve(function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const n={};for(const o in e)n[o]=/(?:https?:)?\/\//.test(e[o])?e[o]:"".concat(t).concat(e[o]);return{tabs:[{name:"Emoji",icon:Object.values(n).pop()||"",items:Object.keys(n)}],map:n}}(i,a)):(L=m,Promise.all(L.map((e=>"string"==typeof e?(e=>{$a||($a=ja("WALINE_EMOJI"));const t=Boolean(/@[0-9]+\.[0-9]+\.[0-9]+/.test(e));if(t){const t=$a.get(e);if(t)return Promise.resolve(t)}return fetch("".concat(e,"/info.json")).then((e=>e.json())).then((n=>{const o={folder:e,...n};return t&&$a.set(e,o),o}))})(ga(e)):Promise.resolve(e)))).then((e=>{const t={tabs:[],map:{}};return e.forEach((e=>{const{name:n,folder:o,icon:r,prefix:a,type:i,items:l}=e;t.tabs.push({name:n,icon:Ma(r,o,a,i),items:l.map((e=>{const n="".concat(a||"").concat(e);return t.map[n]=Ma(e,o,a,i),n}))})})),t})));var L;return{el:t,serverURL:Fa(n),path:ma(h),lang:f,locale:{...E,..."object"==typeof v?v:{}},emoji:A,wordLimit:Array.isArray(y)?y:!!y&&[0,y],meta:xa(g),requiredMeta:xa(b),pageSize:w,avatar:{cdn:c||"https://seccdn.libravatar.org/avatar/",param:"?d=".concat(ka(u)).concat(d?"&q=".concat(Math.random().toString(32).substring(2)):""),default:!u&&!c,hide:"hide"===u},uploadImage:Na(k,Ca),highlight:Na(x,Pa()),tex:Na(_,Sa),copyright:C,login:S,...z}},Da=e=>e.type.includes("image"),Ba=e=>{const t=Array.from(e).find(Da);return!!t&&t.getAsFile()},qa="{--waline-white:#000;--waline-light-grey:#666;--waline-dark-grey:#999;--waline-text-color:#888;--waline-bgcolor:#1e1e1e;--waline-bgcolor-light:#272727;--waline-bgcolor-hover: #444;--waline-border-color:#333;--waline-disable-bgcolor:#444;--waline-disable-color:#272727;--waline-bq-color:#272727;--waline-info-bgcolor:#272727;--waline-info-color:#666}",Wa=(e,t)=>{if(!document.body.hasAttribute(t)){const n=document.createElement("style");n.appendChild(document.createTextNode(e)),document.head.appendChild(n),document.body.setAttribute(t,"")}},Ha=()=>{Wa('\n/* This Source Code Form is subject to the terms of the Mozilla Public\n * License, v. 2.0. If a copy of the MPL was not distributed with this\n * file, You can obtain one at http://mozilla.org/MPL/2.0/. */\n\n/* See https://github.com/fred-wang/mathml.css */\n\n@namespace "http://www.w3.org/1998/Math/MathML";\nbody[waline-math] .v math{display:inline;font-size:0;font-family:Cambria Math,Latin Modern Math;text-indent:0}body[waline-math] .v math>*{font-size:14px}body[waline-math] .v math[display=block]{display:block;font-size:0;text-align:center}body[waline-math] .v math[display=block]>*{font-size:16px}body[waline-math] .v mfrac{display:inline-block !important;vertical-align:-50%;border-collapse:collapse;text-align:center}body[waline-math] .v mfrac>*{display:block !important}body[waline-math] .v mfrac>*+*{display:inline-block !important;vertical-align:top}body[waline-math] .v mfrac:not([linethickness="0"])>*:first-child{border-bottom:solid thin}body[waline-math] .v msub>*:nth-child(2),body[waline-math] .v msubsup>*:nth-child(2),body[waline-math] .v mmultiscripts>*:nth-child(2n+2),body[waline-math] .v mmultiscripts>mprescripts~*:nth-child(2n+3){vertical-align:sub;font-size:.8em}body[waline-math] .v msup>*:nth-child(2),body[waline-math] .v msubsup>*:nth-child(3),body[waline-math] .v mmultiscripts>*:nth-child(2n+3),body[waline-math] .v mmultiscripts>mprescripts~*:nth-child(2n+2){vertical-align:super;font-size:.8em}body[waline-math] .v mprescripts::after{content:";"}body[waline-math] .v munder,body[waline-math] .v mover,body[waline-math] .v munderover{display:inline-flex !important;flex-direction:column}body[waline-math] .v munder>*:nth-child(2),body[waline-math] .v munderover>*:nth-child(2){order:1;font-size:.8em}body[waline-math] .v mover>*:nth-child(2),body[waline-math] .v munderover>*:nth-child(3){order:-1;font-size:.8em}body[waline-math] .v munder{vertical-align:text-top}body[waline-math] .v mover{vertical-align:text-bottom}body[waline-math] .v munderover{vertical-align:middle}body[waline-math] .v msqrt,body[waline-math] .v mroot{display:inline-flex !important;vertical-align:middle;margin-left:.5em;border-top:solid thin}body[waline-math] .v msqrt::before,body[waline-math] .v mroot::before{content:"√";margin-left:-0.5em}body[waline-math] .v mroot>*:nth-child(2){order:-1;margin-right:.25em;margin-left:-0.75em;font-size:.8em}body[waline-math] .v menclose{display:inline-table !important;border-spacing:.4ex 0;border-collapse:separate}body[waline-math] .v menclose[notation*=top],body[waline-math] .v menclose[notation*=actuarial]{border-top:solid thin}body[waline-math] .v menclose[notation*=bottom],body[waline-math] .v menclose[notation*=madruwb]{border-bottom:solid thin}body[waline-math] .v menclose[notation*=right],body[waline-math] .v menclose[notation*=actuarial],body[waline-math] .v menclose[notation*=madruwb]{border-right:solid thin}body[waline-math] .v menclose[notation*=left]{border-left:solid thin}body[waline-math] .v menclose[notation*=box],body[waline-math] .v menclose[notation*=roundedbox],body[waline-math] .v menclose[notation*=circle]{border:solid thin}body[waline-math] .v menclose[notation*=roundedbox]{border-radius:15%}body[waline-math] .v menclose[notation*=circle]{border-radius:50%}body[waline-math] .v menclose[notation*=horizontalstrike]{text-decoration:line-through}body[waline-math] .v mtable{display:inline-table !important;vertical-align:middle;text-align:center}body[waline-math] .v mtr{display:table-row !important}body[waline-math] .v mtd{display:table-cell !important;padding:0 .5ex}body[waline-math] .v mspace{margin:.2em}body[waline-math] .v mi{font-style:italic}body[waline-math] .v mo{margin-right:.2em;margin-left:.2em}body[waline-math] .v ms::before,body[waline-math] .v ms::after{content:\'"\'}body[waline-math] .v ms[lquote]::before{content:attr(lquote)}body[waline-math] .v ms[lquote]::after{content:attr(rquote)}body[waline-math] .v [mathvariant=bold],body[waline-math] .v [mathvariant=bold-italic],body[waline-math] .v [mathvariant=bold-sans-serif],body[waline-math] .v [mathvariant=sans-serif-bold-italic]{font-weight:bold;font-style:normal}body[waline-math] .v [mathvariant=monospace]{font-style:normal;font-family:monospace}body[waline-math] .v [mathvariant=sans-serif],body[waline-math] .v [mathvariant=bold-sans-serif],body[waline-math] .v [mathvariant=sans-serif-italic],body[waline-math] .v [mathvariant=sans-serif-bold-italic]{font-style:normal;font-family:sans-serif}body[waline-math] .v [mathvariant=italic],body[waline-math] .v [mathvariant=bold-italic],body[waline-math] .v [mathvariant=sans-serif-italic],body[waline-math] .v [mathvariant=sans-serif-bold-italic]{font-style:italic}body[waline-math] .v [mathvariant=normal]{font-style:normal}body[waline-math] .v mphantom{visibility:hidden}body[waline-math] .v merror{outline:solid thin red}body[waline-math] .v merror::before{content:"Error: "}body[waline-math] .v semantics>*:first-child{display:inline}body[waline-math] .v annotation,body[waline-math] .v annotation-xml{display:none !important;font-family:monospace}body[waline-math] .v math:active>semantics>*:first-child{display:none !important}body[waline-math] .v math:active annotation:first-of-type{display:inline !important}',"waline-math-style"),document.body.insertAdjacentHTML("afterbegin","
");const e=document.body.firstChild,t=e.firstChild.firstChild.getBoundingClientRect();document.body.removeChild(e),(Math.abs(t.height-23)>1||Math.abs(t.width-77)>1)&&document.body.setAttribute("waline-math","")},Za=e=>e instanceof HTMLElement?e:"string"==typeof e?document.querySelector(e):null;let Ja={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 Ka=/[&<>"']/,Qa=/[&<>"']/g,Ya=/[<>"']|&(?!#?\w+;)/,Xa=/[<>"']|&(?!#?\w+;)/g,Ga={"&":"&","<":"<",">":">",'"':""","'":"'"},ei=e=>Ga[e];function ti(e,t){if(t){if(Ka.test(e))return e.replace(Qa,ei)}else if(Ya.test(e))return e.replace(Xa,ei);return e}const ni=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function oi(e){return e.replace(ni,((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 ri=/(^|[^\[])\^/g;function ai(e,t){e=e.source||e,t=t||"";const n={replace:(t,o)=>(o=(o=o.source||o).replace(ri,"$1"),e=e.replace(t,o),n),getRegex:()=>new RegExp(e,t)};return n}const ii=/[^\w:]/g,li=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function si(e,t,n){if(e){let e;try{e=decodeURIComponent(oi(n)).replace(ii,"").toLowerCase()}catch(e){return null}if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}t&&!li.test(n)&&(n=function(e,t){ci[" "+e]||(ui.test(e)?ci[" "+e]=e+"/":ci[" "+e]=mi(e,"/",!0));const n=-1===(e=ci[" "+e]).indexOf(":");return"//"===t.substring(0,2)?n?t:e.replace(di,"$1")+t:"/"===t.charAt(0)?n?t:e.replace(pi,"$1")+t:e+t}(t,n));try{n=encodeURI(n).replace(/%25/g,"%")}catch(e){return null}return n}const ci={},ui=/^[^:]+:\/*[^/]*$/,di=/^([^:]+:)[\s\S]*$/,pi=/^([^:]+:\/*[^/]*)[\s\S]*$/,hi={exec:function(){}};function fi(e){let t,n,o=1;for(;o{let o=!1,r=t;for(;--r>=0&&"\\"===n[r];)o=!o;return o?"|":" |"})).split(/ \|/);let o=0;if(n[0].trim()||n.shift(),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 wi(e,t,n,o){const r=t.href,a=t.title?ti(t.title):null,i=e[1].replace(/\\([\[\]])/g,"$1");if("!"!==e[0].charAt(0)){o.state.inLink=!0;const e={type:"link",raw:n,href:r,title:a,text:i,tokens:o.inlineTokens(i,[])};return o.state.inLink=!1,e}return{type:"image",raw:n,href:r,title:a,text:ti(i)}}class yi{constructor(e){this.options=e||Ja}space(e){const t=this.rules.block.newline.exec(e);if(t)return t[0].length>1?{type:"space",raw:t[0]}:{raw:"\n"}}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:mi(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 o=n[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(null===t)return e;const[n]=t;return n.length>=o.length?e.slice(o.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=mi(e,"#");this.options.pedantic?e=t.trim():t&&!/ $/.test(t)||(e=t.trim())}const n={type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:[]};return this.lexer.inline(n.text,n.tokens),n}}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(/^ *> ?/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,o,r,a,i,l,s,c,u,d,p=t[1].trim();const h=p.length>1,f={type:"list",raw:"",ordered:h,start:h?+p.slice(0,-1):"",loose:!1,items:[]};p=h?`\\d{1,9}\\${p.slice(-1)}`:`\\${p}`,this.options.pedantic&&(p=h?p:"[*+-]");const v=new RegExp(`^( {0,3}${p})((?: [^\\n]*| *)(?:\\n[^\\n]*)*(?:\\n|$))`);for(;e&&!this.rules.block.hr.test(e)&&(t=v.exec(e));){u=t[2].split("\n"),this.options.pedantic?(a=2,d=u[0].trimLeft()):(a=t[2].search(/[^ ]/),a=t[1].length+(a>4?1:a),d=u[0].slice(a-t[1].length)),l=!1,n=t[0],!u[0]&&/^ *$/.test(u[1])&&(n=t[1]+u.slice(0,2).join("\n")+"\n",f.loose=!0,u=[]);const p=new RegExp(`^ {0,${Math.min(3,a-1)}}(?:[*+-]|\\d{1,9}[.)])`);for(i=1;i=a)&&c.trim()){n=t[1]+u.slice(0,i).join("\n")+"\n";break}d+="\n"+c.slice(a)}else c.trim()||(l=!0),c.search(/[^ ]/)>=a?d+="\n"+c.slice(a):d+="\n"+c}f.loose||(s?f.loose=!0:/\n *\n *$/.test(n)&&(s=!0)),this.options.gfm&&(o=/^\[[ xX]\] /.exec(d),o&&(r="[ ] "!==o[0],d=d.replace(/^\[[ xX]\] +/,""))),f.items.push({type:"list_item",raw:n,task:!!o,checked:r,loose:!1,text:d}),f.raw+=n,e=e.slice(n.length)}f.items[f.items.length-1].raw=n.trimRight(),f.items[f.items.length-1].text=d.trimRight(),f.raw=f.raw.trimRight();const m=f.items.length;for(i=0;i"space"===e.type))&&(f.loose=!0,f.items[i].loose=!0);return f}}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]};return this.options.sanitize&&(e.type="paragraph",e.text=this.options.sanitizer?this.options.sanitizer(t[0]):ti(t[0]),e.tokens=[],this.lexer.inline(e.text,e.tokens)),e}}def(e){const t=this.rules.block.def.exec(e);if(t)return t[3]&&(t[3]=t[3].substring(1,t[3].length-1)),{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:vi(t[1]).map((e=>({text:e}))),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]?t[3].replace(/\n$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let n,o,r,a,i=e.align.length;for(n=0;n({text:e})));for(i=e.header.length,o=0;o/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]):ti(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=mi(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 o=0,r=0;for(;r-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],o="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);e&&(n=e[1],o=e[3])}else o=t[3]?t[3].slice(1,-1):"";return n=n.trim(),/^$/.test(e)?n.slice(1):n.slice(1,-1)),wi(t,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:o?o.replace(this.rules.inline._escapes,"$1"):o},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 wi(n,e,n[0],this.lexer)}}emStrong(e,t,n=""){let o=this.rules.inline.emStrong.lDelim.exec(e);if(!o)return;if(o[3]&&n.match(/[\p{L}\p{N}]/u))return;const r=o[1]||o[2]||"";if(!r||r&&(""===n||this.rules.inline.punctuation.exec(n))){const n=o[0].length-1;let r,a,i=n,l=0;const s="*"===o[0][0]?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;for(s.lastIndex=0,t=t.slice(-1*e.length+n);null!=(o=s.exec(t));){if(r=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!r)continue;if(a=r.length,o[3]||o[4]){i+=a;continue}if((o[5]||o[6])&&n%3&&!((n+a)%3)){l+=a;continue}if(i-=a,i>0)continue;if(a=Math.min(a,a+i+l),Math.min(n,a)%2){const t=e.slice(1,n+o.index+a);return{type:"em",raw:e.slice(0,n+o.index+a+1),text:t,tokens:this.lexer.inlineTokens(t,[])}}const t=e.slice(2,n+o.index+a-1);return{type:"strong",raw:e.slice(0,n+o.index+a+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),o=/^ /.test(e)&&/ $/.test(e);return n&&o&&(e=e.substring(1,e.length-1)),e=ti(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,o;return"@"===n[2]?(e=ti(this.options.mangle?t(n[1]):n[1]),o="mailto:"+e):(e=ti(n[1]),o=e),{type:"link",raw:n[0],text:e,href:o,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let e,o;if("@"===n[2])e=ti(this.options.mangle?t(n[0]):n[0]),o="mailto:"+e;else{let t;do{t=n[0],n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(t!==n[0]);e=ti(n[0]),o="www."===n[1]?"http://"+e:e}return{type:"link",raw:n[0],text:e,href:o,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]):ti(n[0]):n[0]:ti(this.options.smartypants?t(n[0]):n[0]),{type:"text",raw:n[0],text:e}}}}const ki={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*\n)|~{3,})([^\n]*)\n(?:|([\s\S]*?)\n)(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)( [^\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:hi,lheading:/^([^\n]+)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html| +\n)[^\n]+)*)/,text:/^[^\n]+/,_label:/(?!\s*\])(?:\\[\[\]]|[^\[\]])+/,_title:/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/};ki.def=ai(ki.def).replace("label",ki._label).replace("title",ki._title).getRegex(),ki.bullet=/(?:[*+-]|\d{1,9}[.)])/,ki.listItemStart=ai(/^( *)(bull) */).replace("bull",ki.bullet).getRegex(),ki.list=ai(ki.list).replace(/bull/g,ki.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+ki.def.source+")").getRegex(),ki._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",ki._comment=/|$)/,ki.html=ai(ki.html,"i").replace("comment",ki._comment).replace("tag",ki._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),ki.paragraph=ai(ki._paragraph).replace("hr",ki.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",ki._tag).getRegex(),ki.blockquote=ai(ki.blockquote).replace("paragraph",ki.paragraph).getRegex(),ki.normal=fi({},ki),ki.gfm=fi({},ki.normal,{table:"^ *([^\\n ].*\\|.*)\\n {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"}),ki.gfm.table=ai(ki.gfm.table).replace("hr",ki.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",ki._tag).getRegex(),ki.pedantic=fi({},ki.normal,{html:ai("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",ki._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:hi,paragraph:ai(ki.normal._paragraph).replace("hr",ki.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",ki.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()});const xi={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:hi,tag:"^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(?!\s*\])((?:\\[\[\]]?|[^\[\]\\])+)\]/,nolink:/^!?\[(?!\s*\])((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^[^_*]*?\_\_[^_*]*?\*[^_*]*?(?=\_\_)|[punct_](\*+)(?=[\s]|$)|[^punct*_\s](\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|[^punct*_\s](\*+)(?=[^punct*_\s])/,rDelimUnd:/^[^_*]*?\*\*[^_*]*?\_[^_*]*?(?=\*\*)|[punct*](\_+)(?=[\s]|$)|[^punct*_\s](\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:hi,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\.5&&(n="x"+n.toString(16)),o+="&#"+n+";";return o}xi._punctuation="!\"#$%&'()+\\-.,/:;<=>?@\\[\\]`^{|}~",xi.punctuation=ai(xi.punctuation).replace(/punctuation/g,xi._punctuation).getRegex(),xi.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g,xi.escapedEmSt=/\\\*|\\_/g,xi._comment=ai(ki._comment).replace("(?:--\x3e|$)","--\x3e").getRegex(),xi.emStrong.lDelim=ai(xi.emStrong.lDelim).replace(/punct/g,xi._punctuation).getRegex(),xi.emStrong.rDelimAst=ai(xi.emStrong.rDelimAst,"g").replace(/punct/g,xi._punctuation).getRegex(),xi.emStrong.rDelimUnd=ai(xi.emStrong.rDelimUnd,"g").replace(/punct/g,xi._punctuation).getRegex(),xi._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g,xi._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,xi._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])?)+(?![-_])/,xi.autolink=ai(xi.autolink).replace("scheme",xi._scheme).replace("email",xi._email).getRegex(),xi._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/,xi.tag=ai(xi.tag).replace("comment",xi._comment).replace("attribute",xi._attribute).getRegex(),xi._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,xi._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/,xi._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/,xi.link=ai(xi.link).replace("label",xi._label).replace("href",xi._href).replace("title",xi._title).getRegex(),xi.reflink=ai(xi.reflink).replace("label",xi._label).getRegex(),xi.reflinkSearch=ai(xi.reflinkSearch,"g").replace("reflink",xi.reflink).replace("nolink",xi.nolink).getRegex(),xi.normal=fi({},xi),xi.pedantic=fi({},xi.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:ai(/^!?\[(label)\]\((.*?)\)/).replace("label",xi._label).getRegex(),reflink:ai(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",xi._label).getRegex()}),xi.gfm=fi({},xi.normal,{escape:ai(xi.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]*?(?:(?=[\\!!(n=o.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.space(e))e=e.substring(n.raw.length),n.type&&t.push(n);else if(n=this.tokenizer.code(e))e=e.substring(n.raw.length),o=t[t.length-1],!o||"paragraph"!==o.type&&"text"!==o.type?t.push(n):(o.raw+="\n"+n.raw,o.text+="\n"+n.text,this.inlineQueue[this.inlineQueue.length-1].src=o.text);else if(n=this.tokenizer.fences(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.heading(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.hr(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.blockquote(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.list(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.html(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.def(e))e=e.substring(n.raw.length),o=t[t.length-1],!o||"paragraph"!==o.type&&"text"!==o.type?this.tokens.links[n.tag]||(this.tokens.links[n.tag]={href:n.href,title:n.title}):(o.raw+="\n"+n.raw,o.text+="\n"+n.raw,this.inlineQueue[this.inlineQueue.length-1].src=o.text);else if(n=this.tokenizer.table(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.lheading(e))e=e.substring(n.raw.length),t.push(n);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&&(n=this.tokenizer.paragraph(r)))o=t[t.length-1],a&&"paragraph"===o.type?(o.raw+="\n"+n.raw,o.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):t.push(n),a=r.length!==e.length,e=e.substring(n.raw.length);else if(n=this.tokenizer.text(e))e=e.substring(n.raw.length),o=t[t.length-1],o&&"text"===o.type?(o.raw+="\n"+n.raw,o.text+="\n"+n.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=o.text):t.push(n);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,t}inline(e,t){this.inlineQueue.push({src:e,tokens:t})}inlineTokens(e,t=[]){let n,o,r,a,i,l,s=e;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(a=this.tokenizer.rules.inline.reflinkSearch.exec(s));)e.includes(a[0].slice(a[0].lastIndexOf("[")+1,-1))&&(s=s.slice(0,a.index)+"["+bi("a",a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(a=this.tokenizer.rules.inline.blockSkip.exec(s));)s=s.slice(0,a.index)+"["+bi("a",a[0].length-2)+"]"+s.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(a=this.tokenizer.rules.inline.escapedEmSt.exec(s));)s=s.slice(0,a.index)+"++"+s.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((o=>!!(n=o.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))))if(n=this.tokenizer.escape(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.tag(e))e=e.substring(n.raw.length),o=t[t.length-1],o&&"text"===n.type&&"text"===o.type?(o.raw+=n.raw,o.text+=n.text):t.push(n);else if(n=this.tokenizer.link(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.reflink(e,this.tokens.links))e=e.substring(n.raw.length),o=t[t.length-1],o&&"text"===n.type&&"text"===o.type?(o.raw+=n.raw,o.text+=n.text):t.push(n);else if(n=this.tokenizer.emStrong(e,s,l))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.codespan(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.br(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.del(e))e=e.substring(n.raw.length),t.push(n);else if(n=this.tokenizer.autolink(e,Ci))e=e.substring(n.raw.length),t.push(n);else if(this.state.inLink||!(n=this.tokenizer.url(e,Ci))){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(n=this.tokenizer.inlineText(r,_i))e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(l=n.raw.slice(-1)),i=!0,o=t[t.length-1],o&&"text"===o.type?(o.raw+=n.raw,o.text+=n.text):t.push(n);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(n.raw.length),t.push(n);return t}}class zi{constructor(e){this.options=e||Ja}code(e,t,n){const o=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,o);null!=t&&t!==e&&(n=!0,e=t)}return e=e.replace(/\n$/,"")+"\n",o?'
'+(n?e:ti(e,!0))+"
\n":"
"+(n?e:ti(e,!0))+"
\n"}blockquote(e){return"
\n"+e+"
\n"}html(e){return e}heading(e,t,n,o){return this.options.headerIds?"'+e+"\n":""+e+"\n"}hr(){return this.options.xhtml?"
\n":"
\n"}list(e,t,n){const o=t?"ol":"ul";return"<"+o+(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=si(this.options.sanitize,this.options.baseUrl,e)))return n;let o='",o}image(e,t,n){if(null===(e=si(this.options.sanitize,this.options.baseUrl,e)))return n;let o=''+n+'":">",o}text(e){return e}}class Ei{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 Ai{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,o=0;if(this.seen.hasOwnProperty(n)){o=this.seen[e];do{o++,n=e+"-"+o}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=o,this.seen[n]=0),n}slug(e,t={}){const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class Li{constructor(e){this.options=e||Ja,this.options.renderer=this.options.renderer||new zi,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Ei,this.slugger=new Ai}static parse(e,t){return new Li(t).parse(e)}static parseInline(e,t){return new Li(t).parseInline(e)}parse(e,t=!0){let n,o,r,a,i,l,s,c,u,d,p,h,f,v,m,g,b,w,y,k="";const x=e.length;for(n=0;n0&&"paragraph"===m.tokens[0].type?(m.tokens[0].text=w+" "+m.tokens[0].text,m.tokens[0].tokens&&m.tokens[0].tokens.length>0&&"text"===m.tokens[0].tokens[0].type&&(m.tokens[0].tokens[0].text=w+" "+m.tokens[0].tokens[0].text)):m.tokens.unshift({type:"text",text:w}):v+=w),v+=this.parse(m.tokens,f),u+=this.renderer.listitem(v,b,g);k+=this.renderer.list(u,p,h);continue;case"html":k+=this.renderer.html(d.text);continue;case"paragraph":k+=this.renderer.paragraph(this.parseInline(d.tokens));continue;case"text":for(u=d.tokens?this.parseInline(d.tokens):d.text;n+1{o(e.text,e.lang,(function(t,n){if(t)return a(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),i--,0===i&&a()}))}),0))})),void(0===i&&a())}try{const n=Si.lex(e,t);return t.walkTokens&&Ti.walkTokens(n,t.walkTokens),Li.parse(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"

    An error occurred:

    "+ti(e.message+"",!0)+"
    ";throw e}}Ti.options=Ti.setOptions=function(e){var t;return fi(Ti.defaults,e),t=Ti.defaults,Ja=t,Ti},Ti.getDefaults=function(){return{baseUrl:null,breaks:!1,extensions:null,gfm:!0,headerIds:!0,headerPrefix:"",highlight:null,langPrefix:"language-",mangle:!0,pedantic:!1,renderer:null,sanitize:!1,sanitizer:null,silent:!1,smartLists:!1,smartypants:!1,tokenizer:null,walkTokens:null,xhtml:!1}},Ti.defaults=Ja,Ti.use=function(...e){const t=fi({},...e),n=Ti.defaults.extensions||{renderers:{},childTokens:{}};let o;e.forEach((e=>{if(e.extensions&&(o=!0,e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if(e.renderer){const t=n.renderers?n.renderers[e.name]:null;n.renderers[e.name]=t?function(...n){let o=e.renderer.apply(this,n);return!1===o&&(o=t.apply(this,n)),o}:e.renderer}if(e.tokenizer){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw new Error("extension level must be 'block' or 'inline'");n[e.level]?n[e.level].unshift(e.tokenizer):n[e.level]=[e.tokenizer],e.start&&("block"===e.level?n.startBlock?n.startBlock.push(e.start):n.startBlock=[e.start]:"inline"===e.level&&(n.startInline?n.startInline.push(e.start):n.startInline=[e.start]))}e.childTokens&&(n.childTokens[e.name]=e.childTokens)}))),e.renderer){const n=Ti.defaults.renderer||new zi;for(const t in e.renderer){const o=n[t];n[t]=(...r)=>{let a=e.renderer[t].apply(n,r);return!1===a&&(a=o.apply(n,r)),a}}t.renderer=n}if(e.tokenizer){const n=Ti.defaults.tokenizer||new yi;for(const t in e.tokenizer){const o=n[t];n[t]=(...r)=>{let a=e.tokenizer[t].apply(n,r);return!1===a&&(a=o.apply(n,r)),a}}t.tokenizer=n}if(e.walkTokens){const n=Ti.defaults.walkTokens;t.walkTokens=function(t){e.walkTokens.call(this,t),n&&n.call(this,t)}}o&&(t.extensions=n),Ti.setOptions(t)}))},Ti.walkTokens=function(e,t){for(const n of e)switch(t.call(Ti,n),n.type){case"table":for(const e of n.header)Ti.walkTokens(e.tokens,t);for(const e of n.rows)for(const n of e)Ti.walkTokens(n.tokens,t);break;case"list":Ti.walkTokens(n.items,t);break;default:Ti.defaults.extensions&&Ti.defaults.extensions.childTokens&&Ti.defaults.extensions.childTokens[n.type]?Ti.defaults.extensions.childTokens[n.type].forEach((function(e){Ti.walkTokens(n[e],t)})):n.tokens&&Ti.walkTokens(n.tokens,t)}},Ti.parseInline=function(e,t){if(null==e)throw new Error("marked.parseInline(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked.parseInline(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");gi(t=fi({},Ti.defaults,t||{}));try{const n=Si.lexInline(e,t);return t.walkTokens&&Ti.walkTokens(n,t.walkTokens),Li.parseInline(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"

    An error occurred:

    "+ti(e.message+"",!0)+"
    ";throw e}},Ti.Parser=Li,Ti.parser=Li.parse,Ti.Renderer=zi,Ti.TextRenderer=Ei,Ti.Lexer=Si,Ti.lexer=Si.lex,Ti.Tokenizer=yi,Ti.Slugger=Ai,Ti.parse=Ti,Ti.options,Ti.setOptions,Ti.use,Ti.walkTokens,Ti.parseInline,Li.parse,Si.lex;const Oi=/\$.*?\$/,Ri=/^\$(.*?)\$/,Ii=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,ji=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]?'').concat(n,''):e))},$i=(e,t)=>{let n=e.toString();for(;n.length{if(e)try{"string"==typeof e&&(e=new Date(-1!==e.indexOf(" ")?e.replace(/-/g,"/"):e));const n=e.getTime(),o=(new Date).getTime()-n,r=Math.floor(o/864e5);if(0===r){const e=o%864e5,n=Math.floor(e/36e5);if(0===n){const n=e%36e5,o=Math.floor(n/6e4);if(0===o){const e=n%6e4,o=Math.round(e/1e3);return"".concat(o," ").concat(t.seconds)}return"".concat(o," ").concat(t.minutes)}return"".concat(n," ").concat(t.hours)}return r<0?t.now:r<8?"".concat(r," ").concat(t.days):(e=>{const t=$i(e.getDate(),2),n=$i(e.getMonth()+1,2),o=$i(e.getFullYear(),2);return"".concat(o,"-").concat(n,"-").concat(t)})(e)}catch(e){console.log(e)}return""},Ui=(e,t)=>{t.forEach(((t,n)=>{(t.querySelector(".leancloud-visitors-count")||t).innerText=e[n].toString()}))};let Pi,Fi;const Ni=()=>(Fi||(Pi=ja("WALINE_USER_CACHE"),Fi=ze({nick:Pi.get("nick")||"",mail:Pi.get("mail")||"",link:Pi.get("link")||"",editor:""})),{inputs:Fi,store:Pi}),Vi="WALINE_USER",Di=Fe({}),Bi=()=>{if(!Di.value)try{Di.value=JSON.parse(localStorage.getItem(Vi)||"")||JSON.parse(sessionStorage.getItem(Vi)||"")||{}}catch(e){}return{userInfo:Ee(Di),setUserInfo:e=>{Di.value=e}}},qi={class:"v","data-class":"v"},Wi={class:"vcount"},Hi=["textContent"],Zi={class:"vcards"},Ji={key:1,class:"vloading"},Ki=["textContent"],Qi={key:2,class:"vloading"},Yi=["textContent"],Xi={key:4,class:"vmore"},Gi=["textContent"],el={key:5,class:"vpower"},tl=lo(" Powered by "),nl=ro("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noreferrer"}," Waline ",-1),ol={class:"vcomment"},rl={key:0,class:"vlogin-info"},al={class:"vavatar"},il=["title"],ll=["src"],sl=["textContent"],cl={class:"vpanel"},ul=["for","textContent"],dl=["id","name","type","onUpdate:modelValue"],pl=["placeholder"],hl=["innerHTML"],fl={class:"vfooter"},vl={class:"vactions"},ml={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"vaction",target:"_blank",rel:"noreferrer"},gl=["title"],bl=["title"],wl=["title"],yl={class:"vinfo"},kl={class:"vtext-number"},xl={key:0},_l=lo(" / "),Cl=["textContent"],Sl=["textContent"],zl=["disabled"],El={key:0,class:"vtab-wrapper"},Al=["title","onClick"],Ll=["src","alt"],Tl={key:0,class:"vtabs"},Ol=["onClick"],Rl=["src","alt","title"],Il=["title"];var jl,$l,Ml="function"==typeof Map?new Map:(jl=[],$l=[],{has:function(e){return jl.indexOf(e)>-1},get:function(e){return $l[jl.indexOf(e)]},set:function(e,t){-1===jl.indexOf(e)&&(jl.push(e),$l.push(t))},delete:function(e){var t=jl.indexOf(e);t>-1&&(jl.splice(t,1),$l.splice(t,1))}}),Ul=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(jl){Ul=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function Pl(e){var t=Ml.get(e);t&&t.destroy()}function Fl(e){var t=Ml.get(e);t&&t.update()}var Nl=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((Nl=function(e){return e}).destroy=function(e){return e},Nl.update=function(e){return e}):((Nl=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&&!Ml.has(e)){var t,n=null,o=null,r=null,a=function(){e.clientWidth!==o&&c()},i=function(t){window.removeEventListener("resize",a,!1),e.removeEventListener("input",c,!1),e.removeEventListener("keyup",c,!1),e.removeEventListener("autosize:destroy",i,!1),e.removeEventListener("autosize:update",c,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),Ml.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",i,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",c,!1),window.addEventListener("resize",a,!1),e.addEventListener("input",c,!1),e.addEventListener("autosize:update",c,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",Ml.set(e,{destroy:i,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 l(t){var n=e.style.width;e.style.width="0px",e.style.width=n,e.style.overflowY=t}function s(){if(0!==e.scrollHeight){var t=function(e){for(var t=[];e&&e.parentNode&&e.parentNode instanceof Element;)e.parentNode.scrollTop&&t.push({node:e.parentNode,scrollTop:e.parentNode.scrollTop}),e=e.parentNode;return t}(e),r=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",o=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),r&&(document.documentElement.scrollTop=r)}}function c(){s();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),o="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(o{let{size:t}=e;return tr("svg",{width:t,height:t,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},tr("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},tr("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"})))},Bl=sn({name:"CommentBox",components:{CloseIcon:e=>{let{size:t}=e;return tr("svg",{class:"vclose-icon",viewBox:"0 0 1024 1024",width:t,height:t},[tr("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"}),tr("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:()=>tr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},tr("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:()=>tr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[tr("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"}),tr("path",{d:"M352 480c52.8 0 96-43.2 96-96s-43.2-96-96-96-96 43.2-96 96 43.2 96 96 96zm0-128c17.6 0 32 14.4 32 32s-14.4 32-32 32-32-14.4-32-32 14.4-32 32-32zm462.4 379.2-3.2-3.2-177.6-177.6c-25.6-25.6-65.6-25.6-91.2 0l-80 80-36.8-36.8c-25.6-25.6-65.6-25.6-91.2 0L200 728c-4.8 6.4-8 14.4-8 24 0 17.6 14.4 32 32 32 9.6 0 16-3.2 22.4-9.6L380.8 640l134.4 134.4c6.4 6.4 14.4 9.6 24 9.6 17.6 0 32-14.4 32-32 0-9.6-4.8-17.6-9.6-24l-52.8-52.8 80-80L769.6 776c6.4 4.8 12.8 8 20.8 8 17.6 0 32-14.4 32-32 0-8-3.2-16-8-20.8z",fill:"currentColor"})]),MarkdownIcon:()=>tr("svg",{width:"16",height:"16",ariaHidden:"true"},tr("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:()=>tr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[tr("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"}),tr("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:Dl},props:{rootId:{type:String,default:""},replyId:{type:String,default:""},replyUser:{type:String,default:""}},emits:["submit","cancel-reply"],setup(e,t){let{emit:n}=t;const o=Xt("config"),{inputs:r,store:a}=Ni(),{userInfo:i,setUserInfo:l}=Bi(),s=Fe({}),c=Fe(null),u=Fe(null),d=Fe(null),p=Fe(null),h=Fe({tabs:[],map:{}}),f=Fe(0),v=Fe(!1),m=Fe(!1),g=Fe(""),b=Fe(0),w=Fe(0),y=Fe(!1),k=Fe(""),x=Fe(!1),_=qe((()=>o.value.locale)),C=qe((()=>{var e;return Boolean(null===(e=i.value)||void 0===e?void 0:e.token)})),S=qe((()=>!1!==o.value.uploadImage)),z=e=>{const t=c.value,n=t.selectionStart,o=t.selectionEnd||0,a=t.scrollTop;r.editor=t.value.substring(0,n)+e+t.value.substring(o,t.value.length),t.focus(),t.selectionStart=n+e.length,t.selectionEnd=n+e.length,t.scrollTop=a},E=e=>{const t="![".concat(o.value.locale.uploading," ").concat(e.name,"]()");return z(t),Promise.resolve().then((()=>o.value.uploadImage(e))).then((n=>{r.editor=r.editor.replace(t,"\r\n![".concat(e.name,"](").concat(n,")"))}))},A=()=>{var t,l;const{serverURL:u,lang:d,login:p,wordLimit:f,requiredMeta:v}=o.value,m={comment:k.value,nick:r.nick,mail:r.mail,link:r.link,ua:navigator.userAgent,url:o.value.path};if(null!==(t=i.value)&&void 0!==t&&t.token)m.nick=i.value.display_name,m.mail=i.value.email,m.link=i.value.url;else{if("force"===p)return;var w,C,S;if((v.indexOf("nick")>-1||m.nick)&&!m.nick)return null===(w=s.value.nick)||void 0===w||w.focus(),alert(_.value.nickError);if((v.indexOf("mail")>-1||m.mail)&&!/^(\w)+([._-]\w+)*@(\w)+((\.\w{2,}){1,3})$/.exec(m.mail))return null===(C=s.value.mail)||void 0===C||C.focus(),alert(_.value.mailError);if(!m.comment)return void(null===(S=c.value)||void 0===S||S.focus());m.nick||(m.nick=_.value.anonymous)}if(!y.value)return alert(_.value.wordHint.replace("$0",f[0].toString()).replace("$1",f[1].toString()).replace("$2",b.value.toString()));m.comment=ji(m.comment,h.value.map),e.replyId&&e.rootId&&(m.pid=e.replyId,m.rid=e.rootId,m.at=e.replyUser),x.value=!0,(e=>{let{serverURL:t,lang:n,token:o,comment:r}=e;const a={"Content-Type":"application/json"};return o&&(a.Authorization="Bearer ".concat(o)),fetch("".concat(t,"/comment?lang=").concat(n),{method:"POST",headers:a,body:JSON.stringify(r)}).then((e=>e.json()))})({serverURL:u,lang:d,token:null===(l=i.value)||void 0===l?void 0:l.token,comment:m}).then((t=>{if(x.value=!1,a.update({nick:m.nick,link:m.link,mail:m.mail}),t.errmsg)return alert(t.errmsg);n("submit",t.data),r.editor="",g.value="",e.replyId&&n("cancel-reply")})).catch((e=>{x.value=!1,alert(e.message)}))},L=e=>{d.value.contains(e.target)||p.value.contains(e.target)||(v.value=!1)};return Go((()=>r.editor),(e=>{const{highlight:t,tex:n}=o.value;k.value=e,g.value=((e,t,n,o)=>{if(Ti.setOptions({highlight:t||void 0,breaks:!0,smartLists:!0,smartypants:!0}),o){const e=(e=>{const t={name:"blockMath",level:"block",tokenizer(t){const n=Ii.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!0,n[1])}}},n={name:"inlineMath",level:"inline",start(e){const t=e.search(Oi);return-1!==t?t:e.length},tokenizer(t){const n=Ri.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!1,n[1])}}};return[t,n]})(o);Ti.use({extensions:e})}return Ti.parse(ji(e,n))})(e,t,h.value.map,n),b.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),c.value&&(e?Vl(c.value):Vl.destroy(c.value))}),{immediate:!0}),Go((()=>o.value.emoji),(e=>e.then((e=>{h.value=e}))),{immediate:!0}),Go([o,b],(e=>{let[t,n]=e;const{wordLimit:o}=t;o?no[1]?(w.value=o[1],y.value=!1):(w.value=o[1],y.value=!0):(w.value=0,y.value=!0)}),{immediate:!0}),pn((()=>{document.body.addEventListener("click",L)})),fn((()=>{document.body.removeEventListener("click",L)})),{config:o,locale:_,insert:z,onChange:()=>{const e=u.value;e.files&&S.value&&E(e.files[0]).then((()=>{e.value=""}))},onDrop:e=>{var t;if(null!==(t=e.dataTransfer)&&void 0!==t&&t.items){const t=Ba(e.dataTransfer.items);t&&S.value&&(E(t),e.preventDefault())}},onKeyDown:e=>{const t=e.key;(e.ctrlKey||e.metaKey)&&"Enter"===t&&A()},onPaste:e=>{if(e.clipboardData){const t=Ba(e.clipboardData.items);t&&S.value&&E(t)}},onLogin:e=>{e.preventDefault();const{lang:t,serverURL:n}=o.value,r=(window.innerWidth-450)/2,a=(window.innerHeight-450)/2,i=window.open("".concat(n,"/ui/login?lng=").concat(encodeURIComponent(t)),"_blank","width=".concat(450,",height=").concat(450,",left=").concat(r,",top=").concat(a,",scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no"));null==i||i.postMessage({type:"TOKEN",data:null},"*");const s=e=>{let{data:t}=e;t&&"userInfo"===t.type&&t.data.token&&(null==i||i.close(),l(t.data),(t.data.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(t.data)),window.removeEventListener("message",s))};window.addEventListener("message",s)},onLogout:()=>{l({}),localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null")},onProfile:e=>{e.preventDefault();const{lang:t,serverURL:n}=o.value,r=(window.innerWidth-800)/2,a=(window.innerHeight-800)/2,s=window.open("".concat(n,"/ui/profile?lng=").concat(encodeURIComponent(t)),"_blank","width=".concat(800,",height=").concat(800,",left=").concat(r,",top=").concat(a,",scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no"));null==s||s.postMessage({type:"TOKEN",data:i.value.token},"*");const c=e=>{let{data:t}=e;t&&"profile"===t.type&&(l(Object.assign({},i.value,t)),[localStorage,sessionStorage].filter((e=>e.getItem("WALINE_USER"))).forEach((e=>e.setItem("WALINE_USER",JSON.stringify(i)))),window.removeEventListener("message",c))};window.addEventListener("message",c)},submitComment:A,isLogin:C,userInfo:i,isSubmitting:x,wordNumber:b,wordLimit:w,isWordNumberLegal:y,inputs:r,emoji:h,emojiTabIndex:f,showEmoji:v,canUploadImage:S,previewText:g,showPreview:m,inputRefs:s,editorRef:c,emojiButtonRef:d,emojiPopupRef:p,imageUploadRef:u}}});var ql=n(407);const Wl=(0,ql.Z)(Bl,[["render",function(e,t,n,o,r,a){const i=Pn("CloseIcon"),l=Pn("MarkdownIcon"),s=Pn("EmojiIcon"),c=Pn("ImageIcon"),u=Pn("PreviewIcon"),d=Pn("LoadingIcon");return Zn(),Yn("div",ol,["disable"!==e.config.login&&e.isLogin?(Zn(),Yn("div",rl,[ro("div",al,[ro("button",{class:"vlogout-btn",title:e.locale.logout,onClick:t[0]||(t[0]=function(){return e.onLogout&&e.onLogout(...arguments)})},[ao(i,{size:"14"})],8,il),ro("img",{src:e.userInfo.avatar||"".concat(e.config.avatar.cdn).concat(e.userInfo.mailMd5).concat(e.config.avatar.param),alt:"avatar"},null,8,ll)]),ro("a",{href:"#",class:"vlogin-nick","aria-label":"Profile",onClick:t[1]||(t[1]=function(){return e.onProfile&&e.onProfile(...arguments)}),textContent:Ye(e.userInfo.display_name)},null,8,sl)])):so("v-if",!0),ro("div",cl,["force"!==e.config.login&&e.config.meta.length&&!e.isLogin?(Zn(),Yn("div",{key:0,class:Qe(["vheader","vheader-".concat(e.config.meta.length)])},[(Zn(!0),Yn(Vn,null,ho(e.config.meta,(t=>(Zn(),Yn("div",{class:"vheader-item",key:t},[ro("label",{for:t,textContent:Ye(e.locale[t]+(e.config.requiredMeta.includes(t)||!e.config.requiredMeta.length?"":"(".concat(e.locale.optional,")")))},null,8,ul),En(ro("input",{ref:n=>{n&&(e.inputRefs[t]=n)},id:"waline-".concat(t),class:Qe(["vinput","v".concat(t)]),name:t,type:"mail"===t?"email":"text","onUpdate:modelValue":n=>e.inputs[t]=n},null,10,dl),[[da,e.inputs[t]]])])))),128))],2)):so("v-if",!0),En(ro("textarea",{class:"veditor",ref:"editorRef",id:"waline-edit",placeholder:e.replyUser?"@".concat(e.replyUser):e.locale.placeholder,"onUpdate:modelValue":t[2]||(t[2]=t=>e.inputs.editor=t),onKeydown:t[3]||(t[3]=function(){return e.onKeyDown&&e.onKeyDown(...arguments)}),onDrop:t[4]||(t[4]=function(){return e.onDrop&&e.onDrop(...arguments)}),onPaste:t[5]||(t[5]=function(){return e.onPaste&&e.onPaste(...arguments)})},null,40,pl),[[oa,e.inputs.editor]]),ro("div",{class:"vpreview",style:He({display:e.showPreview?"block":"none"})},[ro("h4",null,Ye(e.locale.preview)+":",1),ro("div",{class:"vcontent",innerHTML:e.previewText},null,8,hl)],4),ro("div",fl,[ro("div",vl,[ro("a",ml,[ao(l)]),ro("button",{ref:"emojiButtonRef",class:Qe(["vaction",{actived:e.showEmoji}]),title:e.locale.emoji,onClick:t[6]||(t[6]=t=>e.showEmoji=!e.showEmoji)},[ao(s)],10,gl),ro("input",{ref:"imageUploadRef",class:"upload",id:"waline-image-upload",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:t[7]||(t[7]=function(){return e.onChange&&e.onChange(...arguments)})},null,544),e.canUploadImage?(Zn(),Yn("label",{key:0,for:"waline-image-upload",class:"vaction",title:e.locale.uploadImage},[ao(c)],8,bl)):so("v-if",!0),ro("button",{class:Qe(["vaction",{actived:e.showPreview}]),title:e.locale.preview,onClick:t[8]||(t[8]=t=>e.showPreview=!e.showPreview)},[ao(u)],10,wl)]),ro("div",yl,[ro("div",kl,[lo(Ye(e.wordNumber)+" ",1),e.config.wordLimit?(Zn(),Yn("span",xl,[_l,ro("span",{class:Qe({illegal:!e.isWordNumberLegal}),textContent:Ye(e.wordLimit)},null,10,Cl)])):so("v-if",!0),lo(" "+Ye(e.locale.word),1)]),"disable"===e.config.login||e.isLogin?so("v-if",!0):(Zn(),Yn("button",{key:0,class:"vbtn",onClick:t[9]||(t[9]=function(){return e.onLogin&&e.onLogin(...arguments)}),textContent:Ye(e.locale.login)},null,8,Sl)),"force"!==e.config.login||e.isLogin?(Zn(),Yn("button",{key:1,class:"vbtn primary",title:"Cmd|Ctrl + Enter",disabled:e.isSubmitting,onClick:t[10]||(t[10]=function(){return e.submitComment&&e.submitComment(...arguments)})},[e.isSubmitting?(Zn(),Xn(d,{key:0,size:16})):(Zn(),Yn(Vn,{key:1},[lo(Ye(e.locale.submit),1)],2112))],8,zl)):so("v-if",!0)]),ro("div",{ref:"emojiPopupRef",class:Qe(["vemoji-popup",{display:e.showEmoji}])},[(Zn(!0),Yn(Vn,null,ho(e.emoji.tabs,((t,n)=>(Zn(),Yn(Vn,{key:t.name},[n===e.emojiTabIndex?(Zn(),Yn("div",El,[(Zn(!0),Yn(Vn,null,ho(t.items,(t=>(Zn(),Yn("button",{key:t,title:t,onClick:n=>e.insert(":".concat(t,":"))},[e.showEmoji?(Zn(),Yn("img",{key:0,class:"vemoji",src:e.emoji.map[t],alt:t,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Ll)):so("v-if",!0)],8,Al)))),128))])):so("v-if",!0)],64)))),128)),e.emoji.tabs.length>1?(Zn(),Yn("div",Tl,[(Zn(!0),Yn(Vn,null,ho(e.emoji.tabs,((t,n)=>(Zn(),Yn("button",{key:t.name,class:Qe(["vtab",{active:e.emojiTabIndex===n}]),onClick:t=>e.emojiTabIndex=n},[ro("img",{class:"vemoji",src:t.icon,alt:t.name,title:t.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,Rl)],10,Ol)))),128))])):so("v-if",!0)],2)])]),e.replyId?(Zn(),Yn("button",{key:1,class:"vclose",title:e.locale.cancelReply,onClick:t[11]||(t[11]=t=>e.$emit("cancel-reply"))},[ao(i,{size:"24"})],8,Il)):so("v-if",!0)])}]]),Hl=Wl,Zl=["id"],Jl=["src"],Kl={class:"vcard"},Ql={class:"vhead"},Yl=["href"],Xl={key:1,class:"vnick"},Gl=["textContent"],es=["textContent"],ts=["textContent"],ns=["title"],os={class:"vmeta","aria-hidden":"true"},rs=["textContent"],as=["textContent"],is=["innerHTML"],ls={key:0,class:"vreply-wrapper"},ss={key:1,class:"vquote"},cs=sn({props:{comment:{type:Object,required:!0},rootId:{type:String,required:!0},reply:{type:Object}},components:{CommentBox:Hl,ReplyIcon:()=>tr("svg",{viewBox:"0 0 1024 1024",width:"18",height:"18"},tr("path",{d:"M1019.2 720C1001.6 625.6 968 566.4 904 497.6c-89.6-89.6-214.4-150.4-347.2-176v-120c0-25.6-8-51.2-25.6-64-33.6-30.4-81.6-30.4-112-4.8L33.6 441.6C12.8 459.2 0 484.8 0 510.4c0 25.6 12.8 51.2 30.4 68.8l385.6 312c17.6 12.8 33.6 17.6 51.2 17.6 12.8 0 25.6-4.8 38.4-8C536 888 552 857.6 552 824v-99.2c124.8 20.8 248 86.4 339.2 140.8 25.6 17.6 59.2 17.6 89.6 0 25.6-17.6 43.2-46.4 43.2-76.8 0-33.6 0-56-4.8-68.8zm-500.8-89.6-46.4-4.8v193.6L86.4 510.4 472 201.6V400l38.4 4.8c128 12.8 248 68.8 334.4 153.6 51.2 56 76.8 102.4 94.4 179.2 0 4.8 4.8 20.8 4.8 51.2C835.2 720 672 640 518.4 630.4z",fill:"currentColor"})),VerifiedIcon:()=>tr("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},tr("path",{d:"M512 44.608l388.352 109.696a38.016 38.016 0 0 1 27.648 36.608v337.984c-1.984 110.528-40.192 207.04-113.984 288-73.92 81.024-172.48 134.528-294.592 160.32l-8.192 1.728-8.192-2.048c-127.616-32.832-225.536-85.952-293.056-160-68.096-74.688-105.984-171.584-113.92-289.28L96 526.336V190.976c0-17.024 11.328-32 27.648-36.608L512 44.608z m0 74.816L168 216.64v307.328l0.128 1.856c7.232 99.712 38.4 179.52 93.44 240.704l1.664 1.92c55.488 60.8 137.728 106.304 247.488 136l2.048 0.512 1.408-0.32c102.272-23.232 183.552-67.968 244.736-134.144l1.92-2.112c62.592-68.672 94.08-149.376 95.168-243.584V216.64L512 119.36z m222.592 229.888a32 32 0 0 1 0.448 44.864l-0.384 0.384-244.8 246.016a32 32 0 0 1-44.992 0.384l-0.384-0.384-155.136-155.968a32 32 0 0 1 44.992-45.504L467.2 572.608 689.28 349.44a32 32 0 0 1 45.312-0.128z",fill:"#27ae60"}))},emits:["submit","reply"],setup(e){const t=Xt("config"),n=qe((()=>t.value.locale)),o=qe((()=>{let{link:t}=e.comment;return t?ba(t)?t:"https://".concat(t):""})),r=qe((()=>{const n=e.comment,o=t.value.avatar;return!(!n||o.hide)&&(e.comment.avatar&&("type"in e.comment||o.default)?e.comment.avatar:"".concat(o.cdn).concat(e.comment.mail).concat(o.param))})),a=qe((()=>{var t;return e.comment.objectId===(null===(t=e.reply)||void 0===t?void 0:t.objectId)}));return{config:t,locale:n,avatar:r,isReplyingCurrent:a,link:o,timeAgo:Mi}}}),us=sn({name:"Waline-Root",components:{CommentBox:Hl,CommentCard:(0,ql.Z)(cs,[["render",function(e,t,n,o,r,a){const i=Pn("VerifiedIcon"),l=Pn("ReplyIcon"),s=Pn("CommentBox"),c=Pn("CommentCard",!0);return Zn(),Yn("div",{class:"vitem",id:e.comment.objectId},[e.avatar?(Zn(),Yn("img",{key:0,class:"vuser","aria-hidden":"true",src:e.avatar},null,8,Jl)):so("v-if",!0),ro("div",Kl,[ro("div",Ql,[e.link?(Zn(),Yn("a",{key:0,class:"vnick",href:e.link,target:"_blank",rel:"nofollow noreferrer"},[lo(Ye(e.comment.nick),1),e.comment.type?(Zn(),Xn(i,{key:0})):so("v-if",!0)],8,Yl)):(Zn(),Yn("span",Xl,[lo(Ye(e.comment.nick),1),e.comment.type?(Zn(),Xn(i,{key:0})):so("v-if",!0)])),"administrator"===e.comment.type?(Zn(),Yn("span",{key:2,class:"vbadge",textContent:Ye(e.locale.admin)},null,8,Gl)):so("v-if",!0),e.comment.sticky?(Zn(),Yn("span",{key:3,class:"vbadge",textContent:Ye(e.locale.sticky)},null,8,es)):so("v-if",!0),ro("span",{class:"vtime",textContent:Ye(e.timeAgo(e.comment.insertedAt,e.locale))},null,8,ts),ro("button",{class:Qe(["vreply",{active:e.isReplyingCurrent}]),title:e.isReplyingCurrent?e.locale.cancelReply:e.locale.reply,onClick:t[0]||(t[0]=t=>e.$emit("reply",e.isReplyingCurrent?null:e.comment))},[ao(l)],10,ns)]),ro("div",os,[e.comment.browser?(Zn(),Yn("span",{key:0,textContent:Ye(e.comment.browser)},null,8,rs)):so("v-if",!0),e.comment.os?(Zn(),Yn("span",{key:1,textContent:Ye(e.comment.os)},null,8,as)):so("v-if",!0)]),ro("div",{class:"vcontent",innerHTML:e.comment.comment},null,8,is),e.isReplyingCurrent?(Zn(),Yn("div",ls,[ao(s,{replyId:e.comment.objectId,replyUser:e.comment.nick,rootId:e.rootId,onSubmit:t[1]||(t[1]=t=>e.$emit("submit",t)),onCancelReply:t[2]||(t[2]=t=>e.$emit("reply",null))},null,8,["replyId","replyUser","rootId"])])):so("v-if",!0),e.comment.children?(Zn(),Yn("div",ss,[(Zn(!0),Yn(Vn,null,ho(e.comment.children,(n=>(Zn(),Xn(c,{key:n.objectId,comment:n,reply:e.reply,rootId:e.rootId,onReply:t[3]||(t[3]=t=>e.$emit("reply",t)),onSubmit:t[4]||(t[4]=t=>e.$emit("submit",t))},null,8,["comment","reply","rootId"])))),128))])):so("v-if",!0)])],8,Zl)}]]),LoadingIcon:Dl},props:{signal:{type:Object,required:!0}},setup(e){const t=Xt("config"),n=Xt("event"),o=Fe(0),r=Fe(1),a=Fe(0),i=Fe(!0),l=Fe(!1),s=Fe([]),c=Fe(null);let u=e.signal;const d=qe((()=>t.value.locale)),p=e=>{i.value=!0,l.value=!1,(e=>{let{serverURL:t,path:n,page:o,pageSize:r,signal:a}=e;return fetch("".concat(t,"/comment?path=").concat(encodeURIComponent(n),"&pageSize=").concat(r,"&page=").concat(o),{signal:a}).then((e=>e.json())).then((e=>va(e,"comment list")))})(Object.assign({},t.value,{page:e,signal:u})).then((t=>{i.value=!1,o.value=t.count,s.value.push(...t.data),r.value=e,a.value=t.totalPages})).catch((e=>{"AbortError"!==e.name&&(console.error(e.message),l.value=!0,i.value=!1)}))};return n.on("render",(e=>{u=e,o.value=0,s.value=[],p(1)})),pn((()=>p(1))),{config:t,locale:d,count:o,data:s,loading:i,inError:l,page:r,totalPages:a,reply:c,loadMore:()=>p(r.value+1),refresh:()=>{s.value=[],p(1)},onReply:e=>{c.value=e},onSubmit:e=>{if(e.rid){const t=s.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 s.value.unshift(e)},version:"1.5.2"}}}),ds=(0,ql.Z)(us,[["render",function(e,t,n,o,r,a){const i=Pn("CommentBox"),l=Pn("CommentCard"),s=Pn("LoadingIcon");return Zn(),Yn("div",qi,[e.reply?so("v-if",!0):(Zn(),Xn(i,{key:0,onSubmit:e.onSubmit},null,8,["onSubmit"])),ro("div",Wi,[e.count?(Zn(),Yn("span",{key:0,class:"vnum",textContent:Ye(e.count)},null,8,Hi)):so("v-if",!0),lo(" "+Ye(e.locale.comment),1)]),ro("div",Zi,[(Zn(!0),Yn(Vn,null,ho(e.data,(t=>(Zn(),Xn(l,{key:t.objectId,"root-id":t.objectId,comment:t,reply:e.reply,onReply:e.onReply,onSubmit:e.onSubmit},null,8,["root-id","comment","reply","onReply","onSubmit"])))),128))]),e.inError?(Zn(),Yn("div",Ji,[ro("button",{type:"button",class:"vbtn",onClick:t[0]||(t[0]=function(){return e.refresh&&e.refresh(...arguments)}),textContent:Ye(e.locale.refresh)},null,8,Ki)])):e.loading?(Zn(),Yn("div",Qi,[ao(s,{size:30})])):e.data.length?so("v-if",!0):(Zn(),Yn("div",{key:3,class:"vempty",textContent:Ye(e.locale.sofa)},null,8,Yi)),e.page{const{path:n,serverURL:o,visitor:r}=e;r&&(e=>{let{serverURL:t,path:n,signal:o}=e;const r=(e=>{let{serverURL:t,path:n}=e;return fetch("".concat(t,"/article"),{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({path:n})}).then((e=>e.json())).then((e=>va(e,"visit count")))})({serverURL:t,path:n}),a=Array.from(document.querySelectorAll(".waline-visitor-count,.leancloud_visitors,.leancloud-visitors")).filter((e=>e.getAttribute("id"))),i=a.map((e=>ma(e.getAttribute("id")||""))),l=i.filter((e=>e!==n));l.length?(l.length===i.length?Promise.resolve():r).then((()=>(e=>{let{serverURL:t,paths:n,signal:o}=e;return fetch("".concat(t,"/article?path=").concat(encodeURIComponent(n.join(","))),{signal:o}).then((e=>e.json())).then((e=>va(e,"visit count"))).then((e=>Array.isArray(e)?e:[e]))})({serverURL:t,paths:i,signal:o}))).then((e=>Ui(e,a))).catch((e=>{"AbortError"!==e.name&&console.error(e.message)})):r.then((e=>Ui(new Array(a.length).fill(e),a)))})({serverURL:o,path:n,signal:t}),((e,t)=>{const n=Array.from(document.querySelectorAll(".waline-comment-count")).filter((e=>e.getAttribute("data-xid")||e.getAttribute("id")));n.length&&(e=>{let{serverURL:t,paths:n,signal:o}=e;return fetch("".concat(t,"/comment?type=count&url=").concat(encodeURIComponent(n.join(","))),{signal:o}).then((e=>e.json())).then((e=>va(e,"comment count"))).then((e=>Array.isArray(e)?e:[e]))})({serverURL:e,paths:n.map((e=>ma(e.getAttribute("data-xid")||e.getAttribute("id")))),signal:t}).then((e=>{n.forEach(((t,n)=>{t.innerText=e[n].toString()}))})).catch((e=>{"AbortError"!==e.name&&console.error(e.message)}))})(o,t)},Ls=e=>(console.warn(e),{errMsg:e});function Ts(e){const{el:t,serverURL:n}=e;if(!n)return Ls("Option 'serverURL' is missing!");var o;e.dark&&"string"==typeof(o=e.dark)&&Wa("auto"===o?"@media(prefers-color-scheme:dark){body".concat(qa,"}"):"".concat(o).concat(qa),"waline-dark"),e.mathTagSupport&&window.addEventListener("load",Ha);const r=new Es,a=new Es,i=function(e){return{all:e=e||new Map,on:function(t,n){var o=e.get(t);o?o.push(n):e.set(t,[n])},off:function(t,n){var o=e.get(t);o&&(n?o.splice(o.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var o=e.get(t);o&&o.slice().map((function(e){e(n)})),(o=e.get("*"))&&o.slice().map((function(e){e(t,n)}))}}}(),{config:l,update:s}=(e=>{let t=e;const n=Fe(Va(e));return{config:Ee(n),update:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t={...t,...e},n.value=Va(t)}}})(e);As(l.value,a.signal);const c=Za(t);if(t&&!c)return Ls("Option 'el' do not match any domElement!");let u;c&&(u=((...e)=>{const t=(fa||(fa=In(ha))).createApp(...e),{mount:n}=t;return t.mount=e=>{const o=function(e){return fr(e)?document.querySelector(e):e}(e);if(!o)return;const r=t._component;hr(r)||r.render||r.template||(r.template=o.innerHTML),o.innerHTML="";const a=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),a},t})(ps,{signal:r.signal}).provide("config",l).provide("event",i).provide("version","1.5.2"),u.mount(c));const d={options:e,path:l.value.path};return{el:c,update:e=>{s(e);const{path:t}=l.value;d.path!==t&&(r.new(),d.path=t,i.emit("render",r.signal)),a.new(),As(l.value,a.signal)},destroy:()=>{t&&u.unmount()}}}Ts.Widget={RecentComments:e=>{let{el:t,serverURL:n,count:o}=e;const r=Za(t),a=new AbortController;return(e=>{let{serverURL:t,count:n,signal:o}=e;return fetch("".concat(t,"/comment?type=recent&count=").concat(n),{signal:o}).then((e=>e.json())).then((e=>va(e,"recent comment")))})({serverURL:n,count:o,signal:a.signal}).then((e=>r&&e.length?(r.innerHTML='
    "),{comments:e,destroy:()=>{a.abort(),r.innerHTML=""}}):{comments:e,destroy:()=>a.abort()}))}},Ts.version="1.5.2";const Os=Ts})(),o.default})()})); diff --git a/assets/lib/waline/waline.css b/assets/lib/waline/waline.css new file mode 100644 index 00000000..f84a143b --- /dev/null +++ b/assets/lib/waline/waline.css @@ -0,0 +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;height:2em;padding:0 6px 1px;overflow-x:scroll;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{max-height:80vh;display:flex;overflow-y:auto}.wl-gallery-column{height:-webkit-max-content;height:-moz-max-content;height:max-content;flex:1;display:flex;flex-direction:column}.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}@media(max-width: 520px){.wl-card .wl-meta>span{display:none}}.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{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{color:var(--waline-theme-color)}.wl-card .wl-delete.active,.wl-card .wl-like.active,.wl-card .wl-reply.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-radius:.5em 0 0 .5em}.wl-card .wl-comment-status .wl-btn:last-child{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{padding:.375em;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-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}/*# sourceMappingURL=waline.css.map */ diff --git a/assets/lib/waline/waline.js b/assets/lib/waline/waline.js new file mode 100644 index 00000000..aac13378 --- /dev/null +++ b/assets/lib/waline/waline.js @@ -0,0 +1,2 @@ +!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))),o="zh-CN",r=e=>new Promise(((t,n)=>{const o=new FileReader;o.readAsDataURL(e),o.onload=()=>{var e;return t((null===(e=o.result)||void 0===e?void 0:e.toString())||"")},o.onerror=n})),l=e=>!0===e?'

    Tex is not available in preview

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

    ".concat(e,"

    \n")}table(e,t){return t&&(t="".concat(t,"")),"\n\n"+e+"\n"+t+"
    \n"}tablerow(e){return"\n".concat(e,"\n")}tablecell(e,t){const n=t.header?"th":"td";return(t.align?"<".concat(n,' align="').concat(t.align,'">'):"<".concat(n,">"))+e+"\n")}strong(e){return"".concat(e,"")}em(e){return"".concat(e,"")}codespan(e){return"".concat(e,"")}br(){return this.options.xhtml?"
    ":"
    "}del(e){return"".concat(e,"")}link(e,t,n){if(null===(e=Ei(this.options.sanitize,this.options.baseUrl,e)))return n;let o='",o}image(e,t,n){if(null===(e=Ei(this.options.sanitize,this.options.baseUrl,e)))return n;let o='').concat(n,'":">",o}text(e){return e}}class Gi{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 Ji{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,o=0;if(this.seen.hasOwnProperty(n)){o=this.seen[e];do{o++,n=e+"-"+o}while(this.seen.hasOwnProperty(n))}return t||(this.seen[e]=o,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 Ki{constructor(e){this.options=e||gi,this.options.renderer=this.options.renderer||new Zi,this.renderer=this.options.renderer,this.renderer.options=this.options,this.textRenderer=new Gi,this.slugger=new Ji}static parse(e,t){return new Ki(t).parse(e)}static parseInline(e,t){return new Ki(t).parseInline(e)}parse(e){let t,n,o,r,l,i,s,a,c,u,p,d,h,f,g,m,v,y,w,k=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],b="";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);b+=this.renderer.list(c,p,d);continue;case"html":b+=this.renderer.html(u.text);continue;case"paragraph":b+=this.renderer.paragraph(this.parseInline(u.tokens));continue;case"text":for(c=u.tokens?this.parseInline(u.tokens):u.text;t+1{o(e.text,e.lang,(function(t,n){if(t)return l(t);null!=n&&n!==e.text&&(e.text=n,e.escaped=!0),i--,0===i&&l()}))}),0))})),void(0===i&&l())}try{const n=qi.lex(e,t);return t.walkTokens&&Qi.walkTokens(n,t.walkTokens),Ki.parse(n,t)}catch(e){if(e.message+="\nPlease report this to https://github.com/markedjs/marked.",t.silent)return"

    An error occurred:

    "+xi(e.message+"",!0)+"
    ";throw e}}Qi.options=Qi.setOptions=function(e){var t;return Oi(Qi.defaults,e),t=Qi.defaults,gi=t,Qi},Qi.getDefaults=fi,Qi.defaults=gi,Qi.use=function(){for(var e=arguments.length,t=new Array(e),n=0;n{if(e.extensions&&(l=!0,e.extensions.forEach((e=>{if(!e.name)throw new Error("extension name required");if(e.renderer){const t=r.renderers?r.renderers[e.name]:null;r.renderers[e.name]=t?function(){for(var n=arguments.length,o=new Array(n),r=0;rAn error occurred:

    "+xi(e.message+"",!0)+"
    ";throw e}},Qi.Parser=Ki,Qi.parser=Ki.parse,Qi.Renderer=Zi,Qi.TextRenderer=Gi,Qi.Lexer=qi,Qi.lexer=qi.lex,Qi.Tokenizer=Vi,Qi.Slugger=Ji,Qi.parse=Qi;const Yi=/\$.*?\$/,Xi=/^\$(.*?)\$/,es=/^(?:\s{0,3})\$\$((?:[^\n]|\n[^\n])+?)\n{0,1}\$\$/,ts=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]?'').concat(n,''):e))},ns=(e,t)=>{let{emojiMap:n,highlighter:o,texRenderer:r}=t;if(Qi.setOptions({highlight:o||void 0,breaks:!0,smartLists:!0,smartypants:!0}),r){const e=(e=>[{name:"blockMath",level:"block",tokenizer(t){const n=es.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(Yi);return-1!==t?t:e.length},tokenizer(t){const n=Xi.exec(t);if(null!==n)return{type:"html",raw:n[0],text:e(!1,n[1])}}}])(r);Qi.use({extensions:e})}return Qi.parse(ts(e,n))},os=e=>e.dataset.path||e.getAttribute("id"),rs=(e,t)=>{const n=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{controls:t=!1,interval:n="requestAnimationFrame"}=e,o=Ut(new Date),r=()=>o.value=new Date,l="requestAnimationFrame"===n?Pl(r,{immediate:!0}):ul(r,n,{immediate:!0});return t?ql({now:o},l):o}();return ar((()=>ni(e,n.value,t)))};let ls=null;const is=()=>ls||(ls=Ml("USER_KEY",{}));let ss=null;const as=()=>ss||(ss=Ml("WALINE_LIKE",[])),cs=e=>{var t;let{serverURL:n,path:o=window.location.pathname,selector:r=".waline-comment-count",lang:l="zh-CN"}=e;const i=new AbortController,s=document.querySelectorAll(r),a=is();return s.length&&(e=>{let{serverURL:t,lang:n,paths:o,signal:r,token:l}=e;const i={};return l&&(i.Authorization="Bearer ".concat(l)),fetch("".concat(t,"/comment?type=count&url=").concat(encodeURIComponent(o.join(",")),"&lang=").concat(n),{signal:r,headers:i}).then((e=>e.json())).then((e=>si(e,"comment count"))).then((e=>Array.isArray(e)?e:[e]))})({serverURL:Ql(n),paths:Array.from(s).map((e=>Gl(e.dataset.path||e.getAttribute("id")||o))),lang:l,signal:i.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(li),i.abort.bind(i)};e.commentCount=cs;var us,ps,ds="function"==typeof Map?new Map:(us=[],ps=[],{has:function(e){return us.indexOf(e)>-1},get:function(e){return ps[us.indexOf(e)]},set:function(e,t){-1===us.indexOf(e)&&(us.push(e),ps.push(t))},delete:function(e){var t=us.indexOf(e);t>-1&&(us.splice(t,1),ps.splice(t,1))}}),hs=function(e){return new Event(e,{bubbles:!0})};try{new Event("test")}catch(us){hs=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!1),t}}function fs(e){var t=ds.get(e);t&&t.destroy()}function gs(e){var t=ds.get(e);t&&t.update()}var ms=null;"undefined"==typeof window||"function"!=typeof window.getComputedStyle?((ms=function(e){return e}).destroy=function(e){return e},ms.update=function(e){return e}):((ms=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&&!ds.has(e)){var t,n=null,o=null,r=null,l=function(){e.clientWidth!==o&&c()},i=function(t){window.removeEventListener("resize",l,!1),e.removeEventListener("input",c,!1),e.removeEventListener("keyup",c,!1),e.removeEventListener("autosize:destroy",i,!1),e.removeEventListener("autosize:update",c,!1),Object.keys(t).forEach((function(n){e.style[n]=t[n]})),ds.delete(e)}.bind(e,{height:e.style.height,resize:e.style.resize,overflowY:e.style.overflowY,overflowX:e.style.overflowX,wordWrap:e.style.wordWrap});e.addEventListener("autosize:destroy",i,!1),"onpropertychange"in e&&"oninput"in e&&e.addEventListener("keyup",c,!1),window.addEventListener("resize",l,!1),e.addEventListener("input",c,!1),e.addEventListener("autosize:update",c,!1),e.style.overflowX="hidden",e.style.wordWrap="break-word",ds.set(e,{destroy:i,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),r=document.documentElement&&document.documentElement.scrollTop;e.style.height="",e.style.height=e.scrollHeight+n+"px",o=e.clientWidth,t.forEach((function(e){e.node.scrollTop=e.scrollTop})),r&&(document.documentElement.scrollTop=r)}}function c(){a();var t=Math.round(parseFloat(e.style.height)),n=window.getComputedStyle(e,null),o="content-box"===n.boxSizing?Math.round(parseFloat(n.height)):e.offsetHeight;if(o{let{size:t}=e;return cr("svg",{width:t,height:t,viewBox:"0 0 100 100",preserveAspectRatio:"xMidYMid"},cr("circle",{cx:50,cy:50,fill:"none",stroke:"currentColor",strokeWidth:"4",r:"40","stroke-dasharray":"85 30"},cr("animateTransform",{attributeName:"transform",type:"rotate",repeatCount:"indefinite",dur:"1s",values:"0 50 50;360 50 50",keyTimes:"0;1"})))};var ws=(e,t)=>{const n=e.__vccOpts||e;for(const[e,o]of t)n[e]=o;return n};const ks=$n({name:"ImageWall",components:{LoadingIcon:ys},props:{items:{type:Array,default:()=>[]},columnWidth:{type:Number,default:300},gap:{type:Number,default:0}},emit:["insert"],setup(e){let t=null;const n=Ut(null),o=Ut({}),r=Ut([]),l=()=>{const t=Math.floor((n.value.getBoundingClientRect().width+e.gap)/(e.columnWidth+e.gap));return t>0?t:1},i=e=>new Array(e).fill(null).map((()=>[])),s=async t=>{var o;if(t>=e.items.length)return;await an();const l=Array.from((null===(o=n.value)||void 0===o?void 0:o.children)||[]).reduce(((e,t)=>t.getBoundingClientRect().height0&&void 0!==arguments[0]&&arguments[0];if(r.value.length===l()&&!e)return;r.value=i(l());const t=window.scrollY;await s(0),window.scrollTo({top:t})};return Ln((()=>[e.items]),(()=>{o.value={},a(!0)})),Ln((()=>[e.columnWidth,e.gap]),(()=>a())),Pn((()=>{a(!0),t=new ResizeObserver((()=>a())),t.observe(n.value)})),Fn((()=>t.unobserve(n.value))),{columns:r,state:o,wall:n}}}),bs=["data-index"],xs=["src","title","onLoad","onClick"];const _s=$n({name:"CommentBox",components:{CloseIcon:e=>{let{size:t}=e;return cr("svg",{class:"wl-close-icon",viewBox:"0 0 1024 1024",width:t,height:t},[cr("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"}),cr("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:()=>cr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},cr("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:()=>cr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[cr("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"}),cr("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:ws(ks,[["render",function(e,t,n,o,r,l){const i=Hn("LoadingIcon");return zo(),Lo("div",{ref:"wall",class:"wl-gallery",style:_({gap:"".concat(e.gap,"px")})},[(zo(!0),Lo(bo,null,Zn(e.columns,((t,n)=>(zo(),Lo("div",{key:n,class:"wl-gallery-column","data-index":n,style:_({gap:"".concat(e.gap,"px")})},[(zo(!0),Lo(bo,null,Zn(t,(t=>(zo(),Lo(bo,{key:t},[e.state[e.items[t].src]?Do("v-if",!0):(zo(),To(i,{key:0,size:36,style:{margin:"20px auto"}})),Po("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","![](".concat(e.items[t].src,")"))},null,40,xs)],64)))),128))],12,bs)))),128))],4)}],["__file","ImageWall.vue"]]),MarkdownIcon:()=>cr("svg",{width:"16",height:"16",ariaHidden:"true"},cr("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:()=>cr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[cr("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"}),cr("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:ys,GifIcon:()=>cr("svg",{width:24,height:24,fill:"currentcolor",viewBox:"0 0 24 24"},[cr("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"}),cr("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:""}},emits:["submit","cancel-reply"],setup(e,t){let{emit:n}=t;const o=Rn("config"),r=Ml("WALINE_COMMENT_BOX_EDITOR",""),l=Ml("WALINE_USER_META",{nick:"",mail:"",link:""}),i=is(),s=Ut({}),a=Ut(null),c=Ut(null),u=Ut(null),p=Ut(null),d=Ut(null),h=Ut(null),f=Ut(null),g=Ut({tabs:[],map:{}}),m=Ut(0),v=Ut(!1),y=Ut(!1),w=Ut(!1),k=Ut(""),b=Ut(0),x=bt({loading:!0,list:[]}),_=Ut(0),S=Ut(!1),C=Ut(""),I=Ut(!1),z=ar((()=>o.value.locale)),R=ar((()=>{var e;return Boolean(null===(e=i.value)||void 0===e?void 0:e.token)})),E=ar((()=>!1!==o.value.imageUploader)),A=e=>{const t=a.value,n=t.selectionStart,o=t.selectionEnd||0,l=t.scrollTop;r.value=t.value.substring(0,n)+e+t.value.substring(o,t.value.length),t.focus(),t.selectionStart=n+e.length,t.selectionEnd=n+e.length,t.scrollTop=l},L=e=>{const t="![".concat(o.value.locale.uploading," ").concat(e.name,"]()");return A(t),Promise.resolve().then((()=>o.value.imageUploader(e))).then((n=>{r.value=r.value.replace(t,"\r\n![".concat(e.name,"](").concat(n,")"))}))},T=()=>{var t,c;const{serverURL:u,lang:p,login:d,wordLimit:h,requiredMeta:f}=o.value,m={comment:C.value,nick:l.value.nick,mail:l.value.mail,link:l.value.link,ua:navigator.userAgent,url:o.value.path};if(null!==(t=i.value)&&void 0!==t&&t.token)m.nick=i.value.display_name,m.mail=i.value.email,m.link=i.value.url;else{if("force"===d)return;var v,y,w;if(f.indexOf("nick")>-1&&!m.nick)return null===(v=s.value.nick)||void 0===v||v.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===(y=s.value.mail)||void 0===y||y.focus(),alert(z.value.mailError);if(!m.comment)return void(null===(w=a.value)||void 0===w||w.focus());m.nick||(m.nick=z.value.anonymous)}if(!S.value)return alert(z.value.wordHint.replace("$0",h[0].toString()).replace("$1",h[1].toString()).replace("$2",b.value.toString()));m.comment=ts(m.comment,g.value.map),e.replyId&&e.rootId&&(m.pid=e.replyId,m.rid=e.rootId,m.at=e.replyUser),I.value=!0,(e=>{let{serverURL:t,lang:n,token:o,comment:r}=e;const l={"Content-Type":"application/json"};return o&&(l.Authorization="Bearer ".concat(o)),fetch("".concat(t,"/comment?lang=").concat(n),{method:"POST",headers:l,body:JSON.stringify(r)}).then((e=>e.json()))})({serverURL:u,lang:p,token:null===(c=i.value)||void 0===c?void 0:c.token,comment:m}).then((t=>{if(I.value=!1,t.errmsg)return alert(t.errmsg);n("submit",t.data),r.value="",k.value="",e.replyId&&n("cancel-reply")})).catch((e=>{I.value=!1,alert(e.message)}))},j=e=>{u.value.contains(e.target)||p.value.contains(e.target)||(v.value=!1),d.value.contains(e.target)||h.value.contains(e.target)||(y.value=!1)},$=async e=>{var t;const{scrollTop:n,clientHeight:r,scrollHeight:l}=e.target,i=(r+n)/l,s=o.value.search,a=(null===(t=f.value)||void 0===t?void 0:t.value)||"";i<.9||x.loading||(x.loading=!0,x.list.push(...s.more?await s.more(a,x.list.length):await s.search(a)),x.loading=!1,setTimeout((()=>{e.target.scrollTop=n}),50))},O=function(e){return il(al(arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),e)}((e=>{x.list=[],$(e)}),300);return Ln([o,b],(e=>{let[t,n]=e;const{wordLimit:o}=t;o?no[1]?(_.value=o[1],S.value=!1):(_.value=o[1],S.value=!0):(_.value=0,S.value=!0)}),{immediate:!0}),Ln(y,(async e=>{if(!e)return;const t=o.value.search;f.value&&(f.value.value=""),x.loading=!0,x.list=t.default?await t.default():await t.search(""),x.loading=!1})),Pn((()=>{document.body.addEventListener("click",j),Ln((()=>r.value),(e=>{const{highlighter:t,texRenderer:n}=o.value;C.value=e,k.value=ns(e,{emojiMap:g.value.map,highlighter:t,texRenderer:n}),b.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?vs(a.value):vs.destroy(a.value)}),{immediate:!0}),Ln((()=>o.value.emoji),(e=>{return(t=Array.isArray(e)?e:[],Promise.all(t.map((e=>"string"==typeof e?oi(Jl(e)):Promise.resolve(e)))).then((e=>{const t={tabs:[],map:{}};return e.forEach((e=>{const{name:n,folder:o,icon:r,prefix:l,type:i,items:s}=e;t.tabs.push({name:n,icon:ri(r,o,l,i),items:s.map((e=>{const n="".concat(l||"").concat(e);return t.map[n]=ri(e,o,l,i),n}))})})),t}))).then((e=>{g.value=e}));var t}),{immediate:!0})})),Nn((()=>{document.body.removeEventListener("click",j)})),{config:o,locale:z,insert:A,onChange:()=>{const e=c.value;e.files&&E.value&&L(e.files[0]).then((()=>{e.value=""}))},onDrop:e=>{var t;if(null!==(t=e.dataTransfer)&&void 0!==t&&t.items){const t=hi(e.dataTransfer.items);t&&E.value&&(L(t),e.preventDefault())}},onKeyDown:e=>{const t=e.key;(e.ctrlKey||e.metaKey)&&"Enter"===t&&T()},onPaste:e=>{if(e.clipboardData){const t=hi(e.clipboardData.items);t&&E.value&&L(t)}},onLogin:e=>{e.preventDefault();const{lang:t,serverURL:n}=o.value,r=(window.innerWidth-450)/2,l=(window.innerHeight-450)/2,s=window.open("".concat(n,"/ui/login?lng=").concat(encodeURIComponent(t)),"_blank","width=".concat(450,",height=").concat(450,",left=").concat(r,",top=").concat(l,",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(),i.value=t.data,(t.data.remember?localStorage:sessionStorage).setItem("WALINE_USER",JSON.stringify(t.data)),window.removeEventListener("message",a))};window.addEventListener("message",a)},onLogout:()=>{i.value={},localStorage.setItem("WALINE_USER","null"),sessionStorage.setItem("WALINE_USER","null")},onProfile:e=>{e.preventDefault();const{lang:t,serverURL:n}=o.value,r=(window.innerWidth-800)/2,l=(window.innerHeight-800)/2,s=window.open("".concat(n,"/ui/profile?lng=").concat(encodeURIComponent(t)),"_blank","width=".concat(800,",height=").concat(800,",left=").concat(r,",top=").concat(l,",scrollbars=no,resizable=no,status=no,location=no,toolbar=no,menubar=no"));null==s||s.postMessage({type:"TOKEN",data:i.value.token},"*");const a=e=>{let{data:t}=e;t&&"profile"===t.type&&(i.value={...i.value,...t},[localStorage,sessionStorage].filter((e=>e.getItem("WALINE_USER"))).forEach((e=>e.setItem("WALINE_USER",JSON.stringify(i)))),window.removeEventListener("message",a))};window.addEventListener("message",a)},submitComment:T,onImageWallScroll:$,onGifSearch:O,isLogin:R,userInfo:i,isSubmitting:I,wordNumber:b,wordLimit:_,isWordNumberLegal:S,editor:r,userMeta:l,emoji:g,emojiTabIndex:m,showEmoji:v,gifData:x,showGif:y,canUploadImage:E,previewText:k,showPreview:w,inputRefs:s,editorRef:a,emojiButtonRef:u,emojiPopupRef:p,gifButtonRef:d,gifPopupRef:h,imageUploadRef:c,gifSearchInputRef:f}}}),Ss={class:"wl-comment"},Cs={key:0,class:"wl-login-info"},Is={class:"wl-avatar"},zs=["title"],Rs=["src"],Es=["textContent"],As={class:"wl-panel"},Ls=["for","textContent"],Ts=["id","name","type","onUpdate:modelValue"],js=["placeholder"],$s={class:"wl-preview"},Os=Po("hr",null,null,-1),Us=["innerHTML"],Ms={class:"wl-footer"},Ps={class:"wl-actions"},Fs={href:"https://guides.github.com/features/mastering-markdown/",title:"Markdown Guide","aria-label":"Markdown is supported",class:"wl-action",target:"_blank",rel:"noreferrer"},Ns=["title"],Vs=["title"],Bs=["title"],Ds=["title"],Hs={class:"wl-info"},Ws={class:"wl-text-number"},qs={key:0},Zs=Bo("  /  "),Gs=["textContent"],Js=["textContent"],Ks=["disabled"],Qs=["placeholder"],Ys={key:0,class:"wl-loading"},Xs={key:0,class:"wl-tab-wrapper"},ea=["title","onClick"],ta=["src","alt"],na={key:0,class:"wl-tabs"},oa=["onClick"],ra=["src","alt","title"],la=["title"];var ia=ws(_s,[["render",function(e,t,n,o,r,l){const i=Hn("CloseIcon"),s=Hn("MarkdownIcon"),a=Hn("EmojiIcon"),c=Hn("GifIcon"),u=Hn("ImageIcon"),p=Hn("PreviewIcon"),d=Hn("LoadingIcon"),h=Hn("ImageWall");return zo(),Lo("div",Ss,["disable"!==e.config.login&&e.isLogin?(zo(),Lo("div",Cs,[Po("div",Is,[Po("button",{class:"wl-logout-btn",title:e.locale.logout,onClick:t[0]||(t[0]=function(){return e.onLogout&&e.onLogout(...arguments)})},[Fo(i,{size:14})],8,zs),Po("img",{src:e.userInfo.avatar,alt:"avatar"},null,8,Rs)]),Po("a",{href:"#",class:"wl-login-nick","aria-label":"Profile",onClick:t[1]||(t[1]=function(){return e.onProfile&&e.onProfile(...arguments)}),textContent:A(e.userInfo.display_name)},null,8,Es)])):Do("v-if",!0),Po("div",As,["force"!==e.config.login&&e.config.meta.length&&!e.isLogin?(zo(),Lo("div",{key:0,class:z(["wl-header","item".concat(e.config.meta.length)])},[(zo(!0),Lo(bo,null,Zn(e.config.meta,(t=>(zo(),Lo("div",{class:"wl-header-item",key:t},[Po("label",{for:t,textContent:A(e.locale[t]+(e.config.requiredMeta.includes(t)||!e.config.requiredMeta.length?"":"(".concat(e.locale.optional,")")))},null,8,Ls),Vn(Po("input",{ref_for:!0,ref:n=>{n&&(e.inputRefs[t]=n)},id:"wl-".concat(t),class:z(["wl-input","wl-".concat(t)]),name:t,type:"mail"===t?"email":"text","onUpdate:modelValue":n=>e.userMeta[t]=n},null,10,Ts),[[Zr,e.userMeta[t]]])])))),128))],2)):Do("v-if",!0),Vn(Po("textarea",{class:"wl-editor",ref:"editorRef",id:"wl-edit",placeholder:e.replyUser?"@".concat(e.replyUser):e.locale.placeholder,"onUpdate:modelValue":t[2]||(t[2]=t=>e.editor=t),onKeydown:t[3]||(t[3]=function(){return e.onKeyDown&&e.onKeyDown(...arguments)}),onDrop:t[4]||(t[4]=function(){return e.onDrop&&e.onDrop(...arguments)}),onPaste:t[5]||(t[5]=function(){return e.onPaste&&e.onPaste(...arguments)})},null,40,js),[[Fr,e.editor]]),Vn(Po("div",$s,[Os,Po("h4",null,A(e.locale.preview)+":",1),Po("div",{class:"wl-content",innerHTML:e.previewText},null,8,Us)],512),[[Jr,e.showPreview]]),Po("div",Ms,[Po("div",Ps,[Po("a",Fs,[Fo(s)]),Vn(Po("button",{ref:"emojiButtonRef",class:z(["wl-action",{actived:e.showEmoji}]),title:e.locale.emoji,onClick:t[6]||(t[6]=t=>e.showEmoji=!e.showEmoji)},[Fo(a)],10,Ns),[[Jr,e.emoji.tabs.length]]),e.config.search?(zo(),Lo("button",{key:0,ref:"gifButtonRef",class:z(["wl-action",{actived:e.showGif}]),title:e.locale.gif,onClick:t[7]||(t[7]=t=>e.showGif=!e.showGif)},[Fo(c)],10,Vs)):Do("v-if",!0),Po("input",{ref:"imageUploadRef",class:"upload",id:"wl-image-upload",type:"file",accept:".png,.jpg,.jpeg,.webp,.bmp,.gif",onChange:t[8]||(t[8]=function(){return e.onChange&&e.onChange(...arguments)})},null,544),e.canUploadImage?(zo(),Lo("label",{key:1,for:"wl-image-upload",class:"wl-action",title:e.locale.uploadImage},[Fo(u)],8,Bs)):Do("v-if",!0),Po("button",{class:z(["wl-action",{actived:e.showPreview}]),title:e.locale.preview,onClick:t[9]||(t[9]=t=>e.showPreview=!e.showPreview)},[Fo(p)],10,Ds)]),Po("div",Hs,[Po("div",Ws,[Bo(A(e.wordNumber)+" ",1),e.config.wordLimit?(zo(),Lo("span",qs,[Zs,Po("span",{class:z({illegal:!e.isWordNumberLegal}),textContent:A(e.wordLimit)},null,10,Gs)])):Do("v-if",!0),Bo("  "+A(e.locale.word),1)]),"disable"===e.config.login||e.isLogin?Do("v-if",!0):(zo(),Lo("button",{key:0,class:"wl-btn",onClick:t[10]||(t[10]=function(){return e.onLogin&&e.onLogin(...arguments)}),textContent:A(e.locale.login)},null,8,Js)),"force"!==e.config.login||e.isLogin?(zo(),Lo("button",{key:1,class:"wl-btn primary",title:"Cmd|Ctrl + Enter",disabled:e.isSubmitting,onClick:t[11]||(t[11]=function(){return e.submitComment&&e.submitComment(...arguments)})},[e.isSubmitting?(zo(),To(d,{key:0,size:16})):(zo(),Lo(bo,{key:1},[Bo(A(e.locale.submit),1)],64))],8,Ks)):Do("v-if",!0)]),Po("div",{ref:"gifPopupRef",class:z(["wl-gif-popup",{display:e.showGif}])},[Po("input",{type:"text",placeholder:e.locale.gifSearchPlaceholder,ref:"gifSearchInputRef",onInput:t[12]||(t[12]=function(){return e.onGifSearch&&e.onGifSearch(...arguments)})},null,40,Qs),Fo(h,{items:e.gifData.list,"column-width":200,gap:6,onInsert:t[13]||(t[13]=t=>e.insert(t)),onScroll:e.onImageWallScroll},null,8,["items","onScroll"]),e.gifData.loading?(zo(),Lo("div",Ys,[Fo(d,{size:30})])):Do("v-if",!0)],2),Po("div",{ref:"emojiPopupRef",class:z(["wl-emoji-popup",{display:e.showEmoji}])},[(zo(!0),Lo(bo,null,Zn(e.emoji.tabs,((t,n)=>(zo(),Lo(bo,{key:t.name},[n===e.emojiTabIndex?(zo(),Lo("div",Xs,[(zo(!0),Lo(bo,null,Zn(t.items,(t=>(zo(),Lo("button",{key:t,title:t,onClick:n=>e.insert(":".concat(t,":"))},[e.showEmoji?(zo(),Lo("img",{key:0,class:"wl-emoji",src:e.emoji.map[t],alt:t,loading:"lazy",referrerPolicy:"no-referrer"},null,8,ta)):Do("v-if",!0)],8,ea)))),128))])):Do("v-if",!0)],64)))),128)),e.emoji.tabs.length>1?(zo(),Lo("div",na,[(zo(!0),Lo(bo,null,Zn(e.emoji.tabs,((t,n)=>(zo(),Lo("button",{key:t.name,class:z(["wl-tab",{active:e.emojiTabIndex===n}]),onClick:t=>e.emojiTabIndex=n},[Po("img",{class:"wl-emoji",src:t.icon,alt:t.name,title:t.name,loading:"lazy",referrerPolicy:"no-referrer"},null,8,ra)],10,oa)))),128))])):Do("v-if",!0)],2)])]),e.replyId?(zo(),Lo("button",{key:1,class:"wl-close",title:e.locale.cancelReply,onClick:t[14]||(t[14]=t=>e.$emit("cancel-reply"))},[Fo(i,{size:24})],8,la)):Do("v-if",!0)])}],["__file","CommentBox.vue"]]);const sa=["approved","waiting","spam"],aa=$n({props:{comment:{type:Object,required:!0},rootId:{type:String,required:!0},reply:{type:Object}},components:{CommentBox:ia,DeleteIcon:()=>cr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},cr("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 cr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},[cr("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".concat(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:()=>cr("svg",{viewBox:"0 0 1024 1024",width:"24",height:"24"},cr("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"})),VerifiedIcon:()=>cr("svg",{class:"verified-icon",viewBox:"0 0 1024 1024",width:"14",height:"14"},cr("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"}))},emits:["submit","reply","like","delete","status","sticky"],setup(e){const t=Rn("config"),n=as(),o=is(),r=ar((()=>t.value.locale)),l=ar((()=>{let{link:t}=e.comment;return t?Kl(t)?t:"https://".concat(t):""})),i=ar((()=>n.value.includes(e.comment.objectId))),s=rs(e.comment.insertedAt,r.value),a=ar((()=>"administrator"===o.value.type)),c=ar((()=>e.comment.user_id&&o.value.objectId===e.comment.user_id)),u=ar((()=>{var t;return e.comment.objectId===(null===(t=e.reply)||void 0===t?void 0:t.objectId)}));return{config:t,locale:r,isReplyingCurrent:u,link:l,like:i,time:s,isAdmin:a,isOwner:c,commentStatus:sa}}}),ca=["id"],ua={class:"wl-user","aria-hidden":"true"},pa=["src"],da={class:"wl-card"},ha={class:"wl-head"},fa=["href"],ga={key:1,class:"wl-nick"},ma=["textContent"],va=["textContent"],ya=["textContent"],wa=["textContent"],ka=["textContent"],ba={class:"wl-comment-actions"},xa=["title"],_a=["textContent"],Sa=["title"],Ca={class:"wl-meta","aria-hidden":"true"},Ia=["textContent"],za=["textContent"],Ra=["textContent"],Ea=["innerHTML"],Aa={key:0,class:"wl-admin-actions"},La={class:"wl-comment-status"},Ta=["disabled","onClick","textContent"],ja={key:1,class:"wl-reply-wrapper"},$a={key:2,class:"wl-quote"};const Oa=$n({name:"WalineRoot",components:{CommentBox:ia,CommentCard:ws(aa,[["render",function(e,t,n,o,r,l){const i=Hn("VerifiedIcon"),s=Hn("DeleteIcon"),a=Hn("LikeIcon"),c=Hn("ReplyIcon"),u=Hn("CommentBox"),p=Hn("CommentCard",!0);return zo(),Lo("div",{class:"wl-item",id:e.comment.objectId},[Po("div",ua,[e.comment.avatar?(zo(),Lo("img",{key:0,src:e.comment.avatar},null,8,pa)):Do("v-if",!0),e.comment.type?(zo(),To(i,{key:1})):Do("v-if",!0)]),Po("div",da,[Po("div",ha,[e.link?(zo(),Lo("a",{key:0,class:"wl-nick",href:e.link,target:"_blank",rel:"nofollow noreferrer"},A(e.comment.nick),9,fa)):(zo(),Lo("span",ga,A(e.comment.nick),1)),"administrator"===e.comment.type?(zo(),Lo("span",{key:2,class:"wl-badge",textContent:A(e.locale.admin)},null,8,ma)):Do("v-if",!0),e.comment.label?(zo(),Lo("span",{key:3,class:"wl-badge",textContent:A(e.comment.label)},null,8,va)):Do("v-if",!0),e.comment.sticky?(zo(),Lo("span",{key:4,class:"wl-badge",textContent:A(e.locale.sticky)},null,8,ya)):Do("v-if",!0),void 0!==e.comment.level&&e.comment.level>=0?(zo(),Lo("span",{key:5,class:z("wl-badge level".concat(e.comment.level)),textContent:A(e.locale["level".concat(e.comment.level)]||"Level ".concat(e.comment.level))},null,10,wa)):Do("v-if",!0),Po("span",{class:"wl-time",textContent:A(e.time)},null,8,ka),Po("div",ba,[e.isAdmin||e.isOwner?(zo(),Lo("button",{key:0,class:"wl-delete",onClick:t[0]||(t[0]=t=>e.$emit("delete",e.comment))},[Fo(s)])):Do("v-if",!0),Po("button",{class:"wl-like",onClick:t[1]||(t[1]=t=>e.$emit("like",e.comment)),title:e.like?e.locale.cancelLike:e.locale.like},[Fo(a,{active:e.like},null,8,["active"]),"like"in e.comment?(zo(),Lo("span",{key:0,textContent:A(e.comment.like)},null,8,_a)):Do("v-if",!0)],8,xa),Po("button",{class:z(["wl-reply",{active:e.isReplyingCurrent}]),title:e.isReplyingCurrent?e.locale.cancelReply:e.locale.reply,onClick:t[2]||(t[2]=t=>e.$emit("reply",e.isReplyingCurrent?null:e.comment))},[Fo(c)],10,Sa)])]),Po("div",Ca,[e.comment.addr?(zo(),Lo("span",{key:0,textContent:A(e.comment.addr)},null,8,Ia)):Do("v-if",!0),e.comment.browser?(zo(),Lo("span",{key:1,textContent:A(e.comment.browser)},null,8,za)):Do("v-if",!0),e.comment.os?(zo(),Lo("span",{key:2,textContent:A(e.comment.os)},null,8,Ra)):Do("v-if",!0)]),Po("div",{class:"wl-content",innerHTML:e.comment.comment},null,8,Ea),e.isAdmin?(zo(),Lo("div",Aa,[Po("span",La,[(zo(!0),Lo(bo,null,Zn(e.commentStatus,(t=>(zo(),Lo("button",{key:t,class:z("wl-btn wl-".concat(t)),disabled:e.comment.status===t,onClick:n=>e.$emit("status",{status:t,comment:e.comment}),textContent:A(t)},null,10,Ta)))),128))]),e.isAdmin&&!e.comment.rid?(zo(),Lo("button",{key:0,class:"wl-btn wl-sticky",onClick:t[3]||(t[3]=t=>e.$emit("sticky",e.comment))},A(e.comment.sticky?"unsticky":"sticky"),1)):Do("v-if",!0)])):Do("v-if",!0),e.isReplyingCurrent?(zo(),Lo("div",ja,[Fo(u,{replyId:e.comment.objectId,replyUser:e.comment.nick,rootId:e.rootId,onSubmit:t[4]||(t[4]=t=>e.$emit("submit",t)),onCancelReply:t[5]||(t[5]=t=>e.$emit("reply",null))},null,8,["replyId","replyUser","rootId"])])):Do("v-if",!0),e.comment.children?(zo(),Lo("div",$a,[(zo(!0),Lo(bo,null,Zn(e.comment.children,(n=>(zo(),To(p,{key:n.objectId,comment:n,reply:e.reply,rootId:e.rootId,onReply:t[6]||(t[6]=t=>e.$emit("reply",t)),onSubmit:t[7]||(t[7]=t=>e.$emit("submit",t)),onLike:t[8]||(t[8]=t=>e.$emit("like",t)),onDelete:t[9]||(t[9]=t=>e.$emit("delete",t)),onStatus:t[10]||(t[10]=t=>e.$emit("status",t)),onSticky:t[11]||(t[11]=t=>e.$emit("sticky",t))},null,8,["comment","reply","rootId"])))),128))])):Do("v-if",!0)])],8,ca)}],["__file","CommentCard.vue"]]),LoadingIcon:ys},props:["serverURL","path","meta","requiredMeta","dark","lang","locale","pageSize","wordLimit","emoji","login","highlighter","texRenderer","imageUploader","copyright"],setup(e){const t=ar((()=>(e=>{let{serverURL:t,path:s=location.pathname,lang:a=o,locale:c,emoji:p=["//unpkg.com/@waline/emojis@1.0.1/weibo"],meta:d=["nick","mail","link"],requiredMeta:h=[],dark:f=!1,pageSize:g=10,wordLimit:m,imageUploader:v,highlighter:y,texRenderer:k,copyright:b=!0,login:x="enable",search:_=i(),...S}=e;return{serverURL:Ql(t),path:Gl(s),locale:{...w[a]||w[o],..."object"==typeof c?c:{}},wordLimit:Yl(m),meta:n(d),requiredMeta:n(h),imageUploader:Xl(v,r),highlighter:Xl(y,u),texRenderer:Xl(k,l),lang:a,dark:f,emoji:p,pageSize:g,login:x,copyright:b,search:_,...S}})(e))),s=is(),a=as(),c=Ut("loading"),p=Ut(0),d=Ut(1),h=Ut(0),f=Ut([]),g=Ut(null),m=ar((()=>{return"string"==typeof(e=t.value.dark)?"auto"===e?"@media(prefers-color-scheme:dark){body".concat(ei,"}"):"".concat(e).concat(ei):!0===e?":root".concat(ei):"";var e}));let v;!function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=Ut(!1),{document:o=El,immediate:r=!0,manual:l=!1,id:i="vueuse_styletag_".concat(++Zl)}=t,s=Ut(e);let a=()=>{};const c=()=>{if(!o)return;const e=o.getElementById(i)||o.createElement("style");e.type="text/css",e.id=i,t.media&&(e.media=t.media),o.head.appendChild(e),n.value||(a=Ln(s,(t=>{e.innerText=t}),{immediate:!0}),n.value=!0)},u=()=>{o&&n.value&&(a(),o.head.removeChild(o.getElementById(i)),n.value=!1)};r&&!l&&c(),l||tl(u),_t(n)}(m);const y=e=>{var n,o;const{serverURL:r,path:l,pageSize:i}=t.value,a=new AbortController;c.value="loading",null===(n=v)||void 0===n||n(),(e=>{let{serverURL:t,lang:n,path:o,page:r,pageSize:l,signal:i,token:s}=e;const a={};return s&&(a.Authorization="Bearer ".concat(s)),fetch("".concat(t,"/comment?path=").concat(encodeURIComponent(o),"&pageSize=").concat(l,"&page=").concat(r,"&lang=").concat(n),{signal:i,headers:a}).then((e=>e.json())).then((e=>si(e,"comment list")))})({serverURL:r,lang:t.value.lang,path:l,pageSize:i,page:e,signal:a.signal,token:null===(o=s.value)||void 0===o?void 0:o.token}).then((t=>{c.value="success",p.value=t.count,f.value.push(...t.data),d.value=e,h.value=t.totalPages})).catch((e=>{"AbortError"!==e.name&&(console.error(e.message),c.value="error")})),v=a.abort.bind(a)},k=()=>{p.value=0,f.value=[],y(1)};return function(e,t){if(Qo){let n=Qo.provides;const o=Qo.parent&&Qo.parent.provides;o===n&&(n=Qo.provides=Object.create(o)),n[e]=t}}("config",t),Ln((()=>e.path),k),Pn((()=>k())),{config:t,darkmodeStyle:m,i18n:ar((()=>t.value.locale)),status:c,count:p,page:d,totalPages:h,data:f,reply:g,loadMore:()=>y(d.value+1),refresh:k,onReply:e=>{g.value=e},onSubmit:e=>{if(e.rid){const t=f.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 f.value.unshift(e)},onStatusChange:async e=>{var n;let{comment:o,status:r}=e;if(o.status===r)return;const{serverURL:l,lang:i}=t.value;await ai({serverURL:l,lang:i,token:null===(n=s.value)||void 0===n?void 0:n.token,objectId:o.objectId,status:r}),o.status=r},onDelete:async e=>{var n;let{objectId:o}=e;if(!confirm("Are you sure you want to delete this comment?"))return;const{serverURL:r,lang:l}=t.value;await(e=>{let{serverURL:t,lang:n,token:o,objectId:r}=e;const l={Authorization:"Bearer ".concat(o)};return fetch("".concat(t,"/comment/").concat(r,"?lang=").concat(n),{method:"DELETE",headers:l}).then((e=>e.json()))})({serverURL:r,lang:l,token:null===(n=s.value)||void 0===n?void 0:n.token,objectId:o}),f.value.some(((e,t)=>e.objectId===o?(f.value=f.value.filter(((e,n)=>n!==t)),!0):e.children.some(((n,r)=>n.objectId===o&&(f.value[t].children=e.children.filter(((e,t)=>t!==r)),!0)))))},onSticky:async e=>{var n;if(e.rid)return;const{serverURL:o,lang:r}=t.value;await ai({serverURL:o,lang:r,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:o}=t.value,{objectId:r}=e,l=a.value.includes(r);await(e=>{let{serverURL:t,lang:n,objectId:o,like:r}=e;return fetch("".concat(t,"/comment/").concat(o,"?lang=").concat(n),{method:"PUT",headers:ii,body:JSON.stringify({like:r})}).then((e=>e.json()))})({serverURL:n,lang:o,objectId:r,like:!l}),l?a.value=a.value.filter((e=>e!==r)):(a.value=[...a.value,r],a.value.length>50&&(a.value=a.value.slice(-50))),e.like=(e.like||0)+(l?-1:1)},version:"2.6.1"}}}),Ua={"data-waline":""},Ma={class:"wl-count"},Pa=["textContent"],Fa={class:"wl-cards"},Na={key:1,class:"wl-operation"},Va=["textContent"],Ba={key:0,class:"wl-loading"},Da=["textContent"],Ha={class:"wl-operation"},Wa=["textContent"],qa={key:3,class:"wl-power"},Za=Bo(" Powered by "),Ga=Po("a",{href:"https://github.com/walinejs/waline",target:"_blank",rel:"noreferrer"}," Waline ",-1);var Ja=ws(Oa,[["render",function(e,t,n,o,r,l){const i=Hn("CommentBox"),s=Hn("CommentCard"),a=Hn("LoadingIcon");return zo(),Lo("div",Ua,[e.reply?Do("v-if",!0):(zo(),To(i,{key:0,onSubmit:e.onSubmit},null,8,["onSubmit"])),Po("div",Ma,[e.count?(zo(),Lo("span",{key:0,class:"wl-num",textContent:A(e.count)},null,8,Pa)):Do("v-if",!0),Bo(" "+A(e.i18n.comment),1)]),Po("div",Fa,[(zo(!0),Lo(bo,null,Zn(e.data,(t=>(zo(),To(s,{key:t.objectId,"root-id":t.objectId,comment:t,reply:e.reply,onReply:e.onReply,onSubmit:e.onSubmit,onStatus:e.onStatusChange,onDelete:e.onDelete,onSticky:e.onSticky,onLike:e.onLike},null,8,["root-id","comment","reply","onReply","onSubmit","onStatus","onDelete","onSticky","onLike"])))),128))]),"error"===e.status?(zo(),Lo("div",Na,[Po("button",{type:"button",class:"wl-btn",onClick:t[0]||(t[0]=function(){return e.refresh&&e.refresh(...arguments)}),textContent:A(e.i18n.refresh)},null,8,Va)])):(zo(),Lo(bo,{key:2},["loading"===e.status?(zo(),Lo("div",Ba,[Fo(a,{size:30})])):e.data.length?e.page{t.forEach(((t,n)=>{t.innerText=e[n].toString()}))},Qa=e=>{let{serverURL:t,path:n=window.location.pathname,selector:o=".waline-pageview-count",update:r=!0,lang:l="zh-CN"}=e;const i=new AbortController,s=Array.from(document.querySelectorAll(o)),a=e=>{const t=os(e);return null!==t&&n!==t},c=e=>ci({serverURL:Ql(t),paths:e.map((e=>os(e)||n)),lang:l,signal:i.signal}).then((t=>Ka(t,e))).catch(li);if(r){const e=s.filter((e=>!a(e))),o=s.filter(a);ui({serverURL:Ql(t),path:n,lang:l}).then((t=>Ka(new Array(e.length).fill(t),e))),o.length&&c(o)}else c(s);return i.abort.bind(i)};e.pageviewCount=Qa;e.init=e=>{let{el:t="#waline",path:n=window.location.pathname,comment:o=!1,pageview:r=!1,...l}=e;const i=t?pi(t):null;if(t&&!i)throw new Error("Option 'el' do not match any domElement!");if(!l.serverURL)throw new Error("Option 'serverURL' is missing!");const s=bt({...l}),a=bt({comment:o,pageview:r,path:n}),c=i?function(){const e=Xr().createApp(...arguments),{mount:t}=e;return e.mount=n=>{const o=el(n);if(!o)return;const r=e._component;Z(r)||r.render||r.template||(r.template=o.innerHTML),o.innerHTML="";const l=t(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),l},e}((()=>cr(Ja,{path:a.path,...s}))):null;c&&c.mount(i);const u=En((()=>{a.comment&&cs({serverURL:s.serverURL,path:a.path,selector:"string"==typeof a.comment?a.comment:void 0})})),p=En((()=>{a.pageview&&Qa({serverURL:s.serverURL,path:a.path,selector:"string"==typeof a.pageview?a.pageview:void 0})}));return{el:i,update:function(){let{comment:e,pageview:t,path:n=window.location.pathname,...o}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object.entries(o).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.version="2.6.1";e.RecentComments=e=>{var t;let{el:n,serverURL:o,count:r,lang:l="zh-CN"}=e;const i=is(),s=pi(n),a=new AbortController;return(e=>{let{serverURL:t,lang:n,count:o,signal:r,token:l}=e;const i={};return l&&(i.Authorization="Bearer ".concat(l)),fetch("".concat(t,"/comment?type=recent&count=").concat(o,"&lang=").concat(n),{signal:r,headers:i}).then((e=>e.json())).then((e=>si(e,"recent comment")))})({serverURL:o,count:r,lang:l,signal:a.signal,token:null===(t=i.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()}))}})); +//# sourceMappingURL=waline.js.map diff --git a/exampleSite/config.toml b/exampleSite/config.toml index fc09bf62..d806c645 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -887,17 +887,16 @@ enableEmoji = true [params.page.comment.waline] enable = false serverURL = "" - visitor = false - emoji = ['https://cdn.jsdelivr.net/gh/walinejs/emojis/weibo'] + pageview = false + emoji = ['//unpkg.com/@waline/emojis@1.0.1/weibo'] meta = ['nick', 'mail', 'link'] requiredMeta = [] login = 'enable' wordLimit = 0 pageSize = 10 - uploadImage = false - highlight = true - mathTagSupport = false - commentCount = false + imageUploader = false + highlighter = true + comment = false # Facebook comment config (https://developers.facebook.com/docs/plugins/comments) # Facebook 评论系统设置 (https://developers.facebook.com/docs/plugins/comments) [params.page.comment.facebook] @@ -1116,7 +1115,7 @@ enableEmoji = true # 位于 "themes/FixIt/assets/data/cdn/" 目录 # 可以在你的项目下相同路径存放你自己的数据文件: # "assets/data/cdn/" - # data = "jsdelivr.yml" + # data = "unpkg.yml" # Compatibility config # 兼容性设置 diff --git a/exampleSite/content/posts/theme-documentation-basics/index.en.md b/exampleSite/content/posts/theme-documentation-basics/index.en.md index 0af3b585..5589187d 100644 --- a/exampleSite/content/posts/theme-documentation-basics/index.en.md +++ b/exampleSite/content/posts/theme-documentation-basics/index.en.md @@ -564,7 +564,7 @@ Please open the code block below to view the complete sample configuration :(fa- Skype = false Trello = false Mix = false - # {{< version 0.2.14 changed >}} Comment config + # {{< version 0.2.15 changed >}} Comment config [params.page.comment] enable = false # {{< version 0.2.13 >}} {{< link "https://artalk.js.org/" Artalk >}} comment config (https://artalk.js.org/) @@ -580,6 +580,7 @@ Please open the code block below to view the complete sample configuration :(fa- maxNesting = 3 # It take effect when `params.page.lightgallery` is enabled lightgallery = false + locale = "" # {{< version 0.2.15 >}} # {{< version 0.1.1 >}} {{< link "https://disqus.com/" Disqus >}} comment config (https://disqus.com) [params.page.comment.disqus] enable = false @@ -618,17 +619,21 @@ Please open the code block below to view the complete sample configuration :(fa- [params.page.comment.waline] enable = false serverURL = "" - visitor = false - emoji = ['https://cdn.jsdelivr.net/gh/walinejs/emojis/weibo'] + pageview = false # {{< version 0.2.15 >}} + emoji = ['//unpkg.com/@waline/emojis@1.0.1/weibo'] meta = ['nick', 'mail', 'link'] requiredMeta = [] login = 'enable' wordLimit = 0 pageSize = 10 - uploadImage = false - highlight = true - mathTagSupport = false - commentCount = false + imageUploader = false # {{< version 0.2.15 >}} + highlighter = true # {{< version 0.2.15 >}} + comment = false # {{< version 0.2.15 >}} + # visitor = false # {{< version 0.2.15 deleted >}} renamed to pageview + # uploadImage = false # {{< version 0.2.15 deleted >}} renamed to imageUploader + # highlight = true # {{< version 0.2.15 deleted >}} renamed to highlighter + # mathTagSupport = false {{< version 0.2.15 deleted >}} + # commentCount = false {{< version 0.2.15 deleted >}} renamed to comment # {{< link "https://developers.facebook.com/docs/plugins/comments" "Facebook comment" >}} config (https://developers.facebook.com/docs/plugins/comments) [params.page.comment.facebook] enable = false @@ -796,11 +801,11 @@ Please open the code block below to view the complete sample configuration :(fa- # {{< version 0.2.7 changed >}} CDN config for third-party library files [params.cdn] # CDN data file name, disabled by default - # ("jsdelivr.yml") + # ("jsdelivr.yml", "unpkg.yml") # located in "themes/FixIt/assets/data/cdn/" directory # you can store your own data files in the same path under your project: # "assets/data/cdn/" - data = "" + # data = "unpkg" # {{< version 0.2.8 >}} Compatibility config [params.compatibility] diff --git a/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md b/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md index 031ecd01..eaadcc0b 100644 --- a/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md +++ b/exampleSite/content/posts/theme-documentation-basics/index.zh-cn.md @@ -566,7 +566,7 @@ hugo Skype = false Trello = false Mix = false - # {{< version 0.2.14 changed >}} 评论系统设置 + # {{< version 0.2.15 changed >}} 评论系统设置 [params.page.comment] enable = false # {{< version 0.2.13 >}} {{< link "https://artalk.js.org/" Artalk >}} 评论系统设置 (https://artalk.js.org/) @@ -582,6 +582,7 @@ hugo maxNesting = 3 # 当 `params.page.lightgallery` 启用时生效 lightgallery = false + locale = "" # {{< version 0.2.15 >}} # {{< version 0.1.1 >}} {{< link "https://disqus.com/" Disqus >}} 评论系统设置 (https://disqus.com) [params.page.comment.disqus] enable = false @@ -620,17 +621,21 @@ hugo [params.page.comment.waline] enable = false serverURL = "" - visitor = false - emoji = ['https://cdn.jsdelivr.net/gh/walinejs/emojis/weibo'] + pageview = false # {{< version 0.2.15 >}} + emoji = ['//unpkg.com/@waline/emojis@1.0.1/weibo'] meta = ['nick', 'mail', 'link'] requiredMeta = [] login = 'enable' wordLimit = 0 pageSize = 10 - uploadImage = false - highlight = true - mathTagSupport = false - commentCount = false + imageUploader = false # {{< version 0.2.15 >}} + highlighter = true # {{< version 0.2.15 >}} + comment = false # {{< version 0.2.15 >}} + # visitor = false # {{< version 0.2.15 deleted >}} 更名为 pageview + # uploadImage = false # {{< version 0.2.15 deleted >}} 更名为 imageUploader + # highlight = true # {{< version 0.2.15 deleted >}} 更名为 highlighter + # mathTagSupport = false {{< version 0.2.15 deleted >}} + # commentCount = false {{< version 0.2.15 deleted >}} 更名为 comment # {{< link "https://developers.facebook.com/docs/plugins/comments" "Facebook 评论系统" >}}设置 (https://developers.facebook.com/docs/plugins/comments) [params.page.comment.facebook] enable = false @@ -797,11 +802,11 @@ hugo # {{< version 0.2.7 changed >}} 第三方库文件的 CDN 设置 [params.cdn] # CDN 数据文件名称,默认不启用 - # ("jsdelivr.yml") + # ("jsdelivr.yml", "unpkg.yml") # 位于 "themes/FixIt/assets/data/cdn/" 目录 # 可以在你的项目下相同路径存放你自己的数据文件: # "assets/data/cdn/" - # data = "jsdelivr.yml" + # data = "unpkg.yml" # {{< version 0.2.8 >}} 兼容性设置 [params.compatibility] diff --git a/layouts/partials/single/comment.html b/layouts/partials/single/comment.html index 3b764fe2..c515dca5 100644 --- a/layouts/partials/single/comment.html +++ b/layouts/partials/single/comment.html @@ -109,11 +109,13 @@ {{- $waline := $comment.waline | default dict -}} {{- if $waline.enable -}}
    - {{- $source := $cdn.walineJS | default "lib/waline/Waline.min.js" -}} + {{- $source := $cdn.walineCSS | default "lib/waline/waline.css" -}} + {{- dict "Source" $source "Fingerprint" $fingerprint | dict "Scratch" .Scratch "Data" | partial "scratch/style.html" -}} + {{- $source := $cdn.walineJS | default "lib/waline/waline.js" -}} {{- dict "Source" $source "Fingerprint" $fingerprint "Defer" true | dict "Scratch" .Scratch "Data" | partial "scratch/script.html" -}} {{- $commentConfig = dict "el" "#waline" "serverURL" $waline.serverURL "lang" .Lang "dark" "body[theme='dark']" "copyright" true | dict "waline" | merge $commentConfig -}} - {{- with $waline.visitor -}} - {{- $commentConfig = dict "visitor" . | dict "waline" | merge $commentConfig -}} + {{- with $waline.pageview -}} + {{- $commentConfig = dict "pageview" . | dict "waline" | merge $commentConfig -}} {{- end -}} {{- with $waline.emoji -}} {{- $commentConfig = dict "emoji" . | dict "waline" | merge $commentConfig -}} @@ -133,14 +135,14 @@ {{- with $waline.pageSize -}} {{- $commentConfig = dict "pageSize" . | dict "waline" | merge $commentConfig -}} {{- end -}} - {{- with $waline.uploadImage -}} - {{- $commentConfig = dict "uploadImage" . | dict "waline" | merge $commentConfig -}} + {{- with $waline.imageUploader -}} + {{- $commentConfig = dict "imageUploader" . | dict "waline" | merge $commentConfig -}} {{- end -}} - {{- with $waline.highlight -}} - {{- $commentConfig = dict "highlight" . | dict "waline" | merge $commentConfig -}} + {{- with $waline.highlighter -}} + {{- $commentConfig = dict "highlighter" . | dict "waline" | merge $commentConfig -}} {{- end -}} - {{- with $waline.mathTagSupport -}} - {{- $commentConfig = dict "mathTagSupport" . | dict "waline" | merge $commentConfig -}} + {{- with $waline.comment -}} + {{- $commentConfig = dict "comment" . | dict "waline" | merge $commentConfig -}} {{- end -}}