q78kgblog 0.0.0-1734158082146 → 0.0.0-1734172620426

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (146) hide show
  1. package/404.html +1 -933
  2. package/about/index.html +1 -1085
  3. package/archives/2023/02/index.html +1 -933
  4. package/archives/2023/04/index.html +1 -933
  5. package/archives/2023/05/index.html +1 -933
  6. package/archives/2023/08/index.html +1 -933
  7. package/archives/2023/09/index.html +1 -933
  8. package/archives/2023/index.html +1 -933
  9. package/archives/2024/01/index.html +1 -933
  10. package/archives/2024/02/index.html +1 -933
  11. package/archives/2024/11/index.html +1 -933
  12. package/archives/2024/index.html +1 -933
  13. package/archives/index.html +1 -933
  14. package/archives/page/2/index.html +1 -933
  15. package/assets/css/APlayer.min.css +1 -3
  16. package/assets/js/APlayer.min.js +154 -2
  17. package/assets/js/Meting.min.js +3 -1
  18. package/atom.xml +12 -12
  19. package/baidusitemap.xml +4 -4
  20. package/bangumis/index.html +1 -1055
  21. package/bigpie/index.html +1 -705
  22. package/categories/Hexo/index.html +1 -945
  23. package/categories/index.html +1 -701
  24. package/categories//345/271/264/347/273/210/346/200/273/347/273/223/index.html +1 -945
  25. package/categories//346/212/200/346/234/257/345/210/206/344/272/253/index.html +1 -945
  26. package/categories//347/264/240/346/235/220/index.html +1 -945
  27. package/categories//351/227/262/350/201/212/346/235/202/350/260/210/index.html +1 -945
  28. package/content.json +1 -1
  29. package/css/swiper.min.css +1 -703
  30. package/fcircle/index.html +1 -724
  31. package/fontawesome/index.html +1 -707
  32. package/index.html +1 -1085
  33. package/js/aplayersave.js +1 -1
  34. package/js/baiduhistory.js +1 -1
  35. package/js/browser.js +1 -1
  36. package/js/calendar.js +1 -1
  37. package/js/cate.js +1 -1
  38. package/js/commentBarrage.js +13 -13
  39. package/js/commentsCount.js +1 -1
  40. package/js/copy.js +1 -1
  41. package/js/countup.js +1 -1
  42. package/js/cursor.js +1 -1
  43. package/js/day.js +2 -2
  44. package/js/dianzan.js +1 -1
  45. package/js/dis.js +3 -3
  46. package/js/fixbugpjax.js +1 -1
  47. package/js/fixed_card_widget.js +1 -1
  48. package/js/fps.js +1 -1
  49. package/js/gitalker.js +1 -1
  50. package/js/gsap.min.js +1 -4
  51. package/js/heimu.js +1 -1
  52. package/js/hide.show.js +1 -1
  53. package/js/languages.js +1 -1
  54. package/js/latest.js +1 -1
  55. package/js/local-search.js +2 -2
  56. package/js/lunar.js +1 -1
  57. package/js/lyxTalk.js +1 -1
  58. package/js/main.js +2 -2
  59. package/js/nav.js +1 -1
  60. package/js/noie.js +1 -1
  61. package/js/owo.js +1 -1
  62. package/js/people.js +2 -2
  63. package/js/pikaday.js +1 -109
  64. package/js/random.js +1 -1
  65. package/js/randomFriend.js +1 -1
  66. package/js/resizeTop.js +1 -1
  67. package/js/rightmenu.js +3 -3
  68. package/js/sakura.js +1 -1
  69. package/js/search/algolia.js +4 -4
  70. package/js/search/local-search.js +1 -1
  71. package/js/settings.js +3 -3
  72. package/js/sitetime.js +1 -1
  73. package/js/smooth-scrolling.js +1 -1
  74. package/js/sw-toolbox.js +1 -1
  75. package/js/swiperinit.js +1 -1
  76. package/js/tw_cn.js +1 -1
  77. package/js/utils.js +1 -1
  78. package/js/welcome.js +1 -1
  79. package/js/welcomeconsole.js +1 -1
  80. package/links/index.html +1 -932
  81. package/live2d-widget/autoload.js +19 -63
  82. package/live2d-widget/demo/demo.html +1 -34
  83. package/live2d-widget/demo/login.html +1 -271
  84. package/live2d-widget/live2d.min.js +45 -1
  85. package/live2d-widget/rollup.config.js +2 -35
  86. package/live2d-widget/src/index.js +4 -175
  87. package/live2d-widget/src/message.js +1 -22
  88. package/live2d-widget/src/model.js +1 -75
  89. package/live2d-widget/src/tools.js +1 -78
  90. package/live2d-widget/src/utils.js +1 -5
  91. package/live2d-widget/src/waifu-tips.js +1 -3
  92. package/live2d-widget/waifu-tips.js +7 -2
  93. package/live2d-widget/waifu.css +1 -310
  94. package/noie.html +1 -69
  95. package/othersite/index.html +1 -770
  96. package/package.json +1 -1
  97. package/people.html +1 -24
  98. package/posts/164ef646/index.html +1 -1018
  99. package/posts/1ee472c8/index.html +1 -1006
  100. package/posts/228c2ef8/index.html +1 -1005
  101. package/posts/2b89093e/index.html +1 -1003
  102. package/posts/a9a6c1fb/index.html +1 -1032
  103. package/posts/ad884987/index.html +1 -1005
  104. package/posts/c262e439/index.html +1 -993
  105. package/posts/c81531cf/index.html +1 -1071
  106. package/posts/ce5471fd/index.html +1 -993
  107. package/posts/de1f83f4/index.html +1 -1061
  108. package/posts/e54f7476/index.html +1 -1053
  109. package/random.html +1 -30
  110. package/sitemap.txt +7 -7
  111. package/sitemap.xml +20 -20
  112. package/sw.js +2 -2
  113. package/swReg.js +1 -1
  114. package/tags/AI/index.html +1 -946
  115. package/tags/Abbrlink/index.html +1 -946
  116. package/tags/Butterfly/index.html +1 -946
  117. package/tags/Cloudflare/index.html +1 -946
  118. package/tags/DiffSinger/index.html +1 -946
  119. package/tags/Hexo/index.html +1 -946
  120. package/tags/Markdown/index.html +1 -946
  121. package/tags/Next/index.html +1 -946
  122. package/tags/Obsidian/index.html +1 -946
  123. package/tags/RAID/index.html +1 -946
  124. package/tags/Vercel/index.html +1 -946
  125. package/tags/Workers/index.html +1 -946
  126. package/tags/index.html +1 -701
  127. package/tags//344/270/273/351/242/230/index.html +1 -946
  128. package/tags//345/206/231/344/275/234/index.html +1 -946
  129. package/tags//345/245/263/346/200/247/346/204/217/350/257/206/index.html +1 -946
  130. package/tags//345/255/246/344/271/240/index.html +1 -946
  131. package/tags//345/256/266/351/207/214/344/272/221/index.html +1 -946
  132. package/tags//345/271/264/347/273/210/346/200/273/347/273/223/index.html +1 -946
  133. package/tags//346/212/230/350/205/276/index.html +1 -946
  134. package/tags//346/227/245/345/270/270/index.html +1 -946
  135. package/tags//346/234/215/345/212/241/345/231/250/index.html +1 -946
  136. package/tags//346/260/270/344/271/205/351/223/276/346/216/245/index.html +1 -946
  137. package/tags//346/265/252/346/275/256/index.html +1 -946
  138. package/tags//347/237/255/351/223/276/346/216/245/index.html +1 -946
  139. package/tags//347/256/200/347/210/261/index.html +1 -946
  140. package/tags//347/274/226/350/276/221/345/231/250/index.html +1 -946
  141. package/tags//350/207/252/345/212/250/346/240/207/346/263/250/index.html +1 -946
  142. package/tags//350/256/272/346/226/207/index.html +1 -946
  143. package/tags//350/260/267/346/255/214/347/277/273/350/257/221/index.html +1 -946
  144. package/tags//350/264/237/350/275/275/345/235/207/350/241/241/index.html +1 -946
  145. package/tags//351/207/221/345/217/245/index.html +1 -946
  146. package/tags//351/255/224/346/224/271/index.html +1 -946
