{"version":3,"sources":["jsdelivr-header.js","/npm/hexo-theme-next@8.29.0/source/js/third-party/quicklink.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,CCJA,WACE,GAAwC,iBAA7B,OAAO,UAAU,QAAsB,CAChD,MAAM,EAAa,IAAI,OAAO,UAAU,WACxC,OAAO,UAAU,QAAU,KAAK,MAAM,EACxC,CAEA,IAAI,EAAU,KAEd,MAAM,EAAY,KAEhB,GADI,GAAS,KACR,OAAO,UAAU,OAAQ,OAE9B,IAAI,EAAa,OAAO,UAAU,SAAW,GACxC,MAAM,QAAQ,KACjB,EAAa,CAAC,IAGhB,EAAU,UAAU,OAAO,CACzB,QAAU,OAAO,UAAU,QAC3B,SAAU,OAAO,UAAU,SAC3B,QAAU,CACR,GAAO,EAAI,SAAS,KACpB,GAAO,IAAQ,OAAO,UAAU,OAC7B,MAKL,OAAO,UAAU,OACnB,OAAO,iBAAiB,OAAQ,GAChC,SAAS,iBAAiB,eAAgB,IAE1C,SAAS,iBAAiB,cAAe,EAE5C,CAlCD","file":"/npm/hexo-theme-next@8.29.0/source/js/third-party/quicklink.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.48.0.\n * Original file: /npm/hexo-theme-next@8.29.0/source/js/third-party/quicklink.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","/* global CONFIG, quicklink */\n\n(function() {\n  if (typeof CONFIG.quicklink.ignores === 'string') {\n    const ignoresStr = `[${CONFIG.quicklink.ignores}]`;\n    CONFIG.quicklink.ignores = JSON.parse(ignoresStr);\n  }\n\n  let resetFn = null;\n\n  const onRefresh = () => {\n    if (resetFn) resetFn();\n    if (!CONFIG.quicklink.enable) return;\n\n    let ignoresArr = CONFIG.quicklink.ignores || [];\n    if (!Array.isArray(ignoresArr)) {\n      ignoresArr = [ignoresArr];\n    }\n\n    resetFn = quicklink.listen({\n      timeout : CONFIG.quicklink.timeout,\n      priority: CONFIG.quicklink.priority,\n      ignores : [\n        uri => uri.includes('#'),\n        uri => uri === CONFIG.quicklink.url,\n        ...ignoresArr\n      ]\n    });\n  };\n\n  if (CONFIG.quicklink.delay) {\n    window.addEventListener('load', onRefresh);\n    document.addEventListener('pjax:success', onRefresh);\n  } else {\n    document.addEventListener('page:loaded', onRefresh);\n  }\n})();\n"]}