"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.default=onlyOnce;functiononlyOnce(fn){returnfunction(){if(fn===null)thrownewError("Callback was already called.");varcallFn=fn;fn=null;callFn.apply(this,arguments);};}module.exports=exports["default"];