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Y,CAGjDE,QAAS,CAAC,GAOX,OAHAE,EAAoBJ,GAAUG,EAAQA,EAAOD,QAASH,GAG/CI,EAAOD,OACf,CCrBAH,EAAoBrL,EAAKyL,IACxB,IAAIE,EAASF,GAAUA,EAAOG,WAC7B,IAAOH,EAAiB,QACxB,IAAM,EAEP,OADAJ,EAAoBpM,EAAE0M,EAAQ,CAAEE,EAAGF,IAC5BA,CAAM,ECLdN,EAAoBpM,EAAI,CAACuM,EAASM,KACjC,IAAI,IAAIC,KAAOD,EACXT,EAAoBW,EAAEF,EAAYC,KAASV,EAAoBW,EAAER,EAASO,IAC5EE,OAAOC,eAAeV,EAASO,EAAK,CAAEI,YAAY,EAAMvB,IAAKkB,EAAWC,IAE1E,ECNDV,EAAoBW,EAAI,CAACI,EAAKC,IAAUJ,OAAO5K,UAAUiL,eAAeC,KAAKH,EAAKC,G","sources":["webpack://jekyll-theme-h2o-ac/./dev/js/index.js","webpack://jekyll-theme-h2o-ac/webpack/bootstrap","webpack://jekyll-theme-h2o-ac/webpack/runtime/compat get default export","webpack://jekyll-theme-h2o-ac/webpack/runtime/define property getters","webpack://jekyll-theme-h2o-ac/webpack/runtime/hasOwnProperty shorthand"],"sourcesContent":["$(document).ready(function () {\n document.body.addEventListener('touchstart', function () { }, { passive: true });\n\n var nav = $('.g-nav');\n var baseurl = $(\"meta[property='og:baseurl']\").attr('content');\n var lang = $(\"meta[property='og:lang']\").attr('content');\n var logo = $('.g-logo');\n var themeStyle = $('.g-banner').attr('data-theme');\n logo.css({\n 'background': 'url(' + baseurl + '/assets/icons/' + themeStyle + '.svg) no-repeat center',\n 'background-size': '100% 100%'\n });\n\n /**\n * Cookie Tips\n */\n var cookieconsent_status = getCookie(\"cookieconsent_status\");\n if (cookieconsent_status) {\n $('.cookie-tip').removeClass('active');\n } else {\n $('.cookie-tip').addClass('active');\n }\n $('#accept-tos').on('click', function () {\n setCookie(\"cookieconsent_status\", \"allow\", 365);\n $('.cookie-tip').removeClass('active');\n });\n\n /**\n * Fix table for small screens\n */\n $(\"table\").wrap(\"
\");\n\n\n /**\n * Responsive Navigation\n */\n $('#menu-toggle').on('click', function (e) {\n var duration = 200;\n nav.slideToggle(duration);\n $(document).on('click', function () {\n nav.slideUp(duration);\n });\n e.stopPropagation();\n });\n\n nav.on('click', function (e) {\n e.stopPropagation();\n });\n\n $(\".g-nav li.dropdown\").on(\"click\", function () {\n $(\".g-nav li.dropdown\").not($(this)).children(\"ul.dropdown-menu\").removeClass(\"show\");\n $(\".g-nav li.dropdown\").not($(this)).children(\"a.dropdown-toggle\").removeClass(\"show\");\n $(this).children(\"a.dropdown-toggle\").toggleClass(\"show\");\n $(this).children(\"ul.dropdown-menu\").toggleClass(\"show\");\n });\n $(document).on(\"click\", function () {\n $(\".g-nav li.dropdown\").children(\"a.dropdown-toggle\").removeClass(\"show\");\n $(\".g-nav li.dropdown\").children(\"ul.dropdown-menu\").removeClass(\"show\");\n });\n\n /**\n * Header Bar\n */\n if ($(window).width() > 695) {\n var header = $('.g-header');\n var headerHeight = header.outerHeight();\n var navText = nav.find('a');\n var scFlag = $(document).scrollTop();\n var logo = $('.g-logo');\n var themeStyle = $('.g-banner').attr('data-theme');\n\n $(document).scroll(function () {\n var scrollTop = $(this).scrollTop();\n var navClassName = 'nav-' + themeStyle;\n if (scrollTop > headerHeight) {\n if (scrollTop > 3 * headerHeight) {\n header.addClass('headerUp');\n }\n header.css({\n 'background-color': 'rgba(255, 255, 255, .98)',\n 'box-shadow': '0 1px 12px rgba(0, 0, 0, .08)'\n });\n logo.css({\n 'background': 'url(' + baseurl + '/assets/icons/' + themeStyle + '.svg) no-repeat center',\n 'background-size': '100% 100%'\n });\n navText.addClass('color-f-gray');\n nav.addClass(navClassName);\n } else {\n header.removeClass('headerUp');\n // console.log(\"rm up\");\n $('#bttb').removeClass(\"active\");\n header.css({\n 'background-color': 'transparent',\n 'box-shadow': 'none'\n });\n logo.css({\n 'background': 'url(' + baseurl + '/assets/icons/' + themeStyle + '.svg) no-repeat center',\n 'background-size': '100% 100%'\n });\n navText.removeClass('color-f-gray');\n nav.removeClass(navClassName);\n }\n\n // scroll action\n if (scFlag > scrollTop) {\n header.addClass('headerDown');\n if (header.hasClass('headerUp')) {\n $('#bttb').addClass(\"active\");\n }\n } else {\n header.removeClass('headerDown');\n $('#bttb').removeClass(\"active\");\n }\n scFlag = scrollTop;\n });\n } else {\n var header = $('.g-header');\n var headerHeight = header.outerHeight();\n var scFlag = $(document).scrollTop();\n $(document).scroll(function () {\n var scrollTop = $(this).scrollTop();\n\n if (scrollTop < 100) {\n $('#bttb').removeClass(\"active\");\n }\n\n // scroll action\n if (scFlag > scrollTop && scFlag > 5) {\n $('#bttb').addClass(\"active\");\n } else {\n $('#bttb').removeClass(\"active\");\n }\n scFlag = scrollTop;\n });\n }\n\n /**\n * List for contents\n */\n function clickTOC() {\n $('.table-of-contents').toggleClass(\"active\");\n $('#tools .tool.toc .b1').toggleClass(\"active\");\n $('#tools .tool.toc .b2').toggleClass(\"active\");\n $('.submenu').removeClass(\"active\");\n $('#tools .tool.collection .b1').addClass(\"active\");\n $('#tools .tool.collection .b2').removeClass(\"active\");\n }\n function clickSubmenu() {\n $('.submenu').toggleClass(\"active\");\n $('#tools .tool.collection .b1').toggleClass(\"active\");\n $('#tools .tool.collection .b2').toggleClass(\"active\");\n $('.table-of-contents').removeClass(\"active\");\n $('#tools .tool.toc .b1').addClass(\"active\");\n $('#tools .tool.toc .b2').removeClass(\"active\");\n }\n $('#tools .tool.toc').bind('click', function () {\n clickTOC()\n });\n $('#tools .tool.collection').bind('click', function () {\n clickSubmenu()\n });\n $(\".table-of-contents\").on('click', function () {\n clickTOC()\n });\n $(\".submenu\").on('click', function () {\n clickSubmenu()\n });\n\n\n /**\n * Back To Top Button\n */\n $('.bttb').bind('click', function () {\n $('html,body').animate({ scrollTop: 0 }, function () {\n $('#bttb').removeClass(\"active\");\n });\n });\n\n /**\n * Post Cover Resize\n */\n function postCover(img, container) {\n var imgWidth = img.width();\n var containerWidth = container.width();\n var imgHeight = img.height();\n var containerHeight = container.height();\n\n if (imgHeight < containerHeight) {\n img.css({\n 'width': 'auto',\n 'height': '100%'\n });\n imgWidth = img.width();\n containerWidth = container.width();\n var marginLeft = (imgWidth - containerWidth) / 2;\n img.css('margin-left', '-' + marginLeft + 'px');\n } else {\n var marginTop = (containerHeight - imgHeight) / 2;\n img.css('margin-top', marginTop + 'px');\n }\n\n img.fadeIn();\n }\n\n /**\n * The Post Navigator\n */\n $('.read-next-item section').each(function () {\n var n = $(this).height();\n var rn = $('.read-next-item').height();\n $(this).css('margin-top', (rn - n) / 2 + 'px');\n $(this).fadeIn();\n });\n\n $('.read-next-item img').each(function () {\n postCover($(this), $('.read-next-item'));\n // $(this).addClass(\"lazyload\");\n $(this).attr('data-src', $(this).attr('src')).removeAttr('src').addClass(\"lazyload\");\n });\n\n /**\n * Pagination\n */\n function pagination() {\n var total = parseInt($('#total_pages').val());\n var current = parseInt($('#current_pages').val());\n var baseUrl = $('#base_url').val();\n var limit = 3;\n\n var link_html = '';\n\n for (var i = current - limit; i < current; i++) {\n if (i > 0 && i !== 1) {\n link_html += '' + i + '';\n } else if (i === 1) {\n link_html += '' + i + '';\n }\n }\n\n link_html += '' + current + '';\n\n for (var j = current + 1; j <= current + limit; j++) {\n if (j <= total) {\n link_html += '' + j + '';\n }\n }\n\n $('#page-link-container').html(link_html);\n }\n pagination();\n\n /**\n * Search\n */\n function Search() {\n var self = this;\n var input = $('#search_input');\n var result = $('.search_result');\n\n input.focus(function () {\n $('.icon-search').css('color', '#3199DB');\n result.show();\n });\n\n input.keyup(debounce(this.autoComplete));\n\n $(document).click(function (e) {\n if (e.target.id === 'search_input' || e.target.className === 'search_result' || e.target.className === 'search_item') {\n return;\n }\n $('.icon-search').css('color', '#CAD3DC');\n result.hide();\n });\n }\n\n Search.prototype.autoComplete = function () {\n var keywords = this.value.toLowerCase();\n\n if (keywords.length) {\n $('.icon-search').css('color', '#3199DB');\n } else {\n $('.icon-search').css('color', '#CAD3DC');\n }\n\n var jsonfile = baseurl + '/assets/search.json';\n $.getJSON(jsonfile).done(function (data) {\n var html = '';\n for (var i in data) {\n var item = data[i];\n var title = item.title;\n var tags = item.tags;\n var url = item.url;\n\n var k = title + tags;\n if (keywords !== '' && k.toLowerCase().indexOf(keywords) >= 0) {\n html += '' + item.title + '';\n }\n }\n $('.search_result').html(html);\n });\n };\n\n function debounce(fn, delay) {\n var timer;\n delay = delay || 120;\n\n return function () {\n var ctx = this;\n var args = arguments;\n var later = function () {\n fn.apply(ctx, args);\n };\n clearTimeout(timer);\n timer = setTimeout(later, delay);\n };\n }\n\n new Search();\n\n /**\n * Night mode\n */\n function nightMode() {\n var el = $('body');\n var className = 'night-mode';\n\n var date = new Date();\n var hour = date.getHours();\n\n var mode = getCookie(\"mode\");\n if (mode == \"\") {\n // console.log(mode);\n if (hour <= 6 || hour >= 18) {\n // console.log(\"Start night mode\");\n setCookie(\"mode\", \"night\", 1)\n }\n // el.addClass(className);\n }\n }\n\n if ($('#nm-switch').val() === 'true') {\n nightMode();\n }\n\n /**\n * Copy and copyright\n */\n function setClipboardData(str) {\n str += '\\n\\n著作权归作者所有。\\n商业转载请联系作者获得授权,非商业转载请注明出处。\\n原文: ' + location.href;\n $('.post-content').on('copy', function (e) {\n var data = window.clipboardData || e.originalEvent.clipboardData;\n data.setData('text/plain', str);\n e.preventDefault();\n });\n }\n $('.post-content').on('mouseup', function (e) {\n var txt = window.getSelection();\n if (txt.toString().length >= 30) {\n setClipboardData(txt);\n }\n });\n\n /**\n * TOC highlight with the corresponding content\n */\n function locateCatelogList() {\n /*获取文章目录集合,可通过:header过滤器*/\n var alis = $('article :header');\n /*获取侧边栏目录列表集合**/\n var sidebar_alis = $('.table-of-contents a').parent();\n /*获取滚动条到顶部的距离*/\n var scroll_height = $(window).scrollTop();\n if (scroll_height > 0) {\n $('.g-header').addClass('headerUp');\n }\n for (var i = 0; i < alis.length; i++) {\n /*获取锚点集合中的元素分别到顶点的距离*/\n var a_height = $(alis[i]).offset().top - 100;\n if (a_height < scroll_height) {\n /*高亮显示*/\n $(sidebar_alis).removeClass('active');\n $(sidebar_alis[i]).addClass('active');\n a_height = $(\".toc-body li.active\").offset().top - $(\".toc-header h2\").offset().top\n var t_height = $(\".toc-body li.active\").offset().top - $(\".toc-body li:first-child\").offset().top\n if (a_height < 22) {\n $(\".toc-body\").scrollTop(t_height - 350);\n }\n if (a_height > 350) {\n $(\".toc-body\").scrollTop(t_height - 72);\n }\n }\n }\n }\n if ($(\".toc-body\").length > 0) {\n $($('.table-of-contents a').parent()[0]).addClass('active');\n locateCatelogList();\n $(window).bind('scroll', locateCatelogList);\n }\n\n /**\n * Day/Night mode switch button\n */\n function getCookie(cname) {\n var name = cname + \"=\";\n var ca = document.cookie.split(';');\n for (var i = 0; i < ca.length; i++) {\n var c = ca[i].trim();\n if (c.indexOf(name) === 0) return c.substring(name.length, c.length);\n }\n return \"\";\n }\n\n function setCookie(cname, cvalue, exdays) {\n var d = new Date();\n d.setTime(d.getTime() + (exdays * 24 * 60 * 60 * 1000));\n var expires = \"expires=\" + d.toGMTString();\n if (!baseurl) {\n document.cookie = cname + \"=\" + cvalue + \"; path=/; \" + expires;\n } else {\n document.cookie = cname + \"=\" + cvalue + \"; path=\" + baseurl + \"; \" + expires;\n }\n }\n\n var mode = getCookie(\"mode\");\n // console.log(mode);\n if (mode == \"night\") {\n $(\".g-nav li.mode .night\").addClass(\"active\");\n $(\"#mode-toggle .icon-night\").addClass(\"active\");\n $(\"body\").addClass(\"night-mode\");\n $(\".icon.up.night\").toggleClass(\"active\");\n $(\".icon.list.night\").toggleClass(\"active\");\n } else {\n $(\".g-nav li.mode .day\").addClass(\"active\");\n $(\"#mode-toggle .icon-day\").addClass(\"active\");\n $(\"body\").removeClass(\"night-mode\");\n $(\".icon.up.day\").toggleClass(\"active\");\n $(\".icon.list.day\").toggleClass(\"active\");\n }\n\n function changeMode() {\n var mode = getCookie(\"mode\");\n if (mode == \"\") {\n setCookie(\"mode\", \"night\", 1)\n $(\"body\").addClass(\"night-mode\");\n } else if (mode == \"day\") {\n setCookie(\"mode\", \"night\", 1)\n $(\"body\").addClass(\"night-mode\");\n } else {\n setCookie(\"mode\", \"day\", 1)\n $(\"body\").removeClass(\"night-mode\");\n }\n // console.log(mode + \"-->\" + getCookie(\"mode\"));\n if ($(\"#disqus_thread\").length > 0) {\n DISQUS.reset({\n reload: true\n });\n }\n if ($(\".giscus\").length > 0) {\n changeGiscusTheme();\n }\n $(\".g-nav li.mode .icon\").toggleClass(\"active\");\n $(\"#mode-toggle .icon\").toggleClass(\"active\");\n $(\".icon.up.day\").toggleClass(\"active\");\n $(\".icon.up.night\").toggleClass(\"active\");\n if ($('.table-of-contents').css('visibility') == \"visible\") {\n $(\".icon.exit.day\").toggleClass(\"active\");\n $(\".icon.exit.night\").toggleClass(\"active\");\n } else {\n $(\".icon.list.day\").toggleClass(\"active\");\n $(\".icon.list.night\").toggleClass(\"active\");\n }\n }\n\n $(\".g-nav li.mode\").click(function () {\n changeMode();\n });\n\n $(\"#mode-toggle\").click(function () {\n changeMode();\n });\n\n /**\n * Copy code blocks\n */\n // get all elements\n var allCodeBlocksElements = $(\"pre\");\n allCodeBlocksElements.each(function (i) {\n // add different id for each code block\n // target\n var currentId = \"codeblock\" + (i + 1);\n $(this).attr('id', currentId);\n var lang = $(this).attr(\"class\").split(\" \")[1].substring(9).toUpperCase();\n\n if (lang == \"ERS\") {\n lang = $(this).attr(\"class\").split(\" \")[0].substring(9).toUpperCase();\n if (lang == \"MERMAID2\") {\n text = $(this).text();\n $(this).before(' ');\n $(this).after('' + text + '');\n } else {\n $(this).wrap('');\n $(this).parent().wrap('');\n $(this).addClass(\"highlight\");\n //trigger\n var clipButton = '' + lang + '';\n $(this).before(clipButton);\n }\n } else {\n //trigger\n var clipButton = '' + lang + '';\n $(this).before(clipButton);\n }\n });\n\n var clipboard = new ClipboardJS('.btn');\n clipboard.on('success', function (e) {\n e.clearSelection();\n });\n\n $(\".markdown-body .btn\").hover(function () {\n $(this).find(\".tooltip.unfinish\").addClass(\"active\");\n }, function () {\n $(this).find(\".tooltip.unfinish\").removeClass(\"active\");\n });\n\n $(\".markdown-body .btn\").click(function () {\n $(this).find(\".tooltip.unfinish\").removeClass(\"active\");\n var finish = $(this).find(\".tooltip.finish\")\n finish.addClass(\"active\");\n setTimeout(function () {\n finish.removeClass(\"active\");\n }, 500);\n });\n\n /**\n * Expand the mermaid figure\n */\n $(\"summary\").click(function (event) {\n var text = $(this).next().children().text();\n $(\".modal .modal-content .container\").html('' + text + '')\n mermaid.init(undefined, $('.modal .modal-content .mermaid2'));\n $('.modal').css(\"visibility\", \"visible\");\n $(\".modal .modal-content\").click(function (event) {\n if (event.target.classList.contains(\"close\")) {\n $(\".modal\").css(\"visibility\", \"hidden\");\n }\n event.stopPropagation();\n });\n event.stopPropagation();\n });\n\n $(document).click(function () {\n $(\".modal\").css(\"visibility\", \"hidden\");\n });\n\n /**\n * Error image loading\n */\n document.addEventListener('error', function (e) {\n if (e.target.nodeName == 'IMG') { e.target.src = baseurl + '/assets/img/placeholder.webp'; }\n }, true);\n\n /**\n * Alive time\n */\n\n var alivetime_days = $(\".alivetime_days\")\n var alivetime_hours = $(\".alivetime_hours\")\n var alivetime_minutes = $(\".alivetime_minutes\")\n var alivetime_seconds = $(\".alivetime_seconds\")\n function alive_time() {\n var alivestart = $(\"meta[name='alivestart']\").attr('content');\n window.setTimeout(alive_time, 1000);\n // Start at\n BirthDay = new Date(alivestart);\n // Now at\n today = new Date();\n timeold = (today.getTime() - BirthDay.getTime());\n secondsold = Math.floor(timeold / 1000);\n e_daysold = timeold / (24 * 60 * 60 * 1000);\n daysold = Math.floor(e_daysold);\n e_hrsold = (e_daysold - daysold) * 24;\n hrsold = Math.floor(e_hrsold);\n e_minsold = (e_hrsold - hrsold) * 60;\n minsold = Math.floor(e_minsold)\n seconds = Math.floor((e_minsold - minsold) * 60);\n alivetime_days.html(daysold)\n alivetime_hours.html(hrsold)\n alivetime_minutes.html(minsold)\n alivetime_seconds.html(seconds)\n // alivetime.html(daysold + \" 天 \" + hrsold + \" 小时 \" + minsold + \" 分 \" + seconds + \" 秒\");\n }\n alive_time();\n\n /**\n * Calendar plugin\n **/\n var calendarScale = $(\"meta[property='calendar-scale']\").attr('content');\n var calendarScheme = $(\"meta[property='calendar-scheme']\").attr('content');\n var calendarColor = $(\"meta[property='calendar-color']\").attr('content');\n var cal_color = { 'type': 'threshold', 'domain': [4, 6, 8] };\n var d3Colors = ['blues', 'greens', 'greys', 'oranges', 'purples', 'reds', 'bugn', 'bupu', 'gnbu', 'orrd', 'pubu', 'pubugn', 'purd', 'rdpu', 'ylgn', 'ylgnbu', 'ylorbr', 'ylorrd', 'cividis', 'inferno', 'magma', 'plasma', 'viridis', 'cubehelix', 'turbo', 'warm', 'cool', 'brbg', 'prgn', 'piyg', 'puor', 'rdbu', 'rdgy', 'rdylbu', 'rdylgn', 'spectral', 'burd', 'buylrd', 'rainbow', 'sinebow']\n if (calendarScheme !== \"null\") {\n if (d3Colors.includes(calendarScheme)) {\n cal_color.scheme = calendarScheme\n } else {\n cal_color.range = ['#9be9a8', '#40c463', '#30a14e', '#216e39']\n console.log(\"'\" + calendarScheme + \"' is not supported. Please check it in https://cal-heatmap.com/!\")\n }\n } else if (calendarColor !== \"null\") {\n cal_color.range = calendarColor\n } else {\n cal_color.range = ['#9be9a8', '#40c463', '#30a14e', '#216e39']\n }\n today = new Date();\n year = today.getFullYear();\n month = today.getMonth() + 1;\n day = today.getDate();\n endDay = year + '-' + (\"0\" + month).slice(-2) + '-' + (\"0\" + day).slice(-2);\n locales = { \"zh-Hans\": \"zh\", \"zh-Hant\": \"zh-tw\", \"en\": \"en\", \"ja\": \"ja\" };\n\n axios.get(baseurl + \"/stats.json\").then(res => {\n stats_data = res.data;\n if ($(\"#cal-heatmap\").length > 0) {\n var cal = new CalHeatmap();\n selectors = {\n 'cal': '#cal-heatmap',\n 'legend': '#ex-ghDay-legend',\n 'prev': '#ex-ghDay-prev',\n 'next': '#ex-ghDay-next',\n 'today': '#ex-ghDay-today',\n }\n cal = makeCalendar(cal, selectors, calendarScale);\n }\n if ($(\"#archive-heatmap\").length > 0) {\n var cal2 = new CalHeatmap();\n selectors2 = {\n 'cal': '#archive-heatmap',\n 'legend': '#ex-ghDay-legend2',\n 'prev': '#ex-ghDay-prev2',\n 'next': '#ex-ghDay-next2',\n 'today': '#ex-ghDay-today2',\n }\n cal2 = makeCalendar(cal2, selectors2, \"day\", \"True\")\n }\n }).catch(function (error) {\n console.log(\"'stats.json' is not found. Calendar will be abnormal. Please make sure it exits.\");\n });\n\n\n function makeCalendar(cal, selectors, by, archive = \"False\") {\n var paras = {}\n var options = [[\n Tooltip,\n {\n text: function (date, value, dayjsDate) {\n if (value == 1) {\n return value + ' contribution on ' + dayjsDate.format(paras.format);\n }\n return (\n (value ? value + ' contributions' : 'No contribution') + ' on ' + dayjsDate.format(paras.format)\n );\n },\n },\n ], [\n LegendLite,\n {\n includeBlank: true,\n itemSelector: selectors.legend,\n radius: 3,\n width: 10,\n height: 10,\n gutter: 2,\n },\n ]]\n if (by == \"month\") {\n const xMonth = function (DateHelper) {\n return {\n name: 'xMonth',\n allowedDomainType: [\"year\"],\n rowsCount: () => 3,\n columnsCount: () => 4,\n mapping: (startTimestamp, endTimestamp) => DateHelper.intervals(\n 'month',\n startTimestamp,\n DateHelper.date(endTimestamp)\n ).map((ts) => ({\n t: ts,\n x: DateHelper.date(ts).month() % 4,\n y: parseInt(DateHelper.date(ts).month() / 4),\n })),\n extractUnit: (ts) => DateHelper.date(ts).startOf('month').valueOf(),\n };\n };\n cal.addTemplates(xMonth);\n var paras = {\n 'format': 'YYYY-MM',\n 'domain': {\n 'type': 'year',\n 'gutter': 5,\n 'label': { 'text': (ts) => dayjs(ts).format(\"YYYY\"), 'align': 'middle' }\n },\n 'subDomain': { 'type': 'xMonth', 'width': 60, 'height': 36, 'gutter': 5, 'radius': 3 },\n 'range': 1,\n };\n var start_date = new Date(dayjs(endDay).startOf('year').add(1, 'month'))\n } else if (by == \"year\") {\n const xYear = function (DateHelper) {\n return {\n name: 'xYear',\n allowedDomainType: [\"year\"],\n rowsCount: () => 1,\n columnsCount: () => 1,\n mapping: (startTimestamp, endTimestamp) => DateHelper.intervals(\n 'year',\n startTimestamp,\n DateHelper.date(endTimestamp)\n ).map((ts, index) => ({\n t: ts,\n x: index,\n y: 0,\n })),\n extractUnit: (ts) => DateHelper.date(ts).startOf('year').valueOf(),\n };\n };\n cal.addTemplates(xYear);\n var paras = {\n 'format': 'YYYY',\n 'domain': { 'type': 'year', 'gutter': 5, 'label': { 'text': 'YYYY', 'align': 'middle' } },\n 'subDomain': { 'type': 'xYear', 'width': 36, 'height': 36, 'gutter': 5, 'radius': 3 },\n 'range': 6,\n };\n if (archive == \"False\") {\n paras.range = parseInt($(\"#cal-heatmap\").width() / 40)\n }\n var start_date = new Date(dayjs(endDay).subtract(paras.range - 1, 'year'))\n } else {\n var paras = {\n 'format': 'YYYY-MM-DD',\n 'domain': { 'type': 'month', 'gutter': 5, 'label': { 'text': 'MMM', 'align': 'start' } },\n 'subDomain': { 'type': 'ghDay', 'width': 13, 'height': 13, 'gutter': 5, 'radius': 3 },\n 'range': 3,\n };\n var start_date = new Date(dayjs(endDay).subtract(paras.range - 1, 'month'))\n options[2] = [\n CalendarLabel,\n {\n width: 30,\n textAlign: 'start',\n text: () => dayjs.weekdaysShort().map((d, i) => (i % 2 == 0 ? '' : d)),\n padding: [25, 0, 0, 0],\n },\n ];\n }\n if (archive == \"True\") {\n postWidth = $(\".post-content\").width()\n if (postWidth >= 633) {\n paras.range = 12\n } else if (postWidth >= 400) {\n paras.range = 8\n } else if (postWidth >= 300) {\n paras.range = 6\n } else {\n paras.range = 3\n }\n paras.domain.gutter = 2\n paras.subDomain.width = 9\n paras.subDomain.height = 9\n paras.subDomain.gutter = 2\n paras.subDomain.radius = 2\n start_date = new Date(dayjs(endDay).subtract(paras.range - 1, 'month'))\n }\n if (by == \"month\") {\n var source_data = stats_data.calendar.by_month\n } else if (by == \"year\") {\n var source_data = stats_data.calendar.by_year\n } else {\n var source_data = stats_data.calendar.by_day\n }\n cal.paint(\n {\n itemSelector: selectors.cal,\n domain: {\n type: paras.domain.type,\n gutter: paras.domain.gutter,\n label: {\n text: paras.domain.label.text,\n textAlign: paras.domain.label.align,\n position: 'top'\n }\n },\n subDomain: {\n type: paras.subDomain.type,\n gutter: paras.subDomain.gutter,\n width: paras.subDomain.width,\n height: paras.subDomain.height,\n radius: paras.subDomain.radius,\n label: null\n },\n date: {\n start: start_date,\n max: new Date(endDay),\n highlight: [new Date(endDay)],\n locale: locales[lang]\n },\n range: paras.range,\n data: { source: source_data, x: 'date', y: 'count' },\n scale: { color: cal_color }\n },\n options\n );\n $(selectors.prev).on('click', function (e) {\n e.preventDefault();\n cal.previous();\n });\n $(selectors.next).on('click', function (e) {\n e.preventDefault();\n cal.next();\n });\n $(selectors.today).on('click', function (e) {\n e.preventDefault();\n cal.jumpTo(new Date(endDay));\n });\n return cal;\n }\n});\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))"],"names":["$","document","ready","body","addEventListener","passive","nav","baseurl","attr","lang","logo","themeStyle","css","getCookie","removeClass","addClass","on","setCookie","wrap","e","slideToggle","slideUp","stopPropagation","not","this","children","toggleClass","window","width","headerHeight","header","outerHeight","navText","find","scFlag","scrollTop","scroll","navClassName","hasClass","clickTOC","clickSubmenu","Search","fn","delay","timer","input","result","focus","show","keyup","autoComplete","ctx","args","arguments","clearTimeout","setTimeout","apply","click","target","id","className","hide","locateCatelogList","alis","sidebar_alis","parent","scroll_height","i","length","a_height","offset","top","t_height","cname","name","ca","cookie","split","c","trim","indexOf","substring","cvalue","exdays","d","Date","setTime","getTime","expires","toGMTString","changeMode","mode","DISQUS","reset","reload","changeGiscusTheme","bind","animate","each","n","height","rn","fadeIn","img","container","imgHeight","containerHeight","marginLeft","marginTop","postCover","removeAttr","total","parseInt","val","current","baseUrl","link_html","j","html","pagination","prototype","keywords","value","toLowerCase","jsonfile","getJSON","done","data","item","title","tags","url","hour","getHours","nightMode","str","txt","getSelection","toString","location","href","clipboardData","originalEvent","setData","preventDefault","currentId","toUpperCase","text","before","after","clipButton","ClipboardJS","clearSelection","hover","finish","event","next","mermaid","init","undefined","classList","contains","nodeName","src","alivetime_days","alivetime_hours","alivetime_minutes","alivetime_seconds","alive_time","alivestart","BirthDay","today","timeold","secondsold","Math","floor","e_daysold","daysold","e_hrsold","hrsold","e_minsold","minsold","seconds","calendarScale","calendarScheme","calendarColor","cal_color","makeCalendar","cal","selectors","by","archive","paras","options","Tooltip","date","dayjsDate","format","LegendLite","includeBlank","itemSelector","legend","radius","gutter","xMonth","DateHelper","allowedDomainType","rowsCount","columnsCount","mapping","startTimestamp","endTimestamp","intervals","map","ts","t","x","month","y","extractUnit","startOf","valueOf","addTemplates","dayjs","start_date","endDay","add","xYear","index","range","subtract","CalendarLabel","textAlign","weekdaysShort","padding","postWidth","domain","subDomain","source_data","stats_data","calendar","by_month","by_year","by_day","paint","type","label","align","position","start","max","highlight","locale","locales","source","scale","color","prev","previous","jumpTo","includes","scheme","console","log","year","getFullYear","getMonth","day","getDate","slice","axios","get","then","res","CalHeatmap","cal2","selectors2","catch","error","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","exports","module","__webpack_modules__","getter","__esModule","a","definition","key","o","Object","defineProperty","enumerable","obj","prop","hasOwnProperty","call"],"sourceRoot":""}