!function(f){if("object"==typeofexports&&"undefined"!=typeofmodule)module.exports=f();elseif("function"==typeofdefine&&define.amd)define([],f);else{("undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:"undefined"!=typeofself?self:this).makeError=f()}}(function(){returnfunctione(t,n,r){functions(o,u){if(!n[o]){if(!t[o]){vara="function"==typeofrequire&&require;if(!u&&a)returna(o,!0);if(i)returni(o,!0);varf=newError("Cannot find module '"+o+"'");throwf.code="MODULE_NOT_FOUND",f}varl=n[o]={exports:{}};t[o][0].call(l.exports,function(e){varn=t[o][1][e];returns(n||e)},l,l.exports,e,t,n,r)}returnn[o].exports}for(vari="function"==typeofrequire&&require,o=0;o<r.length;o++)s(r[o]);returns}({1:[function(require,module,exports){"use strict";varconstruct="undefined"!=typeofReflect?Reflect.construct:void0,defineProperty=Object.defineProperty,captureStackTrace=Error.captureStackTrace;void0===captureStackTrace&&(captureStackTrace=function(error){varcontainer=newError;defineProperty(error,"stack",{configurable:!0,get:function(){varstack=container.stack;returndefineProperty(this,"stack",{configurable:!0,value:stack,writable:!0}),stack},set:function(stack){defineProperty(error,"stack",{configurable:!0,value:stack,writable:!0})}})});functionBaseError(message){void0!==message&&defineProperty(this,"message",{configurable:!0,value:message,writable:!0});varcname=this.constructor.name;void0!==cname&&cname!==this.name&&defineProperty(this,"name",{configurable:!0,value:cname,writable:!0}),captureStackTrace(this,this.constructor)}BaseError.prototype=Object.create(Error.prototype,{constructor:{configurable:!0,value:BaseError,writable:!0}});varsetFunctionName=function(){functionsetFunctionName(fn,name){returndefineProperty(fn,"name",{configurable:!0,value:name})}try{varf=function(){};if(setFunctionName(f,"foo"),"foo"===f.name)returnsetFunctionName}catch(_){}}();(module.exports=function(constructor,super_){if(null==super_||super_===Error)super_=BaseError;elseif("function"!=typeofsuper_)thrownewTypeError("super_ should be a function");varname;if("string"==typeofconstructor)name=constructor,constructor=void0!==construct?function(){returnconstruct(super_,arguments,this.constructor)}:function(){super_.apply(this,arguments)},void0!==setFunctionName&&(setFunctionName(constructor,name),name=void0);elseif("function"!=typeofconstructor)thrownewTypeError("constructor should be either a string or a function");constructor.super_=constructor.super=super_;varproperties={constructor:{configurable:!0,value:constructor,writable:!0}};returnvoid0!==name&&(properties.name={configurable:!0,value:name,writable:!0}),constructor.prototype=Object.create(super_.prototype,properties),constructor}).BaseError=BaseError},{}]},{},[1])(1)});