{"version":3,"sources":["jsdelivr-header.js","/npm/u-event@1.0.2/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACLA,aAEA,SAAS,GAAI,EAAO,GAClB,IAAK,KAAK,eAAe,UACvB,MAAM,IAAI,MAAM,gDAElB,GAAmB,mBAAR,EACT,MAAM,IAAI,MAAM,sCAOlB,OALI,KAAK,OAAO,GACd,KAAK,OAAO,GAAO,KAAK,GAExB,KAAK,OAAO,GAAS,CAAC,GAEjB,IACT,CAEA,SAAS,KAAM,EAAO,GACpB,GAAI,KAAK,OAAO,GAAQ,CACtB,IAAI,EACA,EAAgC,EAA5B,KAAK,OAAO,GAAO,OAC3B,IAAK,EAAI,EAAG,EAAI,EAAG,GAAK,EACG,IAArB,UAAU,OACZ,KAAK,OAAO,GAAO,GAAG,KAAK,KAAM,GAEjC,KAAK,OAAO,GAAO,GAAG,MAAM,KAAM,MAAM,UAAU,MAAM,KAAK,UAAW,GAG9E,CACF,CAEA,OAAO,QAAU,SAAU,GAKzB,OAJA,EAAI,GAAK,CAAC,GACR,GAAK,GACP,EAAE,KAAO,KACT,EAAE,OAAS,CAAC,EACL,CACT,EAEA,OAAO,QAAQ,QAAU,OAAO","file":"/npm/u-event@1.0.2/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.37.0.\n * Original file: /npm/u-event@1.0.2/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","/* jslint browser: false */\n'use strict'\n\nfunction on (event, fun) {\n  if (!this.hasOwnProperty('events')) {\n    throw new Error('Can\\'t set event. Call emitter(object) first.')\n  }\n  if (typeof fun !== 'function') {\n    throw new Error('Event handler should be a function')\n  }\n  if (this.events[event]) {\n    this.events[event].push(fun)\n  } else {\n    this.events[event] = [fun]\n  }\n  return this\n}\n\nfunction emit (event, o) {\n  if (this.events[event]) {\n    var i\n    var m = this.events[event].length | 0\n    for (i = 0; i < m; i += 1) {\n      if (arguments.length === 2) {\n        this.events[event][i].call(this, o)\n      } else {\n        this.events[event][i].apply(this, Array.prototype.slice.call(arguments, 1))\n      }\n    }\n  }\n}\n\nmodule.exports = function (o) {\n  o = o || {}\n  o.on = on\n  o.emit = emit\n  o.events = {}\n  return o\n}\n\nmodule.exports.emitter = module.exports\n"]}