1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
-
-
-
- var objectTypes = {
- 'function': true,
- 'object': true
- };
-
-
- var freeExports = (objectTypes[typeof exports] && exports && !exports.nodeType)
- ? exports
- : undefined;
-
-
- var freeModule = (objectTypes[typeof module] && module && !module.nodeType)
- ? module
- : undefined;
-
-
- var freeGlobal = checkGlobal(freeExports && freeModule && typeof global == 'object' && global);
-
-
- var freeSelf = checkGlobal(objectTypes[typeof self] && self);
-
-
- var freeWindow = checkGlobal(objectTypes[typeof window] && window);
-
-
- var thisGlobal = checkGlobal(objectTypes[typeof this] && this);
-
-
- var root = freeGlobal ||
- ((freeWindow !== (thisGlobal && thisGlobal.window)) && freeWindow) ||
- freeSelf || thisGlobal || Function('return this')();
-
-
- function checkGlobal(value) {
- return (value && value.Object === Object) ? value : null;
- }
-
- module.exports = root;
|