{"version":3,"sources":["jsdelivr-header.js","/npm/holodex@2.0.8/src/client.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,IAAI,MAAQ,QAAQ,SAEpB,QAAQ,mBAER,IAAI,GAAK,QAAQ,MACb,OAAS,QAAQ,UACjB,OAAS,QAAQ,UACjB,QAAU,QAAQ,WAClB,MAAQ,QAAQ,QAAR,CAAiB,kBAE7B,OAAO,MAAQ,QAAQ,SAEnB,QAAQ,IAAI,MACd,OAAO,aAAa,QAAQ,QAAS,QAAQ,IAAI,OAEjD,OAAO,aAAa,WAAW,SAGjC,MAAM,2BAA4B,QAElC,OAAO,OAAM,SAAU,GACrB,MAAM,UAAW,GAEjB,IAAI,EAAQ,QAAQ,GACpB,MAAM,QAAS,GAEf,MAAM,OACJ,MAAM,cAAc,GAAI,CACtB,OAAQ,OACR,MAAO,EACP,MAAO,IAET,SAAS,cAAc,eAE3B","file":"/npm/holodex@2.0.8/src/client.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.19.2.\n * Original file: /npm/holodex@2.0.8/src/client.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","var React = require('react')\n// path React to enable <image> and xlink:href\nrequire('react-svg-patch')\n\nvar Ui = require('ui')\nvar config = require('config')\nvar router = require('router')\nvar fetcher = require('fetcher')\nvar debug = require('debug')('holodex:client')\n\nglobal.types = require('types')\n\nif (process.env.DEBUG) {\n  global.localStorage.setItem('debug', process.env.DEBUG)\n} else {\n  global.localStorage.removeItem('debug')\n}\n\ndebug('UI starting with config:', config)\n\nrouter.route(function (route) {\n  debug('routing', route)\n\n  var model = fetcher(route)\n  debug('model', model)\n\n  React.render(\n    React.createElement(Ui, {\n      config: config,\n      route: route,\n      model: model\n    }),\n    document.querySelector('body > main')\n  )\n})\n"]}