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8O,GAAKwD,EAAMxD,IAAO,GAAKwD,GAAOvD,CACzC,EAGA+B,EAAIyB,WAAa,GACjBzB,EAAI0B,YAAc,GAElB9D,EAAO/X,QAAU,SAAUqV,EAAS+E,GAClC,GAAI/E,QACF,MAAM,IAAIhI,MAAM,oBAAsBgI,GAExC,IAAIyG,EAAc7D,EAAMa,aAAaqB,EAAI9E,EAAS+E,IAClD,OAAOA,GAAWA,EAAQ2B,QAAUD,EAChC1B,GAAWA,EAAQ4B,SAAW5E,EAAIE,cAAcwE,GAChD7D,EAAMc,WAAW+C,EACvB","sources":["webpack://sakurairo-scripts/./node_modules/.pnpm/@mui+utils@5.11.13/node_modules/@mui/utils/debounce.js","webpack://sakurairo-scripts/./src/page/global-func.js","webpack://sakurairo-scripts/./src/page/article_attach.ts","webpack://sakurairo-scripts/./src/page/gravatar.ts","webpack://sakurairo-scripts/./src/page/getqqinfo.js","webpack://sakurairo-scripts/./src/page/AddComment.ts","webpack://sakurairo-scripts/./src/page/code_highlight.js","webpack://sakurairo-scripts/./src/page/bangumi.ts","webpack://sakurairo-scripts/./src/page/index.js","webpack://sakurairo-scripts/./node_modules/.pnpm/charenc@0.0.2/node_modules/charenc/charenc.js","webpack://sakurairo-scripts/./node_modules/.pnpm/crypt@0.0.2/node_modules/crypt/crypt.js","webpack://sakurairo-scripts/./node_modules/.pnpm/is-buffer@1.1.6/node_modules/is-buffer/index.js","webpack://sakurairo-scripts/./node_modules/.pnpm/md5@2.3.0/node_modules/md5/md5.js"],"sourcesContent":["\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = debounce;\n// Corresponds to 10 frames at 60 Hz.\n// A few bytes payload overhead when lodash/debounce is ~3 kB and debounce ~300 B.\nfunction debounce(func, wait = 166) {\n let timeout;\n function debounced(...args) {\n const later = () => {\n func.apply(this, args);\n };\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n }\n debounced.clear = () => {\n clearTimeout(timeout);\n };\n return debounced;\n}","\r\nconst motionEles = [\".bili\", \".menhera\", \".tieba\"];\r\nfunction motionSwitch(ele) {\r\n for (let i = 0; i < motionEles.length; i++) {\r\n document.querySelector(motionEles[i] + '-bar').classList.remove('on-hover');\r\n document.querySelector(motionEles[i] + '-container').style.display = 'none';\r\n }\r\n document.querySelector(ele + '-bar').classList.add(\"on-hover\");\r\n document.querySelector(ele + '-container').style.display = 'block';\r\n}\r\nfunction grin(tag, type, before, after) {\r\n let myField;\r\n switch (type) {\r\n case \"custom\": tag = before + tag + after; break;\r\n case \"Img\": tag = '[img]' + tag + '[/img]'; break;\r\n case \"Math\": tag = ' {{' + tag + '}} '; break;\r\n case \"tieba\": tag = ' ::' + tag + ':: '; break;\r\n default: tag = ' :' + tag + ': ';\r\n }\r\n if (document.getElementById('comment') && document.getElementById('comment').type == 'textarea') {\r\n myField = document.getElementById('comment');\r\n } else {\r\n return false;\r\n }\r\n if (document.selection) {\r\n myField.focus();\r\n sel = document.selection.createRange();\r\n sel.text = tag;\r\n myField.focus();\r\n } else if (myField.selectionStart || myField.selectionStart == '0') {\r\n let startPos = myField.selectionStart,\r\n endPos = myField.selectionEnd,\r\n cursorPos = endPos;\r\n myField.value = myField.value.substring(0, startPos) + tag + myField.value.substring(endPos, myField.value.length);\r\n cursorPos += tag.length;\r\n myField.focus();\r\n myField.selectionStart = cursorPos;\r\n myField.selectionEnd = cursorPos;\r\n } else {\r\n myField.value += tag;\r\n myField.focus();\r\n }\r\n}\r\nwindow.motionSwitch = motionSwitch\r\nwindow.grin = grin","import { loadCSS } from 'fg-loadcss';\nimport { slideToggle } from '../common/util';\nimport { resolvePath, importExternal } from '../common/npmLib';\nfunction collapse() {\n //收缩、展开\n /* jQuery(document).ready(\n function(jQuery){\n jQuery('.collapseButton').click(function(){\n jQuery(this).parent().parent().find('.xContent').slideToggle('slow');\n });\n }) */\n const collapseButtons = document.getElementsByClassName('collapseButton');\n if (collapseButtons.length > 0) {\n const collapseListener = (e) => {\n slideToggle(e.target.parentNode.parentNode.parentNode.querySelector(\".xContent\"));\n // e.parentNode.parentNode.querySelector(\".xContent\")\n };\n for (const ele of collapseButtons) {\n ele.addEventListener(\"click\", collapseListener);\n }\n // import('jquery').then(({ default: jQuery }) => {\n // jQuery('.collapseButton').on(\"click\", function () {\n // jQuery(this).parent().parent().find('.xContent').slideToggle('slow');\n // })\n // })\n }\n}\nlet lightBoxCSS;\nasync function lightbox() {\n //init lightbox\n if (_iro.baguetteBoxON) {\n if (!lightBoxCSS)\n lightBoxCSS = loadCSS(resolvePath('dist/baguetteBox.min.css', 'baguettebox.js', '1.11.1'));\n //@ts-ignore\n const { default: baguetteBox } = await import('baguettebox.js');\n baguetteBox.run('.entry-content', {\n captions: function (element) {\n return element.getElementsByTagName('img')[0].alt;\n },\n ignoreClass: 'fancybox',\n });\n }\n else if (_iro.fancybox) {\n if (!lightBoxCSS)\n lightBoxCSS = loadCSS(resolvePath('dist/jquery.fancybox.min.css', '@fancyapps/fancybox', '3.5.7'));\n if (!((window.jQuery instanceof Function) || (window.$ instanceof Function))) {\n if (_iro.ext_shared_lib) {\n importExternal('dist/jquery.slim.min.js', 'jquery');\n }\n else {\n //@ts-ignore\n const { default: jQuery } = await import('jquery');\n window.$ = jQuery;\n window.jQuery = jQuery;\n }\n }\n if (_iro.ext_shared_lib) {\n importExternal('dist/jquery.fancybox.min.js', '@fancyapps/fancybox');\n }\n else {\n //@ts-ignore\n import('@fancyapps/fancybox');\n }\n }\n else if (_iro.lightGallery) {\n //lightGallery的umd导入有点问题\n /* if (_iro.ext_shared_lib) {\n if (!window.lightGallery) {\n loadCSS(resolvePath('css/lightgallery-bundle.min.css', 'lightgallery', '2.3.0'))\n await importExternal('lightgallery.umd.js', 'lightgallery')\n }\n const { plugins } = _iro.lightGallery\n if (plugins) {\n (await Promise\n .allSettled(\n plugins.map((name: string) => importExternal('plugins/' + solvePluginName(name)+'.umd.js', 'lightgallery'))\n ))\n .map(handleResult)\n }\n window.lightGallery(\n document.querySelector('.entry-content'),\n _iro.lightGallery);\n } else {\n //@ts-ignore\n const { default: initLightGallery } = await import('./lightGallery/import')\n initLightGallery()\n } */\n const { default: initLightGallery } = await import('./lightGallery/import');\n initLightGallery();\n }\n}\nasync function math() {\n if (document.getElementsByTagName('math').length > 0) {\n if (!('MathJax' in window)) {\n //@ts-ignore\n window.MathJax = {\n svg: {\n fontCache: 'global'\n }, startup: {\n typeset: false, // Perform initial typeset?\n }, chtml: {\n fontURL: resolvePath('es5/output/chtml/fonts/woff-v2', 'mathjax', '2.3.0'),\n mathmlSpacing: true // true for MathML spacing rules, false for TeX rules\n }\n };\n }\n //@ts-ignore\n await import('mathjax/es5/mml-chtml');\n //@ts-ignore\n window.MathJax.typeset();\n }\n}\nexport default function article_attach() {\n collapse();\n lightbox();\n math();\n}\n","import MD5 from 'md5';\n/**\n * Gravatar\n * from a6cd66c 11.third-part-functions.js\n */\nexport const get_gravatar = (email, size = 80) => 'https://' + _iro.gravatar_url + '/' + MD5(email) + '.jpg?s=' + size + '&d=mm';\n","import { buildAPI } from '../common/util'\r\nimport { get_gravatar } from './gravatar'\r\n\r\nexport default function getqqinfo() {\r\n let is_get_by_qq = false;\r\n const i_author = document.querySelector(\"input#author\"),\r\n i_qq = document.querySelector(\"input#qq\"),\r\n i_email = document.querySelector(\"input#email\"),\r\n i_url = document.querySelector(\"input#url\"),\r\n qq_check = document.querySelector(\".qq-check\"),\r\n gravatar_check = document.querySelector(\".gravatar-check\"),\r\n user_avatar_img = document.querySelector(\"div.comment-user-avatar img\");\r\n if (i_author == null) return;\r\n if (!localStorage.getItem('user_qq') && !localStorage.getItem('user_qq_email') && !localStorage.getItem('user_author')) {\r\n i_qq.value = i_author.value = i_email.value = i_url.value = \"\";\r\n }\r\n if (localStorage.getItem('user_avatar') && localStorage.getItem('user_qq') && localStorage.getItem('user_qq_email')) {\r\n user_avatar_img.setAttribute('src', localStorage.getItem('user_avatar'));\r\n i_author.value = localStorage.getItem('user_author');\r\n i_email.value = localStorage.getItem('user_qq') + '@qq.com';\r\n i_qq.value = localStorage.getItem('user_qq');\r\n if (_iro.qzone_autocomplete) {\r\n i_url.value = 'https://user.qzone.qq.com/' + localStorage.getItem('user_qq');\r\n }\r\n if (i_qq.value) {\r\n qq_check.style.display = \"block\";\r\n gravatar_check.style.display = \"none\";\r\n }\r\n }\r\n let emailAddressFlag = i_email.value;\r\n //var emailAddressFlag = cached.filter('#email').val();\r\n i_author.addEventListener('blur', () => {\r\n // })\r\n //cached.filter('#author').on('blur', function () {\r\n const qq = i_author.value,\r\n reg_QQ = /^[1-9]\\d{4,9}$/;\r\n if (reg_QQ.test(qq)) {\r\n const whileFailed = () => {\r\n i_qq.value = '';\r\n qq_check.style.display = 'none';\r\n gravatar_check.style.display = 'block';\r\n user_avatar_img.setAttribute('src', get_gravatar(i_email.value, 80));\r\n localStorage.setItem('user_qq', '');\r\n localStorage.setItem('user_email', i_email.value);\r\n localStorage.setItem('user_avatar', get_gravatar(i_email.value, 80));\r\n /***/\r\n /* qq.value = email.value = url.value = \"\";\r\n if (!qq.value) {\r\n qq_check.style.display = 'none';\r\n gravatar_check.style.display = 'block';\r\n setCookie('user_qq', '', 30);\r\n user_avatar_img.setAttribute('src', get_gravatar(email.value, 80));\r\n setCookie('user_avatar', get_gravatar(email.value, 80), 30);\r\n } */\r\n }\r\n fetch(buildAPI(_iro.qq_api_url, { qq: qq }))\r\n .then(async resp => {\r\n if (resp.ok) {\r\n //success\r\n try {\r\n const data = await resp.json()\r\n i_author.value = data.name;\r\n i_email.value = qq.trim() + '@qq.com';\r\n if (_iro.qzone_autocomplete) {\r\n i_url.value = 'https://user.qzone.qq.com/' + qq.trim();\r\n }\r\n user_avatar_img.setAttribute('src', 'https://q2.qlogo.cn/headimg_dl?dst_uin=' + qq + '&spec=100');\r\n is_get_by_qq = true;\r\n i_qq.value = qq.trim();\r\n if (i_qq.value) {\r\n qq_check.style.display = 'block';\r\n gravatar_check.style.display = 'none';\r\n }\r\n localStorage.setItem('user_author', data.name);\r\n localStorage.setItem('user_qq', qq);\r\n localStorage.setItem('is_user_qq', 'yes');\r\n localStorage.setItem('user_qq_email', qq + '@qq.com');\r\n localStorage.setItem('user_email', qq + '@qq.com');\r\n emailAddressFlag = i_email.value;\r\n /***/\r\n user_avatar_img.setAttribute('src', data.avatar);\r\n localStorage.setItem('user_avatar', data.avatar);\r\n } catch (e) {\r\n console.warn(e)\r\n whileFailed()\r\n }\r\n } else {\r\n whileFailed()\r\n }\r\n })\r\n }\r\n });\r\n if (localStorage.getItem('user_avatar') && localStorage.getItem('user_email') && localStorage.getItem('is_user_qq') == 'no' && !localStorage.getItem('user_qq_email')) {\r\n user_avatar_img.setAttribute(\"src\", localStorage.getItem('user_avatar'));\r\n i_email.value = localStorage.getItem('user_mail');\r\n i_qq.value = '';\r\n if (!i_qq.value) {\r\n qq_check.style.display = \"none\";\r\n gravatar_check.style.display = \"block\";\r\n }\r\n // $('div.comment-user-avatar img').attr('src', getCookie('user_avatar'));\r\n // cached.filter('#email').val(getCookie('user_email'));\r\n // cached.filter('#qq').val('');\r\n // if (!cached.filter('#qq').val()) {\r\n // $('.qq-check').css('display', 'none');\r\n // $('.gravatar-check').css('display', 'block');\r\n // }\r\n }\r\n i_email.addEventListener(\"blur\", function () {\r\n //cached.filter('#email').on('blur', function () {\r\n let emailAddress = i_email.value;\r\n // var emailAddress = cached.filter('#email').val();\r\n if ((is_get_by_qq == false || emailAddressFlag != emailAddress) && emailAddress != '') {\r\n user_avatar_img.setAttribute(\"src\", get_gravatar(emailAddress, 80));\r\n //$('div.comment-user-avatar img').attr('src', get_gravatar(emailAddress, 80));\r\n localStorage.setItem('user_avatar', get_gravatar(emailAddress, 80));\r\n localStorage.setItem('user_email', emailAddress);\r\n localStorage.setItem('user_qq_email', '');\r\n localStorage.setItem('is_user_qq', 'no');\r\n i_qq.value = '';\r\n // cached.filter('#qq').val('');\r\n if (!i_qq.value) {\r\n qq_check.style.display = \"none\";\r\n gravatar_check.style.display = \"block\";\r\n // $('.qq-check').css('display', 'none');\r\n // $('.gravatar-check').css('display', 'block');\r\n }\r\n }\r\n });\r\n if (localStorage.getItem('user_url')) {\r\n i_url.value = localStorage.getItem(\"user_url\");\r\n // cached.filter('#url').val(getCookie('user_url'));\r\n }\r\n i_url.addEventListener(\"blur\", function () {\r\n //cached.filter('#url').on('blur', function () {\r\n let URL_Address = i_url.value;\r\n i_url.value = URL_Address;\r\n // var URL_Address = cached.filter('#url').val();\r\n // cached.filter('#url').val(URL_Address);\r\n localStorage.setItem('user_url', URL_Address);\r\n });\r\n if (localStorage.getItem('user_author')) {\r\n i_author.value = localStorage.getItem('user_author');\r\n // cached.filter('#author').val(getCookie('user_author'));\r\n }\r\n i_author.addEventListener(\"blur\", function () {\r\n // cached.filter('#author').on('blur', function () {\r\n let user_name = i_author.value;\r\n i_author.value = user_name;\r\n // var user_name = cached.filter('#author').val();\r\n // cached.filter('#author').val(user_name);\r\n localStorage.setItem('user_author', user_name);\r\n });\r\n}","const AddComment = {\n respondId: '',\n moveForm: function (commId, parentId, respondId) {\n const comm = document.getElementById(commId), respond = document.getElementById(respondId), cancel = document.getElementById('cancel-comment-reply-link'), parent = document.getElementById('comment_parent');\n //post = document.getElementById('comment_post_ID');\n this.respondId = respondId;\n if (!document.getElementById('wp-temp-form-div')) {\n const div = document.createElement('div');\n div.id = 'wp-temp-form-div';\n div.style.display = 'none';\n respond.parentNode.insertBefore(div, respond);\n }\n if (!comm) {\n const temp = document.getElementById('wp-temp-form-div');\n document.getElementById('comment_parent').value = '0';\n temp.parentNode.insertBefore(respond, temp);\n temp.remove();\n }\n else {\n comm.parentNode.insertBefore(respond, comm.nextSibling);\n }\n const _respond = document.getElementById(\"respond\");\n window.scrollTo({\n top: _respond.getBoundingClientRect().top + window.pageYOffset - _respond.clientTop - 100,\n behavior: \"smooth\"\n });\n parent.value = parentId;\n cancel.style.display = '';\n cancel.onclick = function (e) {\n const t = AddComment, temp = document.getElementById('wp-temp-form-div'), respond = document.getElementById(t.respondId);\n document.getElementById('comment_parent').value = '0';\n if (temp && respond) {\n temp.parentNode.insertBefore(respond, temp);\n temp.remove();\n //temp.parentNode.removeChild(temp);\n }\n this.style.display = 'none';\n this.onclick = null;\n return false;\n };\n try {\n document.getElementById('comment').focus();\n }\n catch (e) { }\n return false;\n },\n};\nexport default AddComment;\n","import { isInDarkMode } from '../app/darkmode'\r\nimport { loadCSS } from 'fg-loadcss'\r\nimport { importExternal, resolvePath } from '../common/npmLib';\r\nconst PRISM_VERSION = PKG_INFO['prismjs']\r\nconst attributes = {\r\n 'autocomplete': 'off',\r\n 'autocorrect': 'off',\r\n 'autocapitalize': 'off',\r\n 'spellcheck': 'false',\r\n 'contenteditable': 'false',\r\n 'design': 'by Mashiro'\r\n}\r\nfunction gen_top_bar(pre, code_a) {\r\n if (!pre.children[0]) return\r\n let lang = 'text'\r\n const className = pre.children[0].className\r\n const matchResult = className.match(/language-(\\w+)/i)\r\n if (matchResult) {\r\n lang = matchResult[1]\r\n }\r\n pre.classList.add(\"highlight-wrap\");\r\n for (const t in attributes) {\r\n pre.setAttribute(t, attributes[t]);\r\n }\r\n code_a.setAttribute('data-rel', lang.toUpperCase());\r\n}\r\nasync function importHighlightjs() {\r\n try {\r\n if (!window.hljs) {\r\n window.hljs = (await import('highlight.js')).default\r\n await import('highlightjs-line-numbers.js')\r\n }\r\n } catch (e) {\r\n console.warn(e)\r\n }\r\n}\r\nconst hljs_click_callback = (e) => {\r\n const element = e.target\r\n if (!element.classList.contains(\"highlight-wrap\")) return;\r\n if (element.classList.contains('code-block-fullscreen')) {\r\n element.remove()\r\n } else {\r\n const cloneElement = element.cloneNode(true)\r\n cloneElement.classList.toggle(\"code-block-fullscreen\")\r\n document.body.append(cloneElement)\r\n }\r\n document.documentElement.classList.toggle('code-block-fullscreen-html-scroll');\r\n}\r\nexport function deattachHljsCallback() {\r\n document.body.removeEventListener(\"click\", hljs_click_callback)\r\n}\r\nexport async function hljs_process(pre, code) {\r\n try {\r\n await importHighlightjs()\r\n for (let i = 0; i < code.length; i++) {\r\n hljs.highlightElement(code[i]);\r\n }\r\n for (let i = 0; i < pre.length; i++) {\r\n gen_top_bar(pre[i], code[i]);\r\n }\r\n hljs.initLineNumbersOnLoad();\r\n document.body.addEventListener(\"click\", hljs_click_callback)\r\n } catch (e) {\r\n console.warn(e)\r\n }\r\n}\r\n//Prism\r\nconst PrismBaseUrl = _iro.code_highlight_prism?.autoload_path || resolvePath('', 'prismjs', PRISM_VERSION)\r\nlet currentPrismThemeCSS = undefined\r\nconst themeCSS = (() => {\r\n const { light, dark } = _iro.code_highlight_prism?.theme || {}\r\n const theme = {\r\n light: light || 'themes/prism.min.css',\r\n dark: dark || 'themes/prism-tomorrow.min.css',\r\n }\r\n for (const theme_name in theme) {\r\n theme[theme_name] = new URL(theme[theme_name], PrismBaseUrl).toString()\r\n }\r\n return theme\r\n})()\r\n\r\nfunction loadPrismCSS(darkmodeOn) {\r\n const nextCSSHref = darkmodeOn ? themeCSS.dark : themeCSS.light\r\n if (currentPrismThemeCSS) {\r\n if (currentPrismThemeCSS.href !== nextCSSHref) {\r\n const nextCSSElement = loadCSS(nextCSSHref)\r\n nextCSSElement.addEventListener('load', () => {\r\n currentPrismThemeCSS.remove()\r\n currentPrismThemeCSS = nextCSSElement\r\n })\r\n }\r\n } else {\r\n currentPrismThemeCSS = loadCSS(nextCSSHref)\r\n }\r\n}\r\n\r\nconst prism_darkmode_callback = (e) => {\r\n loadPrismCSS(e.detail)\r\n}\r\nexport const deattachPrismCallback = () => document.removeEventListener('darkmode', prism_darkmode_callback)\r\nasync function importPrismJS() {\r\n try {\r\n if (!window.Prism) {\r\n loadPrismCSS(isInDarkMode())\r\n document.addEventListener('darkmode', prism_darkmode_callback)\r\n //必备插件全家桶\r\n loadCSS(new URL('plugins/toolbar/prism-toolbar.min.css', PrismBaseUrl).toString())\r\n loadCSS(new URL('plugins/previewers/prism-previewers.min.css', PrismBaseUrl).toString())\r\n if (_iro.ext_shared_lib) {\r\n await Promise.all([importExternal('components/prism-core.min.js', 'prismjs', PRISM_VERSION),\r\n importExternal('plugins/autoloader/prism-autoloader.min.js', 'prismjs', PRISM_VERSION),\r\n importExternal('plugins/toolbar/prism-toolbar.min.js', 'prismjs', PRISM_VERSION),\r\n importExternal('plugins/previewers/prism-previewers.min.js', 'prismjs', PRISM_VERSION),\r\n importExternal('plugins/show-language/prism-show-language.min.js', 'prismjs', PRISM_VERSION)])\r\n } else await import('./prism_pack')\r\n Prism.plugins.autoloader.languages_path = new URL('components/', PrismBaseUrl).toString()\r\n }\r\n } catch (reason) {\r\n console.warn(reason)\r\n }\r\n}\r\nfunction loadPrismPluginLineNumbers() {\r\n loadCSS(new URL('plugins/line-numbers/prism-line-numbers.min.css', PrismBaseUrl).toString())\r\n if (_iro.ext_shared_lib) {\r\n return importExternal('plugins/line-numbers/prism-line-numbers.min.js', 'prismjs', PRISM_VERSION)\r\n } else {\r\n return import('prismjs/plugins/line-numbers/prism-line-numbers')\r\n }\r\n}\r\nfunction loadPrismMatchBraces() {\r\n loadCSS(new URL('plugins/match-braces/prism-match-braces.min.css', PrismBaseUrl).toString())\r\n if (_iro.ext_shared_lib) {\r\n return importExternal('plugins/match-braces/prism-match-braces.min.js', 'prismjs', PRISM_VERSION)\r\n } else {\r\n return import('prismjs/plugins/match-braces/prism-match-braces')\r\n }\r\n}\r\nfunction loadPrismCommandLine() {\r\n loadCSS(new URL('plugins/command-line/prism-command-line.css', PrismBaseUrl).toString())\r\n if (_iro.ext_shared_lib) {\r\n return importExternal('plugins/command-line/prism-command-line.min.js', 'prismjs', PRISM_VERSION)\r\n } else {\r\n return import('prismjs/plugins/command-line/prism-command-line')\r\n }\r\n}\r\n/**\r\n * \r\n * @param {NodeListOf<HTMLElement>} code document.querySelectorAll(\"pre code\")\r\n */\r\nexport async function prism_process(code) {\r\n try {\r\n let loadLineNumber = false\r\n let loadMatchBraces = false\r\n let loadCommandLine = false\r\n if (_iro.code_highlight_prism.line_number_all) {\r\n document.querySelector('.entry-content').classList.add('line-numbers')\r\n loadLineNumber = true\r\n }\r\n for (const ele of code) {\r\n if (ele.parentElement.classList.contains('line-numbers')) {\r\n loadLineNumber = true\r\n }\r\n if (ele.classList.contains('match-braces')) {\r\n loadMatchBraces = true\r\n }\r\n if (ele.dataset.prompt || ele.dataset.host || ele.dataset.user) {\r\n //cli\r\n loadCommandLine = true\r\n }\r\n }\r\n await Promise.all([\r\n importPrismJS(),\r\n loadLineNumber && loadPrismPluginLineNumbers(),\r\n loadMatchBraces && loadPrismMatchBraces(),\r\n loadCommandLine && loadPrismCommandLine()\r\n ])\r\n for (const ele of code) {\r\n Prism.highlightElement(ele)\r\n }\r\n Prism.plugins.fileHighlight && Prism.plugins.fileHighlight.highlight()\r\n } catch (error) {\r\n console.warn(error)\r\n }\r\n}","import { createButterbar } from \"../common/butterbar\";\nimport { lazyload } from 'lazyload';\nconst bgmlistener = (e) => {\n const target = e.target;\n if (target === document.querySelector(\"#bangumi-pagination a\")) {\n e.preventDefault();\n e.stopPropagation();\n if (target.classList.contains(\"loading\"))\n return;\n target.classList.add(\"loading\");\n target.textContent = \"\";\n fetch(target.dataset.href + \"&_wpnonce=\" + _iro.nonce, {\n method: \"POST\"\n })\n .then(async (res) => {\n const data = await res.json();\n if (res.ok) {\n document.getElementById(\"bangumi-pagination\").remove();\n document.querySelector(\".row\").insertAdjacentHTML('beforeend', data);\n //@ts-ignore\n lazyload();\n }\n else {\n throw Error(`Error,Status:${res.status}`);\n }\n })\n .catch(e => {\n console.error(e);\n createButterbar(e);\n target.classList.remove(\"loading\");\n target.innerHTML = '<i class=\"fa-solid fa-triangle-exclamation\"></i> ERROR ';\n });\n }\n};\nexport default function load_bangumi() {\n const sections = document.getElementsByTagName(\"section\");\n let _flag = false;\n for (let i = 0; i < sections.length; i++) {\n if (sections[i].classList.contains(\"bangumi\")) {\n _flag = true;\n break;\n }\n }\n if (_flag) {\n document.addEventListener('click', bgmlistener);\n }\n}\n","import article_attach from './article_attach'\nimport { ready, slideToggle, buildAPI } from '../common/util'\nimport { lazyload } from 'lazyload'\nimport { createButterbar } from '../common/butterbar'\nimport './global-func'\nimport getqqinfo from './getqqinfo'\nimport addComment from './AddComment'\nimport { hljs_process, prism_process, deattachPrismCallback, deattachHljsCallback } from './code_highlight'\nimport { _$, __ } from '../common/sakurairo_global'\nimport load_bangumi from './bangumi'\nimport { importExternal } from '../common/npmLib'\nimport debounce from '@mui/utils/debounce'\nasync function code_highlight_style() {\n const pre = document.getElementsByTagName(\"pre\"),\n code = document.querySelectorAll(\"pre code\");\n if (!pre.length) {\n switch (_iro.code_highlight) {\n case 'hljs':\n deattachHljsCallback()\n return\n case 'prism':\n deattachPrismCallback()\n return\n default:\n }\n }\n switch (_iro.code_highlight) {\n case 'hljs':\n await hljs_process(pre, code)\n break\n case 'prism':\n await prism_process(code)\n break\n case 'custom': return\n default:\n console.warn(`_iro.code_highlight这咋填的是个${_iro.code_highlight}啊🤔`)\n }\n //copy_code_block\n if (code.length > 0) {\n for (let j = 0; j < code.length; j++) {\n code[j].setAttribute('id', 'code-block-' + j);\n code[j].insertAdjacentHTML('afterend', '<a class=\"copy-code\" href=\"javascript:\" data-clipboard-target=\"#code-block-' + j + '\" title=\"' + __(\"拷贝代码\") + '\"><i class=\"fa-regular fa-clipboard\"></i>');\n }\n if (_iro.ext_shared_lib) {\n await importExternal('dist/clipboard.min.js', 'clipboard')\n new ClipboardJS('.copy-code')\n } else {\n const ClipboardJS = (await import('clipboard')).default\n new ClipboardJS('.copy-code');\n }\n }\n}\nfunction click_to_view_image() {\n const comment_inline = document.getElementsByClassName('comment_inline_img');\n if (!comment_inline.length) return;\n document.getElementsByClassName(\"comments-main\")[0].addEventListener(\"click\", function (e) {\n if (e.target.classList.contains(\"comment_inline_img\")) {\n window.open(e.target.src);\n }\n })\n}\nfunction clean_upload_images() {\n document.getElementById(\"upload-img-show\").innerHTML = '';\n}\nfunction original_emoji_click() {\n const emoji = document.getElementsByClassName('emoji-item');\n if (!emoji.length) return;\n document.querySelector(\".menhera-container\").addEventListener(\"click\", function (e) {\n if (e.target.classList.contains(\"emoji-item\")) {\n grin(e.target.innerText, \"custom\", \"`\", \"` \");\n }\n })\n}\nfunction XCS() {\n const __list = 'commentwrap';\n const form = document.getElementById(\"commentform\")\n if (form) {\n let statusSubmitting = false\n form.addEventListener('submit', function (event) {\n event.stopPropagation()\n event.preventDefault();\n if (statusSubmitting) return\n const butterBarRef = createButterbar(__(\"提交中....\"), true)\n const form = new FormData(this)\n form.append('action', 'ajax_comment')\n statusSubmitting = true\n fetch(_iro.ajaxurl, {\n method: this.attributes.method.value,\n body: form\n }).then(async resp => {\n const data = await resp.text()\n if (resp.ok) {\n Array.from(document.getElementsByTagName('textarea'))\n .forEach((e) => e.value = '')\n const cancel = document.getElementById('cancel-comment-reply-link'),\n temp = document.getElementById('wp-temp-form-div'),\n respond = document.getElementById(addComment.respondId),\n //post = document.getElementById('comment_post_ID').value,\n parent = document.getElementById('comment_parent').value;\n if (parent != '0') {\n //jQuery('#respond').before('<ol class=\"children\">' + data + '</ol>');\n document.getElementById(\"respond\").insertAdjacentHTML('beforebegin', '<ol class=\"children\">' + data + '</ol>');\n } else if (!document.getElementsByClassName(__list).length) {\n if (_iro.formpostion == 'bottom') {\n document.getElementById(\"respond\").insertAdjacentHTML('beforebegin', '<ol class=\"' + __list + '\">' + data + '</ol>');\n //jQuery('#respond').before('<ol class=\"' + __list + '\">' + data + '</ol>');\n } else {\n document.getElementById(\"respond\").insertAdjacentHTML('afterend', '<ol class=\"' + __list + '\">' + data + '</ol>');\n //jQuery('#respond').after('<ol class=\"' + __list + '\">' + data + '</ol>');\n }\n } else {\n if (_iro.order == 'asc') {\n document.getElementsByClassName(\"commentwrap\")[1].insertAdjacentHTML('beforeend', data);\n //jQuery('.' + __list).append(data);\n } else {\n document.getElementsByClassName(\"commentwrap\")[1].insertAdjacentHTML('afterbegin', data);\n //jQuery('.' + __list).prepend(data);\n }\n }\n createButterbar(__(\"提交成功\"));\n document.dispatchEvent(new CustomEvent('ajax_comment_complete',))\n cancel.style.display = 'none';\n cancel.onclick = null;\n document.getElementById('comment_parent').value = '0';\n if (temp && respond) {\n temp.parentNode.insertBefore(respond, temp);\n temp.remove();\n //temp.parentNode.removeChild(temp)\n }\n } else {\n createButterbar(data || 'HTTP' + resp.status + ':' + resp.statusText);\n }\n }).catch(reason => {\n createButterbar(reason);\n }).finally(() => {\n butterBarRef.remove()\n statusSubmitting = false\n })\n /* jQuery.ajax({\n url: _iro.ajaxurl,\n data: jQuery(this).serialize() + \"&action=ajax_comment\",\n type: jQuery(this).attr('method'),\n beforeSend: createButterbar(\"提交中(Commiting)....\"),\n error: function (request) {\n var t = addComment;\n t.createButterbar(request.responseText);\n },\n success: function (data) {\n jQuery('textarea').each(function () {\n this.value = ''\n });\n var t = addComment,\n cancel = t.I('cancel-comment-reply-link'),\n temp = t.I('wp-temp-form-div'),\n respond = t.I(t.respondId),\n post = t.I('comment_post_ID').value,\n parent = t.I('comment_parent').value;\n if (parent != '0') {\n jQuery('#respond').before('<ol class=\"children\">' + data + '</ol>');\n } else if (!jQuery('.' + __list).length) {\n if (_iro.formpostion == 'bottom') {\n jQuery('#respond').before('<ol class=\"' + __list + '\">' + data + '</ol>');\n } else {\n jQuery('#respond').after('<ol class=\"' + __list + '\">' + data + '</ol>');\n }\n } else {\n if (_iro.order == 'asc') {\n jQuery('.' + __list).append(data);\n } else {\n jQuery('.' + __list).prepend(data);\n }\n }\n t.createButterbar(\"提交成功(Succeed)\");\n lazyload();\n code_highlight_style();\n click_to_view_image();\n clean_upload_images();\n cancel.style.display = 'none';\n cancel.onclick = null;\n t.I('comment_parent').value = '0';\n if (temp && respond) {\n temp.parentNode.insertBefore(respond, temp);\n temp.remove();\n //temp.parentNode.removeChild(temp)\n }\n }\n }); */\n })\n }\n}\n\nfunction XCP() {\n document.body.addEventListener('click', function (e) {\n if (e.target.parentNode == document.getElementById(\"comments-navi\") && e.target.nodeName.toLowerCase() == \"a\") {\n e.preventDefault();\n e.stopPropagation();\n let _this = e.target,\n path = _this.pathname,\n _xhr = new XMLHttpRequest();\n _xhr.open(\"GET\", _this.getAttribute('href'), true);\n _xhr.responseType = \"document\";\n _xhr.onloadstart = () => {\n let comments_navi = document.getElementById(\"comments-navi\"),\n commentwrap = document.querySelector(\"ul.commentwrap\"),\n loading_comments = document.getElementById(\"loading-comments\"),\n comments_list = document.getElementById(\"comments-list-title\");\n comments_navi.remove();\n commentwrap.remove();\n //comments_navi.parentNode.removeChild(comments_navi);\n //commentwrap.parentNode.removeChild(commentwrap);\n loading_comments.style.display = \"block\";\n slideToggle(loading_comments, 500, \"show\");\n window.scrollTo({\n top: comments_list.getBoundingClientRect().top + window.pageYOffset - comments_list.clientTop - 65,\n behavior: \"smooth\"\n });\n }\n _xhr.onreadystatechange = function () {\n if (_xhr.readyState == 4 && _xhr.status == 200) {\n let json = _xhr.response,\n result = json.querySelector(\"ul.commentwrap\"),\n nextlink = json.getElementById(\"comments-navi\"),\n loading_comments = document.getElementById(\"loading-comments\");\n slideToggle(loading_comments, 200, \"hide\");\n document.getElementById(\"loading-comments\").insertAdjacentHTML('afterend', result.outerHTML);\n document.querySelector(\"ul.commentwrap\").insertAdjacentHTML('afterend', nextlink.outerHTML);\n lazyload();\n if (window.gtag) {\n gtag('config', _iro.google_analytics_id, {\n 'page_path': path\n });\n }\n code_highlight_style();\n click_to_view_image();\n let commentwrap = document.querySelector(\"ul.commentwrap\");\n window.scrollTo({\n top: commentwrap && (commentwrap.getBoundingClientRect().top + window.pageYOffset - commentwrap.clientTop - 200),\n behavior: \"smooth\"\n });\n }\n }\n _xhr.send();\n }\n });\n}\nfunction sm() {\n let sm = document.getElementsByClassName('sm'),\n cm = document.querySelector(\".comments-main\");\n if (!sm.length) return;\n if (cm) {\n cm.addEventListener(\"click\", function (e) {\n if (e.target.classList.contains(\"comment-reply-link\")) {\n e.preventDefault();\n e.stopPropagation();\n let data_commentid = e.target.getAttribute(\"data-commentid\");\n addComment.moveForm(\"comment-\" + data_commentid, data_commentid, \"respond\", this.getAttribute(\"data-postid\"));\n }\n })\n cm.addEventListener(\"click\", (e) => {\n let list = e.target.parentNode;\n if (list.classList.contains(\"sm\")) {\n let msg = __(\"您真的要设为私密吗?\");\n if (confirm(msg) == true) {\n if (list.classList.contains('private_now')) {\n alert(__('您之前已设过私密评论'));\n return false;\n } else {\n list.classList.add('private_now');\n let idp = list.getAttribute(\"data-idp\"),\n actionp = list.getAttribute(\"data-actionp\"),\n rateHolderp = list.getElementsByClassName('has_set_private')[0];\n let ajax_data = \"action=siren_private&p_id=\" + idp + \"&p_action=\" + actionp;\n let request = new XMLHttpRequest();\n request.onreadystatechange = function () {\n if (this.readyState == 4 && this.status == 200) {\n rateHolderp.innerHTML = request.responseText;\n }\n };\n request.open('POST', _iro.ajaxurl, true);\n request.setRequestHeader(\"Content-type\", \"application/x-www-form-urlencoded\");\n request.send(ajax_data);\n return false;\n }\n }\n }\n })\n }\n}\nfunction throttling(fn, wait, maxTimelong) {\n let timeout = null,\n startTime = Date.parse(new Date);\n return function () {\n if (timeout !== null) clearTimeout(timeout);\n let curTime = Date.parse(new Date);\n if (curTime - startTime >= maxTimelong) {\n fn();\n startTime = curTime;\n } else {\n timeout = setTimeout(fn, wait);\n }\n }\n}\nfunction resizeTOC() {\n const toc_container = document.querySelector(\".toc-container\"),\n sc = document.querySelector(\".site-content\")\n if (toc_container && sc) {\n const resize = () => {\n toc_container.style.height = Math.min(sc.getBoundingClientRect()[\"height\"], document.documentElement.offsetHeight - toc_container.offsetTop) + \"px\";\n }\n resize()\n //TODO:性能\n window.addEventListener('resize', debounce(resize), { passive: true })\n document.addEventListener('scroll', throttling(resize, 200, 1000))\n }\n}\nfunction tableOfContentScroll(flag) {\n if (document.body.clientWidth <= 1200) {\n return;\n } else if (!document.querySelector(\"div.have-toc\") && !document.querySelector(\"div.has-toc\")) {\n let ele = document.getElementsByClassName(\"toc-container\")[0];\n if (ele) {\n ele.remove();\n ele = null;\n }\n } else {\n if (flag && document.getElementsByClassName('toc').length > 0) {\n import('tocbot').then(({ default: tocbot }) => {\n tocbot.init({\n tocSelector: '.toc',\n contentSelector: ['.entry-content', '.links'],\n headingSelector: 'h1,h2,h3,h4,h5',\n headingsOffset: heading_fix - window.innerHeight / 2,\n onClick: null\n });\n })\n const heading_fix = _iro.entry_content_style == \"sakurairo\" ? (document.querySelector(\"article.type-post\") ? (document.querySelector(\"div.pattern-attachment\") ? -75 : 200) : 375) : window.innerHeight / 2;\n const _els = document.querySelectorAll('.entry-content,.links');\n const idSet = new Set()\n let id = 1\n for (let i = 0; i < _els.length; i++) {\n let _el = _els[i].querySelectorAll('h1,h2,h3,h4,h5');\n for (const title of _el) {\n const innerText = encodeURIComponent(title.innerText.replace(' ', '-'))\n if (idSet.has(innerText)) {\n title.id = \"toc-head-\" + id++;\n } else {\n title.id = innerText\n idSet.add(innerText)\n }\n }\n }\n }\n }\n}\n/**\n * 上传图片提示\n */\nfunction attach_image() {\n let cached = document.getElementsByClassName(\"insert-image-tips\")[0],\n upload_img = document.getElementById('upload-img-file');\n if (!upload_img) return;\n upload_img.addEventListener(\"change\", (function () {\n if (this.files.length > 10) {\n createButterbar(__(\"每次上传上限为10张\"));\n return 0;\n }\n for (let i = 0; i < this.files.length; i++) {\n if (this.files[i].size >= 5242880) {\n alert(_$('图片上传大小限制为5 MB\\n\\n「{0}」\\n\\n这张图太大啦~请重新上传噢!', this.files[i].name));\n return;\n }\n }\n for (let i = 0; i < this.files.length; i++) {\n let f = this.files[i],\n formData = new FormData(),\n xhr = new XMLHttpRequest();\n formData.append('cmt_img_file', f);\n xhr.addEventListener('loadstart', function () {\n cached.innerHTML = '<i class=\"fa-solid fa-circle-notch fa-spin\"></i>';\n createButterbar(__(\"上传中...\"));\n });\n xhr.open(\"POST\", buildAPI(_iro.api + 'sakura/v1/image/upload'), true);\n xhr.send(formData);\n xhr.onreadystatechange = function () {\n if (xhr.readyState == 4 && (xhr.status == 200 || xhr.status == 304)) {\n cached.innerHTML = '<i class=\"fa-solid fa-check\"></i>';\n setTimeout(function () {\n cached.innerHTML = '<i class=\"fa-regular fa-image\"></i>';\n }, 1000);\n let res = JSON.parse(xhr.responseText);\n if (res.status == 200) {\n let get_the_url = res.proxy;\n document.getElementById(\"upload-img-show\").insertAdjacentHTML('afterend', '<img class=\"lazyload upload-image-preview\" src=\"' + _iro.loading_ph + '\" data-src=\"' + get_the_url + '\" onclick=\"window.open(\\'' + get_the_url + '\\')\" onerror=\"imgError(this)\" />');\n lazyload();\n createButterbar(__(\"图片上传成功~\"));\n grin(get_the_url, type = 'Img');\n } else {\n createButterbar(_$('上传失败!\\n文件名: {0}\\ncode: {1}\\n{2}', f.name, res.status, res.message), 3000)\n }\n } else if (xhr.readyState == 4) {\n cached.innerHTML = '<i class=\"fa-regular fa-clock\" aria-hidden=\"true\" style=\"color:red\"></i>';\n alert(__(\"上传失败,请重试.\"));\n setTimeout(function () {\n cached.innerHTML = '<i class=\"fa-regular fa-image\"></i>';\n }, 1000);\n }\n }\n }\n }));\n}\nfunction smileBoxToggle() {\n let et = document.getElementById(\"emotion-toggle\");\n et && et.addEventListener('click', function () {\n document.querySelector('.emotion-toggle-off').classList.toggle(\"emotion-hide\");\n document.querySelector('.emotion-toggle-on').classList.toggle(\"emotion-show\");\n document.querySelector('.emotion-box').classList.toggle(\"emotion-box-show\");\n })\n}\n/**\n * 添加上传图片的提示\n */\nfunction add_upload_tips() {\n const form_submit = document.querySelector('.form-submit #submit');\n if (form_submit == null) return;\n if (!_iro.comment_upload_img) {\n form_submit.style.width = '100%'\n return\n }\n form_submit.insertAdjacentHTML('afterend', '<div class=\"insert-image-tips popup\"><i class=\"fa-regular fa-image\"></i><span class=\"insert-img-popuptext\" id=\"uploadTipPopup\">上传图片</span></div><input id=\"upload-img-file\" type=\"file\" accept=\"image/*\" multiple=\"multiple\" class=\"insert-image-button\">');\n attach_image();\n\n const file_submit = document.getElementById('upload-img-file'),\n hover = document.getElementsByClassName('insert-image-tips')[0],\n Tip = document.getElementById('uploadTipPopup');\n if (!file_submit) return;\n file_submit.addEventListener(\"mouseenter\", function () {\n hover.classList.toggle('insert-image-tips-hover');\n Tip.classList.toggle('show');\n });\n file_submit.addEventListener(\"mouseleave\", function () {\n hover.classList.toggle('insert-image-tips-hover');\n Tip.classList.toggle('show');\n });\n}\nfunction addComtListener() {\n document.querySelectorAll(\".comt-addsmilies\").forEach((e) => {\n e.addEventListener(\"click\", () => {\n if (e.stlye.display == \"block\") {\n e.style.display = \"none\";\n } else {\n e.style.display = \"block\";\n }\n })\n })\n document.querySelectorAll(\".comt-smilies a\").forEach((e) => {\n e.addEventListener(\"click\", () => {\n e.parentNode.style.display = \"none\";\n })\n })\n}\nfunction afterAjaxCommentComplete() {\n lazyload();\n/* code_highlight_style();\n */ click_to_view_image();\n clean_upload_images();\n}\n\n// #region LifeCycle\nfunction whilePopstate() {\n article_attach()\n sm()\n}\nfunction whileReady() {\n article_attach()\n XCS()\n XCP()\n getqqinfo()\n add_upload_tips()\n resizeTOC()\n}\nfunction whilePjaxComplete() {\n try {\n add_upload_tips()\n article_attach()\n load_bangumi();\n tableOfContentScroll(true);\n click_to_view_image()\n getqqinfo()\n sm()\n original_emoji_click()\n code_highlight_style()\n smileBoxToggle()\n XCS()\n resizeTOC()\n } catch (e) {\n console.warn(e)\n }\n}\nfunction whileLoaded() {\n window.addEventListener('popstate', whilePopstate)\n click_to_view_image()\n code_highlight_style()\n load_bangumi();\n sm()\n original_emoji_click()\n smileBoxToggle()\n tableOfContentScroll(true);\n addComtListener()\n document.addEventListener('ajax_comment_complete', afterAjaxCommentComplete)\n}\nwhileLoaded()\ndocument.addEventListener('pjax:complete', whilePjaxComplete)\nready(whileReady)\n//#endregion","var charenc = {\n // UTF-8 encoding\n utf8: {\n // Convert a string to a byte array\n stringToBytes: function(str) {\n return charenc.bin.stringToBytes(unescape(encodeURIComponent(str)));\n },\n\n // Convert a byte array to a string\n bytesToString: function(bytes) {\n return decodeURIComponent(escape(charenc.bin.bytesToString(bytes)));\n }\n },\n\n // Binary encoding\n bin: {\n // Convert a string to a byte array\n stringToBytes: function(str) {\n for (var bytes = [], i = 0; i < str.length; i++)\n bytes.push(str.charCodeAt(i) & 0xFF);\n return bytes;\n },\n\n // Convert a byte array to a string\n bytesToString: function(bytes) {\n for (var str = [], i = 0; i < bytes.length; i++)\n str.push(String.fromCharCode(bytes[i]));\n return str.join('');\n }\n }\n};\n\nmodule.exports = charenc;\n","(function() {\n var base64map\n = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',\n\n crypt = {\n // Bit-wise rotation left\n rotl: function(n, b) {\n return (n << b) | (n >>> (32 - b));\n },\n\n // Bit-wise rotation right\n rotr: function(n, b) {\n return (n << (32 - b)) | (n >>> b);\n },\n\n // Swap big-endian to little-endian and vice versa\n endian: function(n) {\n // If number given, swap endian\n if (n.constructor == Number) {\n return crypt.rotl(n, 8) & 0x00FF00FF | crypt.rotl(n, 24) & 0xFF00FF00;\n }\n\n // Else, assume array and swap all items\n for (var i = 0; i < n.length; i++)\n n[i] = crypt.endian(n[i]);\n return n;\n },\n\n // Generate an array of any length of random bytes\n randomBytes: function(n) {\n for (var bytes = []; n > 0; n--)\n bytes.push(Math.floor(Math.random() * 256));\n return bytes;\n },\n\n // Convert a byte array to big-endian 32-bit words\n bytesToWords: function(bytes) {\n for (var words = [], i = 0, b = 0; i < bytes.length; i++, b += 8)\n words[b >>> 5] |= bytes[i] << (24 - b % 32);\n return words;\n },\n\n // Convert big-endian 32-bit words to a byte array\n wordsToBytes: function(words) {\n for (var bytes = [], b = 0; b < words.length * 32; b += 8)\n bytes.push((words[b >>> 5] >>> (24 - b % 32)) & 0xFF);\n return bytes;\n },\n\n // Convert a byte array to a hex string\n bytesToHex: function(bytes) {\n for (var hex = [], i = 0; i < bytes.length; i++) {\n hex.push((bytes[i] >>> 4).toString(16));\n hex.push((bytes[i] & 0xF).toString(16));\n }\n return hex.join('');\n },\n\n // Convert a hex string to a byte array\n hexToBytes: function(hex) {\n for (var bytes = [], c = 0; c < hex.length; c += 2)\n bytes.push(parseInt(hex.substr(c, 2), 16));\n return bytes;\n },\n\n // Convert a byte array to a base-64 string\n bytesToBase64: function(bytes) {\n for (var base64 = [], i = 0; i < bytes.length; i += 3) {\n var triplet = (bytes[i] << 16) | (bytes[i + 1] << 8) | bytes[i + 2];\n for (var j = 0; j < 4; j++)\n if (i * 8 + j * 6 <= bytes.length * 8)\n base64.push(base64map.charAt((triplet >>> 6 * (3 - j)) & 0x3F));\n else\n base64.push('=');\n }\n return base64.join('');\n },\n\n // Convert a base-64 string to a byte array\n base64ToBytes: function(base64) {\n // Remove non-base-64 characters\n base64 = base64.replace(/[^A-Z0-9+\\/]/ig, '');\n\n for (var bytes = [], i = 0, imod4 = 0; i < base64.length;\n imod4 = ++i % 4) {\n if (imod4 == 0) continue;\n bytes.push(((base64map.indexOf(base64.charAt(i - 1))\n & (Math.pow(2, -2 * imod4 + 8) - 1)) << (imod4 * 2))\n | (base64map.indexOf(base64.charAt(i)) >>> (6 - imod4 * 2)));\n }\n return bytes;\n }\n };\n\n module.exports = crypt;\n})();\n","/*!\n * Determine if an object is a Buffer\n *\n * @author Feross Aboukhadijeh <https://feross.org>\n * @license MIT\n */\n\n// The _isBuffer check is for Safari 5-7 support, because it's missing\n// Object.prototype.constructor. Remove this eventually\nmodule.exports = function (obj) {\n return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer)\n}\n\nfunction isBuffer (obj) {\n return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)\n}\n\n// For Node v0.10 support. Remove this eventually.\nfunction isSlowBuffer (obj) {\n return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer(obj.slice(0, 0))\n}\n","(function(){\r\n var crypt = require('crypt'),\r\n utf8 = require('charenc').utf8,\r\n isBuffer = require('is-buffer'),\r\n bin = require('charenc').bin,\r\n\r\n // The core\r\n md5 = function (message, options) {\r\n // Convert to byte array\r\n if (message.constructor == String)\r\n if (options && options.encoding === 'binary')\r\n message = bin.stringToBytes(message);\r\n else\r\n message = utf8.stringToBytes(message);\r\n else if (isBuffer(message))\r\n message = Array.prototype.slice.call(message, 0);\r\n else if (!Array.isArray(message) && message.constructor !== Uint8Array)\r\n message = message.toString();\r\n // else, assume byte array already\r\n\r\n var m = crypt.bytesToWords(message),\r\n l = message.length * 8,\r\n a = 1732584193,\r\n b = -271733879,\r\n c = -1732584194,\r\n d = 271733878;\r\n\r\n // Swap endian\r\n for (var i = 0; i < m.length; i++) {\r\n m[i] = ((m[i] << 8) | (m[i] >>> 24)) & 0x00FF00FF |\r\n ((m[i] << 24) | (m[i] >>> 8)) & 0xFF00FF00;\r\n }\r\n\r\n // Padding\r\n m[l >>> 5] |= 0x80 << (l % 32);\r\n m[(((l + 64) >>> 9) << 4) + 14] = l;\r\n\r\n // Method shortcuts\r\n var FF = md5._ff,\r\n GG = md5._gg,\r\n HH = md5._hh,\r\n II = md5._ii;\r\n\r\n for (var i = 0; i < m.length; i += 16) {\r\n\r\n var aa = a,\r\n bb = b,\r\n cc = c,\r\n dd = d;\r\n\r\n a = FF(a, b, c, d, m[i+ 0], 7, -680876936);\r\n d = FF(d, a, b, c, m[i+ 1], 12, -389564586);\r\n c = FF(c, d, a, b, m[i+ 2], 17, 606105819);\r\n b = FF(b, c, d, a, m[i+ 3], 22, -1044525330);\r\n a = FF(a, b, c, d, m[i+ 4], 7, -176418897);\r\n d = FF(d, a, b, c, m[i+ 5], 12, 1200080426);\r\n c = FF(c, d, a, b, m[i+ 6], 17, -1473231341);\r\n b = FF(b, c, d, a, m[i+ 7], 22, -45705983);\r\n a = FF(a, b, c, d, m[i+ 8], 7, 1770035416);\r\n d = FF(d, a, b, c, m[i+ 9], 12, -1958414417);\r\n c = FF(c, d, a, b, m[i+10], 17, -42063);\r\n b = FF(b, c, d, a, m[i+11], 22, -1990404162);\r\n a = FF(a, b, c, d, m[i+12], 7, 1804603682);\r\n d = FF(d, a, b, c, m[i+13], 12, -40341101);\r\n c = FF(c, d, a, b, m[i+14], 17, -1502002290);\r\n b = FF(b, c, d, a, m[i+15], 22, 1236535329);\r\n\r\n a = GG(a, b, c, d, m[i+ 1], 5, -165796510);\r\n d = GG(d, a, b, c, m[i+ 6], 9, -1069501632);\r\n c = GG(c, d, a, b, m[i+11], 14, 643717713);\r\n b = GG(b, c, d, a, m[i+ 0], 20, -373897302);\r\n a = GG(a, b, c, d, m[i+ 5], 5, -701558691);\r\n d = GG(d, a, b, c, m[i+10], 9, 38016083);\r\n c = GG(c, d, a, b, m[i+15], 14, -660478335);\r\n b = GG(b, c, d, a, m[i+ 4], 20, -405537848);\r\n a = GG(a, b, c, d, m[i+ 9], 5, 568446438);\r\n d = GG(d, a, b, c, m[i+14], 9, -1019803690);\r\n c = GG(c, d, a, b, m[i+ 3], 14, -187363961);\r\n b = GG(b, c, d, a, m[i+ 8], 20, 1163531501);\r\n a = GG(a, b, c, d, m[i+13], 5, -1444681467);\r\n d = GG(d, a, b, c, m[i+ 2], 9, -51403784);\r\n c = GG(c, d, a, b, m[i+ 7], 14, 1735328473);\r\n b = GG(b, c, d, a, m[i+12], 20, -1926607734);\r\n\r\n a = HH(a, b, c, d, m[i+ 5], 4, -378558);\r\n d = HH(d, a, b, c, m[i+ 8], 11, -2022574463);\r\n c = HH(c, d, a, b, m[i+11], 16, 1839030562);\r\n b = HH(b, c, d, a, m[i+14], 23, -35309556);\r\n a = HH(a, b, c, d, m[i+ 1], 4, -1530992060);\r\n d = HH(d, a, b, c, m[i+ 4], 11, 1272893353);\r\n c = HH(c, d, a, b, m[i+ 7], 16, -155497632);\r\n b = HH(b, c, d, a, m[i+10], 23, -1094730640);\r\n a = HH(a, b, c, d, m[i+13], 4, 681279174);\r\n d = HH(d, a, b, c, m[i+ 0], 11, -358537222);\r\n c = HH(c, d, a, b, m[i+ 3], 16, -722521979);\r\n b = HH(b, c, d, a, m[i+ 6], 23, 76029189);\r\n a = HH(a, b, c, d, m[i+ 9], 4, -640364487);\r\n d = HH(d, a, b, c, m[i+12], 11, -421815835);\r\n c = HH(c, d, a, b, m[i+15], 16, 530742520);\r\n b = HH(b, c, d, a, m[i+ 2], 23, -995338651);\r\n\r\n a = II(a, b, c, d, m[i+ 0], 6, -198630844);\r\n d = II(d, a, b, c, m[i+ 7], 10, 1126891415);\r\n c = II(c, d, a, b, m[i+14], 15, -1416354905);\r\n b = II(b, c, d, a, m[i+ 5], 21, -57434055);\r\n a = II(a, b, c, d, m[i+12], 6, 1700485571);\r\n d = II(d, a, b, c, m[i+ 3], 10, -1894986606);\r\n c = II(c, d, a, b, m[i+10], 15, -1051523);\r\n b = II(b, c, d, a, m[i+ 1], 21, -2054922799);\r\n a = II(a, b, c, d, m[i+ 8], 6, 1873313359);\r\n d = II(d, a, b, c, m[i+15], 10, -30611744);\r\n c = II(c, d, a, b, m[i+ 6], 15, -1560198380);\r\n b = II(b, c, d, a, m[i+13], 21, 1309151649);\r\n a = II(a, b, c, d, m[i+ 4], 6, -145523070);\r\n d = II(d, a, b, c, m[i+11], 10, -1120210379);\r\n c = II(c, d, a, b, m[i+ 2], 15, 718787259);\r\n b = II(b, c, d, a, m[i+ 9], 21, -343485551);\r\n\r\n a = (a + aa) >>> 0;\r\n b = (b + bb) >>> 0;\r\n c = (c + cc) >>> 0;\r\n d = (d + dd) >>> 0;\r\n }\r\n\r\n return crypt.endian([a, b, c, d]);\r\n };\r\n\r\n // Auxiliary functions\r\n md5._ff = function (a, b, c, d, x, s, t) {\r\n var n = a + (b & c | ~b & d) + (x >>> 0) + t;\r\n return ((n << s) | (n >>> (32 - s))) + b;\r\n };\r\n md5._gg = function (a, b, c, d, x, s, t) {\r\n var n = a + (b & d | c & ~d) + (x >>> 0) + t;\r\n return ((n << s) | (n >>> (32 - s))) + b;\r\n };\r\n md5._hh = function (a, b, c, d, x, s, t) {\r\n var n = a + (b ^ c ^ d) + (x >>> 0) + t;\r\n return ((n << s) | (n >>> (32 - s))) + b;\r\n };\r\n md5._ii = function (a, b, c, d, x, s, t) {\r\n var n = a + (c ^ (b | ~d)) + (x >>> 0) + t;\r\n return ((n << s) | (n >>> (32 - s))) + b;\r\n };\r\n\r\n // Package private blocksize\r\n md5._blocksize = 16;\r\n md5._digestsize = 16;\r\n\r\n module.exports = function (message, options) {\r\n if (message === undefined || message === null)\r\n throw new Error('Illegal argument ' + message);\r\n\r\n var digestbytes = crypt.wordsToBytes(md5(message, options));\r\n return options && options.asBytes ? digestbytes :\r\n options && options.asString ? bin.bytesToString(digestbytes) :\r\n crypt.bytesToHex(digestbytes);\r\n };\r\n\r\n})();\r\n"],"names":["exports","func","wait","timeout","debounced","args","clearTimeout","setTimeout","apply","this","clear","motionEles","window","motionSwitch","ele","i","length","document","querySelector","classList","remove","style","display","add","grin","tag","type","before","after","myField","getElementById","selection","focus","sel","createRange","text","selectionStart","startPos","endPos","selectionEnd","cursorPos","value","substring","lightBoxCSS","article_attach","collapseButtons","getElementsByClassName","collapseListener","e","slideToggle","target","parentNode","addEventListener","collapse","async","_iro","baguetteBoxON","loadCSS","resolvePath","default","baguetteBox","run","captions","element","getElementsByTagName","alt","ignoreClass","fancybox","jQuery","Function","$","ext_shared_lib","importExternal","lightGallery","initLightGallery","lightbox","MathJax","svg","fontCache","startup","typeset","chtml","fontURL","mathmlSpacing","math","get_gravatar","email","size","arguments","undefined","gravatar_url","MD5","getqqinfo","is_get_by_qq","i_author","i_qq","i_email","i_url","qq_check","gravatar_check","user_avatar_img","localStorage","getItem","setAttribute","qzone_autocomplete","emailAddressFlag","qq","test","whileFailed","setItem","fetch","buildAPI","qq_api_url","then","resp","ok","data","json","name","trim","avatar","console","warn","emailAddress","URL_Address","user_name","AddComment","respondId","moveForm","commId","parentId","comm","respond","cancel","parent","div","createElement","id","insertBefore","nextSibling","temp","_respond","scrollTo","top","getBoundingClientRect","pageYOffset","clientTop","behavior","onclick","t","PRISM_VERSION","PKG_INFO","attributes","gen_top_bar","pre","code_a","children","lang","matchResult","className","match","toUpperCase","hljs_click_callback","contains","cloneElement","cloneNode","toggle","body","append","documentElement","hljs_process","code","hljs","importHighlightjs","highlightElement","initLineNumbersOnLoad","PrismBaseUrl","code_highlight_prism","autoload_path","currentPrismThemeCSS","themeCSS","light","dark","theme","theme_name","URL","toString","loadPrismCSS","darkmodeOn","nextCSSHref","href","nextCSSElement","prism_darkmode_callback","detail","deattachPrismCallback","removeEventListener","importPrismJS","Prism","isInDarkMode","Promise","all","plugins","autoloader","languages_path","reason","bgmlistener","preventDefault","stopPropagation","textContent","dataset","nonce","method","res","Error","status","insertAdjacentHTML","lazyload","catch","error","createButterbar","innerHTML","load_bangumi","sections","_flag","code_highlight_style","querySelectorAll","code_highlight","loadLineNumber","loadMatchBraces","loadCommandLine","line_number_all","parentElement","prompt","host","user","fileHighlight","highlight","prism_process","j","__","ClipboardJS","click_to_view_image","open","src","original_emoji_click","innerText","XCS","__list","form","statusSubmitting","event","butterBarRef","FormData","ajaxurl","Array","from","forEach","addComment","order","formpostion","dispatchEvent","CustomEvent","statusText","finally","sm","cm","data_commentid","getAttribute","list","msg","confirm","alert","idp","actionp","rateHolderp","ajax_data","request","XMLHttpRequest","onreadystatechange","readyState","responseText","setRequestHeader","send","resizeTOC","toc_container","sc","resize","height","Math","min","offsetHeight","offsetTop","debounce","passive","fn","maxTimelong","startTime","Date","parse","curTime","throttling","tableOfContentScroll","flag","clientWidth","_ref","tocbot","init","tocSelector","contentSelector","headingSelector","headingsOffset","heading_fix","innerHeight","onClick","entry_content_style","_els","idSet","Set","_el","title","encodeURIComponent","replace","has","smileBoxToggle","et","add_upload_tips","form_submit","comment_upload_img","width","cached","upload_img","files","_$","f","formData","xhr","api","JSON","get_the_url","proxy","loading_ph","message","attach_image","file_submit","hover","Tip","afterAjaxCommentComplete","whilePopstate","stlye","ready","nodeName","toLowerCase","_this","path","pathname","_xhr","responseType","onloadstart","comments_navi","commentwrap","loading_comments","comments_list","response","result","nextlink","outerHTML","gtag","google_analytics_id","charenc","utf8","stringToBytes","str","bin","unescape","bytesToString","bytes","decodeURIComponent","escape","push","charCodeAt","String","fromCharCode","join","module","base64map","crypt","rotl","n","b","rotr","endian","constructor","Number","randomBytes","floor","random","bytesToWords","words","wordsToBytes","bytesToHex","hex","hexToBytes","c","parseInt","substr","bytesToBase64","base64","triplet","charAt","base64ToBytes","imod4","indexOf","pow","isBuffer","obj","readFloatLE","slice","isSlowBuffer","_isBuffer","md5","options","encoding","prototype","call","isArray","Uint8Array","m","l","a","d","FF","_ff","GG","_gg","HH","_hh","II","_ii","aa","bb","cc","dd","x","s","_blocksize","_digestsize","digestbytes","asBytes","asString"],"sourceRoot":""}
|