node-query/node_modules/es6-shim/es6-shim.min.js

11 lines
26 KiB
JavaScript
Raw Normal View History

2014-10-28 14:36:39 -04:00
/*!
* https://github.com/paulmillr/es6-shim
* @license es6-shim Copyright 2013-2014 by Paul Miller (http://paulmillr.com)
* and contributors, MIT License
2014-11-25 14:23:08 -05:00
* es6-shim: v0.20.2
2014-10-28 14:36:39 -04:00
* see https://github.com/paulmillr/es6-shim/blob/master/LICENSE
* Details and documentation:
* https://github.com/paulmillr/es6-shim/
*/
2014-11-25 14:23:08 -05:00
(function(e,t){if(typeof define==="function"&&define.amd){define(t)}else if(typeof exports==="object"){module.exports=t()}else{e.returnExports=t()}})(this,function(){"use strict";var e=function(e){try{e()}catch(t){return false}return true};var t=function(e,t){try{var r=function(){e.apply(this,arguments)};if(!r.__proto__){return false}Object.setPrototypeOf(r,e);r.prototype=Object.create(e.prototype,{constructor:{value:e}});return t(r)}catch(n){return false}};var r=function(){try{Object.defineProperty({},"x",{});return true}catch(e){return false}};var n=function(){var e=false;if(String.prototype.startsWith){try{"/a/".startsWith(/a/)}catch(t){e=true}}return e};var i=new Function("return this;");var o=i();var a=o.isFinite;var u=!!Object.defineProperty&&r();var s=n();var f=Array.prototype.slice;var c=String.prototype.indexOf;var l=Object.prototype.toString;var h=Object.prototype.hasOwnProperty;var v;var p=function(e,t,r,n){if(!n&&t in e){return}if(u){Object.defineProperty(e,t,{configurable:true,enumerable:false,writable:true,value:r})}else{e[t]=r}};var y=function(e,t){Object.keys(t).forEach(function(r){var n=t[r];p(e,r,n,false)})};var d=Object.create||function(e,t){function r(){}r.prototype=e;var n=new r;if(typeof t!=="undefined"){y(n,t)}return n};var b=typeof Symbol==="function"&&Symbol.iterator||"_es6shim_iterator_";if(o.Set&&typeof(new o.Set)["@@iterator"]==="function"){b="@@iterator"}var g=function(e,t){if(!t){t=function n(){return this}}var r={};r[b]=t;y(e,r);if(!e[b]&&typeof b==="symbol"){e[b]=t}};var m=function $(e){var t=l.call(e);var r=t==="[object Arguments]";if(!r){r=t!=="[object Array]"&&e!==null&&typeof e==="object"&&typeof e.length==="number"&&e.length>=0&&l.call(e.callee)==="[object Function]"}return r};var w=function(e){if(!j.TypeIsObject(e)){throw new TypeError("bad object")}if(!e._es6construct){if(e.constructor&&j.IsCallable(e.constructor["@@create"])){e=e.constructor["@@create"](e)}y(e,{_es6construct:true})}return e};var j={CheckObjectCoercible:function(e,t){if(e==null){throw new TypeError(t||"Cannot call method on "+e)}return e},TypeIsObject:function(e){return e!=null&&Object(e)===e},ToObject:function(e,t){return Object(j.CheckObjectCoercible(e,t))},IsCallable:function(e){return typeof e==="function"&&l.call(e)==="[object Function]"},ToInt32:function(e){return e>>0},ToUint32:function(e){return e>>>0},ToInteger:function(e){var t=+e;if(Number.isNaN(t)){return 0}if(t===0||!Number.isFinite(t)){return t}return(t>0?1:-1)*Math.floor(Math.abs(t))},ToLength:function(e){var t=j.ToInteger(e);if(t<=0){return 0}if(t>Number.MAX_SAFE_INTEGER){return Number.MAX_SAFE_INTEGER}return t},SameValue:function(e,t){if(e===t){if(e===0){return 1/e===1/t}return true}return Number.isNaN(e)&&Number.isNaN(t)},SameValueZero:function(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)},IsIterable:function(e){return j.TypeIsObject(e)&&(typeof e[b]!=="undefined"||m(e))},GetIterator:function(e){if(m(e)){return new v(e,"value")}var t=e[b]();if(!j.TypeIsObject(t)){throw new TypeError("bad iterator")}return t},IteratorNext:function(e){var t=arguments.length>1?e.next(arguments[1]):e.next();if(!j.TypeIsObject(t)){throw new TypeError("bad iterator")}return t},Construct:function(e,t){var r;if(j.IsCallable(e["@@create"])){r=e["@@create"]()}else{r=d(e.prototype||null)}y(r,{_es6construct:true});var n=e.apply(r,t);return j.TypeIsObject(n)?n:r}};var I=function(){function e(e){var t=Math.floor(e),r=e-t;if(r<.5){return t}if(r>.5){return t+1}return t%2?t+1:t}function t(t,r,n){var i=(1<<r-1)-1,o,a,u,s,f,c,l,h;if(t!==t){a=(1<<r)-1;u=Math.pow(2,n-1);o=0}else if(t===Infinity||t===-Infinity){a=(1<<r)-1;u=0;o=t<0?1:0}else if(t===0){a=0;u=0;o=1/t===-Infinity?1:0}else{o=t<0;t=Math.abs(t);if(t>=Math.pow(2,1-i)){a=Math.min(Math.floor(Math.log(t)/Math.LN2),1023);u=e(t/Math.pow(2,a)*Math.pow(2,n));if(u/Math.pow(2,n)>=2){a=a+1;u=1}if(a>i){a=(1<<r)-1;u=0}else{a=a+i;u=u-Math.pow(2,n)}}else{a=0;u=e(t/Math.pow(2,1-i-n))}}c=[];for(f=n;f;f-=1){c.push(u%2?1:0);u=Math.floor(u/2)}for(f=r;f;f-=1){c.push(a%2?1:0);a=Math.floor(a/2)}c.push(o?1:0);c.reverse();l=c.join("");h=[];whi
2014-10-28 14:36:39 -04:00
//# sourceMappingURL=es6-shim.map