{"version":3,"sources":["jsdelivr-header.js","/npm/a-pollo@2.0.4/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACMA,MAAM,YAAc,QAAQ,qBACtB,OAAS,QAAQ,gBACjB,YAAc,QAAQ,sBACtB,cAAgB,QAAQ,gBACxB,OAAS,QAAQ,gBACjB,MAAQ,QAAQ,eAChB,KAAO,QAAQ,cACf,GAAK,QAAQ,MAEnB,SAAS,gBAAiB,EAAQ,EAAW,GAC3C,YAAY,EAAO,aAAa,MAAK,SAAU,EAAK,GAClD,GAAI,EAAK,MAAM,EACf,OAAO,GAAS,SAAU,EAAK,GAC7B,GAAI,EAAK,MAAM,EACf,MAAM,GAAO,SAAU,EAAK,GAC1B,GAAI,EAAK,MAAM,EAEf,OAAO,OAAO,GAAQ,SAAU,EAAK,GACnC,GAAI,EAAK,MAAM,EACf,OAAO,MAAM,GAAQ,SAAU,EAAK,GAClC,GAAI,EAAK,MAAM,EACf,KAAK,EAAQ,CACX,YAAa,EACb,MAAO,EACP,OAAQ,EACR,IAAK,IACJ,SAAU,EAAK,EAAQ,GACxB,GAAI,EAAK,MAAM,EAEf,EAAG,KAAM,EAAQ,EAAa,EAAW,EAAQ,EACnD,GACF,GACF,GACF,GACF,GACF,GACF,CAEA,SAAS,OAAQ,EAAQ,GACvB,GAAI,aAAkB,SAAU,CAC9B,MAAM,EAAW,EACjB,aAAY,SAAU,GACpB,cAAc,GAAM,MAAK,SAAU,EAAK,EAAQ,GAC9C,GAAI,EAAK,MAAM,EACf,gBAAgB,EAAQ,EAAW,EACrC,GACF,GACF,KAAO,CAEL,gBAAgB,EADE,GAAG,aAAa,EAAO,OAAO,IAAK,SAClB,EACrC,CACF,CAEA,OAAO,QAAU","file":"/npm/a-pollo@2.0.4/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/a-pollo@2.0.4/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","\n/*\nconst logger = require('./lib/logger')\nconst loggerOpts = {\n  muted: false,\n  verbosity: 8\n}\n\nlogger(loggerOpts).intro()\nlogger(loggerOpts).error('Hello')\nconsole.log(logger(loggerOpts).options())\n*/\nconst annotations = require('./lib/annotations')\nconst assets = require('./lib/assets')\nconst commandLine = require('./lib/command-line')\nconst configuration = require('./lib/config')\nconst filter = require('./lib/filter')\nconst parse = require('./lib/parse')\nconst save = require('./lib/save')\nconst fs = require('fs')\n\nfunction initAnnotations (config, inlineCss, cb) {\n  annotations(config.annotations).list(function (err, matches) {\n    if (err) throw err\n    filter(matches, function (err, files) {\n      if (err) throw err\n      parse(files, function (err, annotations) {\n        if (err) throw err\n        // require('./test/save-json')('../tap/data/parsed-annotations-2.json', annotations, true)\n        assets.images(config, function (err, images) {\n          if (err) throw err\n          assets.fonts(config, function (err, fonts) {\n            if (err) throw err\n            save(config, {\n              annotations: annotations,\n              fonts: fonts,\n              images: images,\n              css: inlineCss\n            }, function (err, config, annotations) {\n              if (err) throw err\n              // require('./test/save-json')('../tap/data/decorated-annotations-2.json', annotations, true)\n              cb(null, config, annotations, inlineCss, images, fonts)\n            })\n          })\n        })\n      })\n    })\n  })\n}\n\nfunction aPollo (config, cb) {\n  if (config instanceof Function) {\n    const callback = config\n    commandLine(function (args) {\n      configuration(args).load(function (err, config, inlineCss) {\n        if (err) throw err\n        initAnnotations(config, inlineCss, callback)\n      })\n    })\n  } else {\n    const inlineCss = fs.readFileSync(config.assets.css, 'utf-8')\n    initAnnotations(config, inlineCss, cb)\n  }\n}\n\nmodule.exports = aPollo\n"]}