Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(true===true)
- {
- if((void(null))!==(undefined)){undefined=void(null);}
- if(!Function.prototype.prototype){Function.prototype.prototype={};}
- }
- /*!~~!*/
- var L=(function(_,_SCOPE_)
- {
- var meta=(
- { "author_url":"https//rvklein.me/"
- , "title":"big-l.js"
- , "modified":"+2019-01-21"
- });
- var $=(new Object({}));
- var inst=(
- { timing:{spawned:undefined}
- , eid:{a:undefined}
- });
- inst.timing.spawned=((new Date()).getTime());
- inst.eid.a=(Math.floor(Math.random()*(Math.pow(2,53)-1)));
- _=_SCOPE_(_);
- function L ()
- {
- this.meta=meta;
- this._=_;
- this.inst=inst;
- }
- //L.prototype.is=is;
- return(new L());
- }
- )(this,function(that)
- {'use strict';
- function isOwnConstructor (x)
- {
- return((('object'===typeof(x))
- && (x.constructor.name in x)
- && (x instanceof x[x.constructor.name])
- && ('function'===typeof(x.constructor.constructor))
- && (x.constructor.constructor instanceof Function)
- && (Function===x.constructor.constructor)
- )?true:false);
- }
- that=((that&&isOwnConstructor(that))?that:undefined);
- var $=(
- { scope:undefined
- , scopeName:undefined
- , scopeProps:undefined
- , console:undefined
- , has:{strictMode:undefined}
- });
- try
- { if(isOwnConstructor(this)){$.has.strictMode=false;}else{$.has.strictMode=true;}
- }
- catch(e)
- {}
- try
- { $.has.GeneratorFunction=(true===(
- 'GeneratorFunction'===((Object.getPrototypeOf(function*(){})).constructor.name)
- ));
- }
- catch(e)
- { $.has.GeneratorFunction=false;
- }
- try
- { if
- ( ('concat' in ([]))
- && ('function'===typeof(([]).concat))
- && (3===(([0,1]).concat([2])).length)
- )
- { $.has.ArrayMethodConcat=true;
- }else
- { $.has.ArrayMethodConcat=false;
- }
- }
- catch(e)
- { $.has.ArrayMethodConcat=false;
- }
- var scope={};
- try{if(isOwnConstructor(global)){scope.global=global;}}catch(e){}
- try{if(isOwnConstructor(self)){scope.self=self;}}catch(e){}
- try{if(isOwnConstructor(window)){scope.window=window;}}catch(e){}
- if
- ( ('global' in scope)
- && ((!that)||(that===scope.global))
- && ('Object'===scope.global.constructor.name)
- && ('[object process]'===({}).toString.call(scope.global.process))
- && ('module' in scope.global)
- && ('Module'===module.constructor.name)
- )
- { $.scopeName='global';
- }
- if
- ( ('self' in scope)
- && ((!that)||(that===scope.self))
- && ('importScripts' in scope.self)
- && ('function'===typeof(importScripts))
- && ('function'===typeof(postMessage))
- && ('onmessage' in scope.self)
- && ((null===scope.self.onmessage)||('function'===typeof(scope.self.onmessage)))
- )
- { $.scopeName='self';
- }
- if
- ( ('window' in scope)
- && ((!that)||(that===scope.window))
- && ('Window'===scope.window.constructor.name)
- && ('top' in scope.window)
- && ('parent' in scope.window)
- && (scope.window.top instanceof scope.window.constructor)
- && (scope.window.parent instanceof scope.window.constructor)
- && ('document' in scope.window)
- && ( ('navigator' in scope.window)
- && ('function'===typeof(Navigator))
- && ('Navigator'===scope.window.navigator.constructor.name)
- )
- && ( ('location' in scope.window)
- && ('function'===typeof(Location))
- && ('Location'===scope.window.location.constructor.name)
- )
- )
- { $.scopeName='window';
- }
- $.scope=scope[$.scopeName];
- $.scopeProps=(function(a)
- {
- var z=[];
- for(var i=0,j=a.length;j>i;i++)
- {
- if('L'!==a[i]){z.push(a[i]);}
- };
- return(z);
- }
- )(Object.keys($.scope));
- $.scopePropsLength=($.scopeProps.length);
- if
- ( ('console' in $.scope)
- && ('object'===typeof($.scope.console))
- )
- {
- if
- ( ('Object'===$.scope.console.constructor.name)
- && ('[object Console]'===({}).toString.call($.scope.console))
- )
- {
- //browser//
- $.console=$.scope.console;
- }
- else if
- ( ('Console'===$.scope.console.constructor.name)
- && ('[object Object]'===({}).toString.call($.scope.console))
- )
- {
- //node//
- $.console=$.scope.console;
- }
- }
- if('global'===$.scopeName)
- {
- if(that&&(Object.keys(that).length)){$._isNodeInteractiveConsole=true;}
- }
- else if('window'===$.scopeName)
- {
- $._isTopWindow=($.scope.window===$.scope.window.top);
- //
- if
- ( ''===$.scope.window.document.domain
- && $.scope.window.document.location.hostname
- && ( ('http:'===$.scope.window.location.protocol)
- || ('https:'===$.scope.window.location.protocol)
- )
- )
- {
- window.document.domain=$.scope.document.location.hostname;
- }
- //
- if
- ( ('HTMLDocument'===$.scope.document.constructor.name)
- && ('html'===$.scope.document.doctype.name)
- )
- {
- $._isHTMLDocument=true;
- try{$._documentCurrentScript=$.scope.window.document.currentScript;}catch(e){}
- }
- }
- return($);
- });
- /*!~~!*/
- if
- (true===true)
- {
- if
- ( !( ('now' in Date)
- && ('function'===typeof(Date.now))
- && (((new Date()).getTime())===(Date.now()))
- )
- )
- { Date.now=function(){return((new Date()).getTime());};
- }
- //
- if
- ( !( ('MAX_SAFE_INTEGER' in Number)
- && ('number'===typeof(Number.MAX_SAFE_INTEGER))
- )
- )
- { Number.MAX_SAFE_INTEGER=(Math.pow(2,53)-1);
- }
- //
- if(!(('NaN' in Number)&&('number'===typeof(Number.NaN))&&(Number.NaN!==Number.NaN)))
- { Number.NaN=(new Number(void(0)));
- }
- //
- if
- ( !( ('function'===typeof(Number.isNaN))
- && (false===Number.isNaN(0))
- && (true===Number.isNaN(new Number(void(0))))
- )
- )
- { Number.isNaN=function(n)
- { return((('number'===typeof(n))&&(n!==n))?true:false);
- };
- }
- if
- ( 'function'!==typeof(Object.is)
- )
- { Object.is=function(x,y)
- { return( (x===y)?((0!==x)||((1/x)===(1/y))):((x!==x)&&(y!==y)) );
- };
- }
- if
- ( false===
- ( ('isArray' in Array)
- && ('function'!==typeof(Array.isArray))
- )
- )
- { Array.isArray=function(arg)
- { return(('[object Array]'===Object.prototype.toString.call(arg)?true:false));
- };
- }
- //
- if
- ( !Array.prototype.forEach
- )
- { Array.prototype.forEach=function(f)
- {
- var k=0,o,l,a;
- if(('undefined'===typeof(this))||(null===this))
- { throw(new TypeError('`this` is null or not defined'));
- };
- o=(Object(this));l=(o.length>>>0);
- if('function'!==typeof(f))
- { throw(new TypeError(f+' is not a function'));
- };
- if(1<arguments.length)
- { a=arguments[1];
- };
- while(l>k)
- { var v;if(k in o){v=o[k];f.call(a,v,k,o);};k++;
- };
- return(void(0));
- };
- }
- }
- /*!~~!*/
- //
- //console.log( L );
- //
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement