From b9263a70af61c94c1afeeb3005894e3c75fc8b8e Mon Sep 17 00:00:00 2001 From: coortop Date: Sat, 8 Aug 2020 11:19:17 +0800 Subject: [PATCH] update --- dist/halo-comment.js | 2 +- dist/halo-comment.min.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/halo-comment.js b/dist/halo-comment.js index 005f5f5..90e336f 100644 --- a/dist/halo-comment.js +++ b/dist/halo-comment.js @@ -10963,7 +10963,7 @@ module.exports = DESCRIPTORS ? function (object, key, value) { /***/ "9224": /***/ (function(module) { -module.exports = JSON.parse("{\"name\":\"halo-comment-alex\",\"version\":\"v1.1.1\",\"private\":false,\"scripts\":{\"serve\":\"vue-cli-service serve\",\"build\":\"vue-cli-service build\",\"build-comment\":\"cross-env vue-cli-service build --target wc --name halo-comment 'src/components/Comment.vue'\",\"lint\":\"vue-cli-service lint\"},\"dependencies\":{\"vue\":\"^2.6.10\",\"autosize\":\"^4.0.2\",\"axios\":\"^0.19.0\",\"highlight\":\"^0.2.4\",\"highlight.js\":\"^10.1.1\",\"highlightjs\":\"^9.16.2\",\"marked\":\"^1.1.0\",\"md5\":\"^2.2.1\",\"cross-env\":\"7.0.2\",\"promise.prototype.finally\":\"^3.1.2\",\"ua-parser-js\":\"^0.7.21\",\"viewerjs\":\"^1.6.1\"},\"devDependencies\":{\"@vue/cli-plugin-babel\":\"^4.1.0\",\"@vue/cli-plugin-eslint\":\"^4.1.0\",\"@vue/cli-service\":\"^4.1.0\",\"babel-eslint\":\"^10.0.3\",\"eslint\":\"^5.16.0\",\"eslint-plugin-vue\":\"^5.0.0\",\"node-sass\":\"^4.13.0\",\"sass-loader\":\"^8.0.0\",\"vue-template-compiler\":\"^2.6.10\"},\"eslintConfig\":{\"root\":true,\"env\":{\"node\":true},\"extends\":[\"plugin:vue/essential\",\"eslint:recommended\"],\"rules\":{\"no-console\":\"off\"},\"parserOptions\":{\"parser\":\"babel-eslint\"}},\"browserslist\":[\"> 1%\",\"last 2 versions\"],\"description\":\"

halo-comment-normal

> 适用于 Halo 的评论组件。\",\"main\":\"babel.config.js\",\"repository\":{\"type\":\"git\",\"url\":\"git+https://github.com/coortop/halo-comment-alex.git\"},\"author\":\"弥枳\",\"license\":\"ISC\",\"bugs\":{\"url\":\"https://github.com/coortop/halo-comment-alex/issues\"},\"homepage\":\"https://github.com/coortop/halo-comment-alex#readme\"}"); +module.exports = JSON.parse("{\"name\":\"halo-comment-alex\",\"version\":\"v1.1.2\",\"private\":false,\"scripts\":{\"serve\":\"vue-cli-service serve\",\"build\":\"vue-cli-service build\",\"build-comment\":\"cross-env vue-cli-service build --target wc --name halo-comment 'src/components/Comment.vue'\",\"lint\":\"vue-cli-service lint\"},\"dependencies\":{\"vue\":\"^2.6.10\",\"autosize\":\"^4.0.2\",\"axios\":\"^0.19.0\",\"highlight\":\"^0.2.4\",\"highlight.js\":\"^10.1.1\",\"highlightjs\":\"^9.16.2\",\"marked\":\"^1.1.0\",\"md5\":\"^2.2.1\",\"cross-env\":\"7.0.2\",\"promise.prototype.finally\":\"^3.1.2\",\"ua-parser-js\":\"^0.7.21\",\"viewerjs\":\"^1.6.1\"},\"devDependencies\":{\"@vue/cli-plugin-babel\":\"^4.1.0\",\"@vue/cli-plugin-eslint\":\"^4.1.0\",\"@vue/cli-service\":\"^4.1.0\",\"babel-eslint\":\"^10.0.3\",\"eslint\":\"^5.16.0\",\"eslint-plugin-vue\":\"^5.0.0\",\"node-sass\":\"^4.13.0\",\"sass-loader\":\"^8.0.0\",\"vue-template-compiler\":\"^2.6.10\"},\"eslintConfig\":{\"root\":true,\"env\":{\"node\":true},\"extends\":[\"plugin:vue/essential\",\"eslint:recommended\"],\"rules\":{\"no-console\":\"off\"},\"parserOptions\":{\"parser\":\"babel-eslint\"}},\"browserslist\":[\"> 1%\",\"last 2 versions\"],\"description\":\"

halo-comment-normal

> 适用于 Halo 的评论组件。\",\"main\":\"babel.config.js\",\"repository\":{\"type\":\"git\",\"url\":\"git+https://github.com/coortop/halo-comment-alex.git\"},\"author\":\"弥枳\",\"license\":\"ISC\",\"bugs\":{\"url\":\"https://github.com/coortop/halo-comment-alex/issues\"},\"homepage\":\"https://github.com/coortop/halo-comment-alex#readme\"}"); /***/ }), diff --git a/dist/halo-comment.min.js b/dist/halo-comment.min.js index bf3a3b6..a918f41 100644 --- a/dist/halo-comment.min.js +++ b/dist/halo-comment.min.js @@ -18,7 +18,7 @@ e.exports=function(e){return null!=e&&(n(e)||r(e)||!!e._isBuffer)}},"06cf":funct * * Copyright © 2012-2019 Faisal Salman * Licensed under MIT License - */(function(i,o){"use strict";var a="0.7.21",s="",c="?",l="function",u="undefined",p="object",m="string",d="major",f="model",h="name",g="type",b="vendor",y="version",v="architecture",w="console",x="mobile",k="tablet",A="smarttv",S="wearable",z="embedded",j={extend:function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2===0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n},has:function(e,t){return"string"===typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return typeof e===m?e.replace(/[^\d\.]/g,"").split(".")[0]:o},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},T={rgx:function(e,t){var n,r,i,a,s,c,u=0;while(u0?2==a.length?typeof a[1]==l?this[a[0]]=a[1].call(this,c):this[a[0]]=a[1]:3==a.length?typeof a[1]!==l||a[1].exec&&a[1].test?this[a[0]]=c?c.replace(a[1],a[2]):o:this[a[0]]=c?a[1].call(this,c,a[2]):o:4==a.length&&(this[a[0]]=c?a[3].call(this,c.replace(a[1],a[2])):o):this[a]=c||o;u+=2}},str:function(e,t){for(var n in t)if(typeof t[n]===p&&t[n].length>0){for(var r=0;rn)t.push(arguments[n++]);return w[++v]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(v),v},h=function(e){delete w[e]},"process"==c(g)?r=function(e){g.nextTick(A(e))}:y&&y.now?r=function(e){y.now(A(e))}:b&&!m?(i=new b,o=i.port2,i.port1.onmessage=S,r=l(o.postMessage,o,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||s(z)||"file:"===d.protocol?r=x in p("script")?function(e){u.appendChild(p("script"))[x]=function(){u.removeChild(this),k(e)}}:function(e){setTimeout(A(e),0)}:(r=z,a.addEventListener("message",S,!1))),e.exports={set:f,clear:h}},"2d00":function(e,t,n){var r,i,o=n("da84"),a=n("342f"),s=o.process,c=s&&s.versions,l=c&&c.v8;l?(r=l.split("."),i=r[0]+r[1]):a&&(r=a.match(/Edge\/(\d+)/),(!r||r[1]>=74)&&(r=a.match(/Chrome\/(\d+)/),r&&(i=r[1]))),e.exports=i&&+i},"2d83":function(e,t,n){"use strict";var r=n("387f");e.exports=function(e,t,n,i,o){var a=new Error(e);return r(a,t,n,i,o)}},"2e67":function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},"30b5":function(e,t,n){"use strict";var r=n("c532");function i(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var o;if(n)o=n(t);else if(r.isURLSearchParams(t))o=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!==e&&"undefined"!==typeof e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(i(t)+"="+i(e))})))})),o=a.join("&")}if(o){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}},"342f":function(e,t,n){var r=n("d066");e.exports=r("navigator","userAgent")||""},"35a1":function(e,t,n){var r=n("f5df"),i=n("3f8c"),o=n("b622"),a=o("iterator");e.exports=function(e){if(void 0!=e)return e[a]||e["@@iterator"]||i[r(e)]}},"35d6":function(e,t,n){"use strict";function r(e,t){for(var n=[],r={},i=0;ic)i.f(e,n=r[c++],t[n]);return e}},"387f":function(e,t,n){"use strict";e.exports=function(e,t,n,r,i){return e.config=t,n&&(e.code=n),e.request=r,e.response=i,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},"38a1":function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,".category-title.经典{margin-top:8px!important}",""]),e.exports=t},3934:function(e,t,n){"use strict";var r=n("c532");e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=i(window.location.href),function(t){var n=r.isString(t)?i(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return function(){return!0}}()},"3bbe":function(e,t,n){var r=n("861d");e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},"3d27":function(e,t,n){"use strict";var r=n("5183");e.exports=function(e){return"symbol"===typeof e?"Symbol":r(e)}},"3e4b":function(e,t,n){"use strict";var r=n("a0d3"),i=n("c46d"),o=n("3d27");e.exports=function(e){return"undefined"!==typeof e&&(i(o,"Property Descriptor","Desc",e),!(!r(e,"[[Value]]")&&!r(e,"[[Writable]]")))}},"3f8c":function(e,t){e.exports={}},"428f":function(e,t,n){var r=n("da84");e.exports=r},"42bf":function(e,t,n){var r=n("24fb");t=r(!1),t.push([e.i,'/*!\n * Viewer.js v1.6.1\n * https://fengyuanchen.github.io/viewerjs\n *\n * Copyright 2015-present Chen Fengyuan\n * Released under the MIT license\n *\n * Date: 2020-06-14T07:47:15.792Z\n */.viewer-close:before,.viewer-flip-horizontal:before,.viewer-flip-vertical:before,.viewer-fullscreen-exit:before,.viewer-fullscreen:before,.viewer-next:before,.viewer-one-to-one:before,.viewer-play:before,.viewer-prev:before,.viewer-reset:before,.viewer-rotate-left:before,.viewer-rotate-right:before,.viewer-zoom-in:before,.viewer-zoom-out:before{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARgAAAAUCAYAAABWOyJDAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAABx0RVh0U29mdHdhcmUAQWRvYmUgRmlyZXdvcmtzIENTNui8sowAAAQPSURBVHic7Zs/iFxVFMa/0U2UaJGksUgnIVhYxVhpjDbZCBmLdAYECxsRFBTUamcXUiSNncgKQbSxsxH8gzAP3FU2jY0kKKJNiiiIghFlccnP4p3nPCdv3p9778vsLOcHB2bfveeb7955c3jvvNkBIMdxnD64a94GHMfZu3iBcRynN7zAOI7TG15gHCeeNUkr8zaxG2lbYDYsdgMbktBsP03jdQwljSXdtBhLOmtjowC9Mg9L+knSlcD8TNKpSA9lBpK2JF2VdDSR5n5J64m0qli399hNFMUlpshQii5jbXTbHGviB0nLNeNDSd9VO4A2UdB2fp+x0eCnaXxWXGA2X0au/3HgN9P4LFCjIANOJdrLr0zzZ+BEpNYDwKbpnQMeAw4m8HjQtM6Z9qa917zPQwFr3M5KgA6J5rTJCdFZJj9/lyvGhsDvwFNVuV2MhhjrK6b9bFiE+j1r87eBl4HDwCF7/U/k+ofAX5b/EXBv5JoLMuILzf3Ap6Z3EzgdqHMCuF7hcQf4HDgeoHnccncqdK/TvSDWffFXI/exICY/xZyqc6XLWF1UFZna4gJ7q8BsRvgd2/xXpo6P+D9dfT7PpECtA3cnWPM0GXGFZh/wgWltA+cDNC7X+AP4GzjZQe+k5dRxuYPeiuXU7e1qwLpDz7dFjXKRaSwuMLvAlG8zZlG+YmiK1HoFqT7wP2z+4Q45TfEGcMt01xLoNZEBTwRqD4BLpnMLeC1A41UmVxsXgXeBayV/Wx20rpTyrpnWRft7p6O/FdqzGrDukPNtkaMoMo3FBdBSQMOnYBCReyf05s126fU9ytfX98+mY54Kxnp7S9K3kj6U9KYdG0h6UdLbkh7poFXMfUnSOyVvL0h6VtIXHbS6nOP+s/Zm9mvyXW1uuC9ohZ72E9uDmXWLJOB1GxsH+DxPftsB8B6wlGDN02TAkxG6+4D3TWsbeC5CS8CDFce+AW500LhhOW2020TRjK3b21HEmgti9m0RonxbdMZeVzV+/4tF3cBpP7E9mKHNL5q8h5g0eYsCMQz0epq8gQrwMXAgcs0FGXGFRcB9wCemF9PkbYqM/Bas7fxLwNeJPdTdpo4itQti8lPMqTpXuozVRVXPpbHI3KkNTB1NfkL81j2mvhDp91HgV9MKuRIqrykj3WPq4rHyL+axj8/qGPmTqi6F9YDlHOvJU6oYcTsh/TYSzWmTE6JT19CtLTJt32D6CmHe0eQn1O8z5AXgT4sx4Vcu0/EQecMydB8z0hUWkTd2t4CrwNEePqMBcAR4mrBbwyXLPWJa8zrXmmLEhNBmfpkuY2102xxrih+pb+ieAb6vGhuA97UcJ5KR8gZ77K+99xxeYBzH6Q3/Z0fHcXrDC4zjOL3hBcZxnN74F+zlvXFWXF9PAAAAAElFTkSuQmCC");background-repeat:no-repeat;background-size:280px;color:transparent;display:block;font-size:0;height:20px;line-height:0;width:20px}.viewer-zoom-in:before{background-position:0 0;content:"Zoom In"}.viewer-zoom-out:before{background-position:-20px 0;content:"Zoom Out"}.viewer-one-to-one:before{background-position:-40px 0;content:"One to One"}.viewer-reset:before{background-position:-60px 0;content:"Reset"}.viewer-prev:before{background-position:-80px 0;content:"Previous"}.viewer-play:before{background-position:-100px 0;content:"Play"}.viewer-next:before{background-position:-120px 0;content:"Next"}.viewer-rotate-left:before{background-position:-140px 0;content:"Rotate Left"}.viewer-rotate-right:before{background-position:-160px 0;content:"Rotate Right"}.viewer-flip-horizontal:before{background-position:-180px 0;content:"Flip Horizontal"}.viewer-flip-vertical:before{background-position:-200px 0;content:"Flip Vertical"}.viewer-fullscreen:before{background-position:-220px 0;content:"Enter Full Screen"}.viewer-fullscreen-exit:before{background-position:-240px 0;content:"Exit Full Screen"}.viewer-close:before{background-position:-260px 0;content:"Close"}.viewer-container{bottom:0;direction:ltr;font-size:0;left:0;line-height:0;overflow:hidden;position:absolute;right:0;-webkit-tap-highlight-color:transparent;top:0;-ms-touch-action:none;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.viewer-container::-moz-selection,.viewer-container ::-moz-selection{background-color:transparent}.viewer-container::selection,.viewer-container ::selection{background-color:transparent}.viewer-container img{display:block;height:auto;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}.viewer-canvas{bottom:0;left:0;overflow:hidden;position:absolute;right:0;top:0}.viewer-canvas>img{height:auto;margin:15px auto;max-width:90%!important;width:auto}.viewer-footer{bottom:0;left:0;overflow:hidden;position:absolute;right:0;text-align:center}.viewer-navbar{background-color:rgba(0,0,0,.5);overflow:hidden}.viewer-list{-webkit-box-sizing:content-box;box-sizing:content-box;height:50px;margin:0;overflow:hidden;padding:1px 0}.viewer-list>li{color:transparent;cursor:pointer;float:left;font-size:0;height:50px;line-height:0;opacity:.5;overflow:hidden;-webkit-transition:opacity .15s;transition:opacity .15s;width:30px}.viewer-list>li:hover{opacity:.75}.viewer-list>li+li{margin-left:1px}.viewer-list>.viewer-loading{position:relative}.viewer-list>.viewer-loading:after{border-width:2px;height:20px;margin-left:-10px;margin-top:-10px;width:20px}.viewer-list>.viewer-active,.viewer-list>.viewer-active:hover{opacity:1}.viewer-player{background-color:#000;bottom:0;cursor:none;display:none;right:0}.viewer-player,.viewer-player>img{left:0;position:absolute;top:0}.viewer-toolbar>ul{display:inline-block;margin:0 auto 5px;overflow:hidden;padding:3px 0}.viewer-toolbar>ul>li{background-color:rgba(0,0,0,.5);border-radius:50%;cursor:pointer;float:left;height:24px;overflow:hidden;-webkit-transition:background-color .15s;transition:background-color .15s;width:24px}.viewer-toolbar>ul>li:hover{background-color:rgba(0,0,0,.8)}.viewer-toolbar>ul>li:before{margin:2px}.viewer-toolbar>ul>li+li{margin-left:1px}.viewer-toolbar>ul>.viewer-small{height:18px;margin-bottom:3px;margin-top:3px;width:18px}.viewer-toolbar>ul>.viewer-small:before{margin:-1px}.viewer-toolbar>ul>.viewer-large{height:30px;margin-bottom:-3px;margin-top:-3px;width:30px}.viewer-toolbar>ul>.viewer-large:before{margin:5px}.viewer-tooltip{background-color:rgba(0,0,0,.8);border-radius:10px;color:#fff;display:none;font-size:12px;height:20px;left:50%;line-height:20px;margin-left:-25px;margin-top:-10px;position:absolute;text-align:center;top:50%;width:50px}.viewer-title{color:#ccc;display:inline-block;font-size:12px;line-height:1;margin:0 5% 5px;max-width:90%;opacity:.8;overflow:hidden;text-overflow:ellipsis;-webkit-transition:opacity .15s;transition:opacity .15s;white-space:nowrap}.viewer-title:hover{opacity:1}.viewer-button{background-color:rgba(0,0,0,.5);border-radius:50%;cursor:pointer;height:80px;overflow:hidden;position:absolute;right:-40px;top:-40px;-webkit-transition:background-color .15s;transition:background-color .15s;width:80px}.viewer-button:focus,.viewer-button:hover{background-color:rgba(0,0,0,.8)}.viewer-button:before{bottom:15px;left:15px;position:absolute}.viewer-fixed{position:fixed}.viewer-open{overflow:hidden}.viewer-show{display:block}.viewer-hide{display:none}.viewer-backdrop{background-color:rgba(0,0,0,.5)}.viewer-invisible{visibility:hidden}.viewer-move{cursor:move;cursor:-webkit-grab;cursor:grab}.viewer-fade{opacity:0}.viewer-in{opacity:1}.viewer-transition{-webkit-transition:all .3s;transition:all .3s}@-webkit-keyframes viewer-spinner{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes viewer-spinner{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.viewer-loading:after{-webkit-animation:viewer-spinner 1s linear infinite;animation:viewer-spinner 1s linear infinite;border:4px solid hsla(0,0%,100%,.1);border-left-color:hsla(0,0%,100%,.5);border-radius:50%;content:"";display:inline-block;height:40px;left:50%;margin-left:-20px;margin-top:-20px;position:absolute;top:50%;width:40px;z-index:1}@media (max-width:767px){.viewer-hide-xs-down{display:none}}@media (max-width:991px){.viewer-hide-sm-down{display:none}}@media (max-width:1199px){.viewer-hide-md-down{display:none}}',""]),e.exports=t},4362:function(e,t,n){t.nextTick=function(e){var t=Array.prototype.slice.call(arguments);t.shift(),setTimeout((function(){e.apply(null,t)}),0)},t.platform=t.arch=t.execPath=t.title="browser",t.pid=1,t.browser=!0,t.env={},t.argv=[],t.binding=function(e){throw new Error("No such module. (Possibly not yet loaded)")},function(){var e,r="/";t.cwd=function(){return r},t.chdir=function(t){e||(e=n("df7c")),r=e.resolve(t,r)}}(),t.exit=t.kill=t.umask=t.dlopen=t.uptime=t.memoryUsage=t.uvCounters=function(){},t.features={}},"437b":function(e,t,n){var r=n("fe24");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("35d6").default;e.exports.__inject__=function(e){i("e060ca56",r,e)}},"44ad":function(e,t,n){var r=n("d039"),i=n("c6b6"),o="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?o.call(e,""):Object(e)}:Object},"44b7":function(e,t,n){"use strict";var r=n("0f7c"),i=n("e9ac"),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(a,o);e.exports=function(){return s(r,a,arguments)},e.exports.apply=function(){return s(r,o,arguments)}},"44d2":function(e,t,n){var r=n("b622"),i=n("7c73"),o=n("9bf2"),a=r("unscopables"),s=Array.prototype;void 0==s[a]&&o.f(s,a,{configurable:!0,value:i(null)}),e.exports=function(e){s[a][e]=!0}},"44de":function(e,t,n){var r=n("da84");e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},"44e7":function(e,t,n){var r=n("861d"),i=n("c6b6"),o=n("b622"),a=o("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==i(e))}},4600:function(e,t,n){var r=n("38a1");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("35d6").default;e.exports.__inject__=function(e){i("0ebc04d1",r,e)}},"467f":function(e,t,n){"use strict";var r=n("2d83");e.exports=function(e,t,n){var i=n.config.validateStatus;!i||i(n.status)?e(n):t(r("Request failed with status code "+n.status,n.config,null,n.request,n))}},4840:function(e,t,n){var r=n("825a"),i=n("1c0b"),o=n("b622"),a=o("species");e.exports=function(e,t){var n,o=r(e).constructor;return void 0===o||void 0==(n=r(o)[a])?t:i(n)}},4906:function(e,t,n){"use strict";var r=n("e9ac"),i=r("%TypeError%"),o=n("fffd"),a=n("2a6d"),s=n("9dc9"),c=n("9c74"),l=n("3e4b"),u=n("63d2"),p=n("dbbe"),m=n("ee7e"),d=n("3d27");e.exports=function(e,t,n){if("Object"!==d(e))throw new i("Assertion failed: Type(O) is not Object");if(!u(t))throw new i("Assertion failed: IsPropertyKey(P) is not true");var r=o({Type:d,IsDataDescriptor:l,IsAccessorDescriptor:c},n)?n:m(n);if(!o({Type:d,IsDataDescriptor:l,IsAccessorDescriptor:c},r))throw new i("Assertion failed: Desc is not a valid Property Descriptor");return a(l,p,s,e,t,r)}},4930:function(e,t,n){var r=n("d039");e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},"4a7b":function(e,t,n){"use strict";var r=n("c532");e.exports=function(e,t){t=t||{};var n={},i=["url","method","params","data"],o=["headers","auth","proxy"],a=["baseURL","url","transformRequest","transformResponse","paramsSerializer","timeout","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","maxContentLength","validateStatus","maxRedirects","httpAgent","httpsAgent","cancelToken","socketPath"];r.forEach(i,(function(e){"undefined"!==typeof t[e]&&(n[e]=t[e])})),r.forEach(o,(function(i){r.isObject(t[i])?n[i]=r.deepMerge(e[i],t[i]):"undefined"!==typeof t[i]?n[i]=t[i]:r.isObject(e[i])?n[i]=r.deepMerge(e[i]):"undefined"!==typeof e[i]&&(n[i]=e[i])})),r.forEach(a,(function(r){"undefined"!==typeof t[r]?n[r]=t[r]:"undefined"!==typeof e[r]&&(n[r]=e[r])}));var s=i.concat(o).concat(a),c=Object.keys(t).filter((function(e){return-1===s.indexOf(e)}));return r.forEach(c,(function(r){"undefined"!==typeof t[r]?n[r]=t[r]:"undefined"!==typeof e[r]&&(n[r]=e[r])})),n}},"4d63":function(e,t,n){var r=n("83ab"),i=n("da84"),o=n("94ca"),a=n("7156"),s=n("9bf2").f,c=n("241c").f,l=n("44e7"),u=n("ad6d"),p=n("9f7f"),m=n("6eeb"),d=n("d039"),f=n("69f3").set,h=n("2626"),g=n("b622"),b=g("match"),y=i.RegExp,v=y.prototype,w=/a/g,x=/a/g,k=new y(w)!==w,A=p.UNSUPPORTED_Y,S=r&&o("RegExp",!k||A||d((function(){return x[b]=!1,y(w)!=w||y(x)==x||"/a/i"!=y(w,"i")})));if(S){var z=function(e,t){var n,r=this instanceof z,i=l(e),o=void 0===t;if(!r&&i&&e.constructor===z&&o)return e;k?i&&!o&&(e=e.source):e instanceof z&&(o&&(t=u.call(e)),e=e.source),A&&(n=!!t&&t.indexOf("y")>-1,n&&(t=t.replace(/y/g,"")));var s=a(k?new y(e,t):y(e,t),r?this:v,z);return A&&n&&f(s,{sticky:n}),s},j=function(e){e in z||s(z,e,{configurable:!0,get:function(){return y[e]},set:function(t){y[e]=t}})},T=c(y),M=0;while(T.length>M)j(T[M++]);v.constructor=z,z.prototype=v,m(i,"RegExp",z)}h("RegExp")},"4d64":function(e,t,n){var r=n("fc6a"),i=n("50c4"),o=n("23cb"),a=function(e){return function(t,n,a){var s,c=r(t),l=i(c.length),u=o(a,l);if(e&&n!=n){while(l>u)if(s=c[u++],s!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},"50c4":function(e,t,n){var r=n("a691"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},5135:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},5156:function(e,t,n){"use strict";(function(t){var r=t.Symbol,i=n("1696");e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&i())))}}).call(this,n("c8ba"))},5183:function(e,t,n){"use strict";e.exports=function(e){return null===e?"Null":"undefined"===typeof e?"Undefined":"function"===typeof e||"object"===typeof e?"Object":"number"===typeof e?"Number":"boolean"===typeof e?"Boolean":"string"===typeof e?"String":void 0}},"522d":function(e,t,n){"use strict";var r=n("be77"),i=n("8926"),o=n("f367");e.exports=function(){r();var e=i();return o(Promise.prototype,{finally:e},{finally:function(){return Promise.prototype["finally"]!==e}}),e}},5270:function(e,t,n){"use strict";var r=n("c532"),i=n("c401"),o=n("2e67"),a=n("2444");function s(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){s(e),e.headers=e.headers||{},e.data=i(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]}));var t=e.adapter||a.adapter;return t(e).then((function(t){return s(e),t.data=i(t.data,t.headers,e.transformResponse),t}),(function(t){return o(t)||(s(e),t&&t.response&&(t.response.data=i(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},5319:function(e,t,n){"use strict";var r=n("d784"),i=n("825a"),o=n("7b0b"),a=n("50c4"),s=n("a691"),c=n("1d80"),l=n("8aa5"),u=n("14c3"),p=Math.max,m=Math.min,d=Math.floor,f=/\$([$&'`]|\d\d?|<[^>]*>)/g,h=/\$([$&'`]|\d\d?)/g,g=function(e){return void 0===e?e:String(e)};r("replace",2,(function(e,t,n,r){var b=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,y=r.REPLACE_KEEPS_$0,v=b?"$":"$0";return[function(n,r){var i=c(this),o=void 0==n?void 0:n[e];return void 0!==o?o.call(n,i,r):t.call(String(i),n,r)},function(e,r){if(!b&&y||"string"===typeof r&&-1===r.indexOf(v)){var o=n(t,e,this,r);if(o.done)return o.value}var c=i(e),d=String(this),f="function"===typeof r;f||(r=String(r));var h=c.global;if(h){var x=c.unicode;c.lastIndex=0}var k=[];while(1){var A=u(c,d);if(null===A)break;if(k.push(A),!h)break;var S=String(A[0]);""===S&&(c.lastIndex=l(d,a(c.lastIndex),x))}for(var z="",j=0,T=0;T=j&&(z+=d.slice(j,C)+J,j=C+M.length)}return z+d.slice(j)}];function w(e,n,r,i,a,s){var c=r+e.length,l=i.length,u=h;return void 0!==a&&(a=o(a),u=f),t.call(s,u,(function(t,o){var s;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return n.slice(0,r);case"'":return n.slice(c);case"<":s=a[o.slice(1,-1)];break;default:var u=+o;if(0===u)return t;if(u>l){var p=d(u/10);return 0===p?t:p<=l?void 0===i[p-1]?o.charAt(1):i[p-1]+o.charAt(1):t}s=i[u-1]}return void 0===s?"":s}))}}))},5692:function(e,t,n){var r=n("c430"),i=n("c6cd");(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.5",mode:r?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,t,n){var r=n("d066"),i=n("241c"),o=n("7418"),a=n("825a");e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?t.concat(n(e)):t}},"5a34":function(e,t,n){var r=n("44e7");e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},"5a74":function(e,t,n){"use strict";if(n.r(t),"undefined"!==typeof window){var r=window.document.currentScript;if(Object({NODE_ENV:"production",BASE_URL:"/"}).NEED_CURRENTSCRIPT_POLYFILL){var i=n("8875");r=i(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:i})}var o=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);o&&(n.p=o[1])}var a=n("8bbf"),s=n.n(a);const c=/-(\w)/g,l=e=>e.replace(c,(e,t)=>t?t.toUpperCase():""),u=/\B([A-Z])/g,p=e=>e.replace(u,"-$1").toLowerCase();function m(e){const t={};return e.forEach(e=>{t[e]=void 0}),t}function d(e,t,n){e[t]=[].concat(e[t]||[]),e[t].unshift(n)}function f(e,t){if(e){const n=e.$options[t]||[];n.forEach(t=>{t.call(e)})}}function h(e,t){return new CustomEvent(e,{bubbles:!1,cancelable:!1,detail:t})}const g=e=>/function Boolean/.test(String(e)),b=e=>/function Number/.test(String(e));function y(e,t,{type:n}={}){if(g(n))return"true"===e||"false"===e?"true"===e:""===e||e===t||null!=e;if(b(n)){const t=parseFloat(e,10);return isNaN(t)?e:t}return e}function v(e,t){const n=[];for(let r=0,i=t.length;r(e[t]=s[n[r]],e),{}),d(t,"beforeCreate",(function(){const e=this.$emit;this.$emit=(t,...n)=>(this.$root.$options.customElement.dispatchEvent(h(t,n)),e.call(this,t,...n))})),d(t,"created",(function(){i.forEach(e=>{this.$root.props[e]=this[e]})})),i.forEach(e=>{Object.defineProperty(u.prototype,e,{get(){return this._wrapper.props[e]},set(t){this._wrapper.props[e]=t},enumerable:!1,configurable:!0})}),a=!0}function c(e,t){const n=l(t),r=e.hasAttribute(t)?e.getAttribute(t):void 0;e._wrapper.props[n]=y(r,t,o[n])}class u extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"});const n=this._wrapper=new e({name:"shadow-root",customElement:this,shadowRoot:this.shadowRoot,data(){return{props:{},slotChildren:[]}},render(e){return e(t,{ref:"inner",props:this.props},this.slotChildren)}}),r=new MutationObserver(e=>{let t=!1;for(let n=0;n{e.props=m(i),r.forEach(e=>{c(this,e)})};a?n():t().then(e=>{(e.__esModule||"Module"===e[Symbol.toStringTag])&&(e=e.default),s(e),n()}),e.slotChildren=Object.freeze(v(e.$createElement,this.childNodes)),e.$mount(),this.shadowRoot.appendChild(e.$el)}}disconnectedCallback(){f(this.vueComponent,"deactivated")}}return n||s(t),u}var A=k;n("24fb"),n("35d6");function S(e,t,n,r,i,o,a,s){var c,l="function"===typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},l._ssrRegister=c):i&&(c=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var p=l.beforeCreate;l.beforeCreate=p?[].concat(p,c):[c]}return{exports:e,options:l}}var z=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:e.mergedConfigs.darkMode?"halo-comment dark-mode":"halo-comment",attrs:{id:"halo-comment"}},[n("div",{staticClass:"comment-count"},[n("span",{staticClass:"vnum",domProps:{innerHTML:e._s(e.commentCount)}}),e._v(" 条评论 ")]),e.mergedConfigs.autoLoad||e.loaded?e._e():n("div",{staticClass:"comment-load-button"},[n("a",{staticClass:"button-load",attrs:{href:"javascript:void(0)",rel:"nofollow noopener"},on:{click:e.loadComments}},[e._v("加载评论")])]),n("comment-loading",{directives:[{name:"show",rawName:"v-show",value:e.commentLoading,expression:"commentLoading"}],attrs:{configs:"string"===typeof e.configs?JSON.parse(e.configs):e.configs}}),e.comments.length>=1?n("ol",{ref:"gallery",staticClass:"comment-nodes",attrs:{id:"comment-nodes"}},[e._l(e.comments,(function(t,r){return[n("CommentNode",{key:r,attrs:{targetId:e.id,target:e.target,comment:t,options:e.options,configs:e.mergedConfigs}})]}))],2):e._e(),e.loaded&&!e.commentLoading&&e.comments.length<=0?n("div",{staticClass:"comment-empty"},[e._v("暂无评论 ")]):e._e(),e.pagination.pages>1?n("div",{staticClass:"comment-page"},[n("pagination",{attrs:{page:e.pagination.page,size:e.pagination.size,total:e.pagination.total},on:{change:e.handlePaginationChange}})],1):e._e(),n("comment-editor",{attrs:{targetId:e.id,target:e.target,options:e.options,configs:e.mergedConfigs}}),n("div",{staticClass:"edition"},[n("a",{attrs:{href:"https://github.com/coortop/halo-comment-alex#readme",target:"_blank"}},[e._v("alex")]),e._v(" "+e._s(e.alexVersion)+" ")])],1)},j=[],T=(n("cca6"),n("e6cf"),n("a79d"),n("ddb0"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{staticClass:"comment-editor",attrs:{role:"form"}},[n("div",{staticClass:"inner"},[n("h4",{staticClass:"comment-reply-title"},[e._v("发表评论")]),n("form",{staticClass:"comment-form"},[n("div",{staticClass:"comment-textarea"},[e._m(0),e.previewMode?n("div",{staticClass:"markdown-body comment-preview isPreview",domProps:{innerHTML:e._s(e.renderedContent)}}):n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.comment.content,expression:"comment.content"}],ref:"commentTextarea",staticClass:"comment-preview",style:{height:e.textareaHeight},attrs:{id:"comment",required:"required","aria-required":"true",tabindex:"4",placeholder:e.options.comment_content_placeholder||"撰写评论..."},domProps:{value:e.comment.content},on:{input:function(t){t.target.composing||e.$set(e.comment,"content",t.target.value)}}})]),n("ul",{staticClass:"comment-buttons"},[n("li",{staticClass:"middle",staticStyle:{"margin-right":"5px"}},[n("div",{staticClass:"preview-btn",class:{actived:e.previewMode},attrs:{href:"javascript:void(0)",rel:"nofollow noopener"},on:{click:e.handlePreviewContent}},[n("span",{staticClass:"comment-icon"},[n("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"17688",width:"16",height:"16"}},[n("path",{attrs:{d:"M502.390154 935.384615a29.538462 29.538462 0 1 1 0 59.076923H141.430154C79.911385 994.461538 29.538462 946.254769 29.538462 886.153846V137.846154C29.538462 77.745231 79.950769 29.538462 141.390769 29.538462h741.218462c61.44 0 111.852308 48.206769 111.852307 108.307692v300.268308a29.538462 29.538462 0 1 1-59.076923 0V137.846154c0-26.899692-23.355077-49.230769-52.775384-49.230769H141.390769c-29.420308 0-52.775385 22.331077-52.775384 49.230769v748.307692c0 26.899692 23.355077 49.230769 52.775384 49.230769h360.999385z","p-id":"17689"}}),n("path",{attrs:{d:"M196.923077 216.615385m29.538461 0l374.153847 0q29.538462 0 29.538461 29.538461l0 0q0 29.538462-29.538461 29.538462l-374.153847 0q-29.538462 0-29.538461-29.538462l0 0q0-29.538462 29.538461-29.538461Z","p-id":"17690"}}),n("path",{attrs:{d:"M649.846154 846.769231a216.615385 216.615385 0 1 0 0-433.230769 216.615385 216.615385 0 0 0 0 433.230769z m0 59.076923a275.692308 275.692308 0 1 1 0-551.384616 275.692308 275.692308 0 0 1 0 551.384616z","p-id":"17691"}}),n("path",{attrs:{d:"M807.398383 829.479768m20.886847-20.886846l0 0q20.886846-20.886846 41.773692 0l125.321079 125.321079q20.886846 20.886846 0 41.773693l0 0q-20.886846 20.886846-41.773693 0l-125.321078-125.321079q-20.886846-20.886846 0-41.773693Z","p-id":"17692"}})])]),n("span",{staticClass:"comment-text"},[e._v("预览")])]),n("div",{staticClass:"emoji-btn",class:{actived:e.showEmoji},attrs:{href:"javascript:void(0)",rel:"nofollow noopener"},on:{click:e.handleToogleDialogEmoji}},[n("span",{staticClass:"comment-icon"},[n("svg",{attrs:{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"16172",width:"16",height:"16"}},[n("path",{attrs:{d:"M512 1024a512 512 0 1 1 512-512 512 512 0 0 1-512 512zM512 56.888889a455.111111 455.111111 0 1 0 455.111111 455.111111 455.111111 455.111111 0 0 0-455.111111-455.111111zM312.888889 512A85.333333 85.333333 0 1 1 398.222222 426.666667 85.333333 85.333333 0 0 1 312.888889 512z","p-id":"16173"}}),n("path",{attrs:{d:"M512 768A142.222222 142.222222 0 0 1 369.777778 625.777778a28.444444 28.444444 0 0 1 56.888889 0 85.333333 85.333333 0 0 0 170.666666 0 28.444444 28.444444 0 0 1 56.888889 0A142.222222 142.222222 0 0 1 512 768z","p-id":"16174"}}),n("path",{attrs:{d:"M782.222222 391.964444l-113.777778 59.733334a29.013333 29.013333 0 0 1-38.684444-10.808889 28.444444 28.444444 0 0 1 10.24-38.684445l113.777778-56.888888a28.444444 28.444444 0 0 1 38.684444 10.24 28.444444 28.444444 0 0 1-10.24 36.408888z","p-id":"16175"}}),n("path",{attrs:{d:"M640.568889 451.697778l113.777778 56.888889a27.875556 27.875556 0 0 0 38.684444-10.24 27.875556 27.875556 0 0 0-10.24-38.684445l-113.777778-56.888889a28.444444 28.444444 0 0 0-38.684444 10.808889 28.444444 28.444444 0 0 0 10.24 38.115556z","p-id":"16176"}})])]),n("span",{staticClass:"comment-text"},[e._v("表情")])])]),n("li",{staticClass:"middle"})]),n("div",{staticClass:"comment-emoji-wrap"},[n("VEmojiPicker",{directives:[{name:"show",rawName:"v-show",value:e.emojiDialogVisible,expression:"emojiDialogVisible"}],attrs:{pack:e.emojiPack,labelSearch:"搜索表情"},on:{select:e.handleSelectEmoji}})],1),n("div",{staticClass:"author-info"},[n("div",{staticClass:"commentator commentator-author"},[e._m(1),n("span",{staticClass:"input-avatar"},[n("img",{staticClass:"avatar-img",attrs:{src:e.avatar}})]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.comment.author,expression:"comment.author"}],staticClass:"comment-input author ",attrs:{type:"text",id:"author",tabindex:"1",required:"required","aria-required":"true",placeholder:"填写QQ号自动获取昵称和邮箱"},domProps:{value:e.comment.author},on:{blur:e.pullInfo,input:function(t){t.target.composing||e.$set(e.comment,"author",t.target.value)}}})]),n("div",{staticClass:"commentator commentator-email"},[e._m(2),n("input",{directives:[{name:"model",rawName:"v-model",value:e.comment.email,expression:"comment.email"}],staticClass:"comment-input email",attrs:{type:"text",id:"email",tabindex:"2",required:"required","aria-required":"true",placeholder:"用于获取头像和接收回复通知"},domProps:{value:e.comment.email},on:{blur:e.pullInfo,input:function(t){t.target.composing||e.$set(e.comment,"email",t.target.value)}}})]),n("div",{staticClass:"commentator commentator-authorUrl"},[n("label",{attrs:{for:"authorUrl"}},[e._v("地址")]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.comment.authorUrl,expression:"comment.authorUrl"}],staticClass:"comment-input link",attrs:{type:"text",id:"authorUrl",tabindex:"3",placeholder:"网站或博客地址"},domProps:{value:e.comment.authorUrl},on:{input:function(t){t.target.composing||e.$set(e.comment,"authorUrl",t.target.value)}}})])]),n("div",{staticClass:"comment-buttons SubmitBtn"},[n("button",{staticClass:"button-submit",attrs:{href:"javascript:void(0)",tabindex:"5",rel:"nofollow noopener",type:"button"},on:{click:e.handleSubmitClick}},[e._v("发表评论 ")])]),n("div",{staticClass:"comment-alert"},[e.infoAlertVisiable?e._l(e.infoes,(function(t,r){return n("div",{key:r,staticClass:"alert info"},[n("span",{staticClass:"closebtn",on:{click:e.clearAlertClose}},[e._v("×")]),n("strong",[e._v(e._s(t))])])})):e._e(),e.successAlertVisiable?e._l(e.successes,(function(t,r){return n("div",{key:r,staticClass:"alert success"},[n("span",{staticClass:"closebtn",on:{click:e.clearAlertClose}},[e._v("×")]),n("strong",[e._v(e._s(t))])])})):e._e(),e.warningAlertVisiable?e._l(e.warnings,(function(t,r){return n("div",{key:r,staticClass:"alert warning"},[n("span",{staticClass:"closebtn",on:{click:e.clearAlertClose}},[e._v("×")]),n("strong",[e._v(e._s(t))])])})):e._e()],2)])])])}),M=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{attrs:{for:"comment"}},[e._v("评论 "),n("span",[e._v("*")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{attrs:{for:"author"}},[e._v(" 名称 "),n("span",[e._v("*")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("label",{attrs:{for:"email"}},[e._v(" 邮箱 "),n("span",[e._v("*")])])}];n("1276");function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t\n \n \n \n ',flags:'\n \n \n \n ',foods:'\n \n \n \n \n ',frequenty:'\n \n \n \n \n ',nature:'\n \n \n \n ',objects:'\n \n \n \n ',peoples:'\n \n \n \n ',places:'\n \n \n \n ',symbols:'\n \n \n \n '};var D={name:"VSvg",props:{name:{type:String,required:!0},styles:{type:Object}},computed:{icon(){return B[this.name]},styleSVG(){return O({},this.styles)}}},W=D;function Q(e){}var q=S(W,X,U,!1,Q,null,null,!0),F=q.exports,Y={name:"Categories",components:{VSvg:F},data:()=>({categories:[{name:"Frequenty",icon:"frequenty"},{name:"Peoples",icon:"peoples"},{name:"Nature",icon:"nature"},{name:"Foods",icon:"foods"},{name:"Activity",icon:"activity"},{name:"Objects",icon:"objects"},{name:"Places",icon:"places"},{name:"Symbols",icon:"symbols"},{name:"Flags",icon:"flags"}],active:1}),methods:{onSelect(e){this.active=e;const t=this.categories[e];this.$emit("select",t)}}},H=Y;function G(e){}var K=S(H,L,V,!1,G,null,null,!0),_=K.exports,$=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"Emojis"}},[n("div",{ref:"container-emoji",staticClass:"container-emoji"},[e.continuousList?e._l(e.dataFilteredByCategory,(function(t,r){return n("div",{key:r,staticClass:"category-line"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.length,expression:"category.length"}],ref:r,refInFor:!0,staticClass:"category-title",class:r},[e._v(" "+e._s(r)+" ")]),t.length?n("div",{staticClass:"grid-emojis"},e._l(t,(function(t,i){return n("Emoji",{key:r+"-"+i,attrs:{data:t},nativeOn:{click:function(n){return e.onSelect(t)}}})})),1):e._e()])})):n("div",{staticClass:"grid-emojis"},e._l(e.dataFiltered,(function(t,r){return n("Emoji",{key:r,attrs:{data:t},nativeOn:{click:function(n){return e.onSelect(t)}}})})),1)],2)])},ee=[],te=(n("2532"),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("span",{staticClass:"emoji",class:e.data["category"],domProps:{innerHTML:e._s(e.data["emoji"])}})}),ne=[],re={name:"Emoji",props:{data:{type:String}}},ie=re;function oe(e){var t=n("845e");t.__inject__&&t.__inject__(e)}var ae=S(ie,te,ne,!1,oe,null,null,!0),se=ae.exports,ce={name:"EmojiList",components:{Emoji:se},props:{data:{type:Object,required:!0},emojisByRow:{type:Number,required:!0},filter:{type:String},continuousList:{type:Boolean},category:{type:String}},methods:{onSelect(e){this.$emit("select",e)}},computed:{gridDynamic(){const e=5;return{gridTemplateColumns:`repeat(${this.emojisByRow}, ${e}%)`}},dataFiltered(){let e=this.data[this.category];const t=this.filter.trim();return t&&(e=e.filter(e=>e.aliases.some(e=>e.includes(t.toLowerCase())))),e},dataFilteredByCategory(){let e=Object.assign({},this.data);const t=this.filter.trim();return t&&this.categories.forEach(n=>{e[n]=this.data[n].filter(e=>e.aliases.some(e=>e.includes(t.toLowerCase())))}),e},categories(){return Object.keys(this.data)}},watch:{data(){this.$refs["container-emoji"].scrollTop=0},category(e){if(this.continuousList){const t=this.$refs[e][0],n=t.offsetTop-80;this.$refs["container-emoji"].scrollTop=n}}}},le=ce;function ue(e){var t=n("2af4");t.__inject__&&t.__inject__(e)}var pe=S(le,$,ee,!1,ue,null,null,!0),me=pe.exports,de=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"InputSearch"}},[n("div",{staticClass:"container-search"},[n("input",{attrs:{type:"text",placeholder:e.placeholder},domProps:{value:e.value},on:{keyup:function(t){return e.onKeyUp(t)}}})])])},fe=[],he={name:"InputSearch",props:{value:{type:String,required:!0},placeholder:{type:String,required:!0}},methods:{onKeyUp(e){this.$emit("input",e.target.value)}}},ge=he;function be(e){}var ye=S(ge,de,fe,!1,be,null,null,!0),ve=ye.exports,we={name:"VEmojiPicker",props:{pack:{type:Array,required:!1},labelSearch:{type:String},showCategory:{type:Boolean,default:!1},emojisByRow:{type:Number,default:10},showSearch:{type:Boolean,default:()=>!1},continuousList:{type:Boolean,default:()=>!0}},components:{Categories:_,EmojiList:me,InputSearch:ve},data:()=>({mapEmojis:{},category:"Peoples",filterEmoji:""}),created(){this.mapperData(this.pack)},methods:{onChangeCategory(e){this.category=e.name,this.$emit("changeCategory",this.category)},onSelectEmoji(e){this.$emit("select",e)},updateFrequenty(e){this.mapEmojis["Frequenty"]=[...new Set([...this.mapEmojis["Frequenty"],e])]},mapperData(e){this.$set(this.mapEmojis,"Frequenty",[]),e.forEach(e=>{const t=e["category"];this.mapEmojis[t]?this.mapEmojis[t].push(e):this.$set(this.mapEmojis,t,[e])})}},beforeDestroy(){delete this.mapEmojis},computed:{emojis(){return this.mapEmojis}}},xe=we;function ke(e){}var Ae=S(xe,R,Z,!1,ke,null,null,!0),Se=Ae.exports,ze=n("7282");n("4d63"),n("25f0"),n("5319");function je(e){var t=(new Date).getTime(),n=t-e,r=Math.floor(n/864e5);if(0===r){var i=n%864e5,o=Math.floor(i/36e5);if(0===o){var a=i%36e5,s=Math.floor(a/6e4);if(0===s){var c=a%6e4,l=Math.round(c/1e3);return l+" 秒前"}return s+" 分钟前"}return o+" 小时前"}return r<0?"刚刚":r<1?r+" 天前":Te(e,"yyyy/MM/dd hh:mm")}function Te(e,t){e=new Date(e),/(y+)/.test(t)&&(t=t.replace(RegExp.$1,(e.getFullYear()+"").substr(4-RegExp.$1.length)));let n={"M+":e.getMonth()+1,"d+":e.getDate(),"h+":e.getHours(),"m+":e.getMinutes(),"s+":e.getSeconds()};for(let r in n)if(new RegExp(`(${r})`).test(t)){let e=n[r]+"";t=t.replace(RegExp.$1,1===RegExp.$1.length?e:Me(e))}return t}function Me(e){return("00"+e).substr(e.length)}function Ce(e){return null===e||void 0===e||""===e}function Ee(e){return e&&"object"===typeof e&&e.constructor===Object}function Oe(e){var t=/^[A-Za-z1-9]+([-_.][A-Za-z1-9]+)*@([A-Za-z1-9]+[-.])+[A-Za-z]{2,8}$/;return t.test(e)}const Pe=e=>{const t=Object.keys(e).map(t=>`${t}=${encodeURIComponent(e[t]||"")}`).join("&");return t};function Ne(e){return decodeURIComponent((new RegExp("[?|&]"+e+"=([^&;]+?)(&|#|;|$)").exec(location.href)||"")[1].replace(/\+/g,"%20"))||null}function Je(e){var t,n=document.createElement("div");return n.innerHTML=e,t=n.innerText||n.textContent,n=null,t}function Ie(e){var t=/^[1-9][0-9]{4,9}$/gim;return t.test(e)}function Re(e){const t=n("7282");for(let n=0;ne,e=>Promise.reject(e)),Ve.interceptors.response.use(e=>e,e=>{if(Le.a.isCancel(e))return Promise.reject(e);const t=e.response,n=t?t.data:null;return n&&(400===n.status||401===n.status||403===n.status||404===n.status||n.status),Promise.reject(e)});var Xe=Ve;const Ue="/api/content",Be={createComment:(e,t)=>Xe({url:`${Ue}/${e}/comments`,method:"post",data:t}),listComments:(e,t,n="tree_view",r)=>Xe({url:`${Ue}/${e}/${t}/comments/${n}`,params:r,method:"get"})};var De=Be,We=n("19e9"),Qe=n.n(We),qe={name:"CommentEditor",components:{VEmojiPicker:Se},props:{targetId:{type:Number,required:!1,default:0},target:{type:String,required:!1,default:"posts",validator:function(e){return-1!==["posts","sheets","journals"].indexOf(e)}},replyComment:{type:Object,required:!1,default:()=>{}},options:{required:!1,default:[]},configs:{type:Object,required:!0}},data(){return{emojiPack:ze["default"],emojiDialogVisible:!1,comment:{author:null,authorUrl:null,email:null,content:""},previewMode:!1,showEmoji:!1,infoes:[],warnings:[],successes:[]}},computed:{renderedContent(){let e=this.comment.content?N()(this.comment.content):"";return Re(e)},avatar(){let e="mm"==this.options.comment_gravatar_default?"":this.options.comment_gravatar_default;if(!this.comment.email||!Oe(this.comment.email))return this.configs.gravatarSource+"?d="+e;const t=I()(this.comment.email);return this.configs.gravatarSource+`/${t}?s=256&d=`+e},commentValid(){return!Ce(this.comment.author)&&!Ce(this.comment.email)&&!Ce(this.comment.content)},infoAlertVisiable(){return null!==this.infoes&&this.infoes.length>0},warningAlertVisiable(){return null!==this.warnings&&this.warnings.length>0},successAlertVisiable(){return null!==this.successes&&this.successes.length>0}},created(){var e=localStorage.getItem("comment-author"),t=localStorage.getItem("comment-authorUrl"),n=localStorage.getItem("comment-email");this.comment.author=e||"",this.comment.authorUrl=t||"",this.comment.email=n||""},mounted(){Qe()(document.querySelector("textarea"))},methods:{handleSubmitClick(){if(Ce(this.comment.author))return void this.warnings.push("评论者昵称不能为空");if(Ce(this.comment.email))return void this.warnings.push("邮箱不能为空");if(Ce(this.comment.content))return void this.warnings.push("评论内容不能为空");const e=this.comment.content;this.comment.postId=this.targetId,this.replyComment&&(this.comment.parentId=this.replyComment.id),De.createComment(this.target,O(O({},this.comment),{},{content:e})).then(e=>{localStorage.setItem("comment-author",this.comment.author),localStorage.setItem("comment-email",this.comment.email),localStorage.setItem("comment-authorUrl",this.comment.authorUrl),this.comment.content="",this.handleCommentCreated(e.data.data)}).catch(e=>{this.handleFailedToCreateComment(e.response)})},handlePreviewContent(){this.comment.content.length>0&&(this.previewMode=!this.previewMode,this.showEmoji=!1,this.emojiDialogVisible=!1)},handleCommentCreated(e){this.clearAlertClose(),"PUBLISHED"===e.status?this.successes.push("评论成功,刷新即可显示最新评论!"):this.infoes.push("您的评论已经投递至博主,等待博主审核!")},handleFailedToCreateComment(e){if(this.clearAlertClose(),400===e.status&&(this.warnings.push(e.data.message),e.data)){const t=e.data.data;Ee(t)&&Object.keys(t).forEach(e=>{this.warnings.push(t[e])})}},handleToogleDialogEmoji(){this.previewMode=!1,this.showEmoji=!this.showEmoji,this.emojiDialogVisible=!this.emojiDialogVisible},handleSelectEmoji(e){null!=e.aliases&&""!=e.aliases?this.comment.content+=e.aliases:this.comment.content+=e.emoji},pullInfo(){let e=this.comment.author;0!=e.length&&Ie(e)&&this.pullQQInfo(()=>{this.warnings.push("拉取QQ信息失败!")})},pullQQInfo(e){let t=this;Le.a.get("https://api.lixingyong.com/api/qq",{params:{id:t.comment.author}}).then((function(n){let r=n.data;r.code&&500==r.code&&e(),t.comment.author=r.nickname,t.comment.email=r.email})).catch(()=>{e()})},handleGithubLogin(){const e="http://github.com/login/oauth/authorize",t={client_id:"a1aacd842bc158abd65b",redirect_uri:window.location.href,scope:"public_repo"};window.location.href=`${e}?${Pe(t)}`},handleGetGithubUser(){const e=this.handleGetGithubAccessToken();Le.a.get("https://cors-anywhere.herokuapp.com/https://api.github.com/user",{params:{access_token:e}}).then((function(e){alert(e)})).catch(e=>{alert(e)})},handleGetGithubAccessToken(){const e=Ne("code");e&&Le.a.get("https://cors-anywhere.herokuapp.com/https://github.com/login/oauth/access_token",{params:{client_id:"a1aacd842bc158abd65b",client_secret:"0daedb3923a4cdeb72620df511bdb11685dfe282",code:e}}).then((function(e){let t=e.split("&"),n=t[0].split("="),r=n[1];return alert(r),r})).catch(e=>{alert(e)})},clearAlertClose(){this.infoes=[],this.warnings=[],this.successes=[]}}},Fe=qe,Ye=S(Fe,T,M,!1,null,null,null,!0),He=Ye.exports,Ge=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("li",{staticClass:"comment",class:e.isChild?"":"index-1",attrs:{id:"li-comment-"+e.comment.id,itemtype:"http://schema.org/Comment",itemprop:"comment"}},[n("div",{staticClass:"comment-body",attrs:{id:"comment-"+e.comment.id}},[n("div",{staticClass:"comment-avatar"},[n("img",{staticClass:"avatar",attrs:{alt:e.comment.author+"'s avatar",src:e.avatar}})]),n("div",{staticClass:"contain-main"},[n("div",{staticClass:"comment-meta"},[n("div",{staticClass:"comment-author",attrs:{itemprop:"author"}},[null!=e.comment.authorUrl&&""!=e.comment.authorUrl?n("a",{staticClass:"author-name",attrs:{href:e.comment.authorUrl,rel:"nofollow",target:"_blank"}},[e._v(e._s(e.comment.author))]):n("a",{staticClass:"author-name"},[e._v(e._s(e.comment.author))]),e.comment.isAdmin?n("span",{staticClass:"is-admin"},[e._v("博主")]):e._e(),e.configs.showUserAgent?n("span",{staticClass:"useragent-info"},[e._v(e._s(e.compileUserAgent)+" ")]):e._e()]),n("div",{staticClass:"comment-info"},[n("time",{staticClass:"comment-time",attrs:{itemprop:"datePublished",datetime:e.comment.createTime}},[e._v(e._s(this.timeAgo(e.comment.createTime))+" ")])])]),n("div",{staticClass:"comment-content markdown-body",attrs:{itemprop:"description"},domProps:{innerHTML:e._s(e.compileContent)}}),n("div",{staticClass:"comment-info"},[n("span",{staticClass:"comment-reply",on:{click:e.handleReplyClick}},[e._v(e._s(e.editing?"取消回复":"回复"))])])])]),e.editing?n("comment-editor",{attrs:{targetId:e.targetId,target:e.target,replyComment:e.comment,options:e.options,configs:e.configs}}):e._e(),e.comment.children?n("ol",{staticClass:"children"},[e._l(e.comment.children,(function(t,r){return[n("CommentNode",{key:r,attrs:{isChild:!0,targetId:e.targetId,target:e.target,comment:t,options:e.options,configs:e.configs}})]}))],2):e._e()],1)},Ke=[],_e=n("2b80"),$e=n.n(_e),et={name:"CommentNode",props:{isChild:{type:Boolean,required:!1,default:!1},targetId:{type:Number,required:!1,default:0},target:{type:String,required:!1,default:"posts",validator:function(e){return-1!==["posts","sheets","journals"].indexOf(e)}},comment:{type:Object,required:!1,default:()=>{}},options:{type:Object,required:!1,default:()=>{}},configs:{type:Object,required:!0}},data(){return{editing:!1}},computed:{avatar(){let e="mm"==this.options.comment_gravatar_default?"":this.options.comment_gravatar_default;return this.configs.gravatarSource+`/${this.comment.gravatarMd5}?s=256&d=`+e},compileContent(){var e="";null!==this.comment.parentId&&this.comment.parentId>0&&(e="@"+this.comment.parentAuthor+"");let t=e+N()(Je(this.comment.content));return Re(t)},createTimeAgo(){return je(this.comment.createTime)},compileUserAgent(){var e=new $e.a;e.setUA(this.comment.userAgent);var t=e.getResult();return t.browser.name+" "+t.browser.version+" in "+t.os.name+" "+t.os.version}},methods:{handleReplyClick(){this.editing=!this.editing},timeAgo(e){const t=6e4,n=60*t,r=24*n,i=7*r,o=30*r,a=(new Date).getTime(),s=a-e;if(s<0)return;const c=s/t,l=s/n,u=s/r,p=s/i,m=s/o;let d;if(m>=1&&m<=3)d=" "+parseInt(m)+"月前";else if(p>=1&&p<=4)d=p>4?" "+Math.floor(p)+"周前":" "+parseInt(p)+"周前";else if(u>=1&&u<=6)d=" "+parseInt(u)+"天前";else if(l>=1&&l<=23)d=" "+parseInt(l)+"小时前";else if(c>=1&&c<=59)d=" "+parseInt(c)+"分钟前";else if(s>=0&&s<=t)d="刚刚";else{var f=new Date;f.setTime(e);var h=f.getFullYear(),g=f.getMonth()+1<10?"0"+(f.getMonth()+1):f.getMonth()+1,b=f.getDate()<10?"0"+f.getDate():f.getDate(),y=f.getHours()<10?"0"+f.getHours():f.getHours(),v=f.getMinutes()<10?"0"+f.getMinutes():f.getMinutes(),w=f.getSeconds()<10?"0"+f.getSeconds():f.getSeconds();d=h+"/"+g+"/"+b+" "+y+":"+v+":"+w}return d}}},tt=et,nt=S(tt,Ge,Ke,!1,null,null,null,!0),rt=nt.exports,it=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"comment-loader-container"},["default"===e.configs.loadingStyle?n("div",{staticClass:"comment-loader-default"},[n("span"),n("span"),n("span"),n("span")]):"circle"===e.configs.loadingStyle?n("div",{staticClass:"comment-loader-circle"}):"balls"===e.configs.loadingStyle?n("div",{staticClass:"comment-loader-balls"},[n("div"),n("div"),n("div")]):e._e()])},ot=[],at={name:"CommentLoading",props:{configs:{type:Object,required:!0}}},st=at,ct=S(st,it,ot,!1,null,null,null,!0),lt=ct.exports,ut=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("ul",{staticClass:"page"},[n("li",{staticClass:"page-item",class:{disabled:!e.hasPrev}},[n("a",{staticClass:"prev-button",attrs:{tabindex:"-1"},on:{click:e.handlePrevClick}},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16"}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M9.78 12.78a.75.75 0 01-1.06 0L4.47 8.53a.75.75 0 010-1.06l4.25-4.25a.75.75 0 011.06 1.06L6.06 8l3.72 3.72a.75.75 0 010 1.06z"}})])])]),null!=e.firstPage?n("li",{staticClass:"page-item",class:{active:e.page===e.firstPage}},[n("a",{class:{active:e.page===e.firstPage},on:{click:function(t){return e.handlePageItemClick(e.firstPage)}}},[e._v(e._s(e.firstPage+1)+" ")])]):e._e(),n("li",{directives:[{name:"show",rawName:"v-show",value:e.hasMorePrev,expression:"hasMorePrev"}],staticClass:"page-item"},[n("a",[e._v(" ... ")])]),e._l(e.middlePages,(function(t){return n("li",{key:t,staticClass:"page-item",class:{active:t===e.page}},[n("a",{class:{active:t===e.page},on:{click:function(n){return e.handlePageItemClick(t)}}},[e._v(" "+e._s(t+1)+" ")])])})),n("li",{directives:[{name:"show",rawName:"v-show",value:e.hasMoreNext,expression:"hasMoreNext"}],staticClass:"page-item"},[n("a",[e._v(" ... ")])]),e.lastPage?n("li",{staticClass:"page-item",class:{active:e.page===e.lastPage}},[n("a",{class:{active:e.page===e.lastPage},on:{click:function(t){return e.handlePageItemClick(e.lastPage)}}},[e._v(" "+e._s(e.lastPage+1)+" ")])]):e._e(),n("li",{staticClass:"page-item",class:{disabled:!e.hasNext}},[n("a",{staticClass:"next-button",on:{click:e.handleNextClick}},[n("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:"16",height:"16"}},[n("path",{attrs:{"fill-rule":"evenodd",d:"M6.22 3.22a.75.75 0 011.06 0l4.25 4.25a.75.75 0 010 1.06l-4.25 4.25a.75.75 0 01-1.06-1.06L9.94 8 6.22 4.28a.75.75 0 010-1.06z"}})])])])],2)},pt=[],mt={name:"Pagination",model:{prop:"page",event:"change"},props:{page:{type:Number,required:!1,default:0},size:{type:Number,required:!1,default:10},total:{type:Number,required:!1,default:0}},data(){return{middleSize:3}},computed:{pages(){return Math.ceil(this.total/this.size)},hasNext(){return this.page0},firstPage(){return 0===this.pages?null:0},hasMorePrev(){return!(null===this.firstPage||this.pages<=this.middleSize+2)&&this.page>=2+this.middleSize/2},hasMoreNext(){return!(null===this.lastPage||this.pages<=this.middleSize+2)&&this.page=this.lastPage-e-1&&(n=this.lastPage-1,t=n-this.middleSize+1),this.range(t,n+1)},lastPage(){return 0===this.pages||1===this.pages?0:this.pages-1}},methods:{handleNextClick(){this.hasNext&&this.$emit("change",this.page+1)},handlePrevClick(){this.hasPrev&&this.$emit("change",this.page-1)},handlePageItemClick(e){this.$emit("change",e)},range(e,t){if(e>=t)return[];const n=[];for(let r=e;r{yt[e]=s.a.component(e,bt[e])});const vt="/api/content/options",wt={list:()=>Xe({url:vt+"/comment",method:"get"})};var xt=wt,kt=n("9224"),At=n("c82c"),St=n.n(At),zt=(n("0808"),{name:"Comment",props:{id:{type:Number,required:!1,default:0},type:{type:String,required:!1,default:"post",validator:function(e){return-1!==["post","sheet","journal"].indexOf(e)}},configs:{type:Object,required:!1,default:()=>({autoLoad:!0,showUserAgent:!0,gravatarSource:"//cdn.v2ex.com/gravatar",loadingStyle:"default",darkMode:!1})}},data(){return{comments:[],commentAuthor:new Map,pagination:{pages:0,page:0,sort:"",size:5,total:0},commentCount:0,commentLoading:!1,loaded:!1,repliedSuccess:null,replyingComment:null,alexVersion:kt.version,options:{comment_gravatar_default:""}}},computed:{target(){return this.type+"s"},mergedConfigs(){let e=this.configs;return"string"===typeof this.configs&&(e=JSON.parse(this.configs)),Object.assign({autoLoad:!0,showUserAgent:!0,gravatarSource:"//cdn.v2ex.com/gravatar",loadingStyle:"default",darkMode:!1},e)}},created(){this.mergedConfigs.autoLoad&&this.loadComments(),this.loadOptions()},updated(){const e=this.$refs.gallery;e&&new St.a(e,{inline:!1,filter(e){const t=e.className+"";return t.indexOf("avatar")<0}})},methods:{loadComments(){this.comments=[],this.commentLoading=!0,De.listComments(this.target,this.id,"tree_view",this.pagination).then(e=>{this.commentCount=e.data.data.commentCount,this.comments=e.data.data.content,this.pagination.size=e.data.data.rpp,this.pagination.total=e.data.data.total,this.pagination.pages=e.data.data.pages,this.comments&&this.comments.forEach(e=>{this.setCommentAuthor(e)})}).finally(()=>{this.commentLoading=!1,this.loaded=!0})},setCommentAuthor(e){e.children&&(this.commentAuthor.set(e.id,e.author),this.setCommentAuthor(e.children)),e instanceof Array&&(e.forEach(e=>{e.parentId>0&&(e.parentAuthor=this.commentAuthor.get(e.parentId),this.setCommentAuthor(e))}),e.sort(this.sortComment))},sortComment(e,t){return e.id-t.id},loadOptions(){xt.list().then(e=>{this.options=e.data.data})},handlePaginationChange(e){this.pagination.page=e,this.loadComments()}}}),jt=zt;function Tt(e){var t=n("a85a");t.__inject__&&t.__inject__(e)}var Mt=S(jt,z,j,!1,Tt,null,null,!0),Ct=Mt.exports;window.customElements.define("halo-comment",A(s.a,Ct))},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"60da":function(e,t,n){"use strict";var r=n("83ab"),i=n("d039"),o=n("df75"),a=n("7418"),s=n("d1e7"),c=n("7b0b"),l=n("44ad"),u=Object.assign,p=Object.defineProperty;e.exports=!u||i((function(){if(r&&1!==u({b:1},u(p({},"a",{enumerable:!0,get:function(){p(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach((function(e){t[e]=e})),7!=u({},e)[n]||o(u({},t)).join("")!=i}))?function(e,t){var n=c(e),i=arguments.length,u=1,p=a.f,m=s.f;while(i>u){var d,f=l(arguments[u++]),h=p?o(f).concat(p(f)):o(f),g=h.length,b=0;while(g>b)d=h[b++],r&&!m.call(f,d)||(n[d]=f[d])}return n}:u},"63d2":function(e,t,n){"use strict";e.exports=function(e){return"string"===typeof e||"symbol"===typeof e}},6547:function(e,t,n){var r=n("a691"),i=n("1d80"),o=function(e){return function(t,n){var o,a,s=String(i(t)),c=r(n),l=s.length;return c<0||c>=l?e?"":void 0:(o=s.charCodeAt(c),o<55296||o>56319||c+1===l||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):o:e?s.slice(c,c+2):a-56320+(o-55296<<10)+65536)}};e.exports={codeAt:o(!1),charAt:o(!0)}},6821:function(e,t,n){(function(){var t=n("00d8"),r=n("9a63").utf8,i=n("044b"),o=n("9a63").bin,a=function(e,n){e.constructor==String?e=n&&"binary"===n.encoding?o.stringToBytes(e):r.stringToBytes(e):i(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||(e=e.toString());for(var s=t.bytesToWords(e),c=8*e.length,l=1732584193,u=-271733879,p=-1732584194,m=271733878,d=0;d>>24)|4278255360&(s[d]<<24|s[d]>>>8);s[c>>>5]|=128<>>9<<4)]=c;var f=a._ff,h=a._gg,g=a._hh,b=a._ii;for(d=0;d>>0,u=u+v>>>0,p=p+w>>>0,m=m+x>>>0}return t.endian([l,u,p,m])};a._ff=function(e,t,n,r,i,o,a){var s=e+(t&n|~t&r)+(i>>>0)+a;return(s<>>32-o)+t},a._gg=function(e,t,n,r,i,o,a){var s=e+(t&r|n&~r)+(i>>>0)+a;return(s<>>32-o)+t},a._hh=function(e,t,n,r,i,o,a){var s=e+(t^n^r)+(i>>>0)+a;return(s<>>32-o)+t},a._ii=function(e,t,n,r,i,o,a){var s=e+(n^(t|~r))+(i>>>0)+a;return(s<>>32-o)+t},a._blocksize=16,a._digestsize=16,e.exports=function(e,n){if(void 0===e||null===e)throw new Error("Illegal argument "+e);var r=t.wordsToBytes(a(e,n));return n&&n.asBytes?r:n&&n.asString?o.bytesToString(r):t.bytesToHex(r)}})()},"688e":function(e,t,n){"use strict";var r="Function.prototype.bind called on incompatible ",i=Array.prototype.slice,o=Object.prototype.toString,a="[object Function]";e.exports=function(e){var t=this;if("function"!==typeof t||o.call(t)!==a)throw new TypeError(r+t);for(var n,s=i.call(arguments,1),c=function(){if(this instanceof n){var r=t.apply(this,s.concat(i.call(arguments)));return Object(r)===r?r:this}return t.apply(e,s.concat(i.call(arguments)))},l=Math.max(0,t.length-s.length),u=[],p=0;p',"",""," :smile: ",[]),new r('lovely',"",""," :lovely: ",[]),new r('happy',"",""," :happy: ",[]),new r('clap',"",""," :clap: ",[]),new r('whee',"",""," :whee: ",[]),new r('haha',"",""," :haha: ",[]),new r('laugh and cry',"",""," :laugh and cry: ",[]),new r('wink',"",""," :wink: ",[]),new r('greddy',"",""," :greddy: ",[]),new r('awkward',"",""," :awkward: ",[]),new r('sweat',"",""," :sweat: ",[]),new r('pick nose',"",""," :pick nose: ",[]),new r('hum',"",""," :hum: ",[]),new r('angry',"",""," :angry: ",[]),new r('grievance',"",""," :grievance: ",[]),new r('poor',"",""," :poor: ",[]),new r('disappoint',"",""," :disappoint: ",[]),new r('sad',"",""," :sad: ",[]),new r('tear',"",""," :tear: ",[]),new r('no way',"",""," :no way: ",[]),new r('shy',"",""," :shy: ",[]),new r('dirt',"",""," :dirt: ",[]),new r('love you',"",""," :love you: ",[]),new r('kiss',"",""," :kiss: ",[]),new r('amorousness',"",""," :amorousness: ",[]),new r('longing',"",""," :longing: ",[]),new r('desire',"",""," :desire: ",[]),new r('bad laugh',"",""," :bad laugh: ",[]),new r('blackness',"",""," :blackness: ",[]),new r('laugh without word',"",""," :laugh without word: ",[]),new r('titter',"",""," :titter: ",[]),new r('cool',"",""," :cool: ",[]),new r('not easy',"",""," :not easy: ",[]),new r('think',"",""," :think: ",[]),new r('question',"",""," :question: ",[]),new r('no idea',"",""," :no idea: ",[]),new r('dizzy',"",""," :dizzy: ",[]),new r('bomb',"",""," :bomb: ",[]),new r('bone',"",""," :bone: ",[]),new r('be quiet',"",""," :be quiet: ",[]),new r('shut up',"",""," :shut up: ",[]),new r('stupid',"",""," :stupid: ",[]),new r('surprise ',"",""," :surprise : ",[]),new r('vomit',"",""," :vomit: ",[]),new r('cold',"",""," :cold: ",[]),new r('sick',"",""," :sick: ",[]),new r('bye',"",""," :bye: ",[]),new r('look down on',"",""," :look down on: ",[]),new r('white eye',"",""," :white eye: ",[]),new r('left hum',"",""," :left hum: ",[]),new r('right hum',"",""," :right hum: ",[]),new r('crazy',"",""," :crazy: ",[]),new r('scold ',"",""," :scold : ",[]),new r('hit on face',"",""," :hit on face: ",[]),new r('wow',"",""," :wow: ",[]),new r('fan',"",""," :fan: ",[]),new r('money',"",""," :money: ",[]),new r('yawn',"",""," :yawn: ",[]),new r('sleepy',"",""," :sleepy: ",[]),new r('sleep',"",""," :sleep: ",[]),new r('watermelon ',"",""," :watermelon : ",[]),new r('doge',"",""," :doge: ",[]),new r('dog',"",""," :dog: ",[]),new r('cat',"",""," :cat: ",[]),new r('thumb',"",""," :thumb: ",[]),new r('good',"",""," :good: ",[]),new r('ok',"",""," :ok: ",[]),new r('yeah',"",""," :yeah: ",[]),new r('shack hand',"",""," :shack hand: ",[]),new r('bow',"",""," :bow: ",[]),new r('come',"",""," :come: ",[]),new r('punch',"",""," :punch: ",[]),new r(" OωO ","","颜文字","",[]),new r(" |´・ω・) ノ ","","颜文字","",[]),new r(" ヾ (≧∇≦*) ゝ ","","颜文字","",[]),new r(" (☆ω☆) ","","颜文字","",[]),new r(" (ง ˙o˙)ว ","","颜文字","",[]),new r(" (/ω\) ","","颜文字","",[]),new r(" (๑•̀ㅁ•́ฅ) ","","颜文字","",[]),new r(" ୧(๑•̀⌄•́๑)૭ ","","颜文字","",[]),new r(" (๑◕ܫ←๑)b ","","颜文字","",[]),new r(" (;-_-)ᴇᴍᴍᴍ ","","颜文字","",[]),new r(" ฅ'ω'ฅ♪ ","","颜文字","",[]),new r(" →_→ ","","颜文字","",[]),new r(" ٩(ˊᗜˋ*)و ","","颜文字","",[]),new r(" (ノ °ο°) ノ ","","颜文字","",[]),new r(" (´இ皿இ`) ","","颜文字","",[]),new r(" (ó﹏ò。) ","","颜文字","",[]),new r(" Σ(っ °Д °;) っ ","","颜文字","",[]),new r(" (ฅ´ω`ฅ) ","","颜文字","",[]),new r(" (╯°A°)╯︵○○○ ","","颜文字","",[]),new r(" φ( ̄∇ ̄o) ","","颜文字","",[]),new r(' ヾ (´・ ・`。) ノ " ',"","颜文字","",[]),new r(" (ง ᵒ̌皿ᵒ̌)ง⁼³₌₃ ","","颜文字","",[]),new r(" (ó﹏ò。) ","","颜文字","",[]),new r(' (,,´・ω・)ノ"(´ っ ω・`。) ',"","颜文字","",[]),new r(" ╮(╯▽╰)╭ ","","颜文字","",[]),new r(" o(*////▽////*)q ","","颜文字","",[]),new r(" >﹏< ","","颜文字","",[]),new r(' ( ๑´•ω•) "(ㆆᴗㆆ) ',"","颜文字","",[]),new r(" (。•ˇ‸ˇ•。) ","","颜文字","",[]),new r("😀","","经典","",[]),new r("😃","","经典","",[]),new r("😄","","经典","",[]),new r("😁","","经典","",[]),new r("😆","","经典","",[]),new r("😅","","经典","",[]),new r("😂","","经典","",[]),new r("🤣","","经典","",[]),new r("😌","","经典","",[]),new r("😊","","经典","",[]),new r("😇","","经典","",[]),new r("🙂","","经典","",[]),new r("🙃","","经典","",[]),new r("😉","","经典","",[]),new r("😌","","经典","",[]),new r("😍","","经典","",[]),new r("😘","","经典","",[]),new r("😗","","经典","",[]),new r("😙","","经典","",[]),new r("😚","","经典","",[]),new r("😋","","经典","",[]),new r("😜","","经典","",[]),new r("😝","","经典","",[]),new r("😛","","经典","",[]),new r("🤑","","经典","",[]),new r("🤗","","经典","",[]),new r("🤓","","经典","",[]),new r("😎","","经典","",[]),new r("🤠","","经典","",[]),new r("😏","","经典","",[]),new r("😒","","经典","",[]),new r("😞","","经典","",[]),new r("😔","","经典","",[]),new r("😟","","经典","",[]),new r("😕","","经典","",[]),new r("🙁","","经典","",[]),new r("☹️","","经典","",[]),new r("😣","","经典","",[]),new r("😖","","经典","",[]),new r("😫","","经典","",[]),new r("😩","","经典","",[]),new r("😤","","经典","",[]),new r("😠","","经典","",[]),new r("😡","","经典","",[]),new r("😶","","经典","",[]),new r("😐","","经典","",[]),new r("😑","","经典","",[]),new r("😯","","经典","",[]),new r("😦","","经典","",[]),new r("😧","","经典","",[]),new r("😮","","经典","",[]),new r("😲","","经典","",[]),new r("😵","","经典","",[]),new r("😳","","经典","",[]),new r("😱","","经典","",[]),new r("😨","","经典","",[]),new r("😰","","经典","",[]),new r("😢","","经典","",[]),new r("😥","","经典","",[]),new r("🤤","","经典","",[]),new r("😭","","经典","",[]),new r("😓","","经典","",[]),new r("😪","","经典","",[]),new r("😴","","经典","",[]),new r("🙄","","经典","",[]),new r("🤔","","经典","",[]),new r("🤥","","经典","",[]),new r("😬","","经典","",[]),new r("🤐","","经典","",[]),new r("🤢","","经典","",[]),new r("🤧","","经典","",[]),new r("😷","","经典","",[]),new r("🤒","","经典","",[]),new r("🤕","","经典","",[])]},"72f2":function(e,t,n){"use strict";e.exports=function(e){return!!e}},7418:function(e,t){t.f=Object.getOwnPropertySymbols},7839:function(e,t){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"791b":function(e,t,n){var r=n("e64f");"string"===typeof r&&(r=[[e.i,r,""]]),r.locals&&(e.exports=r.locals);var i=n("35d6").default;e.exports.__inject__=function(e){i("6193bffe",r,e)}},"7a77":function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},"7aac":function(e,t,n){"use strict";var r=n("c532");e.exports=r.isStandardBrowserEnv()?function(){return{write:function(e,t,n,i,o,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},"7b0b":function(e,t,n){var r=n("1d80");e.exports=function(e){return Object(r(e))}},"7b13":function(e,t,n){"use strict";var r=n("be77");r();var i=n("7f73"),o=n("8253"),a=n("3d27"),s=function(e,t){return new e((function(e){e(t)}))},c=Promise,l=function(e,t){return function(n){var r=t(),i=s(e,r),o=function(){return n};return i.then(o)}},u=function(e,t){return function(n){var r=t(),i=s(e,r),o=function(){throw n};return i.then(o)}},p=function(e){var t=this;if("Object"!==a(t))throw new TypeError("receiver is not an Object");var n=o(t,c),r=e,s=e;return i(e)&&(r=l(n,e),s=u(n,e)),t.then(r,s)};if(Object.getOwnPropertyDescriptor){var m=Object.getOwnPropertyDescriptor(p,"name");m&&m.configurable&&Object.defineProperty(p,"name",{configurable:!0,value:"finally"})}e.exports=p},"7c73":function(e,t,n){var r,i=n("825a"),o=n("37e8"),a=n("7839"),s=n("d012"),c=n("1be4"),l=n("cc12"),u=n("f772"),p=">",m="<",d="prototype",f="script",h=u("IE_PROTO"),g=function(){},b=function(e){return m+f+p+e+m+"/"+f+p},y=function(e){e.write(b("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){var e,t=l("iframe"),n="java"+f+":";return t.style.display="none",c.appendChild(t),t.src=String(n),e=t.contentWindow.document,e.open(),e.write(b("document.F=Object")),e.close(),e.F},w=function(){try{r=document.domain&&new ActiveXObject("htmlfile")}catch(t){}w=r?y(r):v();var e=a.length;while(e--)delete w[d][a[e]];return w()};s[h]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(g[d]=i(e),n=new g,g[d]=null,n[h]=e):n=w(),void 0===t?n:o(n,t)}},"7dd0":function(e,t,n){"use strict";var r=n("23e7"),i=n("9ed3"),o=n("e163"),a=n("d2bb"),s=n("d44e"),c=n("9112"),l=n("6eeb"),u=n("b622"),p=n("c430"),m=n("3f8c"),d=n("ae93"),f=d.IteratorPrototype,h=d.BUGGY_SAFARI_ITERATORS,g=u("iterator"),b="keys",y="values",v="entries",w=function(){return this};e.exports=function(e,t,n,u,d,x,k){i(n,t,u);var A,S,z,j=function(e){if(e===d&&O)return O;if(!h&&e in C)return C[e];switch(e){case b:return function(){return new n(this,e)};case y:return function(){return new n(this,e)};case v:return function(){return new n(this,e)}}return function(){return new n(this)}},T=t+" Iterator",M=!1,C=e.prototype,E=C[g]||C["@@iterator"]||d&&C[d],O=!h&&E||j(d),P="Array"==t&&C.entries||E;if(P&&(A=o(P.call(new e)),f!==Object.prototype&&A.next&&(p||o(A)===f||(a?a(A,f):"function"!=typeof A[g]&&c(A,g,w)),s(A,T,!0,!0),p&&(m[T]=w))),d==y&&E&&E.name!==y&&(M=!0,O=function(){return E.call(this)}),p&&!k||C[g]===O||c(C,g,O),m[t]=O,d)if(S={values:j(y),keys:x?O:j(b),entries:j(v)},k)for(z in S)(h||M||!(z in C))&&l(C,z,S[z]);else r({target:t,proto:!0,forced:h||M},S);return S}},"7f73":function(e,t,n){"use strict";e.exports=n("21d0")},"7f9a":function(e,t,n){var r=n("da84"),i=n("8925"),o=r.WeakMap;e.exports="function"===typeof o&&/native code/.test(i(o))},8253:function(e,t,n){"use strict";var r=n("e9ac"),i=r("%Symbol.species%",!0),o=r("%TypeError%"),a=n("2c92"),s=n("3d27");e.exports=function(e,t){if("Object"!==s(e))throw new o("Assertion failed: Type(O) is not Object");var n=e.constructor;if("undefined"===typeof n)return t;if("Object"!==s(n))throw new o("O.constructor is not an Object");var r=i?n[i]:void 0;if(null==r)return t;if(a(r))return r;throw new o("no constructor found")}},"825a":function(e,t,n){var r=n("861d");e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},"83ab":function(e,t,n){var r=n("d039");e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},"83b9":function(e,t,n){"use strict";var r=n("d925"),i=n("e683");e.exports=function(e,t){return e&&!r(t)?i(e,t):t}},"845e":function(e,t,n){"use strict";n.r(t);var r=n("437b"),i=n.n(r);for(var o in r)"default"!==o&&function(e){n.d(t,e,(function(){return r[e]}))}(o);t["default"]=i.a},"861d":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},8875:function(e,t,n){var r,i,o;(function(n,a){i=[],r=a,o="function"===typeof r?r.apply(t,i):r,void 0===o||(e.exports=o)})("undefined"!==typeof self&&self,(function(){function e(){var t=Object.getOwnPropertyDescriptor(document,"currentScript");if(!t&&"currentScript"in document&&document.currentScript)return document.currentScript;if(t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw new Error}catch(d){var n,r,i,o=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,a=/@([^@]*):(\d+):(\d+)\s*$/gi,s=o.exec(d.stack)||a.exec(d.stack),c=s&&s[1]||!1,l=s&&s[2]||!1,u=document.location.href.replace(document.location.hash,""),p=document.getElementsByTagName("script");c===u&&(n=document.documentElement.outerHTML,r=new RegExp("(?:[^\\n]+?\\n){0,"+(l-2)+"}[^<]*