native-fn
Version:
2 lines (1 loc) • 2.08 kB
JavaScript
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Native=t()}(this,(function(){"use strict";var e="1.0.85";function t(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=Object(e[0]),o=1;o<e.length;o++){var n=e[o];if(null!=n)for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&"__proto__"!==a&&"constructor"!==a&&"prototype"!==a&&(r[a]=n[a])}return r}var r=function(e,t){function r(o){if(!(this instanceof r))return new r(o);var n=new t(o||"");if("function"==typeof Object.setPrototypeOf?Object.setPrototypeOf(n,r.prototype):n.__proto__=r.prototype,n.name=e,void 0!==o&&(n.message=o),"undefined"!=typeof Symbol&&Symbol.toStringTag)try{Object.defineProperty(n,Symbol.toStringTag,{value:e,writable:!1,enumerable:!1,configurable:!0})}catch(e){}if("function"==typeof Error.captureStackTrace)Error.captureStackTrace(n,r);else if(t.captureStackTrace&&"function"==typeof t.captureStackTrace)t.captureStackTrace(n,r);else try{var a=new t;a.stack&&(n.stack=a.stack)}catch(e){}return n}void 0===t&&(t=Error),r.prototype=Object.create(t.prototype,{constructor:{value:r,writable:!0,enumerable:!1,configurable:!0}});try{Object.defineProperty(r.prototype,"name",{value:e,writable:!0,enumerable:!1,configurable:!0})}catch(t){try{r.prototype.name=e}catch(e){}}try{Object.defineProperty(r,"name",{value:e,writable:!1,enumerable:!1,configurable:!0})}catch(e){}return r}("PluginNotExtendedError");return function(){if("object"!=typeof globalThis){Object.defineProperty(Object.prototype,"__getGlobalThis__",{get:function(){return this},configurable:!0});try{var e=__getGlobalThis__;Object.defineProperty(e,"globalThis",{value:e,writable:!0,configurable:!0})}finally{delete Object.prototype.__getGlobalThis__}}}(),{Version:e,Constants:{},Errors:{PluginNotExtendedError:r},extends:function(e){return e.installed||(this.Constants=t(this.Constants,e.Constants),this.Errors=t(this.Errors,e.Errors),this[e.name]=e.module,e.installed=!0),this}}}));