text: /*!
      * tiny-event-class v1.3.0
      * (c) 2019 wilsonliuxyz@gmail.com
      * @description class tiny event
      * @license MIT
      */
  !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.tinyEventClass=e()}(this,function(){"use strict";var t=function(){this._events={}};return t.prototype.on=function(t,e,n){return this._events[t]=this._events[t]||[],this._events[t].push({fn:e,ctx:n}),this},t.prototype.once=function(t,e,n){var o=this;function i(){o.off(t,i),e.apply(n,arguments)}return i._=e,this.on(t,i,n)},t.prototype.emit=function(t){for(var e=[],n=arguments.length-1;0<n--;)e[n]=arguments[n+1];for(var o=this._events[t]||[],i=o.length,s=0;s<i;s++)o[s].fn.apply(o[s].ctx,e);return this},t.prototype.off=function(t,e){var n=this._events[t],o=[];if(n&&e)for(var i=0,s=n.length;i<s;i++){var f=n[i];f.fn!==e&&f.fn._!==e&&o.push(f)}return o.length?this._events[t]=o:delete this._events[t],this},t});