{"version":3,"sources":["jsdelivr-header.js","/npm/hexo-next-publist@2.2.1/src/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aAIA,MAAM,EAAI,QAAQ,WAEZ,gBAAE,iBAAoB,QAAQ,aAC9B,cAAE,eAAkB,QAAQ,qBAC5B,WAAE,YAAe,QAAQ,kBACzB,UAAE,WAAc,QAAQ,YAE9B,SAAS,eAAgB,GACrB,IAAI,EAAO,EAAE,SAAS,CAAC,EAAG,EAAK,OAAO,QAAS,iBAQ/C,OANK,EAAK,cAAc,SAAS,OAC7B,EAAK,cAAgB,EAAK,cAAgB,KAG9C,EAAK,OAAO,QAAU,EAEf,CACX,CAEA,SAAS,SAAS,GACd,MAAM,EAAO,eAAe,GAG5B,QAAQ,kBAAkB,SAAS,EAAM,GAGzC,IAAI,cAAc,EAAM,GAAM,WAG9B,IAAI,WAAW,EAAM,GAAM,WAG3B,IAAI,UAAU,EAAM,GAAM,UAC9B,CAEA,SAAS","file":"/npm/hexo-next-publist@2.2.1/src/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/hexo-next-publist@2.2.1/src/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","'use strict';\n\n/* global hexo */\n\nconst _ = require('lodash');\n\nconst { DEFAULT_OPTIONS } = require('./consts');\nconst { PublistWidget } = require('./publist-widget');\nconst { PublistTag } = require('./publist-tag');\nconst { SSRFilter } = require('./filter');\n\nfunction processOptions (hexo) {\n    let opts = _.defaults({}, hexo.config.publist, DEFAULT_OPTIONS);\n\n    if (!opts.assets_prefix.endsWith('/')) {\n        opts.assets_prefix = opts.assets_prefix + '/';\n    }\n\n    hexo.config.publist = opts;\n\n    return opts;\n}\n\nfunction register(hexo) {\n    const opts = processOptions(hexo);\n\n    // register renderer bib in _data, which is inside the source box\n    require('./bib-renderer').register(hexo, opts);\n\n    // a widget box containing js/css files for publist\n    new PublistWidget(hexo, opts).register();\n\n    // the actual tag\n    new PublistTag(hexo, opts).register();\n\n    // after generate filter to optionally do server-side rendering\n    new SSRFilter(hexo, opts).register();\n}\n\nregister(hexo);\n"]}