@@ -1,2 +1,2 @@
1
- "use strict";function _typeof(n){return(_typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(l){return typeof l}:function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l})(n)}function _regeneratorRuntime(){_regeneratorRuntime=function(){return n};var n={},l=Object.prototype,s=l.hasOwnProperty,m=typeof Symbol=="function"?Symbol:{},b=m.iterator||"@@iterator",j=m.asyncIterator||"@@asyncIterator",E=m.toStringTag||"@@toStringTag";function d(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch{d=function(e,r,a){return e[r]=a}}function q(t,v,r,F){var o,p,i,g,v=v&&v.prototype instanceof A?v:A,v=Object.create(v.prototype),F=new T(F||[]);return v._invoke=(o=t,p=r,i=F,g="suspendedStart",function(L,G){if(g==="executing")throw new Error("Generator is already running");if(g==="completed"){if(L==="throw")throw G;return O()}for(i.method=L,i.arg=G;;){var w=i.delegate;if(w&&(w=function H(I,c){var N=I.iterator[c.method];if(N===void 0){if(c.delegate=null,c.method==="throw"){if(I.iterator.return&&(c.method="return",c.arg=void 0,H(I,c),c.method==="throw"))return f;c.method="throw",c.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}return N=y(N,I.iterator,c.arg),N.type==="throw"?(c.method="throw",c.arg=N.arg,c.delegate=null,f):(N=N.arg,N?N.done?(c[I.resultName]=N.value,c.next=I.nextLoc,c.method!=="return"&&(c.method="next",c.arg=void 0),c.delegate=null,f):N:(c.method="throw",c.arg=new TypeError("iterator result is not an object"),c.delegate=null,f))}(w,i),w)){if(w===f)continue;return w}if(i.method==="next")i.sent=i._sent=i.arg;else if(i.method==="throw"){if(g==="suspendedStart")throw g="completed",i.arg;i.dispatchException(i.arg)}else i.method==="return"&&i.abrupt("return",i.arg);if(g="executing",w=y(o,p,i),w.type==="normal"){if(g=i.done?"completed":"suspendedYield",w.arg===f)continue;return{value:w.arg,done:i.done}}w.type==="throw"&&(g="completed",i.method="throw",i.arg=w.arg)}}),v}function y(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(a){return{type:"throw",arg:a}}}n.wrap=q;var f={};function A(){}function S(){}function _(){}var m={},u=(d(m,b,function(){return this}),Object.getPrototypeOf),u=u&&u(u(x([]))),h=(u&&u!==l&&s.call(u,b)&&(m=u),_.prototype=A.prototype=Object.create(m));function C(t){["next","throw","return"].forEach(function(e){d(t,e,function(r){return this._invoke(e,r)})})}function B(t,e){var r;this._invoke=function(a,o){function p(){return new e(function(i,g){(function v(I,L,G,w){var H,I=y(t[I],t,L);if(I.type!=="throw")return(L=(H=I.arg).value)&&_typeof(L)=="object"&&s.call(L,"__await")?e.resolve(L.__await).then(function(c){v("next",c,G,w)},function(c){v("throw",c,G,w)}):e.resolve(L).then(function(c){H.value=c,G(H)},function(c){return v("throw",c,G,w)});w(I.arg)})(a,o,i,g)})}return r=r?r.then(p,p):p()}}function P(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function x(t){if(t){var e,r=t[b];if(r)return r.call(t);if(typeof t.next=="function")return t;if(!isNaN(t.length))return e=-1,(r=function a(){for(;++e<t.length;)if(s.call(t,e))return a.value=t[e],a.done=!1,a;return a.value=void 0,a.done=!0,a}).next=r}return{next:O}}function O(){return{value:void 0,done:!0}}return d(h,"constructor",S.prototype=_),d(_,"constructor",S),S.displayName=d(_,E,"GeneratorFunction"),n.isGeneratorFunction=function(t){return t=typeof t=="function"&&t.constructor,!!t&&(t===S||(t.displayName||t.name)==="GeneratorFunction")},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,_):(t.__proto__=_,d(t,E,"GeneratorFunction")),t.prototype=Object.create(h),t},n.awrap=function(t){return{__await:t}},C(B.prototype),d(B.prototype,j,function(){return this}),n.AsyncIterator=B,n.async=function(t,e,r,a,o){o===void 0&&(o=Promise);var p=new B(q(t,e,r,a),o);return n.isGeneratorFunction(e)?p:p.next().then(function(i){return i.done?i.value:p.next()})},C(h),d(h,E,"Generator"),d(h,b,function(){return this}),d(h,"toString",function(){return"[object Generator]"}),n.keys=function(t){var e,r=[];for(e in t)r.push(e);return r.reverse(),function a(){for(;r.length;){var o=r.pop();if(o in t)return a.value=o,a.done=!1,a}return a.done=!0,a}},n.values=x,T.prototype={constructor:T,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(k),!t)for(var e in this)e.charAt(0)==="t"&&s.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(t.type==="throw")throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(v,F){return p.type="throw",p.arg=t,e.next=v,F&&(e.method="next",e.arg=void 0),!!F}for(var a=this.tryEntries.length-1;0<=a;--a){var o=this.tryEntries[a],p=o.completion;if(o.tryLoc==="root")return r("end");if(o.tryLoc<=this.prev){var i=s.call(o,"catchLoc"),g=s.call(o,"finallyLoc");if(i&&g){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(i){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!g)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;0<=r;--r){var a=this.tryEntries[r];if(a.tryLoc<=this.prev&&s.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}var p=(o=o&&(t==="break"||t==="continue")&&o.tryLoc<=e&&e<=o.finallyLoc?null:o)?o.completion:{};return p.type=t,p.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(p)},complete:function(t,e){if(t.type==="throw")throw t.arg;return t.type==="break"||t.type==="continue"?this.next=t.arg:t.type==="return"?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):t.type==="normal"&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),k(r),f}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var r,a,o=this.tryEntries[e];if(o.tryLoc===t)return(r=o.completion).type==="throw"&&(a=r.arg,k(o)),a}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:x(t),resultName:e,nextLoc:r},this.method==="next"&&(this.arg=void 0),f}},n}function _toConsumableArray(n){return _arrayWithoutHoles(n)||_iterableToArray(n)||_unsupportedIterableToArray(n)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(n,l){var s;if(n)return typeof n=="string"?_arrayLikeToArray(n,l):(s=(s=Object.prototype.toString.call(n).slice(8,-1))==="Object"&&n.constructor?n.constructor.name:s)==="Map"||s==="Set"?Array.from(n):s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?_arrayLikeToArray(n,l):void 0}function _iterableToArray(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function _arrayWithoutHoles(n){if(Array.isArray(n))return _arrayLikeToArray(n)}function _arrayLikeToArray(n,l){(l==null||l>n.length)&&(l=n.length);for(var s=0,b=new Array(l);s<l;s++)b[s]=n[s];return b}function asyncGeneratorStep(n,l,s,b,j,E,d){try{var q=n[E](d),y=q.value}catch(f){return void s(f)}q.done?l(y):Promise.resolve(y).then(b,j)}function _asyncToGenerator(n){return function(){var l=this,s=arguments;return new Promise(function(b,j){var E=n.apply(l,s);function d(y){asyncGeneratorStep(E,b,j,d,q,"next",y)}function q(y){asyncGeneratorStep(E,b,j,d,q,"throw",y)}d(void 0)})}}window.addEventListener("load",function(){function n(){var y=document.body.style;y.width="100%",y.overflow="hidden",btf.animateIn(j,"to_show 0.5s"),btf.animateIn(document.querySelector("#local-search .search-dialog"),"titleScale 0.5s"),setTimeout(function(){document.querySelector("#local-search-input input").focus()},100),s||(q(),s=!0),document.addEventListener("keydown",function f(A){A.code==="Escape"&&(E(),document.removeEventListener("keydown",f))})}function l(){document.querySelector("#search-button > .search").addEventListener("click",n)}var s=!1,b=[],j=document.getElementById("search-mask"),E=function(){var y=document.body.style;y.width="",y.overflow="",btf.animateOut(document.querySelector("#local-search .search-dialog"),"search_close .5s"),btf.animateOut(j,"to_hide 0.5s")},d=function(){var y=_asyncToGenerator(_regeneratorRuntime().mark(function f(A){var S,_,m,u;return _regeneratorRuntime().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return S=[],h.next=3,fetch(A);case 3:if(_=h.sent,/\.json$/.test(A))return h.next=7,_.json();h.next=10;break;case 7:S=h.sent,h.next=20;break;case 10:return h.next=12,_.text();case 12:return m=h.sent,h.next=15,new window.DOMParser().parseFromString(m,"text/xml");case 15:return m=h.sent,h.next=18,m;case 18:u=h.sent,S=_toConsumableArray(u.querySelectorAll("entry")).map(function(C){var B=[],P=(C.querySelector("tags")&&C.querySelector("tags").getElementsByTagName("tag")&&Array.prototype.forEach.call(C.querySelector("tags").getElementsByTagName("tag"),function(e,r){B.push(e.textContent)}),C.querySelector("content")&&C.querySelector("content").textContent),k=/src=[\'\"]?([^\'\"]*)[\'\"]?/i,T=P.match(/<img.*?(?:>|\/>)/gi),x=[];if(T)for(var O=0;O<T.length;O++){var t=T[O].match(k);t[1].indexOf("http")||x.push(t[1])}return{title:C.querySelector("title").textContent,content:P,url:C.querySelector("url").textContent,tags:B,oneImage:x&&x[0]}});case 20:return _.ok&&((u=document.getElementById("loading-database")).nextElementSibling.style.display="block",u.remove()),h.abrupt("return",S);case 22:case"end":return h.stop()}},f)}));return function(f){return y.apply(this,arguments)}}(),q=function(){GLOBAL_CONFIG.localSearch.preload||(b=d(GLOBAL_CONFIG.localSearch.path));var y=document.querySelector("#local-search-input input"),f=document.getElementById("local-search-results"),A=document.getElementById("loading-status");y.addEventListener("input",function(){var S,_=this,m=this.value.trim().toLowerCase().split(/[\s]+/),u=(m[0]!==""&&(A.innerHTML='<i class="fas fa-spinner fa-pulse"></i>'),f.innerHTML="",'<div class="search-result-list">');m.length<=0||(S=0,b.then(function(h){h.forEach(function(t){var B,P=!0,k=t.title?t.title.trim().toLowerCase():"",T=t.tags,x=(x=t.oneImage)!=null?x:"",O=t.content?t.content.trim().replace(/<[^>]+>/g,"").toLowerCase():"",t=t.url.startsWith("/")?t.url:GLOBAL_CONFIG.root+t.url,e=-1,r=-1;if(k!==""||O!==""?m.forEach(function(L,G){B=k.indexOf(L),e=O.indexOf(L),B<0&&e<0?P=!1:(e<0&&(e=0),G===0&&(r=e))}):P=!1,P){if(0<=r){var a=r-30,o=r+100,p="",i="",g=((a=a<0?0:a)===0?o=100:p="...",o>O.length?o=O.length:i="...",O.substring(a,o));if(m.forEach(function(L){var G=new RegExp(L,"gi");g=g.replace(G,'<span class="search-keyword">'+L+"</span>"),k=k.replace(G,'<span class="search-keyword">'+L+"</span>")}),u=(u=(u+='<div class="local-search__hit-item">')+(x?'<div class="search-left"><img src='.concat(x," alt=").concat(x," data-fancybox='gallery'>"):'<div class="search-left" style="width:0">'))+"</div>"+(x?'<div class="search-right"><a href="'+t+'" class="search-result-title">'+k+"</a>":'<div class="search-right" style="width: 100%"><a href="'+t+'" class="search-result-title">'+k+"</a>"),S+=1,O!==""&&(u+='<p class="search-result" onclick="pjax.loadUrl(`'+t+'`)">'+p+g+i+"</p>"),T.length){u+='<div class="search-result-tags">';for(var v=0;v<T.length;v++){var F=T[v].trim();u+='<a class="tag-list" href="/tags/'+F+'/" data-pjax-state="" one-link-mark="yes">#'+F+"</a>"}u+="</div>"}}u+="</div></div>"}}),S===0&&(u+='<div id="local-search__hits-empty">'+GLOBAL_CONFIG.localSearch.languages.hits_empty.replace(/\$\{query}/,_.value.trim())+"</div>"),u+="</div>",f.innerHTML=u,m[0]!==""&&(A.innerHTML=""),window.pjax&&window.pjax.refresh(f)}))})};l(),document.querySelector("#local-search .search-close-button").addEventListener("click",E),j.addEventListener("click",E),GLOBAL_CONFIG.localSearch.preload&&(b=d(GLOBAL_CONFIG.localSearch.path)),window.addEventListener("pjax:complete",function(){btf.isHidden(j)||E(),l()})});
1
+ (function(R,P){typeof module=="object"&&typeof module.exports=="object"?P():typeof define=="function"&&define.amd?define([],P):(R=typeof globalThis<"u"?globalThis:R||self)&&P()})(this,function(){"use strict";function R(n,s){return s!=null&&typeof Symbol<"u"&&s[Symbol.hasInstance]?!!s[Symbol.hasInstance](n):n instanceof s}function P(n){"@swc/helpers - typeof";return n&&typeof Symbol<"u"&&n.constructor===Symbol?"symbol":typeof n}function U(n){return(U=typeof Symbol=="function"&&P(Symbol.iterator)=="symbol"?function(f){return typeof f>"u"?"undefined":P(f)}:function(s){return s&&typeof Symbol=="function"&&s.constructor===Symbol&&s!==Symbol.prototype?"symbol":typeof s>"u"?"undefined":P(s)})(n)}function Y(){Y=function(){return n};var n={},s=Object.prototype,f=s.hasOwnProperty,S=typeof Symbol=="function"?Symbol:{},g=S.iterator||"@@iterator",I=S.asyncIterator||"@@asyncIterator",_=S.toStringTag||"@@toStringTag";function y(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{y({},"")}catch{y=function(r,o,u){return r[o]=u}}function N(e,m,r,F){var u,i,a,b,m=m&&R(m.prototype,k)?m:k,m=Object.create(m.prototype),F=new E(F||[]);return m._invoke=(u=e,i=r,a=F,b="suspendedStart",function(x,L){if(b==="executing")throw new Error("Generator is already running");if(b==="completed"){if(x==="throw")throw L;return O()}for(a.method=x,a.arg=L;;){var d=a.delegate;if(d&&(d=function M(T,l){var q=T.iterator[l.method];if(q===void 0){if(l.delegate=null,l.method==="throw"){if(T.iterator.return&&(l.method="return",l.arg=void 0,M(T,l),l.method==="throw"))return h;l.method="throw",l.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}return q=v(q,T.iterator,l.arg),q.type==="throw"?(l.method="throw",l.arg=q.arg,l.delegate=null,h):(q=q.arg,q?q.done?(l[T.resultName]=q.value,l.next=T.nextLoc,l.method!=="return"&&(l.method="next",l.arg=void 0),l.delegate=null,h):q:(l.method="throw",l.arg=new TypeError("iterator result is not an object"),l.delegate=null,h))}(d,a),d)){if(d===h)continue;return d}if(a.method==="next")a.sent=a._sent=a.arg;else if(a.method==="throw"){if(b==="suspendedStart")throw b="completed",a.arg;a.dispatchException(a.arg)}else a.method==="return"&&a.abrupt("return",a.arg);if(b="executing",d=v(u,i,a),d.type==="normal"){if(b=a.done?"completed":"suspendedYield",d.arg===h)continue;return{value:d.arg,done:a.done}}d.type==="throw"&&(b="completed",a.method="throw",a.arg=d.arg)}}),m}function v(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(o){return{type:"throw",arg:o}}}n.wrap=N;var h={};function k(){}function j(){}function w(){}var S={},p=(y(S,g,function(){return this}),Object.getPrototypeOf),p=p&&p(p(G([]))),c=(p&&p!==s&&f.call(p,g)&&(S=p),w.prototype=k.prototype=Object.create(S));function A(e){["next","throw","return"].forEach(function(t){y(e,t,function(r){return this._invoke(t,r)})})}function C(e,t){var r;this._invoke=function(o,u){function i(){return new t(function(a,b){(function m(T,x,L,d){var M,T=v(e[T],e,x);if(T.type!=="throw")return(x=(M=T.arg).value)&&U(x)=="object"&&f.call(x,"__await")?t.resolve(x.__await).then(function(l){m("next",l,L,d)},function(l){m("throw",l,L,d)}):t.resolve(x).then(function(l){M.value=l,L(M)},function(l){return m("throw",l,L,d)});d(T.arg)})(o,u,a,b)})}return r=r?r.then(i,i):i()}}function H(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function B(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(H,this),this.reset(!0)}function G(e){if(e){var t,r=e[g];if(r)return r.call(e);if(typeof e.next=="function")return e;if(!isNaN(e.length))return t=-1,(r=function o(){for(;++t<e.length;)if(f.call(e,t))return o.value=e[t],o.done=!1,o;return o.value=void 0,o.done=!0,o}).next=r}return{next:O}}function O(){return{value:void 0,done:!0}}return y(c,"constructor",j.prototype=w),y(w,"constructor",j),j.displayName=y(w,_,"GeneratorFunction"),n.isGeneratorFunction=function(e){return e=typeof e=="function"&&e.constructor,!!e&&(e===j||(e.displayName||e.name)==="GeneratorFunction")},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,y(e,_,"GeneratorFunction")),e.prototype=Object.create(c),e},n.awrap=function(e){return{__await:e}},A(C.prototype),y(C.prototype,I,function(){return this}),n.AsyncIterator=C,n.async=function(e,t,r,o,u){u===void 0&&(u=Promise);var i=new C(N(e,t,r,o),u);return n.isGeneratorFunction(t)?i:i.next().then(function(a){return a.done?a.value:i.next()})},A(c),y(c,_,"Generator"),y(c,g,function(){return this}),y(c,"toString",function(){return"[object Generator]"}),n.keys=function(e){var t,r=[];for(t in e)r.push(t);return r.reverse(),function o(){for(;r.length;){var u=r.pop();if(u in e)return o.value=u,o.done=!1,o}return o.done=!0,o}},n.values=G,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(B),!t)for(var r in this)r.charAt(0)==="t"&&f.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if(t.type==="throw")throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(F,x){return a.type="throw",a.arg=t,r.next=F,x&&(r.method="next",r.arg=void 0),!!x}for(var u=this.tryEntries.length-1;0<=u;--u){var i=this.tryEntries[u],a=i.completion;if(i.tryLoc==="root")return o("end");if(i.tryLoc<=this.prev){var b=f.call(i,"catchLoc"),m=f.call(i,"finallyLoc");if(b&&m){if(this.prev<i.catchLoc)return o(i.catchLoc,!0);if(this.prev<i.finallyLoc)return o(i.finallyLoc)}else if(b){if(this.prev<i.catchLoc)return o(i.catchLoc,!0)}else{if(!m)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return o(i.finallyLoc)}}}},abrupt:function(t,r){for(var o=this.tryEntries.length-1;0<=o;--o){var u=this.tryEntries[o];if(u.tryLoc<=this.prev&&f.call(u,"finallyLoc")&&this.prev<u.finallyLoc){var i=u;break}}var a=(i=i&&(t==="break"||t==="continue")&&i.tryLoc<=r&&r<=i.finallyLoc?null:i)?i.completion:{};return a.type=t,a.arg=r,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(t,r){if(t.type==="throw")throw t.arg;return t.type==="break"||t.type==="continue"?this.next=t.arg:t.type==="return"?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):t.type==="normal"&&r&&(this.next=r),h},finish:function(t){for(var r=this.tryEntries.length-1;0<=r;--r){var o=this.tryEntries[r];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),B(o),h}},catch:function(t){for(var r=this.tryEntries.length-1;0<=r;--r){var o,u,i=this.tryEntries[r];if(i.tryLoc===t)return(o=i.completion).type==="throw"&&(u=o.arg,B(i)),u}throw new Error("illegal catch attempt")},delegateYield:function(t,r,o){return this.delegate={iterator:G(t),resultName:r,nextLoc:o},this.method==="next"&&(this.arg=void 0),h}},n}function D(n){return Q(n)||K(n)||J(n)||z()}function z(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function J(n,s){var f;if(n)return typeof n=="string"?$(n,s):(f=(f=Object.prototype.toString.call(n).slice(8,-1))==="Object"&&n.constructor?n.constructor.name:f)==="Map"||f==="Set"?Array.from(n):f==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(f)?$(n,s):void 0}function K(n){if((typeof Symbol>"u"?"undefined":P(Symbol))<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function Q(n){if(Array.isArray(n))return $(n)}function $(n,s){(s==null||s>n.length)&&(s=n.length);for(var f=0,g=new Array(s);f<s;f++)g[f]=n[f];return g}function W(n,s,f,g,I,_,y){try{var N=n[_](y),v=N.value}catch(h){return void f(h)}N.done?s(v):Promise.resolve(v).then(g,I)}function V(n){return function(){var s=this,f=arguments;return new Promise(function(g,I){var _=n.apply(s,f);function y(v){W(_,g,I,y,N,"next",v)}function N(v){W(_,g,I,y,N,"throw",v)}y(void 0)})}}window.addEventListener("load",function(){function n(){var v=document.body.style;v.width="100%",v.overflow="hidden",btf.animateIn(I,"to_show 0.5s"),btf.animateIn(document.querySelector("#local-search .search-dialog"),"titleScale 0.5s"),setTimeout(function(){document.querySelector("#local-search-input input").focus()},100),f||(N(),f=!0),document.addEventListener("keydown",function h(k){k.code==="Escape"&&(_(),document.removeEventListener("keydown",h))})}function s(){document.querySelector("#search-button > .search").addEventListener("click",n)}var f=!1,g=[],I=document.getElementById("search-mask"),_=function(){var h=document.body.style;h.width="",h.overflow="",btf.animateOut(document.querySelector("#local-search .search-dialog"),"search_close .5s"),btf.animateOut(I,"to_hide 0.5s")},y=function(){var v=V(Y().mark(function h(k){var j,w,S,p;return Y().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return j=[],c.next=3,fetch(k);case 3:if(w=c.sent,/\.json$/.test(k))return c.next=7,w.json();c.next=10;break;case 7:j=c.sent,c.next=20;break;case 10:return c.next=12,w.text();case 12:return S=c.sent,c.next=15,new window.DOMParser().parseFromString(S,"text/xml");case 15:return S=c.sent,c.next=18,S;case 18:p=c.sent,j=D(p.querySelectorAll("entry")).map(function(A){var C=[],H=(A.querySelector("tags")&&A.querySelector("tags").getElementsByTagName("tag")&&Array.prototype.forEach.call(A.querySelector("tags").getElementsByTagName("tag"),function(t,r){C.push(t.textContent)}),A.querySelector("content")&&A.querySelector("content").textContent),B=/src=[\'\"]?([^\'\"]*)[\'\"]?/i,E=H.match(/<img.*?(?:>|\/>)/gi),G=[];if(E)for(var O=0;O<E.length;O++){var e=E[O].match(B);e[1].indexOf("http")||G.push(e[1])}return{title:A.querySelector("title").textContent,content:H,url:A.querySelector("url").textContent,tags:C,oneImage:G&&G[0]}});case 20:return w.ok&&((p=document.getElementById("loading-database")).nextElementSibling.style.display="block",p.remove()),c.abrupt("return",j);case 22:case"end":return c.stop()}},h)}));return function(h){return v.apply(this,arguments)}}(),N=function(){GLOBAL_CONFIG.localSearch.preload||(g=y(GLOBAL_CONFIG.localSearch.path));var h=document.querySelector("#local-search-input input"),k=document.getElementById("local-search-results"),j=document.getElementById("loading-status");h.addEventListener("input",function(){var w,S=this,p=this.value.trim().toLowerCase().split(/[\s]+/),c=(p[0]!==""&&(j.innerHTML='<i class="fas fa-spinner fa-pulse"></i>'),k.innerHTML="",'<div class="search-result-list">');p.length<=0||(w=0,g.then(function(A){A.forEach(function(t){var H,B=!0,E=t.title?t.title.trim().toLowerCase():"",G=t.tags,O=(O=t.oneImage)!=null?O:"",e=t.content?t.content.trim().replace(/<[^>]+>/g,"").toLowerCase():"",t=t.url.startsWith("/")?t.url:GLOBAL_CONFIG.root+t.url,r=-1,o=-1;if(E!==""||e!==""?p.forEach(function(L,d){H=E.indexOf(L),r=e.indexOf(L),H<0&&r<0?B=!1:(r<0&&(r=0),d===0&&(o=r))}):B=!1,B){if(0<=o){var u=o-30,i=o+100,a="",b="",m=((u=u<0?0:u)===0?i=100:a="...",i>e.length?i=e.length:b="...",e.substring(u,i));if(p.forEach(function(L){var d=new RegExp(L,"gi");m=m.replace(d,'<span class="search-keyword">'+L+"</span>"),E=E.replace(d,'<span class="search-keyword">'+L+"</span>")}),c=(c=(c+='<div class="local-search__hit-item">')+(O?'<div class="search-left"><img src='.concat(O," alt=").concat(O," data-fancybox='gallery'>"):'<div class="search-left" style="width:0">'))+"</div>"+(O?'<div class="search-right"><a href="'+t+'" class="search-result-title">'+E+"</a>":'<div class="search-right" style="width: 100%"><a href="'+t+'" class="search-result-title">'+E+"</a>"),w+=1,e!==""&&(c+='<p class="search-result" onclick="pjax.loadUrl(`'+t+'`)">'+a+m+b+"</p>"),G.length){c+='<div class="search-result-tags">';for(var F=0;F<G.length;F++){var x=G[F].trim();c+='<a class="tag-list" href="/tags/'+x+'/" data-pjax-state="" one-link-mark="yes">#'+x+"</a>"}c+="</div>"}}c+="</div></div>"}}),w===0&&(c+='<div id="local-search__hits-empty">'+GLOBAL_CONFIG.localSearch.languages.hits_empty.replace(/\$\{query}/,S.value.trim())+"</div>"),c+="</div>",k.innerHTML=c,p[0]!==""&&(j.innerHTML=""),window.pjax&&window.pjax.refresh(k)}))})};s(),document.querySelector("#local-search .search-close-button").addEventListener("click",_),I.addEventListener("click",_),GLOBAL_CONFIG.localSearch.preload&&(g=y(GLOBAL_CONFIG.localSearch.path)),window.addEventListener("pjax:complete",function(){btf.isHidden(I)||_(),s()})})});
package/js/lunar.js CHANGED
@@ -1 +1 @@
1
- var lunarInfo=[19416,19168,42352,21717,53856,55632,91476,22176,39632,21970,19168,42422,42192,53840,119381,46400,54944,44450,38320,84343,18800,42160,46261,27216,27968,109396,11104,38256,21234,18800,25958,54432,59984,28309,23248,11104,100067,37600,116951,51536,54432,120998,46416,22176,107956,9680,37584,53938,43344,46423,27808,46416,86869,19872,42416,83315,21168,43432,59728,27296,44710,43856,19296,43748,42352,21088,62051,55632,23383,22176,38608,19925,19152,42192,54484,53840,54616,46400,46752,103846,38320,18864,43380,42160,45690,27216,27968,44870,43872,38256,19189,18800,25776,29859,59984,27480,23232,43872,38613,37600,51552,55636,54432,55888,30034,22176,43959,9680,37584,51893,43344,46240,47780,44368,21977,19360,42416,86390,21168,43312,31060,27296,44368,23378,19296,42726,42208,53856,60005,54576,23200,30371,38608,19195,19152,42192,118966,53840,54560,56645,46496,22224,21938,18864,42359,42160,43600,111189,27936,44448,84835,37744,18936,18800,25776,92326,59984,27424,108228,43744,41696,53987,51552,54615,54432,55888,23893,22176,42704,21972,21200,43448,43344,46240,46758,44368,21920,43940,42416,21168,45683,26928,29495,27296,44368,84821,19296,42352,21732,53600,59752,54560,55968,92838,22224,19168,43476,41680,53584,62034,54560],solarMonth=[31,28,31,30,31,30,31,31,30,31,30,31],Gan=["\u7532","\u4E59","\u4E19","\u4E01","\u620A","\u5DF1","\u5E9A","\u8F9B","\u58EC","\u7678"],Zhi=["\u5B50","\u4E11","\u5BC5","\u536F","\u8FB0","\u5DF3","\u5348","\u672A","\u7533","\u9149","\u620C","\u4EA5"],Animals=["\u9F20","\u725B","\u864E","\u5154","\u9F99","\u86C7","\u9A6C","\u7F8A","\u7334","\u9E21","\u72D7","\u732A"],solarTerm=["\u5C0F\u5BD2","\u5927\u5BD2","\u7ACB\u6625","\u96E8\u6C34","\u60CA\u86F0","\u6625\u5206","\u6E05\u660E","\u8C37\u96E8","\u7ACB\u590F","\u5C0F\u6EE1","\u8292\u79CD","\u590F\u81F3","\u5C0F\u6691","\u5927\u6691","\u7ACB\u79CB","\u5904\u6691","\u767D\u9732","\u79CB\u5206","\u5BD2\u9732","\u971C\u964D","\u7ACB\u51AC","\u5C0F\u96EA","\u5927\u96EA","\u51AC\u81F3"],sTermInfo=["9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","9778397bd19801ec9210c965cc920e","97b6b97bd19801ec95f8c965cc920f","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd197c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bcf97c3598082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd19801ec9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bd07f1487f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b97bd197c36c9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b70c9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","977837f0e37f149b0723b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0723b06bd","7f07e7f0e37f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f595b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e37f14998083b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14898082b0723b02d5","7f07e7f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66aa89801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e26665b66a449801e9808297c35","665f67f0e37f1489801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722"],nStr1=["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341"],nStr2=["\u521D","\u5341","\u5EFF","\u5345"],nStr3=["\u6B63","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u51AC","\u814A"];function lYearDays(b){var f,e=348;for(f=32768;f>8;f>>=1)e+=lunarInfo[b-1900]&f?1:0;return e+leapDays(b)}function leapMonth(b){return lunarInfo[b-1900]&15}function leapDays(b){return leapMonth(b)?lunarInfo[b-1900]&65536?30:29:0}function monthDays(b,f){return f>12||f<1?-1:lunarInfo[b-1900]&65536>>f?30:29}function solarDays(b,f){if(f>12||f<1)return-1;var e=f-1;return e===1?b%4===0&&b%100!==0||b%400===0?29:28:solarMonth[e]}function toGanZhiYear(b){var f=(b-3)%10,e=(b-3)%12;return f===0&&(f=10),e===0&&(e=12),Gan[f-1]+Zhi[e-1]}function toAstro(b,f){var e="\u9B54\u7FAF\u6C34\u74F6\u53CC\u9C7C\u767D\u7F8A\u91D1\u725B\u53CC\u5B50\u5DE8\u87F9\u72EE\u5B50\u5904\u5973\u5929\u79E4\u5929\u874E\u5C04\u624B\u9B54\u7FAF",c=[20,19,21,21,21,22,23,23,23,23,22,22];return e.substr(b*2-(f<c[b-1]?2:0),2)+"\u5EA7"}function toGanZhi(b){return Gan[b%10]+Zhi[b%12]}function getTerm(b,f){if(b<1900||b>2100||f<1||f>24)return-1;var e=sTermInfo[b-1900],c=[parseInt("0x"+e.substr(0,5)).toString(),parseInt("0x"+e.substr(5,5)).toString(),parseInt("0x"+e.substr(10,5)).toString(),parseInt("0x"+e.substr(15,5)).toString(),parseInt("0x"+e.substr(20,5)).toString(),parseInt("0x"+e.substr(25,5)).toString()],a=[c[0].substr(0,1),c[0].substr(1,2),c[0].substr(3,1),c[0].substr(4,2),c[1].substr(0,1),c[1].substr(1,2),c[1].substr(3,1),c[1].substr(4,2),c[2].substr(0,1),c[2].substr(1,2),c[2].substr(3,1),c[2].substr(4,2),c[3].substr(0,1),c[3].substr(1,2),c[3].substr(3,1),c[3].substr(4,2),c[4].substr(0,1),c[4].substr(1,2),c[4].substr(3,1),c[4].substr(4,2),c[5].substr(0,1),c[5].substr(1,2),c[5].substr(3,1),c[5].substr(4,2)];return parseInt(a[f-1])}function toChinaMonth(b){if(b>12||b<1)return-1;var f=nStr3[b-1];return f+="\u6708",f}function toChinaDay(b){var f;switch(b){case 10:f="\u521D\u5341";break;case 20:f="\u4E8C\u5341";break;case 30:f="\u4E09\u5341";break;default:f=nStr2[Math.floor(b/10)],f+=nStr1[b%10]}return f}function getAnimal(b){return Animals[(b-4)%12]}function solar2lunar(b,f,e){if(b<1900||b>2100||b===1900&&f===1&&e<31)return-1;var c=null;b?c=new Date(b,parseInt(f)-1,e):c=new Date;var a,r=0,d=0;b=c.getFullYear(),f=c.getMonth()+1,e=c.getDate();var u=(Date.UTC(c.getFullYear(),c.getMonth(),c.getDate())-Date.UTC(1900,0,31))/864e5;for(a=1900;a<2101&&u>0;a++)d=lYearDays(a),u-=d;u<0&&(u+=d,a--);var t=new Date,i=!1;t.getFullYear()===b&&t.getMonth()+1===f&&t.getDate()===e&&(i=!0);var n=c.getDay(),o=nStr1[n];n===0&&(n=7);var s=a;r=leapMonth(a);var x=!1;for(a=1;a<13&&u>0;a++)r>0&&a===r+1&&x===!1?(--a,x=!0,d=leapDays(s)):d=monthDays(s,a),x===!0&&a===r+1&&(x=!1),u-=d;u===0&&r>0&&a===r+1&&(x?x=!1:(x=!0,--a)),u<0&&(u+=d,--a);var v=a,D=u+1,p=f-1,C=toGanZhiYear(s),T=getTerm(b,f*2-1),I=getTerm(b,f*2),h=toGanZhi((b-1900)*12+f+11);e>=T&&(h=toGanZhi((b-1900)*12+f+12));var l=!1,g=null;T===e&&(l=!0,g=solarTerm[f*2-2]),I===e&&(l=!0,g=solarTerm[f*2-1]);var Y=Date.UTC(b,p,1,0,0,0,0)/864e5+25567+10,M=toGanZhi(Y+e-1),S=toAstro(f,e);return{lYear:s,lMonth:v,lDay:D,Animal:getAnimal(s),IMonthCn:(x?"\u95F0":"")+toChinaMonth(v),IDayCn:toChinaDay(D),cYear:b,cMonth:f,cDay:e,gzYear:C,gzMonth:h,gzDay:M,isToday:i,isLeap:x,nWeek:n,ncWeek:"\u661F\u671F"+o,isTerm:l,Term:g,astro:S}}var calendarFormatter={solar2lunar:function(b,f,e){return solar2lunar(b,f,e)},lunar2solar:function(b,f,e,c){if(c=!!c,c&&leapMonth!==f||b===2100&&f===12&&e>1||b===1900&&f===1&&e<31)return-1;var a=monthDays(b,f),r=a;if(c&&(r=leapDays(b,f)),b<1900||b>2100||e>r)return-1;for(var d=0,u=1900;u<b;u++)d+=lYearDays(u);var t=0,i=!1;for(u=1;u<f;u++)t=leapMonth(b),i||t<=u&&t>0&&(d+=leapDays(b),i=!0),d+=monthDays(b,u);c&&(d+=a);var n=Date.UTC(1900,1,30,0,0,0),o=new Date((d+e-31)*864e5+n),s=o.getUTCFullYear(),x=o.getUTCMonth()+1,v=o.getUTCDate();return solar2lunar(s,x,v)}};
1
+ (function(o,C){typeof module=="object"&&typeof module.exports=="object"?C():typeof define=="function"&&define.amd?define([],C):(o=typeof globalThis<"u"?globalThis:o||self)&&C()})(this,function(){var o=[19416,19168,42352,21717,53856,55632,91476,22176,39632,21970,19168,42422,42192,53840,119381,46400,54944,44450,38320,84343,18800,42160,46261,27216,27968,109396,11104,38256,21234,18800,25958,54432,59984,28309,23248,11104,100067,37600,116951,51536,54432,120998,46416,22176,107956,9680,37584,53938,43344,46423,27808,46416,86869,19872,42416,83315,21168,43432,59728,27296,44710,43856,19296,43748,42352,21088,62051,55632,23383,22176,38608,19925,19152,42192,54484,53840,54616,46400,46752,103846,38320,18864,43380,42160,45690,27216,27968,44870,43872,38256,19189,18800,25776,29859,59984,27480,23232,43872,38613,37600,51552,55636,54432,55888,30034,22176,43959,9680,37584,51893,43344,46240,47780,44368,21977,19360,42416,86390,21168,43312,31060,27296,44368,23378,19296,42726,42208,53856,60005,54576,23200,30371,38608,19195,19152,42192,118966,53840,54560,56645,46496,22224,21938,18864,42359,42160,43600,111189,27936,44448,84835,37744,18936,18800,25776,92326,59984,27424,108228,43744,41696,53987,51552,54615,54432,55888,23893,22176,42704,21972,21200,43448,43344,46240,46758,44368,21920,43940,42416,21168,45683,26928,29495,27296,44368,84821,19296,42352,21732,53600,59752,54560,55968,92838,22224,19168,43476,41680,53584,62034,54560],C=[31,28,31,30,31,30,31,31,30,31,30,31],T=["\u7532","\u4E59","\u4E19","\u4E01","\u620A","\u5DF1","\u5E9A","\u8F9B","\u58EC","\u7678"],m=["\u5B50","\u4E11","\u5BC5","\u536F","\u8FB0","\u5DF3","\u5348","\u672A","\u7533","\u9149","\u620C","\u4EA5"],k=["\u9F20","\u725B","\u864E","\u5154","\u9F99","\u86C7","\u9A6C","\u7F8A","\u7334","\u9E21","\u72D7","\u732A"],y=["\u5C0F\u5BD2","\u5927\u5BD2","\u7ACB\u6625","\u96E8\u6C34","\u60CA\u86F0","\u6625\u5206","\u6E05\u660E","\u8C37\u96E8","\u7ACB\u590F","\u5C0F\u6EE1","\u8292\u79CD","\u590F\u81F3","\u5C0F\u6691","\u5927\u6691","\u7ACB\u79CB","\u5904\u6691","\u767D\u9732","\u79CB\u5206","\u5BD2\u9732","\u971C\u964D","\u7ACB\u51AC","\u5C0F\u96EA","\u5927\u96EA","\u51AC\u81F3"],w=["9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","9778397bd19801ec9210c965cc920e","97b6b97bd19801ec95f8c965cc920f","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd197c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bcf97c3598082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd19801ec9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bd07f1487f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b97bd197c36c9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b70c9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","977837f0e37f149b0723b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0723b06bd","7f07e7f0e37f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f595b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e37f14998083b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14898082b0723b02d5","7f07e7f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66aa89801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e26665b66a449801e9808297c35","665f67f0e37f1489801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722"],I=["\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341"],z=["\u521D","\u5341","\u5EFF","\u5345"],G=["\u6B63","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u4E03","\u516B","\u4E5D","\u5341","\u51AC","\u814A"];function M(f){var b,e=348;for(b=32768;b>8;b>>=1)e+=o[f-1900]&b?1:0;return e+E(f)}function D(f){return o[f-1900]&15}function E(f){return D(f)?o[f-1900]&65536?30:29:0}function A(f,b){return b>12||b<1?-1:o[f-1900]&65536>>b?30:29}function Q(f,b){if(b>12||b<1)return-1;var e=b-1;return e===1?f%4===0&&f%100!==0||f%400===0?29:28:C[e]}function Z(f){var b=(f-3)%10,e=(f-3)%12;return b===0&&(b=10),e===0&&(e=12),T[b-1]+m[e-1]}function j(f,b){var e="\u9B54\u7FAF\u6C34\u74F6\u53CC\u9C7C\u767D\u7F8A\u91D1\u725B\u53CC\u5B50\u5DE8\u87F9\u72EE\u5B50\u5904\u5973\u5929\u79E4\u5929\u874E\u5C04\u624B\u9B54\u7FAF",c=[20,19,21,21,21,22,23,23,23,23,22,22];return e.substr(f*2-(b<c[f-1]?2:0),2)+"\u5EA7"}function v(f){return T[f%10]+m[f%12]}function S(f,b){if(f<1900||f>2100||b<1||b>24)return-1;var e=w[f-1900],c=[parseInt("0x"+e.substr(0,5)).toString(),parseInt("0x"+e.substr(5,5)).toString(),parseInt("0x"+e.substr(10,5)).toString(),parseInt("0x"+e.substr(15,5)).toString(),parseInt("0x"+e.substr(20,5)).toString(),parseInt("0x"+e.substr(25,5)).toString()],u=[c[0].substr(0,1),c[0].substr(1,2),c[0].substr(3,1),c[0].substr(4,2),c[1].substr(0,1),c[1].substr(1,2),c[1].substr(3,1),c[1].substr(4,2),c[2].substr(0,1),c[2].substr(1,2),c[2].substr(3,1),c[2].substr(4,2),c[3].substr(0,1),c[3].substr(1,2),c[3].substr(3,1),c[3].substr(4,2),c[4].substr(0,1),c[4].substr(1,2),c[4].substr(3,1),c[4].substr(4,2),c[5].substr(0,1),c[5].substr(1,2),c[5].substr(3,1),c[5].substr(4,2)];return parseInt(u[b-1])}function W(f){if(f>12||f<1)return-1;var b=G[f-1];return b+="\u6708",b}function L(f){var b;switch(f){case 10:b="\u521D\u5341";break;case 20:b="\u4E8C\u5341";break;case 30:b="\u4E09\u5341";break;default:b=z[Math.floor(f/10)],b+=I[f%10]}return b}function q(f){return k[(f-4)%12]}function Y(f,b,e){if(f<1900||f>2100||f===1900&&b===1&&e<31)return-1;var c=null;f?c=new Date(f,parseInt(b)-1,e):c=new Date;var u,n=0,d=0;f=c.getFullYear(),b=c.getMonth()+1,e=c.getDate();var a=(Date.UTC(c.getFullYear(),c.getMonth(),c.getDate())-Date.UTC(1900,0,31))/864e5;for(u=1900;u<2101&&a>0;u++)d=M(u),a-=d;a<0&&(a+=d,u--);var r=new Date,l=!1;r.getFullYear()===f&&r.getMonth()+1===b&&r.getDate()===e&&(l=!0);var i=c.getDay(),B=I[i];i===0&&(i=7);var s=u;n=D(u);var t=!1;for(u=1;u<13&&a>0;u++)n>0&&u===n+1&&t===!1?(--u,t=!0,d=E(s)):d=A(s,u),t===!0&&u===n+1&&(t=!1),a-=d;a===0&&n>0&&u===n+1&&(t?t=!1:(t=!0,--u)),a<0&&(a+=d,--u);var F=u,g=a+1,H=b-1,J=Z(s),x=S(f,b*2-1),K=S(f,b*2),U=v((f-1900)*12+b+11);e>=x&&(U=v((f-1900)*12+b+12));var h=!1,p=null;x===e&&(h=!0,p=y[b*2-2]),K===e&&(h=!0,p=y[b*2-1]);var N=Date.UTC(f,H,1,0,0,0,0)/864e5+25567+10,O=v(N+e-1),P=j(b,e);return{lYear:s,lMonth:F,lDay:g,Animal:q(s),IMonthCn:(t?"\u95F0":"")+W(F),IDayCn:L(g),cYear:f,cMonth:b,cDay:e,gzYear:J,gzMonth:U,gzDay:O,isToday:l,isLeap:t,nWeek:i,ncWeek:"\u661F\u671F"+B,isTerm:h,Term:p,astro:P}}var R={solar2lunar:function(b,e,c){return Y(b,e,c)},lunar2solar:function(b,e,c,u){if(u=!!u,u&&D!==e||b===2100&&e===12&&c>1||b===1900&&e===1&&c<31)return-1;var n=A(b,e),d=n;if(u&&(d=E(b,e)),b<1900||b>2100||c>d)return-1;for(var a=0,r=1900;r<b;r++)a+=M(r);var l=0,i=!1;for(r=1;r<e;r++)l=D(b),i||l<=r&&l>0&&(a+=E(b),i=!0),a+=A(b,r);u&&(a+=n);var B=Date.UTC(1900,1,30,0,0,0),s=new Date((a+c-31)*864e5+B),t=s.getUTCFullYear(),F=s.getUTCMonth()+1,g=s.getUTCDate();return Y(t,F,g)}}});
package/js/lyxTalk.js CHANGED
@@ -1 +1 @@
1
- let lyxTalk={};lyxTalk.init=function(e,n,t,o){AV.init({appId:e,appKey:n,serverURL:t}),new AV.Query("content").find().then(i=>{console.log(i)})};
1
+ (function(n,e){typeof module=="object"&&typeof module.exports=="object"?e():typeof define=="function"&&define.amd?define([],e):(n=typeof globalThis<"u"?globalThis:n||self)&&e()})(this,function(){var n={};n.init=function(e,i,o,t){AV.init({appId:e,appKey:i,serverURL:o}),new AV.Query("content").find().then(function(f){console.log(f)})}});
package/js/main.js CHANGED
@@ -1,7 +1,7 @@
1
- document.addEventListener("DOMContentLoaded",function(){let O,S,A,T,C=!1;const B=t=>{if(t){O=document.getElementById("site-name").offsetWidth;const n=document.querySelectorAll("#menus .menus_item");S=0,n.length&&n.forEach(i=>{S+=i.offsetWidth});const o=document.querySelector("#search-button");A=o?o.offsetWidth:0,T=document.getElementById("nav")}let e="";window.innerWidth<768?e=!0:e=O+S+A>T.offsetWidth-120,e?T.classList.add("hide-menu"):T.classList.remove("hide-menu")},F=()=>{B(!0),T.classList.add("show")},I={open:()=>{btf.sidebarPaddingR(),document.body.style.overflow="hidden",btf.animateIn(document.getElementById("menu-mask"),"to_show 0.5s"),document.getElementById("sidebar-menus").classList.add("open"),C=!0},close:()=>{const t=document.body;t.style.overflow="",t.style.paddingRight="",btf.animateOut(document.getElementById("menu-mask"),"to_hide 0.5s"),document.getElementById("sidebar-menus").classList.remove("open"),C=!1}},N=()=>{const t=document.getElementById("scroll-down");t&&t.addEventListener("click",function(){btf.scrollToDest(document.getElementById("content-inner").offsetTop,300)})},x=function(){const t=GLOBAL_CONFIG.highlight;if(!t)return;const e=t.highlightCopy,n=t.highlightLang,o=GLOBAL_CONFIG_SITE.isHighlightShrink,i=t.highlightHeightLimit,a=e||n||o!==void 0,f=t.plugin==="highlighjs"?document.querySelectorAll("figure.highlight"):document.querySelectorAll('pre[class*="language-"]');if(!((a||i)&&f.length))return;const L=t.plugin==="prismjs";let m="",u="";const v=o===!0?"closed":"";o!==void 0&&(m=`<i class="fas fa-angle-down expand ${v}"></i>`),e&&(u='<div class="copy-notice"></div><i class="fas fa-paste copy-button"></i>');const g=async(c,s)=>{try{if(await navigator.clipboard.writeText(c),GLOBAL_CONFIG.Snackbar!==void 0)btf.snackbarShow(GLOBAL_CONFIG.copy.success);else{const l=s.previousElementSibling;l.innerText=GLOBAL_CONFIG.copy.success,l.style.opacity=1,setTimeout(()=>{l.style.opacity=0},700)}}catch{GLOBAL_CONFIG.Snackbar!==void 0?btf.snackbarShow(GLOBAL_CONFIG.copy.noSupport):s.previousElementSibling.innerText=GLOBAL_CONFIG.copy.noSupport}},E=c=>{const s=c.parentNode;s.classList.add("copy-true");const l=window.getSelection(),b=document.createRange();L?b.selectNodeContents(s.querySelectorAll("pre code")[0]):b.selectNodeContents(s.querySelectorAll("table .code pre")[0]),l.removeAllRanges(),l.addRange(b);const y=l.toString();g(y,c.lastChild),l.removeAllRanges(),s.classList.remove("copy-true")},h=c=>{const s=[...c.parentNode.children].slice(1);c.firstChild.classList.toggle("closed"),btf.isHidden(s[s.length-1])?s.forEach(l=>{l.style.display="block"}):s.forEach(l=>{l.style.display="none"})},r=function(c){const s=c.target.classList;s.contains("expand")?h(this):s.contains("copy-button")&&E(this)},d=function(){this.classList.toggle("expand-done")};function p(c,s,l){const b=document.createDocumentFragment();if(a){const y=document.createElement("div");y.className=`highlight-tools ${v}`,y.innerHTML=m+c+u,y.addEventListener("click",r),b.appendChild(y)}if(i&&s.offsetHeight>i+30){const y=document.createElement("div");y.className="code-expand-btn",y.innerHTML='<i class="fas fa-angle-double-down"></i>',y.addEventListener("click",d),b.appendChild(y)}l==="hl"?s.insertBefore(b,s.firstChild):s.parentNode.insertBefore(b,s)}n?L?f.forEach(function(c){const l=`<div class="code-lang">${c.getAttribute("data-language")?c.getAttribute("data-language"):"Code"}</div>`;btf.wrap(c,"figure",{class:"highlight"}),p(l,c)}):f.forEach(function(c){let s=c.getAttribute("class").split(" ")[1];(s==="plain"||s===void 0)&&(s="Code");const l=`<div class="code-lang">${s}</div>`;p(l,c,"hl")}):L?f.forEach(function(c){btf.wrap(c,"figure",{class:"highlight"}),p("",c)}):f.forEach(function(c){p("",c,"hl")})};function $(){document.querySelectorAll("#article-container img").forEach(function(t){const e=t.parentNode,n=t.title||t.alt;if(n&&!e.parentNode.classList.contains("justified-gallery")){const o=document.createElement("div");o.className="img-alt is-center",o.textContent=n,e.insertBefore(o,t.nextSibling)}})}const _=()=>{btf.loadLightbox(document.querySelectorAll("#article-container img:not(.no-lightbox)"))},D=function(t){if(t.forEach(n=>{n.querySelectorAll("img").forEach(i=>{const a=i.getAttribute("data-lazy-src");a&&(i.src=a),btf.wrap(i,"div",{class:"fj-gallery-item"})})}),window.fjGallery){setTimeout(()=>{btf.initJustifiedGallery(t)},100);return}const e=document.createElement("link");e.rel="stylesheet",e.href=GLOBAL_CONFIG.source.justifiedGallery.css,document.body.appendChild(e),getScript(`${GLOBAL_CONFIG.source.justifiedGallery.js}`).then(()=>{btf.initJustifiedGallery(t)})},H=function(){const t=document.getElementById("rightside"),e=window.innerHeight+56;if(document.body.scrollHeight<=e){t.style.cssText="opacity: 1; transform: translateX(-58px)";return}function n(m){const u=m>o;return o=m,u}let o=0,i=!0;const a=document.getElementById("page-header"),f=typeof chatBtnHide=="function",L=typeof chatBtnShow=="function";a.classList.add("nav-fixed"),a.classList.add("nav-visible"),window.scrollCollect=()=>btf.throttle(function(m){const u=window.scrollY||document.documentElement.scrollTop,v=n(u);a.classList.add("nav-fixed"),a.classList.add("nav-visible"),u>0?(v?(a.classList.contains("nav-visible")&&a.classList.add("nav-visible"),L&&i===!0&&(chatBtnHide(),i=!1)):(a.classList.contains("nav-visible")||a.classList.add("nav-visible"),f&&i===!1&&(chatBtnShow(),i=!0)),a.classList.add("nav-fixed"),window.getComputedStyle(t).getPropertyValue("opacity")==="0"&&(t.style.cssText="opacity: 1; transform: translateX(-58px)")):(u===0&&a.classList.remove("nav-fixed","nav-visible"),t.style.cssText="opacity: ''; transform: ''"),document.body.scrollHeight<=e&&(t.style.cssText="opacity: 1; transform: translateX(-58px)")},200)(),window.addEventListener("scroll",scrollCollect)},q=function(){const t=GLOBAL_CONFIG_SITE.isToc,e=GLOBAL_CONFIG.isAnchor,n=document.getElementById("article-container");if(!(n&&(t||e)))return;let o,i,a,f,L;if(t){const g=document.getElementById("card-toc");i=g.getElementsByClassName("toc-content")[0],o=i.querySelectorAll(".toc-link");const E=g.querySelector(".toc-percentage");L=i.classList.contains("is-expand"),a=h=>{const r=n.clientHeight,d=document.documentElement.clientHeight,p=n.offsetTop,c=r>d?r-d:document.documentElement.scrollHeight-d,s=(h-p)/c,l=Math.round(s*100),b=l>100?100:l<=0?0:l;E.textContent=b},window.mobileToc={open:()=>{g.style.cssText="animation: toc-open .3s; opacity: 1; right: 55px"},close:()=>{g.style.animation="toc-close .2s",setTimeout(()=>{g.style.cssText="opacity:''; animation: ''; right: ''"},100)}},i.addEventListener("click",h=>{h.preventDefault();const r=h.target.classList;if(r.contains("toc-content"))return;const d=r.contains("toc-link")?h.target:h.target.parentElement;btf.scrollToDest(btf.getEleTop(document.getElementById(decodeURI(d.getAttribute("href")).replace("#",""))),300),window.innerWidth<900&&window.mobileToc.close()}),f=h=>{const r=h.getBoundingClientRect().top,d=i.scrollTop;r>document.documentElement.clientHeight-100&&(i.scrollTop=d+150),r<100&&(i.scrollTop=d-150)}}const m=n.querySelectorAll("h1,h2,h3,h4,h5,h6");let u="";const v=function(g){if(g===0)return!1;let E="",h="";if(m.forEach(function(r,d){if(g>btf.getEleTop(r)-80){const p=r.id;E=p?"#"+encodeURI(p):"",h=d}}),u!==h&&(e&&btf.updateAnchor(E),u=h,t)){if(i.querySelectorAll(".active").forEach(p=>{p.classList.remove("active")}),E==="")return;const r=o[h];if(r.classList.add("active"),setTimeout(()=>{f(r)},0),L)return;let d=r.parentNode;for(;!d.matches(".toc");d=d.parentNode)d.matches("li")&&d.classList.add("active")}};window.tocScrollFn=function(){return btf.throttle(function(){const g=window.scrollY||document.documentElement.scrollTop;t&&a(g),v(g)},100)()},window.addEventListener("scroll",tocScrollFn)},w={switchReadMode:()=>{const t=document.body;t.classList.add("read-mode");const e=document.createElement("button");e.type="button",e.className="fas fa-sign-out-alt exit-readmode",t.appendChild(e);function n(){t.classList.remove("read-mode"),e.remove(),e.removeEventListener("click",n)}e.addEventListener("click",n)},switchDarkMode:()=>{(document.documentElement.getAttribute("data-theme")==="dark"?"dark":"light")==="light"?(activateDarkMode(),saveToLocal.set("theme","dark",2),GLOBAL_CONFIG.Snackbar!==void 0&&btf.snackbarShow(GLOBAL_CONFIG.Snackbar.day_to_night)):(activateLightMode(),saveToLocal.set("theme","light",2),GLOBAL_CONFIG.Snackbar!==void 0&&btf.snackbarShow(GLOBAL_CONFIG.Snackbar.night_to_day)),typeof utterancesTheme=="function"&&utterancesTheme(),typeof changeGiscusTheme=="function"&&changeGiscusTheme(),typeof FB=="object"&&window.loadFBComment(),window.DISQUS&&document.getElementById("disqus_thread").children.length&&setTimeout(()=>window.disqusReset(),200),typeof runMermaid=="function"&&window.runMermaid()},showOrHideBtn:t=>{const e=document.getElementById("rightside-config-hide").classList;e.toggle("show"),t.classList.contains("show")&&(e.add("status"),setTimeout(()=>{e.remove("status")},300)),t.classList.toggle("show")},scrollToTop:()=>{btf.scrollToDest(0,500)},hideAsideBtn:()=>{const t=document.documentElement.classList;t.contains("hide-aside")?saveToLocal.set("aside-status","show",2):saveToLocal.set("aside-status","hide",2),t.toggle("hide-aside")},runMobileToc:()=>{window.getComputedStyle(document.getElementById("card-toc")).getPropertyValue("opacity")==="0"?window.mobileToc.open():window.mobileToc.close()}};document.getElementById("rightside").addEventListener("click",function(t){const e=t.target.id?t.target:t.target.parentNode;switch(e.id){case"go-up":w.scrollToTop();break;case"rightside_config":w.showOrHideBtn(e);break;case"mobile-toc-button":w.runMobileToc();break;case"readmode":w.switchReadMode();break;case"darkmode":w.switchDarkMode();break;case"hide-aside-btn":w.hideAsideBtn();break;default:break}});const P=()=>{document.querySelectorAll("#sidebar-menus .site-page.group").forEach(function(t){t.addEventListener("click",function(){this.classList.toggle("hide")})})},M=()=>{const t=GLOBAL_CONFIG.copyright;document.body.oncopy=e=>{e.preventDefault();let n;const o=window.getSelection(0).toString();return o.length>t.limitCount?n=o+`
1
+ (function(k,x){typeof module=="object"&&typeof module.exports=="object"?x():typeof define=="function"&&define.amd?define([],x):(k=typeof globalThis<"u"?globalThis:k||self)&&x()})(this,function(){function k(a,v){(v==null||v>a.length)&&(v=a.length);for(var h=0,f=new Array(v);h<v;h++)f[h]=a[h];return f}function x(a){if(Array.isArray(a))return k(a)}function H(a,v,h,f,o,S,m){try{var w=a[S](m),B=w.value}catch(c){h(c);return}w.done?v(B):Promise.resolve(B).then(f,o)}function P(a){return function(){var v=this,h=arguments;return new Promise(function(f,o){var S=a.apply(v,h);function m(B){H(S,f,o,m,w,"next",B)}function w(B){H(S,f,o,m,w,"throw",B)}m(void 0)})}}function z(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function U(){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 M(a){return x(a)||z(a)||J(a)||U()}function W(a){"@swc/helpers - typeof";return a&&typeof Symbol<"u"&&a.constructor===Symbol?"symbol":typeof a}function J(a,v){if(a){if(typeof a=="string")return k(a,v);var h=Object.prototype.toString.call(a).slice(8,-1);if(h==="Object"&&a.constructor&&(h=a.constructor.name),h==="Map"||h==="Set")return Array.from(h);if(h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h))return k(a,v)}}function V(a,v){var h,f,o,S,m={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]};return S={next:w(0),throw:w(1),return:w(2)},typeof Symbol=="function"&&(S[Symbol.iterator]=function(){return this}),S;function w(c){return function(F){return B([c,F])}}function B(c){if(h)throw new TypeError("Generator is already executing.");for(;m;)try{if(h=1,f&&(o=c[0]&2?f.return:c[0]?f.throw||((o=f.return)&&o.call(f),0):f.next)&&!(o=o.call(f,c[1])).done)return o;switch(f=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return m.label++,{value:c[1],done:!1};case 5:m.label++,f=c[1],c=[0];continue;case 7:c=m.ops.pop(),m.trys.pop();continue;default:if(o=m.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){m=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){m.label=c[1];break}if(c[0]===6&&m.label<o[1]){m.label=o[1],o=c;break}if(o&&m.label<o[2]){m.label=o[2],m.ops.push(c);break}o[2]&&m.ops.pop(),m.trys.pop();continue}c=v.call(a,m)}catch(F){c=[6,F],f=0}finally{h=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}document.addEventListener("DOMContentLoaded",function(){var a,v,h,f,o=!1,S=function(t){if(t){a=document.getElementById("site-name").offsetWidth;var e=document.querySelectorAll("#menus .menus_item");v=0,e.length&&e.forEach(function(s){v+=s.offsetWidth});var i=document.querySelector("#search-button");h=i?i.offsetWidth:0,f=document.getElementById("nav")}var n="";window.innerWidth<768?n=!0:n=a+v+h>f.offsetWidth-120,n?f.classList.add("hide-menu"):f.classList.remove("hide-menu")},m=function(){S(!0),f.classList.add("show")},w={open:function(){btf.sidebarPaddingR(),document.body.style.overflow="hidden",btf.animateIn(document.getElementById("menu-mask"),"to_show 0.5s"),document.getElementById("sidebar-menus").classList.add("open"),o=!0},close:function(){var t=document.body;t.style.overflow="",t.style.paddingRight="",btf.animateOut(document.getElementById("menu-mask"),"to_hide 0.5s"),document.getElementById("sidebar-menus").classList.remove("open"),o=!1}},B=function(){var t=document.getElementById("scroll-down");t&&t.addEventListener("click",function(){btf.scrollToDest(document.getElementById("content-inner").offsetTop,300)})},c=function(){var e=GLOBAL_CONFIG.highlight;if(!e)return;var i=e.highlightCopy,n=e.highlightLang,s=GLOBAL_CONFIG_SITE.isHighlightShrink,l=e.highlightHeightLimit,g=i||n||s!==void 0,E=e.plugin==="highlighjs"?document.querySelectorAll("figure.highlight"):document.querySelectorAll('pre[class*="language-"]');if(!((g||l)&&E.length))return;var _=e.plugin==="prismjs",p="",G="",N=s===!0?"closed":"";s!==void 0&&(p='<i class="fas fa-angle-down expand '.concat(N,'"></i>')),i&&(G='<div class="copy-notice"></div><i class="fas fa-paste copy-button"></i>');var q=function(){var d=P(function(r,u){var y,T;return V(this,function(I){switch(I.label){case 0:return I.trys.push([0,2,,3]),[4,navigator.clipboard.writeText(r)];case 1:return I.sent(),GLOBAL_CONFIG.Snackbar!==void 0?btf.snackbarShow(GLOBAL_CONFIG.copy.success):(y=u.previousElementSibling,y.innerText=GLOBAL_CONFIG.copy.success,y.style.opacity=1,setTimeout(function(){y.style.opacity=0},700)),[3,3];case 2:return T=I.sent(),GLOBAL_CONFIG.Snackbar!==void 0?btf.snackbarShow(GLOBAL_CONFIG.copy.noSupport):u.previousElementSibling.innerText=GLOBAL_CONFIG.copy.noSupport,[3,3];case 3:return[2]}})});return function(u,y){return d.apply(this,arguments)}}(),D=function(d){var r=d.parentNode;r.classList.add("copy-true");var u=window.getSelection(),y=document.createRange();_?y.selectNodeContents(r.querySelectorAll("pre code")[0]):y.selectNodeContents(r.querySelectorAll("table .code pre")[0]),u.removeAllRanges(),u.addRange(y);var T=u.toString();q(T,d.lastChild),u.removeAllRanges(),r.classList.remove("copy-true")},b=function(d){var r=M(d.parentNode.children).slice(1);d.firstChild.classList.toggle("closed"),btf.isHidden(r[r.length-1])?r.forEach(function(u){u.style.display="block"}):r.forEach(function(u){u.style.display="none"})},A=function(r){var u=r.target.classList;u.contains("expand")?b(this):u.contains("copy-button")&&D(this)},L=function(){this.classList.toggle("expand-done")};function O(d,r,u){var y=document.createDocumentFragment();if(g){var T=document.createElement("div");T.className="highlight-tools ".concat(N),T.innerHTML=p+d+G,T.addEventListener("click",A),y.appendChild(T)}if(l&&r.offsetHeight>l+30){var I=document.createElement("div");I.className="code-expand-btn",I.innerHTML='<i class="fas fa-angle-double-down"></i>',I.addEventListener("click",L),y.appendChild(I)}u==="hl"?r.insertBefore(y,r.firstChild):r.parentNode.insertBefore(y,r)}n?_?E.forEach(function(d){var r='<div class="code-lang">'.concat(d.getAttribute("data-language")?d.getAttribute("data-language"):"Code","</div>");btf.wrap(d,"figure",{class:"highlight"}),O(r,d)}):E.forEach(function(d){var r=d.getAttribute("class").split(" ")[1];(r==="plain"||r===void 0)&&(r="Code");var u='<div class="code-lang">'.concat(r,"</div>");O(u,d,"hl")}):_?E.forEach(function(d){btf.wrap(d,"figure",{class:"highlight"}),O("",d)}):E.forEach(function(d){O("",d,"hl")})};function F(){document.querySelectorAll("#article-container img").forEach(function(t){var e=t.parentNode,i=t.title||t.alt;if(i&&!e.parentNode.classList.contains("justified-gallery")){var n=document.createElement("div");n.className="img-alt is-center",n.textContent=i,e.insertBefore(n,t.nextSibling)}})}var X=function(){btf.loadLightbox(document.querySelectorAll("#article-container img:not(.no-lightbox)"))},Y=function(e){if(e.forEach(function(n){n.querySelectorAll("img").forEach(function(s){var l=s.getAttribute("data-lazy-src");l&&(s.src=l),btf.wrap(s,"div",{class:"fj-gallery-item"})})}),window.fjGallery){setTimeout(function(){btf.initJustifiedGallery(e)},100);return}var i=document.createElement("link");i.rel="stylesheet",i.href=GLOBAL_CONFIG.source.justifiedGallery.css,document.body.appendChild(i),getScript("".concat(GLOBAL_CONFIG.source.justifiedGallery.js)).then(function(){btf.initJustifiedGallery(e)})},$=function(){var e=document.getElementById("rightside"),i=window.innerHeight+56;if(document.body.scrollHeight<=i){e.style.cssText="opacity: 1; transform: translateX(-58px)";return}function n(p){var G=p>s;return s=p,G}var s=0,l=!0,g=document.getElementById("page-header"),E=typeof chatBtnHide=="function",_=typeof chatBtnShow=="function";g.classList.add("nav-fixed"),g.classList.add("nav-visible"),window.scrollCollect=function(){return btf.throttle(function(p){var G=window.scrollY||document.documentElement.scrollTop,N=n(G);g.classList.add("nav-fixed"),g.classList.add("nav-visible"),G>0?(N?(g.classList.contains("nav-visible")&&g.classList.add("nav-visible"),_&&l===!0&&(chatBtnHide(),l=!1)):(g.classList.contains("nav-visible")||g.classList.add("nav-visible"),E&&l===!1&&(chatBtnShow(),l=!0)),g.classList.add("nav-fixed"),window.getComputedStyle(e).getPropertyValue("opacity")==="0"&&(e.style.cssText="opacity: 1; transform: translateX(-58px)")):(G===0&&g.classList.remove("nav-fixed","nav-visible"),e.style.cssText="opacity: ''; transform: ''"),document.body.scrollHeight<=i&&(e.style.cssText="opacity: 1; transform: translateX(-58px)")},200)()},window.addEventListener("scroll",scrollCollect)},Q=function(){var e=GLOBAL_CONFIG_SITE.isToc,i=GLOBAL_CONFIG.isAnchor,n=document.getElementById("article-container");if(n&&(e||i)){var s,l,g,E,_;if(e){var p=document.getElementById("card-toc");l=p.getElementsByClassName("toc-content")[0],s=l.querySelectorAll(".toc-link");var G=p.querySelector(".toc-percentage");_=l.classList.contains("is-expand"),g=function(b){var A=n.clientHeight,L=document.documentElement.clientHeight,O=n.offsetTop,d=A>L?A-L:document.documentElement.scrollHeight-L,r=(b-O)/d,u=Math.round(r*100),y=u>100?100:u<=0?0:u;G.textContent=y},window.mobileToc={open:function(){p.style.cssText="animation: toc-open .3s; opacity: 1; right: 55px"},close:function(){p.style.animation="toc-close .2s",setTimeout(function(){p.style.cssText="opacity:''; animation: ''; right: ''"},100)}},l.addEventListener("click",function(b){b.preventDefault();var A=b.target.classList;if(!A.contains("toc-content")){var L=A.contains("toc-link")?b.target:b.target.parentElement;btf.scrollToDest(btf.getEleTop(document.getElementById(decodeURI(L.getAttribute("href")).replace("#",""))),300),window.innerWidth<900&&window.mobileToc.close()}}),E=function(b){var A=b.getBoundingClientRect().top,L=l.scrollTop;A>document.documentElement.clientHeight-100&&(l.scrollTop=L+150),A<100&&(l.scrollTop=L-150)}}var N=n.querySelectorAll("h1,h2,h3,h4,h5,h6"),q="",D=function(A){if(A===0)return!1;var L="",O="";if(N.forEach(function(u,y){if(A>btf.getEleTop(u)-80){var T=u.id;L=T?"#"+encodeURI(T):"",O=y}}),q!==O&&(i&&btf.updateAnchor(L),q=O,e)){if(l.querySelectorAll(".active").forEach(function(u){u.classList.remove("active")}),L==="")return;var d=s[O];if(d.classList.add("active"),setTimeout(function(){E(d)},0),_)return;for(var r=d.parentNode;!r.matches(".toc");r=r.parentNode)r.matches("li")&&r.classList.add("active")}};window.tocScrollFn=function(){return btf.throttle(function(){var b=window.scrollY||document.documentElement.scrollTop;e&&g(b),D(b)},100)()},window.addEventListener("scroll",tocScrollFn)}},C={switchReadMode:function(){var t=document.body;t.classList.add("read-mode");var e=document.createElement("button");e.type="button",e.className="fas fa-sign-out-alt exit-readmode",t.appendChild(e);function i(){t.classList.remove("read-mode"),e.remove(),e.removeEventListener("click",i)}e.addEventListener("click",i)},switchDarkMode:function(){(document.documentElement.getAttribute("data-theme")==="dark"?"dark":"light")=="light"?(activateDarkMode(),saveToLocal.set("theme","dark",2),GLOBAL_CONFIG.Snackbar!==void 0&&btf.snackbarShow(GLOBAL_CONFIG.Snackbar.day_to_night)):(activateLightMode(),saveToLocal.set("theme","light",2),GLOBAL_CONFIG.Snackbar!==void 0&&btf.snackbarShow(GLOBAL_CONFIG.Snackbar.night_to_day)),typeof utterancesTheme=="function"&&utterancesTheme(),typeof changeGiscusTheme=="function"&&changeGiscusTheme(),(typeof FB>"u"?"undefined":W(FB))=="object"&&window.loadFBComment(),window.DISQUS&&document.getElementById("disqus_thread").children.length&&setTimeout(function(){return window.disqusReset()},200),typeof runMermaid=="function"&&window.runMermaid()},showOrHideBtn:function(t){var e=document.getElementById("rightside-config-hide").classList;e.toggle("show"),t.classList.contains("show")&&(e.add("status"),setTimeout(function(){e.remove("status")},300)),t.classList.toggle("show")},scrollToTop:function(){btf.scrollToDest(0,500)},hideAsideBtn:function(){var t=document.documentElement.classList;t.contains("hide-aside")?saveToLocal.set("aside-status","show",2):saveToLocal.set("aside-status","hide",2),t.toggle("hide-aside")},runMobileToc:function(){window.getComputedStyle(document.getElementById("card-toc")).getPropertyValue("opacity")==="0"?window.mobileToc.open():window.mobileToc.close()}};document.getElementById("rightside").addEventListener("click",function(t){var e=t.target.id?t.target:t.target.parentNode;switch(e.id){case"go-up":C.scrollToTop();break;case"rightside_config":C.showOrHideBtn(e);break;case"mobile-toc-button":C.runMobileToc();break;case"readmode":C.switchReadMode();break;case"darkmode":C.switchDarkMode();break;case"hide-aside-btn":C.hideAsideBtn();break;default:break}});var K=function(){document.querySelectorAll("#sidebar-menus .site-page.group").forEach(function(t){t.addEventListener("click",function(){this.classList.toggle("hide")})})},Z=function(){var t=GLOBAL_CONFIG.copyright;document.body.oncopy=function(e){e.preventDefault();var i,n=window.getSelection(0).toString();return n.length>t.limitCount?i=n+`
2
2
 
3
3
 
4
4
  `+t.languages.author+`
5
5
  `+t.languages.link+window.location.href+`
6
6
  `+t.languages.source+`
7
- `+t.languages.info:n=o,e.clipboardData?e.clipboardData.setData("text",n):window.clipboardData.setData("text",n)}},j=()=>{const t=document.getElementById("runtimeshow");if(t){const e=t.getAttribute("data-publishDate");t.innerText=btf.diffDate(e)+" "+GLOBAL_CONFIG.runtime}},R=()=>{const t=document.getElementById("last-push-date");if(t){const e=t.getAttribute("data-lastPushDate");t.innerText=btf.diffDate(e,!0)}},W=()=>{const t=document.querySelectorAll("#article-container :not(.highlight) > table, #article-container > table");t.length&&t.forEach(e=>{btf.wrap(e,"div",{class:"table-wrap"})})},z=function(){const t=document.querySelectorAll("#article-container .hide-button");t.length&&t.forEach(function(e){e.addEventListener("click",function(n){const o=this;o.classList.add("open");const i=o.nextElementSibling.querySelectorAll(".fj-gallery");i.length&&btf.initJustifiedGallery(i)})})},G={clickFnOfTabs:function(){document.querySelectorAll("#article-container .tab > button").forEach(function(t){t.addEventListener("click",function(e){const n=this,o=n.parentNode;if(!o.classList.contains("active")){const i=o.parentNode.nextElementSibling,a=btf.siblings(o,".active")[0];a&&a.classList.remove("active"),o.classList.add("active");const f=n.getAttribute("data-href").replace("#","");[...i.children].forEach(u=>{u.id===f?u.classList.add("active"):u.classList.remove("active")});const m=i.querySelectorAll(`#${f} .fj-gallery`);m.length>0&&btf.initJustifiedGallery(m)}})})},backToTop:()=>{document.querySelectorAll("#article-container .tabs .tab-to-top").forEach(function(t){t.addEventListener("click",function(){btf.scrollToDest(btf.getEleTop(btf.getParents(this,".tabs")),300)})})}},J=function(){const t=document.querySelectorAll("#aside-cat-list .card-category-list-item.parent i");t.length&&t.forEach(function(e){e.addEventListener("click",function(n){n.preventDefault();const o=this;o.classList.toggle("expand");const i=o.parentNode.nextElementSibling;btf.isHidden(i)?i.style.display="block":i.style.display="none"})})},U=function(){let t=!1;const e=document.querySelector("#comment-switch > .switch-btn");e&&e.addEventListener("click",function(){this.classList.toggle("move"),document.querySelectorAll("#post-comment > .comment-wrap > div").forEach(function(n){btf.isHidden(n)?n.style.cssText="display: block;animation: tabshow .5s":n.style.cssText="display: none;animation: ''"}),!t&&typeof loadOtherComment=="function"&&(t=!0,loadOtherComment())})},V=function(){const t=GLOBAL_CONFIG.noticeOutdate,e=btf.diffDate(GLOBAL_CONFIG_SITE.postUpdate);if(e>=t.limitDay){const n=document.createElement("div");n.className="post-outdate-notice",n.textContent=t.messagePrev+" "+e+" "+t.messageNext;const o=document.getElementById("article-container");t.position==="top"?o.insertBefore(n,o.firstChild):o.appendChild(n)}},X=()=>{window.lazyLoadInstance=new LazyLoad({elements_selector:"img",threshold:0,data_src:"lazy-src"})},k=function(t){t.forEach(e=>{const n=e,o=n.getAttribute("datetime");n.innerText=btf.diffDate(o,!0),n.style.display="inline"})},Y=function(){window.addEventListener("resize",()=>{B(!1),btf.isHidden(document.getElementById("toggle-menu"))&&C&&I.close()}),document.getElementById("menu-mask").addEventListener("click",t=>{I.close()}),P(),GLOBAL_CONFIG.islazyload&&X(),GLOBAL_CONFIG.copyright!==void 0&&M()};window.refreshFn=function(){F(),GLOBAL_CONFIG_SITE.isPost?(GLOBAL_CONFIG.noticeOutdate!==void 0&&V(),GLOBAL_CONFIG.relativeDate.post&&k(document.querySelectorAll("#post-meta time"))):(GLOBAL_CONFIG.relativeDate.homepage&&k(document.querySelectorAll("#recent-posts time")),GLOBAL_CONFIG.runtime&&j(),R(),J()),q(),GLOBAL_CONFIG_SITE.isHome&&N(),x(),GLOBAL_CONFIG.isPhotoFigcaption&&$(),H();const t=document.querySelectorAll("#article-container .fj-gallery");t.length&&D(t),_(),W(),z(),G.clickFnOfTabs(),G.backToTop(),U(),document.getElementById("toggle-menu").addEventListener("click",()=>{I.open()})},refreshFn(),Y()});
7
+ `+t.languages.info:i=n,e.clipboardData?e.clipboardData.setData("text",i):window.clipboardData.setData("text",i)}},ee=function(){var t=document.getElementById("runtimeshow");if(t){var e=t.getAttribute("data-publishDate");t.innerText=btf.diffDate(e)+" "+GLOBAL_CONFIG.runtime}},te=function(){var t=document.getElementById("last-push-date");if(t){var e=t.getAttribute("data-lastPushDate");t.innerText=btf.diffDate(e,!0)}},ne=function(){var t=document.querySelectorAll("#article-container :not(.highlight) > table, #article-container > table");t.length&&t.forEach(function(e){btf.wrap(e,"div",{class:"table-wrap"})})},ie=function(){var e=document.querySelectorAll("#article-container .hide-button");e.length&&e.forEach(function(i){i.addEventListener("click",function(n){var s=this;s.classList.add("open");var l=s.nextElementSibling.querySelectorAll(".fj-gallery");l.length&&btf.initJustifiedGallery(l)})})},j={clickFnOfTabs:function(){document.querySelectorAll("#article-container .tab > button").forEach(function(e){e.addEventListener("click",function(i){var n=this,s=n.parentNode;if(!s.classList.contains("active")){var l=s.parentNode.nextElementSibling,g=btf.siblings(s,".active")[0];g&&g.classList.remove("active"),s.classList.add("active");var E=n.getAttribute("data-href").replace("#","");M(l.children).forEach(function(p){p.id===E?p.classList.add("active"):p.classList.remove("active")});var _=l.querySelectorAll("#".concat(E," .fj-gallery"));_.length>0&&btf.initJustifiedGallery(_)}})})},backToTop:function(){document.querySelectorAll("#article-container .tabs .tab-to-top").forEach(function(t){t.addEventListener("click",function(){btf.scrollToDest(btf.getEleTop(btf.getParents(this,".tabs")),300)})})}},oe=function(){var e=document.querySelectorAll("#aside-cat-list .card-category-list-item.parent i");e.length&&e.forEach(function(i){i.addEventListener("click",function(n){n.preventDefault();var s=this;s.classList.toggle("expand");var l=s.parentNode.nextElementSibling;btf.isHidden(l)?l.style.display="block":l.style.display="none"})})},ae=function(){var e=!1,i=document.querySelector("#comment-switch > .switch-btn");i&&i.addEventListener("click",function(){this.classList.toggle("move"),document.querySelectorAll("#post-comment > .comment-wrap > div").forEach(function(n){btf.isHidden(n)?n.style.cssText="display: block;animation: tabshow .5s":n.style.cssText="display: none;animation: ''"}),!e&&typeof loadOtherComment=="function"&&(e=!0,loadOtherComment())})},re=function(){var e=GLOBAL_CONFIG.noticeOutdate,i=btf.diffDate(GLOBAL_CONFIG_SITE.postUpdate);if(i>=e.limitDay){var n=document.createElement("div");n.className="post-outdate-notice",n.textContent=e.messagePrev+" "+i+" "+e.messageNext;var s=document.getElementById("article-container");e.position==="top"?s.insertBefore(n,s.firstChild):s.appendChild(n)}},ce=function(){window.lazyLoadInstance=new LazyLoad({elements_selector:"img",threshold:0,data_src:"lazy-src"})},R=function(e){e.forEach(function(i){var n=i,s=n.getAttribute("datetime");n.innerText=btf.diffDate(s,!0),n.style.display="inline"})},se=function(){window.addEventListener("resize",function(){S(!1),btf.isHidden(document.getElementById("toggle-menu"))&&o&&w.close()}),document.getElementById("menu-mask").addEventListener("click",function(e){w.close()}),K(),GLOBAL_CONFIG.islazyload&&ce(),GLOBAL_CONFIG.copyright!==void 0&&Z()};window.refreshFn=function(){m(),GLOBAL_CONFIG_SITE.isPost?(GLOBAL_CONFIG.noticeOutdate!==void 0&&re(),GLOBAL_CONFIG.relativeDate.post&&R(document.querySelectorAll("#post-meta time"))):(GLOBAL_CONFIG.relativeDate.homepage&&R(document.querySelectorAll("#recent-posts time")),GLOBAL_CONFIG.runtime&&ee(),te(),oe()),Q(),GLOBAL_CONFIG_SITE.isHome&&B(),c(),GLOBAL_CONFIG.isPhotoFigcaption&&F(),$();var t=document.querySelectorAll("#article-container .fj-gallery");t.length&&Y(t),X(),ne(),ie(),j.clickFnOfTabs(),j.backToTop(),ae(),document.getElementById("toggle-menu").addEventListener("click",function(){w.open()})},refreshFn(),se()})});
package/js/nav.js CHANGED
@@ -1 +1 @@
1
- document.addEventListener("pjax:complete",tonav),document.addEventListener("DOMContentLoaded",tonav);function tonav(){const e=document.getElementById("name-container"),n=document.getElementsByClassName("menus_items")[1],o=document.getElementById("page-name");if(!e||!n||!o){console.warn("Some required elements are missing");return}e.setAttribute("style","display:none");var s=$(window).scrollTop();$(window).scroll(function(){var t=$(window).scrollTop();t>s?(e.setAttribute("style",""),n.setAttribute("style","display:none!important")):(n.setAttribute("style",""),e.setAttribute("style","display:none")),s=t});try{o.innerText=document.title.split(" | \u68A6\u6EAF\xB7\u955C\u5F71")[0]}catch(t){console.warn("Error setting page name:",t)}}
1
+ (function(t,e){typeof module=="object"&&typeof module.exports=="object"?e():typeof define=="function"&&define.amd?define([],e):(t=typeof globalThis<"u"?globalThis:t||self)&&e()})(this,function(){document.addEventListener("pjax:complete",t),document.addEventListener("DOMContentLoaded",t);function t(){var e=document.getElementById("name-container"),o=document.getElementsByClassName("menus_items")[1],i=document.getElementById("page-name");if(!e||!o||!i){console.warn("Some required elements are missing");return}e.setAttribute("style","display:none");var s=$(window).scrollTop();$(window).scroll(function(){var n=$(window).scrollTop();n>s?(e.setAttribute("style",""),o.setAttribute("style","display:none!important")):(o.setAttribute("style",""),e.setAttribute("style","display:none")),s=n});try{i.innerText=document.title.split(" | \u68A6\u6EAF\xB7\u955C\u5F71")[0]}catch(n){console.warn("Error setting page name:",n)}}});
package/js/noie.js CHANGED
@@ -1 +1 @@
1
- (window.ActiveXObject||"ActiveXObject"in window)&&(window.location.href="./noie.html");
1
+ (function(i,e){typeof module=="object"&&typeof module.exports=="object"?e():typeof define=="function"&&define.amd?define([],e):(i=typeof globalThis<"u"?globalThis:i||self)&&e()})(this,function(){(window.ActiveXObject||"ActiveXObject"in window)&&(window.location.href="./noie.html")});
package/js/owo.js CHANGED
@@ -1 +1 @@
1
- document.getElementById("post-comment")&&owoBig();function owoBig(){document.getElementById("post-comment").addEventListener("DOMNodeInserted",i=>{if(i.target.classList&&i.target.classList.value=="OwO-body"){let l=i.target;if(l){let n="",o=!0,e=document.createElement("div");e.id="owo-big",document.querySelector("body").appendChild(e),l.addEventListener("contextmenu",t=>t.preventDefault()),l.addEventListener("mouseover",t=>{t.target.tagName=="IMG"&&o&&(o=!1,n=setTimeout(()=>{let s=4,a=t.path[0].clientHeight*s,d=t.path[0].clientWidth*s,r=t.x-t.offsetX-(d-t.path[0].clientWidth)/2,c=t.y-t.offsetY;e.style.height=a+"px",e.style.width=d+"px",e.style.left=r+"px",e.style.top=c+"px",e.style.display="flex",e.innerHTML=`<img src="${t.target.src}">`},100))}),l.addEventListener("mouseout",t=>{e.style.display="none",o=!0,clearTimeout(n)})}}})}
1
+ (function(i,n){typeof module=="object"&&typeof module.exports=="object"?n():typeof define=="function"&&define.amd?define([],n):(i=typeof globalThis<"u"?globalThis:i||self)&&n()})(this,function(){document.getElementById("post-comment")&&i();function i(){document.getElementById("post-comment").addEventListener("DOMNodeInserted",function(n){if(n.target.classList&&n.target.classList.value=="OwO-body"){var o=n.target;if(o){var s="",d=!0,t=document.createElement("div");t.id="owo-big",document.querySelector("body").appendChild(t),o.addEventListener("contextmenu",function(e){return e.preventDefault()}),o.addEventListener("mouseover",function(e){e.target.tagName=="IMG"&&d&&(d=!1,s=setTimeout(function(){var c=4,f=e.path[0].clientHeight*c,a=e.path[0].clientWidth*c,l=e.x-e.offsetX-(a-e.path[0].clientWidth)/2,u=e.y-e.offsetY;t.style.height=f+"px",t.style.width=a+"px",t.style.left=l+"px",t.style.top=u+"px",t.style.display="flex",t.innerHTML='<img src="'.concat(e.target.src,'">')},100))}),o.addEventListener("mouseout",function(e){t.style.display="none",d=!0,clearTimeout(s)})}}})}});
package/js/people.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _unsupportedIterableToArray(t,e){if(t){if(typeof t=="string")return _arrayLikeToArray(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(t,e):void 0}}function _iterableToArray(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _arrayLikeToArray(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function _createClass(t,e,r){return e&&_defineProperties(t.prototype,e),r&&_defineProperties(t,r),t}var config={src:"https://cdn.smartcis.cn/npm/guli-heo/others/open-peeps-sheet.png",rows:15,cols:7},randomRange=function(t,e){return t+Math.random()*(e-t)},randomIndex=function(t){return 0|randomRange(0,t.length)},removeFromArray=function(t,e){return t.splice(e,1)[0]},removeItemFromArray=function(t,e){return removeFromArray(t,t.indexOf(e))},removeRandomFromArray=function(t){return removeFromArray(t,randomIndex(t))},getRandomFromArray=function(t){return t[0|randomIndex(t)]},resetPeep=function(t){var e,r,n=t.stage,a=t.peep,i=.5<Math.random()?1:-1,s=100-250*gsap.parseEase("power2.in")(Math.random()),o=n.height-a.height+s;return i==1?(e=-a.width,r=n.width,a.scaleX=1):(e=n.width+a.width,r=0,a.scaleX=-1),a.x=e,a.y=o,{startX:e,startY:a.anchorY=o,endX:r}},normalWalk=function(t){var e=t.peep,r=t.props,n=(r.startX,r.startY),a=r.endX,i=gsap.timeline();return i.timeScale(randomRange(.5,1.5)),i.to(e,{duration:10,x:a,ease:"none"},0),i.to(e,{duration:.25,repeat:40,yoyo:!0,y:n-10},0),i},walks=[normalWalk],Peep=function(){function t(e){var r=e.image,n=e.rect;_classCallCheck(this,t),this.image=r,this.setRect(n),this.x=0,this.y=0,this.anchorY=0,this.scaleX=1,this.walk=null}return _createClass(t,[{key:"setRect",value:function(e){this.rect=e,this.width=e[2],this.height=e[3],this.drawArgs=[this.image].concat(_toConsumableArray(e),[0,0,this.width,this.height])}},{key:"render",value:function(e){e.save(),e.translate(this.x,this.y),e.scale(this.scaleX,1),e.drawImage.apply(e,_toConsumableArray(this.drawArgs)),e.restore()}}]),t}(),img=document.createElement("img");img.onload=init,img.src=config.src;var canvas=document.querySelector("#canvas"),ctx=canvas.getContext("2d"),stage={width:0,height:0},allPeeps=[],availablePeeps=[],crowd=[];function init(){createPeeps(),resize(),gsap.ticker.add(render),window.addEventListener("resize",resize)}function createPeeps(){for(var t=config.rows,e=config.cols,r=t*e,n=img.naturalWidth/t,a=img.naturalHeight/e,i=0;i<r;i++)allPeeps.push(new Peep({image:img,rect:[i%t*n,(i/t|0)*a,n,a]}))}function resize(){stage.width=canvas.clientWidth,stage.height=canvas.clientHeight,canvas.width=stage.width*devicePixelRatio,canvas.height=stage.height*devicePixelRatio,crowd.forEach(function(t){t.walk.kill()}),crowd.length=0,availablePeeps.length=0,availablePeeps.push.apply(availablePeeps,allPeeps),initCrowd()}function initCrowd(){for(;availablePeeps.length;)addPeepToCrowd().walk.progress(Math.random())}function addPeepToCrowd(){var t=removeRandomFromArray(availablePeeps),e=getRandomFromArray(walks)({peep:t,props:resetPeep({peep:t,stage})}).eventCallback("onComplete",function(){removePeepFromCrowd(t),addPeepToCrowd()});return t.walk=e,crowd.push(t),crowd.sort(function(r,n){return r.anchorY-n.anchorY}),t}function removePeepFromCrowd(t){removeItemFromArray(crowd,t),availablePeeps.push(t)}function render(){canvas.width=canvas.width,ctx.save(),ctx.scale(devicePixelRatio,devicePixelRatio),crowd.forEach(function(t){t.render(ctx)}),ctx.restore()}
1
+ (function(f,u){typeof module=="object"&&typeof module.exports=="object"?u():typeof define=="function"&&define.amd?define([],u):(f=typeof globalThis<"u"?globalThis:f||self)&&u()})(this,function(){"use strict";function f(e,r){return r!=null&&typeof Symbol<"u"&&r[Symbol.hasInstance]?!!r[Symbol.hasInstance](e):e instanceof r}function u(e){"@swc/helpers - typeof";return e&&typeof Symbol<"u"&&e.constructor===Symbol?"symbol":typeof e}function g(e){return _(e)||R(e)||I(e)||C()}function C(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function I(e,r){if(e){if(typeof e=="string")return p(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);return t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set"?Array.from(e):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?p(e,r):void 0}}function R(e){if((typeof Symbol>"u"?"undefined":u(Symbol))<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function _(e){if(Array.isArray(e))return p(e)}function p(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function F(e,r){if(!f(e,r))throw new TypeError("Cannot call a class as a function")}function v(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function T(e,r,t){return r&&v(e.prototype,r),t&&v(e,t),e}var y={src:"https://cdn.smartcis.cn/npm/guli-heo/others/open-peeps-sheet.png",rows:15,cols:7},w=function(r,t){return r+Math.random()*(t-r)},b=function(r){return 0|w(0,r.length)},A=function(r,t){return r.splice(t,1)[0]},X=function(r,t){return A(r,r.indexOf(t))},E=function(r){return A(r,b(r))},Y=function(r){return r[0|b(r)]},M=function(r){var t,n,a=r.stage,o=r.peep,l=.5<Math.random()?1:-1,$=100-250*gsap.parseEase("power2.in")(Math.random()),S=a.height-o.height+$;return l==1?(t=-o.width,n=a.width,o.scaleX=1):(t=a.width+o.width,n=0,o.scaleX=-1),o.x=t,o.y=S,{startX:t,startY:o.anchorY=S,endX:n}},W=function(r){var t=r.peep,n=r.props,a=(n.startX,n.startY),o=n.endX,l=gsap.timeline();return l.timeScale(w(.5,1.5)),l.to(t,{duration:10,x:o,ease:"none"},0),l.to(t,{duration:.25,repeat:40,yoyo:!0,y:a-10},0),l},j=[W],O=function(){function e(r){var t=r.image,n=r.rect;F(this,e),this.image=t,this.setRect(n),this.x=0,this.y=0,this.anchorY=0,this.scaleX=1,this.walk=null}return T(e,[{key:"setRect",value:function(t){this.rect=t,this.width=t[2],this.height=t[3],this.drawArgs=[this.image].concat(g(t),[0,0,this.width,this.height])}},{key:"render",value:function(t){t.save(),t.translate(this.x,this.y),t.scale(this.scaleX,1),t.drawImage.apply(t,g(this.drawArgs)),t.restore()}}]),e}(),d=document.createElement("img");d.onload=H,d.src=y.src;var i=document.querySelector("#canvas"),m=i.getContext("2d"),h={width:0,height:0},k=[],s=[],c=[];function H(){z(),x(),gsap.ticker.add(U),window.addEventListener("resize",x)}function z(){for(var e=y.rows,r=y.cols,t=e*r,n=d.naturalWidth/e,a=d.naturalHeight/r,o=0;o<t;o++)k.push(new O({image:d,rect:[o%e*n,(o/e|0)*a,n,a]}))}function x(){h.width=i.clientWidth,h.height=i.clientHeight,i.width=h.width*devicePixelRatio,i.height=h.height*devicePixelRatio,c.forEach(function(e){e.walk.kill()}),c.length=0,s.length=0,s.push.apply(s,k),L()}function L(){for(;s.length;)P().walk.progress(Math.random())}function P(){var e=E(s),r=Y(j)({peep:e,props:M({peep:e,stage:h})}).eventCallback("onComplete",function(){q(e),P()});return e.walk=r,c.push(e),c.sort(function(t,n){return t.anchorY-n.anchorY}),e}function q(e){X(c,e),s.push(e)}function U(){i.width=i.width,m.save(),m.scale(devicePixelRatio,devicePixelRatio),c.forEach(function(e){e.render(m)}),m.restore()}});
package/js/pikaday.js CHANGED
@@ -1,109 +1 @@
1
- (function (root, factory) {
2
- 'use strict';
3
- if (typeof exports === 'object') {
4
- module.exports = factory();
5
- } else if (typeof define === 'function' && define.amd) {
6
- define(function (req) {
7
- return factory();
8
- });
9
- } else {
10
- root.Pikaday = factory();
11
- }
12
- } (this, function () {
13
- 'use strict';
14
- var document = window.document,
15
- getName = function (i) {
16
- return i < 10 ? '0' + i : i;
17
- },
18
- isLeapYear = function (year) {
19
- return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;
20
- },
21
- getDaysInMonth = function (year, month) {
22
- return [31, isLeapYear(year) ? 29 : 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][month];
23
- },
24
- Pikaday = function (opts) {
25
- var data = '{"2023":{"1":{"2":true},"3":{"18":true},"4":{"3":true},"7":{"25":true},"8":{"17":true,"29":true}},"2024":{"0":{"1":true},"1":{"9":true},"10":{"11":true,"16":true,"20":true}}}';
26
- this.data = JSON.parse(data);
27
- window.pdata = this.data;
28
- this.weekdays = ['S', 'M', 'T', 'W', 'T', 'F', 'S'];
29
- this.mons = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'];
30
- this.container = document.getElementById('calendar_wrap');
31
- this.time = this.container.getAttribute('time') || '';
32
- if (!this.time.length) {
33
- this.date = new Date();
34
- } else {
35
- this.date = new Date(this.time);
36
- }
37
- this.year = this.date.getFullYear();
38
- this.month = this.date.getMonth();
39
- this.months = this.month + 1;
40
- this.days = getDaysInMonth(this.year, this.month);
41
- var tmp = new Date(this.year, this.month, 1);
42
- this.before = tmp.getDay();
43
- this.draw();
44
- };
45
-
46
- Pikaday.prototype = {
47
- draw: function () {
48
- var title = '<caption>' + this.year + '年 ' + this.months + '月</caption>';
49
- var head = this.renderHead();
50
- var body = this.renderBody();
51
- var foot = this.renderFoot();
52
- var html = '<table id="wp-calendar">' + title + head + body + foot + '</table>';
53
- this.container.innerHTML = html;
54
- },
55
- renderHead: function () {
56
- var arr = [];
57
- for (var i = 0; i < 7; i++) {
58
- var tmp = this.weekdays[i];
59
- arr.push('<th scope="col" title="' + tmp + '">' + tmp + '</th>');
60
- }
61
- return '<thead>' + arr.join('') + '</thead>';
62
- },
63
- renderBody: function () {
64
- var arr = [];
65
- for (var i = 0; i < this.before; i++) {
66
- arr.push('<td class="is-empty"></td>')
67
- }
68
- for (var i = 1; i <= this.days; i++) {
69
- if (this.data[this.year] && this.data[this.year][this.month] && this.data[this.year][this.month][i]) {
70
- var str = '<a href="/archives/' + this.year + '/' + getName(this.months) + '/' + getName(i) + '/">' + i + '</a>';
71
- } else {
72
- var str = i;
73
- }
74
- var tmp = '<td>' + str + '</td>';
75
- if ((i+this.before)%7 == 0) {
76
- tmp += '</tr><tr>';
77
- }
78
- arr.push(tmp);
79
- }
80
- for (var i = this.days + 1; ; i++) {
81
- arr.push('<td class="is-empty"></td>');
82
- if ((i+this.before)%7 == 0) {
83
- break;
84
- }
85
- }
86
- return '<tbody><tr>' + arr.join('') + '</tr></tbody>';
87
- },
88
- renderNext: function(date, str1, str2) {
89
- var year = date.getFullYear();
90
- var month = date.getMonth();
91
- var months = month + 1;
92
- if (this.data[year] && this.data[year][month]) {
93
- var tmp = '<a href="/archives/' + year + '/' + getName(months) + '/">' + str1 + ' ' + this.mons[month] + ' ' + str2 + '</a>';
94
- var res = '<td colspan="3">' + tmp + '</td>';
95
- } else {
96
- var res = '<td colspan="3"></td>';
97
- }
98
- return res;
99
- },
100
- renderFoot: function () {
101
-
102
- var prev = this.renderNext(new Date(this.year, this.month - 1), '&laquo;', '')
103
- var mid = '<td class="pad">&nbsp;</td>'
104
- var next = this.renderNext(new Date(this.year, this.month + 1), '', '&raquo;');
105
- return '<tfoot><tr>' + prev + mid + next + '</tr></tfoot>';
106
- },
107
- };
108
- new Pikaday();
109
- }));
1
+ (function(h,a){typeof module=="object"&&typeof module.exports=="object"?a():typeof define=="function"&&define.amd?define([],a):(h=typeof globalThis<"u"?globalThis:h||self)&&a()})(this,function(){function h(a){"@swc/helpers - typeof";return a&&typeof Symbol<"u"&&a.constructor===Symbol?"symbol":typeof a}(function(a,s){"use strict";(typeof exports>"u"?"undefined":h(exports))==="object"?module.exports=s():typeof define=="function"&&define.amd?define(function(d){return s()}):a.Pikaday=s()})(void 0,function(){"use strict";var a=window.document,s=function(e){return e<10?"0"+e:e},d=function(e){return e%4===0&&e%100!==0||e%400===0},c=function(e,t){return[31,d(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]},u=function(e){var t='{"2023":{"1":{"2":true},"3":{"18":true},"4":{"3":true},"7":{"25":true},"8":{"17":true,"29":true}},"2024":{"0":{"1":true},"1":{"9":true},"10":{"11":true,"16":true,"20":true}}}';this.data=JSON.parse(t),window.pdata=this.data,this.weekdays=["S","M","T","W","T","F","S"],this.mons=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],this.container=a.getElementById("calendar_wrap"),this.time=this.container.getAttribute("time")||"",this.time.length?this.date=new Date(this.time):this.date=new Date,this.year=this.date.getFullYear(),this.month=this.date.getMonth(),this.months=this.month+1,this.days=c(this.year,this.month);var r=new Date(this.year,this.month,1);this.before=r.getDay(),this.draw()};u.prototype={draw:function(){var e="<caption>"+this.year+"\u5E74 "+this.months+"\u6708</caption>",t=this.renderHead(),r=this.renderBody(),i=this.renderFoot(),o='<table id="wp-calendar">'+e+t+r+i+"</table>";this.container.innerHTML=o},renderHead:function(){for(var e=[],t=0;t<7;t++){var r=this.weekdays[t];e.push('<th scope="col" title="'+r+'">'+r+"</th>")}return"<thead>"+e.join("")+"</thead>"},renderBody:function(){for(var e=[],t=0;t<this.before;t++)e.push('<td class="is-empty"></td>');for(var t=1;t<=this.days;t++){if(this.data[this.year]&&this.data[this.year][this.month]&&this.data[this.year][this.month][t])var r='<a href="/archives/'+this.year+"/"+s(this.months)+"/"+s(t)+'/">'+t+"</a>";else var r=t;var i="<td>"+r+"</td>";(t+this.before)%7==0&&(i+="</tr><tr>"),e.push(i)}for(var t=this.days+1;e.push('<td class="is-empty"></td>'),(t+this.before)%7!=0;t++);return"<tbody><tr>"+e.join("")+"</tr></tbody>"},renderNext:function(e,t,r){var i=e.getFullYear(),o=e.getMonth(),y=o+1;if(this.data[i]&&this.data[i][o])var p='<a href="/archives/'+i+"/"+s(y)+'/">'+t+" "+this.mons[o]+" "+r+"</a>",f='<td colspan="3">'+p+"</td>";else var f='<td colspan="3"></td>';return f},renderFoot:function(){var e=this.renderNext(new Date(this.year,this.month-1),"&laquo;",""),t='<td class="pad">&nbsp;</td>',r=this.renderNext(new Date(this.year,this.month+1),"","&raquo;");return"<tfoot><tr>"+e+t+r+"</tr></tfoot>"}},new u})});
package/js/random.js CHANGED
@@ -1 +1 @@
1
- var posts=["posts/164ef646/","posts/e54f7476/","posts/ad884987/","posts/a9a6c1fb/","posts/c81531cf/","posts/de1f83f4/","posts/c262e439/","posts/1ee472c8/","posts/228c2ef8/","posts/2b89093e/","posts/ce5471fd/"];function toRandomPost(){window.open('/'+posts[Math.floor(Math.random() * posts.length)],"_self");};
1
+ (function(e,s){typeof module=="object"&&typeof module.exports=="object"?s():typeof define=="function"&&define.amd?define([],s):(e=typeof globalThis<"u"?globalThis:e||self)&&s()})(this,function(){var e=["posts/164ef646/","posts/e54f7476/","posts/ad884987/","posts/c81531cf/","posts/a9a6c1fb/","posts/c262e439/","posts/de1f83f4/","posts/1ee472c8/","posts/228c2ef8/","posts/2b89093e/","posts/ce5471fd/"];function s(){window.open("/"+e[Math.floor(Math.random()*e.length)],"_self")}});
@@ -1 +1 @@
1
- var fdata={apiurl:"https://fcircleapi.yumetsuki.moe/",defaultFish:500,hungryFish:500};if(typeof fdataUser<"u")for(var key in fdataUser)fdataUser[key]&&(fdata[key]=fdataUser[key]);var randomPostTimes=0,randomPostWorking=!1,randomPostTips=["\u9493\u5230\u4E86\u7EDD\u4E16\u597D\u6587\uFF01","\u5728\u6CB3\u8FB9\u6253\u4E86\u4E2A\u55B7\u568F\uFF0C\u5413\u8DD1\u4E86","\u4F60\u548C\u5C0F\u4F19\u4F34\u62A2\u593A\u7740","\u4F60\u51FB\u8D25\u4E86\u5DE8\u9F99\uFF0C\u5728\u5DE2\u7A74\u4E2D\u53D1\u73B0\u4E86","\u6316\u6398\u79E6\u59CB\u7687\u575F\u65F6\u627E\u5230\u4E86","\u5728\u8DEF\u8FB9\u95F2\u901B\u7684\u65F6\u5019\u968F\u624B\u4E70\u4E86\u4E00\u4E2A","\u4ECE\u5B66\u6821\u73ED\u4E3B\u4EFB\u90A3\u62FF\u6765\u4E86\u5B69\u5B50\u4E0A\u8BFE\u5077\u5077\u770B\u7684","\u4F60\u7684\u540C\u684C\u65E0\u60C5\u7684\u4ECE\u4F60\u7684\u8BED\u6587\u4E66\u4E2D\u6495\u4E0B\u4E86\u90A3\u7BC7\u4F60\u6700\u559C\u6B22\u7684","\u8003\u53E4\u5B66\u5BB6\u8FD1\u65E5\u53D1\u73B0\u4E86","\u5916\u661F\u4EBA\u964D\u4E34\u5730\u7403\u5B66\u4E60\u5730\u7403\u6587\u5316\uFF0C\u843D\u5730\u65F6\u88AB\u4F60\u585E\u4E86","\u4ECE\u56FE\u4E66\u9986\u9876\u5C42\u7684\u9690\u79D8\u89D2\u843D\u91CC\u53D1\u73B0\u4E86\u95EA\u7740\u91D1\u5149\u7684","\u5F92\u5F1F\u4FEE\u70BC\u8D70\u706B\u5165\u9B54\uFF0C\u4E3A\u5E08\u7ACB\u523B\u638F\u51FA\u4E86","\u5728\u5927\u5C71\u4E2D\u5531\u5C71\u6B4C\uFF0C\u9694\u58C1\u7684\u963F\u59B9\u8DD1\u6765\u4E86\uFF0C\u5E26\u7740","\u9694\u58C1\u5BB6\u7684\u5B69\u5B50\u6570\u5B66\u8003\u4E86\u6EE1\u5206\uFF0C\u90FD\u662F\u56E0\u4E3A\u770B\u4E86","\u9694\u58C1\u5BB6\u7684\u5B69\u5B50\u82F1\u8BED\u8003\u4E86\u6EE1\u5206\uFF0C\u90FD\u662F\u56E0\u4E3A\u770B\u4E86","\u5C0F\u7C73\u7814\u53D1\u4E86\u5168\u65B0\u4E00\u4EE3MIX\u624B\u673A\uFF0C\u636E\u8BF4\u7075\u611F","\u4FEE\u70BC\u6E21\u52AB\u6210\u529F\uFF0C\u8FD8\u597D\u63D0\u524D\u770B\u4E86","\u5E93\u514B\u5750\u4E0A\u4E86\u82F9\u679CCEO\u7684\u5B9D\u5EA7\uFF0C\u56E0\u4E3A\u4ED6\u9762\u8BD5\u7684\u65F6\u5019\u770B\u4E86","\u963F\u91CC\u5DF4\u5DF4\u5927\u558A\u829D\u9EBB\u5F00\u95E8\uFF0C\u6620\u5165\u773C\u5E18\u7684\u5C31\u662F","\u5E08\u5085\u8BF4\u7EC3\u6B66\u8981\u5148\u70BC\u5FC3\uFF0C\u7136\u540E\u8BA9\u6211\u597D\u751F\u7814\u8BFB","\u79D1\u8003\u961F\u5728\u5357\u6781\u5927\u9646\u53D1\u73B0\u4E86\u88AB\u51B0\u5C01\u7684","\u98DE\u673A\u7A97\u6237\u4F3C\u4E4E\u88AB\u4E00\u5F20\u7EB8\u7CCA\u4E0A\u4E86\uFF0C\u4ED4\u7EC6\u4E00\u770B\u662F","\u5386\u53F2\u4E0A\u6EE1\u5199\u7684\u4EC1\u4E49\u9053\u5FB7\u56DB\u4E2A\u5B57\uFF0C\u900F\u8FC7\u5B57\u7F1D\u91CC\u5374\u5168\u662F","\u5341\u51E0\u5E74\u524D\u7684\u5F55\u97F3\u673A\u4F3C\u4E4E\u8FD8\u80FD\u591F\u4F7F\u7528\uFF0C\u63D2\u4E0A\u7535\u53D1\u73B0\u6B63\u5728\u64AD\u7684\u662F","\u65B0\u7248\u8BED\u6587\u4E66\u62DF\u589E\u52A0\u4E00\u7BC7\u719F\u8BFB\u5E76\u80CC\u8BF5\u7684","\u7ECF\u8C03\u67E5\uFF0C99%\u7684\u53D7\u8BBF\u8005\u90FD\u6CA1\u6709\u80CC\u8BF5\u8FC7","\u4ECA\u5E74\u7684\u9AD8\u8003\u6EE1\u5206\u4F5C\u6587\u662F","\u5510\u50E7\u63ED\u5F00\u4E86\u4F5B\u7956\u538B\u5728\u4E94\u6307\u5C71\u4E0A\u7684","\u79D1\u5B66\u5BB6\u53D1\u73B0\u80FD\u591F\u89E3\u51B3\u8870\u8001\u7684\u79D8\u5BC6\uFF0C\u5C31\u662F\u6BCF\u65E5\u7814\u8BFB","\u82F1\u7279\u5C14\u53D1\u5E03\u4E86\u5168\u65B0\u7684\u81F3\u5F3A\u5904\u7406\u5668\uFF0C\u5176\u82AF\u7247\u7684\u5236\u9020\u539F\u7406\u90FD\u662F","\u65B0\u7684iPhone\u4EA7\u80FD\u5F88\u8DB3\uFF0C\u65B0\u7684\u8FDB\u8D27\u6E20\u9053\u662F","\u4ECA\u5E74\u4EA9\u4EA7\u7A81\u7834\u4E86\u516B\u5343\u4E07\u65A4\uFF0C\u591A\u4E8F\u4E86","\u9646\u9690\u4E00\u7EDF\u5929\u4E0A\u5B97\uFF0C\u5728\u65E0\u6570\u7956\u5883\u9AD8\u624B\u7684\u76EE\u5149\u4E0B\u5BA3\u8BFB\u4E86","\u9ED1\u94BB\u98CE\u8DDF\u767D\u94BB\u98CE\u8BF4\u9053\uFF0C\u5403\u4E86\u5510\u50E7\u8089\u80FD\u957F\u751F\u4E0D\u8001\uFF0C\u4ED6\u77E5\u9053\u662F\u56E0\u4E3A\u770B\u4E86","\u4E0A\u536B\u751F\u95F4\u6CA1\u5E26\u7EB8\uFF0C\u76F4\u63A5\u63D0\u88E4\u8DD1\u8DEF\u4E5F\u4E0D\u613F\u610F\u73B7\u6C61\u624B\u4E2D","\u79CD\u4E0B\u4E00\u7BC7\u6587\u7AE0\u5C31\u4F1A\u4EA7\u751F\u5F88\u591A\u5F88\u591A\u6587\u7AE0\uFF0C\u6211\u79CD\u4E0B\u4E86","\u4E09\u5341\u5E74\u6CB3\u4E1C\uFF0C\u4E09\u5341\u5E74\u6CB3\u897F\uFF0C\u83AB\u6B3A\u6211\u6CA1\u6709\u770B\u8FC7","\u8E0F\u7834\u94C1\u8840\u65E0\u89C5\u5904\uFF0C\u5F97\u6765\u5168\u9760","\u4ECA\u65E5\u53CC\u8272\u7403\u4E2D\u4E86\u4E24\u5343\u4E07\uFF0C\u9884\u6D4B\u5168\u9760","\u56E0\u4E3A\u5377\u5B50\u4E0A\u6CA1\u5199\u540D\u5B57\uFF0C\u8001\u5E08\u7F5A\u6284","\u4E3A\u4E86\u6297\u8BAE\u4E16\u95F4\u7684\u4E0D\u516C\uFF0C\u5272\u7834\u624B\u6307\u5199\u4E0B\u4E86","\u5728\u827A\u672F\u5927\u8857\u4E0A\u88AB\u8D34\u6EE1\u4E86\u76F8\u540C\u7684\u7EB8\uFF0C\u8D70\u8FD1\u4E00\u770B\u662F","\u8FD9\u533A\u533A\u8FF7\u9635\u5C82\u80FD\u96BE\u5F97\u4F4F\u6211\uFF1F\u5176\u5B9E\u80FD\u8D70\u51FA\u6765\u591A\u4E8F\u4E86","\u4ECA\u65E5\u88AB\u4E00\u7BC7\u6587\u7AE0\u9876\u4E0A\u4E86\u5FAE\u535A\u70ED\u641C\uFF0C\u5B83\u662F","\u4F60\u9001\u7ED9\u4E5E\u4E10\u4E00\u4E2A\u66B4\u5BCC\u79D8\u7C4D\uFF0C\u5B83\u662F","UZI\u4E00\u4E2A\u8D70A\u62FF\u4E0B\u4E94\u6740\uFF0C\u5728\u4E8B\u540E\u91C7\u8BBF\u65F6\u8BF4\u4ED6\u5F53\u65F6\u56DE\u60F3\u8D77\u4E86","\u79D1\u5B66\u5BB6\u89E3\u5228\u4E86\u7B2C\u4E00\u4E2A\u611F\u67D3\u4E27\u5C38\u75C5\u6BD2\u7684\u4EBA\uFF0C\u53D1\u73B0\u4E27\u5C38\u6297\u4F53\u5B58\u5728\u4E8E"],randomPostClick=0;function fetchRandomPost(){if(console.log(fdata.apiurl),randomPostWorking==!1){randomPostWorking=!0;let a=randomPostTimes*360,n=randomPostTips[Math.floor(Math.random()*randomPostTips.length)],e="";randomPostTimes>1e4?e="\u613F\u8005\u4E0A\u94A9":randomPostTimes>1e3?e="\u4FEF\u89C8\u5929\u4E0B":randomPostTimes>1e3?e="\u8D85\u8D8A\u795E\u4E86":randomPostTimes>100?e="\u7EDD\u4E16\u6E14\u592B":randomPostTimes>75?e="\u9493\u9C7C\u738B\u8005":randomPostTimes>50?e="\u9493\u9C7C\u5B97\u5E08":randomPostTimes>20?e="\u9493\u9C7C\u4E13\u5BB6":randomPostTimes>5?e="\u9493\u9C7C\u9AD8\u624B":e="\u9493\u9C7C\u65B0\u624B",randomPostTimes>=5?document.getElementById("random-post").innerHTML="\u9493\u9C7C\u4E2D... \uFF08Lv."+randomPostTimes+" \u5F53\u524D\u79F0\u53F7\uFF1A"+e+"\uFF09":document.getElementById("random-post").innerHTML="\u9493\u9C7C\u4E2D...",$(".random-post-start").css("transform","rotate("+a+"deg)"),window.setTimeout(function(){if(randomPostClick*fdata.hungryFish+fdata.defaultFish<randomPostTimes&&Math.round(Math.random())==0)document.getElementById("random-post").innerHTML="\u56E0\u4E3A\u53EA\u9493\u9C7C\u4E0D\u5403\u9C7C\uFF0C\u8FC7\u5206\u9965\u997F\u5BFC\u81F4\u672C\u6B21\u9493\u9C7C\u5931\u8D25...",randomPostWorking=!1;else{var o=fdata.apiurl+"randompost";fetch(o).then(t=>t.json()).then(t=>{var r=t.title,i=t.link,l=t.author;document.querySelector("#random-post")&&(document.getElementById("random-post").innerHTML=n+"\u6765\u81EA\u53CB\u94FE <b>"+l+'</b> \u7684\u6587\u7AE0\uFF1A<a class="random-friends-post" onclick="randomClickLink()" target="_blank" href="'+i+'" rel="external nofollow">'+r+"</a>")}),randomPostWorking=!1}randomPostTimes+=1},2e3)}}fetchRandomPost();function randomClickLink(){randomPostClick+=1}function addflink(){var a=document.getElementsByClassName("el-textarea__inner")[0],n=document.createEvent("HTMLEvents");n.initEvent("input",!0,!0),a.value=d.value="```yaml\n- name: #\u53CB\u94FE\u540D\u79F0\n link: #\u53CB\u94FE\u5730\u5740\uFF08\u5EFA\u8BAE\u535A\u5BA2\uFF0C\u800C\u4E0D\u662F\u4E3B\u9875\uFF0C\u5426\u5219\u53CB\u94FE\u670B\u53CB\u5708\u65E0\u6CD5\u722C\u53D6\uFF09\n avatar: #\u53CB\u94FE\u5934\u50CF\n descr: #\u4ECB\u7ECD\n theme_color: #\u53CB\u94FE\u80CC\u666F\u8272\uFF0C\u56E0\u4E3A#\u53F7\u5728yaml\u4E2D\u8BC6\u522B\u4E3A\u6CE8\u91CA\u8BF7\u52A0\u5F15\u53F7\n```",a.dispatchEvent(n)}
1
+ (function(D,F){typeof module=="object"&&typeof module.exports=="object"?F():typeof define=="function"&&define.amd?define([],F):(D=typeof globalThis<"u"?globalThis:D||self)&&F()})(this,function(){function D(B){"@swc/helpers - typeof";return B&&typeof Symbol<"u"&&B.constructor===Symbol?"symbol":typeof B}var F={apiurl:"https://fcircleapi.yumetsuki.moe/",defaultFish:500,hungryFish:500};if((typeof fdataUser>"u"?"undefined":D(fdataUser))<"u")for(var A in fdataUser)fdataUser[A]&&(F[A]=fdataUser[A]);var u=0,n=!1,t=["\u9493\u5230\u4E86\u7EDD\u4E16\u597D\u6587\uFF01","\u5728\u6CB3\u8FB9\u6253\u4E86\u4E2A\u55B7\u568F\uFF0C\u5413\u8DD1\u4E86","\u4F60\u548C\u5C0F\u4F19\u4F34\u62A2\u593A\u7740","\u4F60\u51FB\u8D25\u4E86\u5DE8\u9F99\uFF0C\u5728\u5DE2\u7A74\u4E2D\u53D1\u73B0\u4E86","\u6316\u6398\u79E6\u59CB\u7687\u575F\u65F6\u627E\u5230\u4E86","\u5728\u8DEF\u8FB9\u95F2\u901B\u7684\u65F6\u5019\u968F\u624B\u4E70\u4E86\u4E00\u4E2A","\u4ECE\u5B66\u6821\u73ED\u4E3B\u4EFB\u90A3\u62FF\u6765\u4E86\u5B69\u5B50\u4E0A\u8BFE\u5077\u5077\u770B\u7684","\u4F60\u7684\u540C\u684C\u65E0\u60C5\u7684\u4ECE\u4F60\u7684\u8BED\u6587\u4E66\u4E2D\u6495\u4E0B\u4E86\u90A3\u7BC7\u4F60\u6700\u559C\u6B22\u7684","\u8003\u53E4\u5B66\u5BB6\u8FD1\u65E5\u53D1\u73B0\u4E86","\u5916\u661F\u4EBA\u964D\u4E34\u5730\u7403\u5B66\u4E60\u5730\u7403\u6587\u5316\uFF0C\u843D\u5730\u65F6\u88AB\u4F60\u585E\u4E86","\u4ECE\u56FE\u4E66\u9986\u9876\u5C42\u7684\u9690\u79D8\u89D2\u843D\u91CC\u53D1\u73B0\u4E86\u95EA\u7740\u91D1\u5149\u7684","\u5F92\u5F1F\u4FEE\u70BC\u8D70\u706B\u5165\u9B54\uFF0C\u4E3A\u5E08\u7ACB\u523B\u638F\u51FA\u4E86","\u5728\u5927\u5C71\u4E2D\u5531\u5C71\u6B4C\uFF0C\u9694\u58C1\u7684\u963F\u59B9\u8DD1\u6765\u4E86\uFF0C\u5E26\u7740","\u9694\u58C1\u5BB6\u7684\u5B69\u5B50\u6570\u5B66\u8003\u4E86\u6EE1\u5206\uFF0C\u90FD\u662F\u56E0\u4E3A\u770B\u4E86","\u9694\u58C1\u5BB6\u7684\u5B69\u5B50\u82F1\u8BED\u8003\u4E86\u6EE1\u5206\uFF0C\u90FD\u662F\u56E0\u4E3A\u770B\u4E86","\u5C0F\u7C73\u7814\u53D1\u4E86\u5168\u65B0\u4E00\u4EE3MIX\u624B\u673A\uFF0C\u636E\u8BF4\u7075\u611F","\u4FEE\u70BC\u6E21\u52AB\u6210\u529F\uFF0C\u8FD8\u597D\u63D0\u524D\u770B\u4E86","\u5E93\u514B\u5750\u4E0A\u4E86\u82F9\u679CCEO\u7684\u5B9D\u5EA7\uFF0C\u56E0\u4E3A\u4ED6\u9762\u8BD5\u7684\u65F6\u5019\u770B\u4E86","\u963F\u91CC\u5DF4\u5DF4\u5927\u558A\u829D\u9EBB\u5F00\u95E8\uFF0C\u6620\u5165\u773C\u5E18\u7684\u5C31\u662F","\u5E08\u5085\u8BF4\u7EC3\u6B66\u8981\u5148\u70BC\u5FC3\uFF0C\u7136\u540E\u8BA9\u6211\u597D\u751F\u7814\u8BFB","\u79D1\u8003\u961F\u5728\u5357\u6781\u5927\u9646\u53D1\u73B0\u4E86\u88AB\u51B0\u5C01\u7684","\u98DE\u673A\u7A97\u6237\u4F3C\u4E4E\u88AB\u4E00\u5F20\u7EB8\u7CCA\u4E0A\u4E86\uFF0C\u4ED4\u7EC6\u4E00\u770B\u662F","\u5386\u53F2\u4E0A\u6EE1\u5199\u7684\u4EC1\u4E49\u9053\u5FB7\u56DB\u4E2A\u5B57\uFF0C\u900F\u8FC7\u5B57\u7F1D\u91CC\u5374\u5168\u662F","\u5341\u51E0\u5E74\u524D\u7684\u5F55\u97F3\u673A\u4F3C\u4E4E\u8FD8\u80FD\u591F\u4F7F\u7528\uFF0C\u63D2\u4E0A\u7535\u53D1\u73B0\u6B63\u5728\u64AD\u7684\u662F","\u65B0\u7248\u8BED\u6587\u4E66\u62DF\u589E\u52A0\u4E00\u7BC7\u719F\u8BFB\u5E76\u80CC\u8BF5\u7684","\u7ECF\u8C03\u67E5\uFF0C99%\u7684\u53D7\u8BBF\u8005\u90FD\u6CA1\u6709\u80CC\u8BF5\u8FC7","\u4ECA\u5E74\u7684\u9AD8\u8003\u6EE1\u5206\u4F5C\u6587\u662F","\u5510\u50E7\u63ED\u5F00\u4E86\u4F5B\u7956\u538B\u5728\u4E94\u6307\u5C71\u4E0A\u7684","\u79D1\u5B66\u5BB6\u53D1\u73B0\u80FD\u591F\u89E3\u51B3\u8870\u8001\u7684\u79D8\u5BC6\uFF0C\u5C31\u662F\u6BCF\u65E5\u7814\u8BFB","\u82F1\u7279\u5C14\u53D1\u5E03\u4E86\u5168\u65B0\u7684\u81F3\u5F3A\u5904\u7406\u5668\uFF0C\u5176\u82AF\u7247\u7684\u5236\u9020\u539F\u7406\u90FD\u662F","\u65B0\u7684iPhone\u4EA7\u80FD\u5F88\u8DB3\uFF0C\u65B0\u7684\u8FDB\u8D27\u6E20\u9053\u662F","\u4ECA\u5E74\u4EA9\u4EA7\u7A81\u7834\u4E86\u516B\u5343\u4E07\u65A4\uFF0C\u591A\u4E8F\u4E86","\u9646\u9690\u4E00\u7EDF\u5929\u4E0A\u5B97\uFF0C\u5728\u65E0\u6570\u7956\u5883\u9AD8\u624B\u7684\u76EE\u5149\u4E0B\u5BA3\u8BFB\u4E86","\u9ED1\u94BB\u98CE\u8DDF\u767D\u94BB\u98CE\u8BF4\u9053\uFF0C\u5403\u4E86\u5510\u50E7\u8089\u80FD\u957F\u751F\u4E0D\u8001\uFF0C\u4ED6\u77E5\u9053\u662F\u56E0\u4E3A\u770B\u4E86","\u4E0A\u536B\u751F\u95F4\u6CA1\u5E26\u7EB8\uFF0C\u76F4\u63A5\u63D0\u88E4\u8DD1\u8DEF\u4E5F\u4E0D\u613F\u610F\u73B7\u6C61\u624B\u4E2D","\u79CD\u4E0B\u4E00\u7BC7\u6587\u7AE0\u5C31\u4F1A\u4EA7\u751F\u5F88\u591A\u5F88\u591A\u6587\u7AE0\uFF0C\u6211\u79CD\u4E0B\u4E86","\u4E09\u5341\u5E74\u6CB3\u4E1C\uFF0C\u4E09\u5341\u5E74\u6CB3\u897F\uFF0C\u83AB\u6B3A\u6211\u6CA1\u6709\u770B\u8FC7","\u8E0F\u7834\u94C1\u8840\u65E0\u89C5\u5904\uFF0C\u5F97\u6765\u5168\u9760","\u4ECA\u65E5\u53CC\u8272\u7403\u4E2D\u4E86\u4E24\u5343\u4E07\uFF0C\u9884\u6D4B\u5168\u9760","\u56E0\u4E3A\u5377\u5B50\u4E0A\u6CA1\u5199\u540D\u5B57\uFF0C\u8001\u5E08\u7F5A\u6284","\u4E3A\u4E86\u6297\u8BAE\u4E16\u95F4\u7684\u4E0D\u516C\uFF0C\u5272\u7834\u624B\u6307\u5199\u4E0B\u4E86","\u5728\u827A\u672F\u5927\u8857\u4E0A\u88AB\u8D34\u6EE1\u4E86\u76F8\u540C\u7684\u7EB8\uFF0C\u8D70\u8FD1\u4E00\u770B\u662F","\u8FD9\u533A\u533A\u8FF7\u9635\u5C82\u80FD\u96BE\u5F97\u4F4F\u6211\uFF1F\u5176\u5B9E\u80FD\u8D70\u51FA\u6765\u591A\u4E8F\u4E86","\u4ECA\u65E5\u88AB\u4E00\u7BC7\u6587\u7AE0\u9876\u4E0A\u4E86\u5FAE\u535A\u70ED\u641C\uFF0C\u5B83\u662F","\u4F60\u9001\u7ED9\u4E5E\u4E10\u4E00\u4E2A\u66B4\u5BCC\u79D8\u7C4D\uFF0C\u5B83\u662F","UZI\u4E00\u4E2A\u8D70A\u62FF\u4E0B\u4E94\u6740\uFF0C\u5728\u4E8B\u540E\u91C7\u8BBF\u65F6\u8BF4\u4ED6\u5F53\u65F6\u56DE\u60F3\u8D77\u4E86","\u79D1\u5B66\u5BB6\u89E3\u5228\u4E86\u7B2C\u4E00\u4E2A\u611F\u67D3\u4E27\u5C38\u75C5\u6BD2\u7684\u4EBA\uFF0C\u53D1\u73B0\u4E27\u5C38\u6297\u4F53\u5B58\u5728\u4E8E"],o=0;function a(){if(console.log(F.apiurl),n==!1){n=!0;var B=u*360,e=t[Math.floor(Math.random()*t.length)],E="";u>1e4?E="\u613F\u8005\u4E0A\u94A9":u>1e3?E="\u4FEF\u89C8\u5929\u4E0B":u>1e3?E="\u8D85\u8D8A\u795E\u4E86":u>100?E="\u7EDD\u4E16\u6E14\u592B":u>75?E="\u9493\u9C7C\u738B\u8005":u>50?E="\u9493\u9C7C\u5B97\u5E08":u>20?E="\u9493\u9C7C\u4E13\u5BB6":u>5?E="\u9493\u9C7C\u9AD8\u624B":E="\u9493\u9C7C\u65B0\u624B",u>=5?document.getElementById("random-post").innerHTML="\u9493\u9C7C\u4E2D... \uFF08Lv."+u+" \u5F53\u524D\u79F0\u53F7\uFF1A"+E+"\uFF09":document.getElementById("random-post").innerHTML="\u9493\u9C7C\u4E2D...",$(".random-post-start").css("transform","rotate("+B+"deg)"),window.setTimeout(function(){if(o*F.hungryFish+F.defaultFish<u&&Math.round(Math.random())==0)document.getElementById("random-post").innerHTML="\u56E0\u4E3A\u53EA\u9493\u9C7C\u4E0D\u5403\u9C7C\uFF0C\u8FC7\u5206\u9965\u997F\u5BFC\u81F4\u672C\u6B21\u9493\u9C7C\u5931\u8D25...",n=!1;else{var r=F.apiurl+"randompost";fetch(r).then(function(C){return C.json()}).then(function(C){var i=C.title,s=C.link,l=C.author;document.querySelector("#random-post")&&(document.getElementById("random-post").innerHTML=e+"\u6765\u81EA\u53CB\u94FE <b>"+l+'</b> \u7684\u6587\u7AE0\uFF1A<a class="random-friends-post" onclick="randomClickLink()" target="_blank" href="'+s+'" rel="external nofollow">'+i+"</a>")}),n=!1}u+=1},2e3)}}a();function f(){o+=1}function m(){var B=document.getElementsByClassName("el-textarea__inner")[0],e=document.createEvent("HTMLEvents");e.initEvent("input",!0,!0),B.value=d.value="```yaml\n- name: #\u53CB\u94FE\u540D\u79F0\n link: #\u53CB\u94FE\u5730\u5740\uFF08\u5EFA\u8BAE\u535A\u5BA2\uFF0C\u800C\u4E0D\u662F\u4E3B\u9875\uFF0C\u5426\u5219\u53CB\u94FE\u670B\u53CB\u5708\u65E0\u6CD5\u722C\u53D6\uFF09\n avatar: #\u53CB\u94FE\u5934\u50CF\n descr: #\u4ECB\u7ECD\n theme_color: #\u53CB\u94FE\u80CC\u666F\u8272\uFF0C\u56E0\u4E3A#\u53F7\u5728yaml\u4E2D\u8BC6\u522B\u4E3A\u6CE8\u91CA\u8BF7\u52A0\u5F15\u53F7\n```",B.dispatchEvent(e)}});
package/js/resizeTop.js CHANGED
@@ -1 +1 @@
1
- function getStyle(t,e){return window.getComputedStyle?getComputedStyle(t,null)[e]:t.currentStyle[e]}var clientWidth=document.getElementById("content-inner").clientWidth,paddingLeft=Number(getStyle(document.getElementById("content-inner"),"paddingLeft").replace(/\s+|px/gi,"")),paddingRight=Number(getStyle(document.getElementById("content-inner"),"paddingRight").replace(/\s+|px/gi,"")),width=clientWidth-paddingLeft-paddingRight;try{document.getElementById("top").setAttribute("style","width:"+width.toString()+"px")}catch{}$(document).ready(function(){var t=document.getElementById("content-inner").clientWidth,e=Number(getStyle(document.getElementById("content-inner"),"paddingLeft").replace(/\s+|px/gi,"")),d=Number(getStyle(document.getElementById("content-inner"),"paddingRight").replace(/\s+|px/gi,"")),i=t-e-d;try{document.getElementById("top").setAttribute("style","width:"+i.toString()+"px")}catch{}function r(){var n=document.getElementById("content-inner").clientWidth,c=Number(getStyle(document.getElementById("content-inner"),"paddingLeft").replace(/\s+|px/gi,"")),g=Number(getStyle(document.getElementById("content-inner"),"paddingRight").replace(/\s+|px/gi,"")),a=n-c-g;try{document.getElementById("top").setAttribute("style","width:"+a.toString()+"px")}catch{}}window.addEventListener("resize",r)});
1
+ (function(e,t){typeof module=="object"&&typeof module.exports=="object"?t():typeof define=="function"&&define.amd?define([],t):(e=typeof globalThis<"u"?globalThis:e||self)&&t()})(this,function(){function e(n,i){return window.getComputedStyle?getComputedStyle(n,null)[i]:n.currentStyle[i]}var t=document.getElementById("content-inner").clientWidth,c=Number(e(document.getElementById("content-inner"),"paddingLeft").replace(/\s+|px/gi,"")),o=Number(e(document.getElementById("content-inner"),"paddingRight").replace(/\s+|px/gi,"")),r=t-c-o;try{document.getElementById("top").setAttribute("style","width:"+r.toString()+"px")}catch{}$(document).ready(function(){var n=document.getElementById("content-inner").clientWidth,i=Number(e(document.getElementById("content-inner"),"paddingLeft").replace(/\s+|px/gi,"")),g=Number(e(document.getElementById("content-inner"),"paddingRight").replace(/\s+|px/gi,"")),l=n-i-g;try{document.getElementById("top").setAttribute("style","width:"+l.toString()+"px")}catch{}function m(){var d=document.getElementById("content-inner").clientWidth,u=Number(e(document.getElementById("content-inner"),"paddingLeft").replace(/\s+|px/gi,"")),p=Number(e(document.getElementById("content-inner"),"paddingRight").replace(/\s+|px/gi,"")),y=d-u-p;try{document.getElementById("top").setAttribute("style","width:"+y.toString()+"px")}catch{}}window.addEventListener("resize",m)})});