Current File : /home/tradevaly/www/node_modules/contra/dist/contra.shim.js |
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
(function (Object, Array) {
'use strict';
if (!Array.prototype.forEach) {
Array.prototype.forEach = function (fn, ctx) {
if (this === void 0 || this === null || typeof fn !== 'function') {
throw new TypeError();
}
var t = this;
var len = t.length;
for (var i = 0; i < len; i++) {
if (i in t) { fn.call(ctx, t[i], i, t); }
}
};
}
if (!Array.prototype.indexOf) {
Array.prototype.indexOf = function (what, start) {
if (this === undefined || this === null) {
throw new TypeError();
}
var length = this.length;
start = +start || 0;
if (Math.abs(start) === Infinity) {
start = 0;
} else if (start < 0) {
start += length;
if (start < 0) { start = 0; }
}
for (; start < length; start++) {
if (this[start] === what) {
return start;
}
}
return -1;
};
}
if (!Array.prototype.filter) {
Array.prototype.filter = function (fn, ctx) {
var f = [];
this.forEach(function (v, i, t) {
if (fn.call(ctx, v, i, t)) { f.push(v); }
}, ctx);
return f;
};
}
if (!Function.prototype.bind) {
Function.prototype.bind = function (context) {
if (typeof this !== 'function') {
throw new TypeError('Function.prototype.bind - what is trying to be bound is not callable');
}
var curried = Array.prototype.slice.call(arguments, 1);
var original = this;
var NoOp = function () {};
var bound = function () {
var ctx = this instanceof NoOp && context ? this : context;
var args = curried.concat(Array.prototype.slice.call(arguments));
return original.apply(ctx, args);
};
NoOp.prototype = this.prototype;
bound.prototype = new NoOp();
return bound;
};
}
if (!Object.keys) {
Object.keys = function (o) {
var keys = [];
for (var k in o) {
if (o.hasOwnProperty(k)) {
keys.push(k);
}
}
return keys;
};
}
if (Object.defineProperty) { // test for IE8 partial implementation
try { Object.defineProperty({}, 'x', {}); } catch (e) { Object.definePropertyPartial = true; }
}
})(Object, Array);
},{}]},{},[1])
//# sourceMappingURL=data:application/json;charset:utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5vZGVfbW9kdWxlcy9icm93c2VyLXBhY2svX3ByZWx1ZGUuanMiLCJjb250cmEuc2hpbS5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTtBQ0FBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsImZpbGUiOiJnZW5lcmF0ZWQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlc0NvbnRlbnQiOlsiKGZ1bmN0aW9uIGUodCxuLHIpe2Z1bmN0aW9uIHMobyx1KXtpZighbltvXSl7aWYoIXRbb10pe3ZhciBhPXR5cGVvZiByZXF1aXJlPT1cImZ1bmN0aW9uXCImJnJlcXVpcmU7aWYoIXUmJmEpcmV0dXJ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