Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

should

Package Overview
Dependencies
Maintainers
4
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

should - npm Package Compare versions

Comparing version 8.2.0 to 8.2.1

5

History.md

@@ -0,1 +1,6 @@

8.2.1 / 2016-01-27
==================
* Fix bug with new option, thanks @VinGarcia
8.2.0 / 2016-01-24

@@ -2,0 +7,0 @@ ==================

3

lib/should.js

@@ -35,2 +35,3 @@ /*

* * `checkProtoEql` boolean - Affect if `.eql` will check objects prototypes
* * `plusZeroAndMinusZeroEqual` boolean - Affect if `.eql` will treat +0 and -0 as equal
* Also it can contain options for should-format.

@@ -61,3 +62,3 @@ *

* Using `should(obj)` is the equivalent of using `obj.should` with known issues (like nulls and method calls etc).
*
*
* To add new assertions, need to use Assertion.add method.

@@ -64,0 +65,0 @@ *

{
"name": "should",
"description": "test framework agnostic BDD-style assertions",
"version": "8.2.0",
"version": "8.2.1",
"author": "TJ Holowaychuk <tj@vision-media.ca> and contributors",

@@ -40,3 +40,3 @@ "repository": {

"dependencies": {
"should-equal": "0.7.1",
"should-equal": "0.7.2",
"should-format": "0.3.2",

@@ -43,0 +43,0 @@ "should-type": "0.2.0"

/*!
* should - test framework agnostic BDD-style assertions
* @version v8.2.0
* @version v8.2.1
* @author TJ Holowaychuk <tj@vision-media.ca> and contributors

@@ -8,3 +8,3 @@ * @link https://github.com/shouldjs/should.js

*/
!function t(e,r,a){function n(s,i){if(!r[s]){if(!e[s]){var u="function"==typeof require&&require;if(!i&&u)return u(s,!0);if(o)return o(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var l=r[s]={exports:{}};e[s][0].call(l.exports,function(t){var r=e[s][1][t];return n(r?r:t)},l,l.exports,t,e,r,a)}return r[s].exports}for(var o="function"==typeof require&&require,s=0;s<a.length;s++)n(a[s]);return n}({1:[function(t,e,r){window.Should=t("./index"),Object.defineProperty(window,"should",{enumerable:!1,configurable:!0,value:window.Should})},{"./index":2}],2:[function(t,e,r){var a=t("./lib/should"),n=Object.prototype,o="should";try{var s=a.extend(o,n);a._prevShould=s}catch(i){}e.exports=a},{"./lib/should":19}],3:[function(t,e,r){function a(t){return i+t}function n(t){return t.split("\n").map(a).join("\n")}var o=t("./util"),s=function(t){if(o.merge(this,t),t.message||Object.defineProperty(this,"message",{get:function(){return this._message||(this._message=this.generateMessage(),this.generatedMessage=!0),this._message},configurable:!0,enumerable:!1}),Error.captureStackTrace)Error.captureStackTrace(this,this.stackStartFunction);else{var e=new Error;if(e.stack){var r=e.stack;if(this.stackStartFunction){var a=o.functionName(this.stackStartFunction),n=r.indexOf("\n"+a);if(n>=0){var s=r.indexOf("\n",n+1);r=r.substring(s+1)}}this.stack=r}}},i=" ";s.prototype=Object.create(Error.prototype,{name:{value:"AssertionError"},generateMessage:{value:function(){if(!this.operator&&this.previous)return this.previous.message;var t=o.format(this.actual),e="expected"in this?" "+o.format(this.expected):"",r="details"in this&&this.details?" ("+this.details+")":"",a=this.previous?"\n"+n(this.previous.message):"";return"expected "+t+(this.negate?" not ":" ")+this.operator+e+r+a}}}),e.exports=s},{"./util":20}],4:[function(t,e,r){function a(t){this.obj=t,this.anyOne=!1,this.negate=!1,this.params={actual:t}}function n(){a.apply(this,arguments)}var o=t("./assertion-error");a.prototype={constructor:a,assert:function(t){if(t)return this;var e=this.params;throw"obj"in e&&!("actual"in e)?e.actual=e.obj:"obj"in e||"actual"in e||(e.actual=this.obj),e.stackStartFunction=e.stackStartFunction||this.assert,e.negate=this.negate,e.assertion=this,new o(e)},fail:function(){return this.assert(!1)}},n.prototype.then=function(t,e){return this.obj.then(t,e)},a.add=function(t,e){Object.defineProperty(a.prototype,t,{enumerable:!0,configurable:!0,value:function(){var r=new a(this.obj,this,t);r.anyOne=this.anyOne;try{e.apply(r,arguments)}catch(n){if(n instanceof o){if(this.negate)return this.obj=r.obj,this.negate=!1,this;r!==n.assertion&&(r.params.previous=n),r.negate=!1,r.fail()}throw n}return this.negate&&(r.negate=!0,r.params.details="false negative fail",r.fail()),this.params.operator||(this.params=r.params),this.obj=r.obj,this.negate=!1,this}}),Object.defineProperty(n.prototype,t,{enumerable:!0,configurable:!0,value:function(){var e=arguments;return this.obj=this.obj.then(function(r){return r[t].apply(r,e)}),this}})},a.addChain=function(t,e){e=e||function(){},Object.defineProperty(a.prototype,t,{get:function(){return e.call(this),this},enumerable:!0}),Object.defineProperty(n.prototype,t,{enumerable:!0,configurable:!0,get:function(){return this.obj=this.obj.then(function(e){return e[t]}),this}})},a.alias=function(t,e){var r=Object.getOwnPropertyDescriptor(a.prototype,t);if(!r)throw new Error("Alias "+t+" -> "+e+" could not be created as "+t+" not defined");Object.defineProperty(a.prototype,e,r);var o=Object.getOwnPropertyDescriptor(n.prototype,t);o&&Object.defineProperty(n.prototype,e,o)},a.addChain("not",function(){this.negate=!this.negate}),a.addChain("any",function(){this.anyOne=!0}),e.exports=a,e.exports.PromisedAssertion=n},{"./assertion-error":3}],5:[function(t,e,r){var a=t("should-format").Formatter,n={checkProtoEql:!1,getFormatter:function(t){return new a(t||n)}};e.exports=n},{"should-format":25}],6:[function(t,e,r){function a(t,e,r,n,o){var s=new i(t);s.params={operator:n,expected:e,message:r,stackStartFunction:o||a},s.fail()}function n(t,e){t||a(t,!0,e,"==",l.ok)}function o(t,e){return t&&e?"[object RegExp]"==Object.prototype.toString.call(e)?e.test(t):t instanceof e?!0:e.call({},t)===!0?!0:!1:!1}function s(t,e,r,n){var s;"string"==typeof r&&(n=r,r=null);try{e()}catch(i){s=i}if(n=(r&&r.name?" ("+r.name+")":".")+(n?" "+n:"."),t&&!s&&a(s,r,"Missing expected exception"+n),!t&&o(s,r)&&a(s,r,"Got unwanted exception"+n),t&&s&&r&&!o(s,r)||!t&&s)throw s}var i=t("./../assertion"),u=t("should-equal"),c=Array.prototype.slice,l=e.exports=n;l.fail=a,l.ok=n,l.equal=function(t,e,r){t!=e&&a(t,e,r,"==",l.equal)},l.notEqual=function(t,e,r){t==e&&a(t,e,r,"!=",l.notEqual)},l.deepEqual=function(t,e,r){u(t,e).result||a(t,e,r,"deepEqual",l.deepEqual)},l.notDeepEqual=function(t,e,r){u(t,e).result&&a(t,e,r,"notDeepEqual",l.notDeepEqual)},l.strictEqual=function(t,e,r){t!==e&&a(t,e,r,"===",l.strictEqual)},l.notStrictEqual=function(t,e,r){t===e&&a(t,e,r,"!==",l.notStrictEqual)},l["throws"]=function(t,e,r){s.apply(this,[!0].concat(c.call(arguments)))},l.doesNotThrow=function(t,e){s.apply(this,[!1].concat(c.call(arguments)))},l.ifError=function(t){if(t)throw t}},{"./../assertion":4,"should-equal":22}],7:[function(t,e,r){var a=t("../util"),n=t("./_assert"),o=t("../assertion-error");e.exports=function(t){var e=t.format;a.merge(t,n),t.exist=t.exists=function(r,a){if(null==r)throw new o({message:a||"expected "+e(r)+" to exist",stackStartFunction:t.exist})},t.not={},t.not.exist=t.not.exists=function(r,a){if(null!=r)throw new o({message:a||"expected "+e(r)+" to not exist",stackStartFunction:t.not.exist})}}},{"../assertion-error":3,"../util":20,"./_assert":6}],8:[function(t,e,r){e.exports=function(t,e){e.add("true",function(){this.is.exactly(!0)}),e.alias("true","True"),e.add("false",function(){this.is.exactly(!1)}),e.alias("false","False"),e.add("ok",function(){this.params={operator:"to be truthy"},this.assert(this.obj)})}},{}],9:[function(t,e,r){e.exports=function(t,e){["an","of","a","and","be","has","have","with","is","which","the","it"].forEach(function(t){e.addChain(t)})}},{}],10:[function(t,e,r){var a=t("../util"),n=t("should-equal");e.exports=function(t,e){var r=t.format;e.add("containEql",function(t){this.params={operator:"to contain "+r(t)},this.is.not["null"]().and.not.undefined();var e=this.obj;"string"==typeof e?this.assert(e.indexOf(String(t))>=0):a.isIndexable(e)?this.assert(a.some(e,function(e){return n(e,t).result})):this.have.properties(t)}),e.add("containDeepOrdered",function(e){this.params={operator:"to contain "+r(e)};var n=this.obj;if("string"==typeof n)this.is.equal(String(e));else if(a.isIndexable(n)&&a.isIndexable(e)){for(var o=0,s=0,i=a.length(n),u=a.length(e);i>o&&u>s;o++)try{t(n[o]).containDeepOrdered(e[s]),s++}catch(c){if(c instanceof t.AssertionError)continue;throw c}this.assert(s===u)}else null!=n&&null!=e&&"object"==typeof n&&"object"==typeof e?(a.forEach(e,function(e,r){t(n[r]).containDeepOrdered(e)}),a.isEmptyObject(e)&&this.eql(e)):this.eql(e)}),e.add("containDeep",function(e){this.params={operator:"to contain "+r(e)};var n=this.obj;if("string"==typeof n)this.is.equal(String(e));else if(a.isIndexable(n)&&a.isIndexable(e)){var o={};a.forEach(e,function(e){this.assert(a.some(n,function(r,a){if(a in o)return!1;try{return t(r).containDeep(e),o[a]=!0,!0}catch(n){if(n instanceof t.AssertionError)return!1;throw n}}))},this)}else null!=n&&null!=e&&"object"==typeof n&&"object"==typeof e?(a.forEach(e,function(e,r){t(n[r]).containDeep(e)}),a.isEmptyObject(e)&&this.eql(e)):this.eql(e)})}},{"../util":20,"should-equal":22}],11:[function(t,e,r){function a(t,e,r){return((t.path.length>0?"at "+t.path.map(s.formatProp).join(" -> "):"")+(t.a===e?"":", A has "+s.format(t.a))+(t.b===r?"":" and B has "+s.format(t.b))+(t.showReason?" because "+t.reason:"")).trim()}var n=t("should-equal"),o=t("should-type"),s=t("../util");e.exports=function(t,e){function r(r,a,n){e.add(r,function(e){1!==arguments.length?e=Array.prototype.slice.call(arguments):t(e).be.Array(),this.params={operator:a,expected:e};var r=this.obj,o=!1;s.forEach(e,function(e){try{return t(e)[n](r),o=!0,!1}catch(a){if(a instanceof t.AssertionError)return;throw a}}),this.assert(o)})}e.add("eql",function(e,r){this.params={operator:"to equal",expected:e,message:r};var s=n(this.obj,e,t.config);this.params.details=s.result?"":a(s,this.obj,e),this.params.showDiff=n(o(this.obj),o(e)).result,this.assert(s.result)}),e.add("equal",function(t,e){this.params={operator:"to be",expected:t,message:e},this.params.showDiff=n(o(this.obj),o(t)).result,this.assert(t===this.obj)}),e.alias("equal","exactly"),e.alias("eql","deepEqual"),r("equalOneOf","to be equals one of","equal"),r("oneOf","to be one of","eql")}},{"../util":20,"should-equal":22,"should-type":29}],12:[function(t,e,r){var a=t("../util");e.exports=function(t,e){var r=t.format;e.add("throw",function(e,n){var o=this.obj,s={},i="",u=!1;if(a.isGeneratorFunction(o))return t(o())["throw"](e,n);if(a.isGeneratorObject(o))return t(o.next.bind(o))["throw"](e,n);this.is.a.Function();var c=!0;try{o()}catch(l){u=!0,s=l}if(u)if(e){if("string"==typeof e)c=e==s.message;else if(e instanceof RegExp)c=e.test(s.message);else if("function"==typeof e)c=s instanceof e;else if(null!=e)try{t(s).match(e)}catch(l){if(!(l instanceof t.AssertionError))throw l;i=": "+l.message,c=!1}if(c){if("function"==typeof e&&n)try{t(s).match(n)}catch(l){if(!(l instanceof t.AssertionError))throw l;i=": "+l.message,c=!1}}else"string"==typeof e||e instanceof RegExp?i=" with a message matching "+r(e)+", but got '"+s.message+"'":"function"==typeof e&&(i=" of type "+a.functionName(e)+", but got "+a.functionName(s.constructor))}else i=" (got "+r(s)+")";this.params={operator:"to throw exception"+i},this.assert(u),this.assert(c)}),e.alias("throw","throwError")}},{"../util":20}],13:[function(t,e,r){var a=t("../util"),n=t("should-equal");e.exports=function(t,e){var r=t.format;e.add("match",function(e,o){if(this.params={operator:"to match "+r(e),message:o},!n(this.obj,e).result)if(e instanceof RegExp){if("string"==typeof this.obj)this.assert(e.exec(this.obj));else if(a.isIndexable(this.obj))a.forEach(this.obj,function(t){this.assert(e.exec(t))},this);else if(null!=this.obj&&"object"==typeof this.obj){var s=[],i=[];a.forEach(this.obj,function(t,n){e.exec(t)?i.push(a.formatProp(n)):s.push(a.formatProp(n)+" ("+r(t)+")")},this),s.length&&(this.params.operator+="\n not matched properties: "+s.join(", ")),i.length&&(this.params.operator+="\n matched properties: "+i.join(", ")),this.assert(0===s.length)}}else if("function"==typeof e){var u;u=e(this.obj),"boolean"==typeof u&&this.assert(u)}else null!=e&&null!=this.obj&&"object"==typeof e?(s=[],i=[],a.forEach(e,function(e,n){try{t(this.obj).have.property(n).which.match(e),i.push(a.formatProp(n))}catch(o){if(!(o instanceof t.AssertionError))throw o;s.push(a.formatProp(n)+" ("+r(this.obj[n])+")")}},this),s.length&&(this.params.operator+="\n not matched properties: "+s.join(", ")),i.length&&(this.params.operator+="\n matched properties: "+i.join(", ")),this.assert(0===s.length)):this.assert(!1)}),e.add("matchEach",function(e,n){this.params={operator:"to match each "+r(e),message:n},a.forEach(this.obj,function(r){t(r).match(e)},this)}),e.add("matchAny",function(e,n){this.params={operator:"to match any "+r(e),message:n},this.assert(a.some(this.obj,function(r){try{return t(r).match(e),!0}catch(a){if(a instanceof t.AssertionError)return!1;throw a}}))}),e.alias("matchAny","matchSome"),e.alias("matchEach","matchEvery")}},{"../util":20,"should-equal":22}],14:[function(t,e,r){e.exports=function(t,e){e.add("NaN",function(){this.params={operator:"to be NaN"},this.assert(this.obj!==this.obj)}),e.add("Infinity",function(){this.params={operator:"to be Infinity"},this.is.a.Number().and.not.a.NaN().and.assert(!isFinite(this.obj))}),e.add("within",function(t,e,r){this.params={operator:"to be within "+t+".."+e,message:r},this.assert(this.obj>=t&&this.obj<=e)}),e.add("approximately",function(t,e,r){this.params={operator:"to be approximately "+t+" ±"+e,message:r},this.assert(Math.abs(this.obj-t)<=e)}),e.add("above",function(t,e){this.params={operator:"to be above "+t,message:e},this.assert(this.obj>t)}),e.add("below",function(t,e){this.params={operator:"to be below "+t,message:e},this.assert(this.obj<t)}),e.alias("above","greaterThan"),e.alias("below","lessThan"),e.add("aboveOrEqual",function(t,e){this.params={operator:"to be above or equal"+t,message:e},this.assert(this.obj>=t)}),e.add("belowOrEqual",function(t,e){this.params={operator:"to be below or equal"+t,message:e},this.assert(this.obj<=t)}),e.alias("aboveOrEqual","greaterThanOrEqual"),e.alias("belowOrEqual","lessThanOrEqual")}},{}],15:[function(t,e,r){var a=t("../util"),n=t("../assertion").PromisedAssertion,o=t("../assertion");e.exports=function(t){o.add("Promise",function(){this.params={operator:"to be promise"};var e=this.obj;t(e).have.property("then").which.is.a.Function()}),o.prototype.fulfilled=function(){this.params={operator:"to be fulfilled"},t(this.obj).be.a.Promise();var e=this;return this.obj.then(function(t){return e.negate&&e.fail(),t},function(t){return e.negate||e.fail(),t})},o.prototype.rejected=function(){this.params={operator:"to be rejected"},t(this.obj).be.a.Promise();var e=this;return this.obj.then(function(t){return e.negate||e.fail(),t},function(t){return e.negate&&e.fail(),t})},o.prototype.fulfilledWith=function(e){this.params={operator:"to be fulfilled"},t(this.obj).be.a.Promise();var r=this;return this.obj.then(function(a){return r.negate&&r.fail(),t(a).eql(e),a},function(t){return r.negate||r.fail(),t})},o.prototype.rejectedWith=function(e,r){this.params={operator:"to be rejected"},t(this.obj).be.a.Promise();var n=this;return this.obj.then(function(t){return n.negate||n.fail(),t},function(o){n.negate&&n.fail();var s=!0,i="";if("string"==typeof e)s=e===o.message;else if(e instanceof RegExp)s=e.test(o.message);else if("function"==typeof e)s=o instanceof e;else if(null!==e&&"object"==typeof e)try{t(o).match(e)}catch(u){if(!(u instanceof t.AssertionError))throw u;i=": "+u.message,s=!1}if(s){if("function"==typeof e&&r)try{t(o).match(r)}catch(u){if(!(u instanceof t.AssertionError))throw u;i=": "+u.message,s=!1}}else"string"==typeof e||e instanceof RegExp?i=" with a message matching "+t.format(e)+", but got '"+o.message+"'":"function"==typeof e&&(i=" of type "+a.functionName(e)+", but got "+a.functionName(o.constructor));return n.params.operator+=i,n.assert(s),o})},Object.defineProperty(o.prototype,"finally",{get:function(){t(this.obj).be.a.Promise();var e=this;return new n(this.obj.then(function(r){var a=t(r);return a.negate=e.negate,a.anyOne=e.anyOne,a}))}}),o.alias("finally","eventually")}},{"../assertion":4,"../util":20}],16:[function(t,e,r){var a=t("../util"),n=t("should-equal"),o=Array.prototype.slice;e.exports=function(t,e){function r(){var t={};if(arguments.length>1)t.names=o.call(arguments);else{var e=arguments[0];"string"==typeof e?t.names=[e]:a.isIndexable(e)?t.names=e:(t.names=Object.keys(e),t.values=e)}return t}var s=t.format;e.add("propertyWithDescriptor",function(e,r){this.params={actual:this.obj,operator:"to have own property with descriptor "+s(r)};var a=this.obj;this.have.ownProperty(e),t(Object.getOwnPropertyDescriptor(Object(a),e)).have.properties(r)}),e.add("enumerable",function(t,e){t=a.convertPropertyName(t),this.params={operator:"to have enumerable property "+a.formatProp(t)+(arguments.length>1?" equal to "+s(e):"")};var r={enumerable:!0};arguments.length>1&&(r.value=e),this.have.propertyWithDescriptor(t,r)}),e.add("enumerables",function(e){var n=r.apply(null,arguments);this.params={operator:"to have enumerables "+n.names.map(a.formatProp)};var o=this.obj;n.names.forEach(function(e){t(o).have.enumerable(e)})}),e.add("property",function(t,e){if(t=a.convertPropertyName(t),arguments.length>1){var r={};r[t]=e,this.have.properties(r)}else this.have.properties(t);this.obj=this.obj[t]}),e.add("properties",function(t){var e={};arguments.length>1?t=o.call(arguments):Array.isArray(t)||("string"==typeof t||"symbol"==typeof t?t=[t]:(e=t,t=Object.keys(t)));var r=Object(this.obj),i=[];t.forEach(function(t){t in r||i.push(a.formatProp(t))});var u=i;0===u.length?u=t.map(a.formatProp):this.anyOne&&(u=t.filter(function(t){return i.indexOf(a.formatProp(t))<0}).map(a.formatProp));var c=(1===u.length?"to have property ":"to have "+(this.anyOne?"any of ":"")+"properties ")+u.join(", ");this.params={obj:this.obj,operator:c},this.assert(0===i.length||this.anyOne&&i.length!=t.length);var l=Object.keys(e);if(l.length){var h=[];u=[],l.forEach(function(t){var o=e[t];n(r[t],o).result?u.push(a.formatProp(t)+" of "+s(o)):h.push(a.formatProp(t)+" of "+s(o)+" (got "+s(r[t])+")")}),(0!==h.length&&!this.anyOne||this.anyOne&&0===u.length)&&(u=h),c=(1===u.length?"to have property ":"to have "+(this.anyOne?"any of ":"")+"properties ")+u.join(", "),this.params={obj:this.obj,operator:c},this.assert(0===h.length||this.anyOne&&h.length!=l.length)}}),e.add("length",function(t,e){this.have.property("length",t,e)}),e.alias("length","lengthOf");var i=Object.prototype.hasOwnProperty;e.add("ownProperty",function(t,e){t=a.convertPropertyName(t),this.params={actual:this.obj,operator:"to have own property "+a.formatProp(t),message:e},this.assert(i.call(this.obj,t)),this.obj=this.obj[t]}),e.alias("ownProperty","hasOwnProperty"),e.add("empty",function(){if(this.params={operator:"to be empty"},void 0!==a.length(this.obj))t(this.obj).have.property("length",0);else{var e=Object(this.obj);for(var r in e)t(this.obj).not.have.ownProperty(r)}},!0),e.add("keys",function(t){arguments.length>1?t=o.call(arguments):1===arguments.length&&"string"==typeof t?t=[t]:0===arguments.length&&(t=[]),t=t.map(String);var e=Object(this.obj),r=[];t.forEach(function(t){i.call(this.obj,t)||r.push(a.formatProp(t))},this);var n=[];Object.keys(e).forEach(function(e){t.indexOf(e)<0&&n.push(a.formatProp(e))});var s=0===t.length?"to be empty":"to have "+(1===t.length?"key ":"keys ");this.params={operator:s+t.map(a.formatProp).join(", ")},r.length>0&&(this.params.operator+="\n missing keys: "+r.join(", ")),n.length>0&&(this.params.operator+="\n extra keys: "+n.join(", ")),this.assert(0===r.length&&0===n.length)}),e.alias("keys","key"),e.add("propertyByPath",function(e){arguments.length>1?e=o.call(arguments):1===arguments.length&&"string"==typeof e?e=[e]:0===arguments.length&&(e=[]);var r=e.map(a.formatProp);e=e.map(String);for(var n,s=t(Object(this.obj)),i=[];n=e.shift();)this.params={operator:"to have property by path "+r.join(", ")+" - failed on "+a.formatProp(n)},s=s.have.property(n),i.push(n);this.params={obj:this.obj,operator:"to have property by path "+r.join(", ")},this.obj=s.obj})}},{"../util":20,"should-equal":22}],17:[function(t,e,r){e.exports=function(t,e){e.add("startWith",function(e,r){this.params={operator:"to start with "+t.format(e),message:r},this.assert(0===this.obj.indexOf(e))}),e.add("endWith",function(e,r){this.params={operator:"to end with "+t.format(e),message:r},this.assert(this.obj.indexOf(e,this.obj.length-e.length)>=0)})}},{}],18:[function(t,e,r){var a=t("../util");e.exports=function(t,e){e.add("Number",function(){this.params={operator:"to be a number"},this.have.type("number")}),e.add("arguments",function(){this.params={operator:"to be arguments"},this.have["class"]("Arguments")}),e.alias("arguments","Arguments"),e.add("type",function(e,r){this.params={operator:"to have type "+e,message:r},t(typeof this.obj).be.exactly(e)}),e.add("instanceof",function(t,e){this.params={operator:"to be an instance of "+a.functionName(t),message:e},this.assert(Object(this.obj)instanceof t)}),e.alias("instanceof","instanceOf"),e.add("Function",function(){this.params={operator:"to be a function"},this.have.type("function")}),e.add("Object",function(){this.params={operator:"to be an object"},this.is.not["null"]().and.have.type("object")}),e.add("String",function(){this.params={operator:"to be a string"},this.have.type("string")}),e.add("Array",function(){this.params={operator:"to be an array"},this.have["class"]("Array")}),e.add("Boolean",function(){this.params={operator:"to be a boolean"},this.have.type("boolean")}),e.add("Error",function(){this.params={operator:"to be an error"},this.have.instanceOf(Error)}),e.add("Date",function(){this.params={operator:"to be a date"},this.have.instanceOf(Date)}),e.add("null",function(){this.params={operator:"to be null"},this.assert(null===this.obj)}),e.alias("null","Null"),e.add("class",function(t){this.params={operator:"to have [[Class]] "+t},this.assert(Object.prototype.toString.call(this.obj)==="[object "+t+"]")}),e.alias("class","Class"),e.add("undefined",function(){this.params={operator:"to be undefined"},this.assert(void 0===this.obj)}),e.alias("undefined","Undefined"),e.add("iterable",function(){this.params={operator:"to be iterable"},t(this.obj).have.property(Symbol.iterator).which.is.a.Function()}),e.add("iterator",function(){this.params={operator:"to be iterator"},t(this.obj).have.property("next").which.is.a.Function()}),e.add("generator",function(){this.params={operator:"to be generator"},t(this.obj).be.iterable.and.iterator.and.it.is.equal(this.obj[Symbol.iterator]())})}},{"../util":20}],19:[function(t,e,r){function a(t){return new a.Assertion(t)}var n=t("./util");a.AssertionError=t("./assertion-error"),a.Assertion=t("./assertion"),a.format=n.format,a.type=t("should-type"),a.util=n,a.config=t("./config"),r=e.exports=a,a.extend=function(t,e){t=t||"should",e=e||Object.prototype;var r=Object.getOwnPropertyDescriptor(e,t);return Object.defineProperty(e,t,{set:function(){},get:function(){return a(n.isWrapperType(this)?this.valueOf():this)},configurable:!0}),{name:t,descriptor:r,proto:e}},a.noConflict=function(t){return t=t||a._prevShould,t&&(delete t.proto[t.name],t.descriptor&&Object.defineProperty(t.proto,t.name,t.descriptor)),a},a.use=function(t){return t(a,a.Assertion),this},a.use(t("./ext/assert")).use(t("./ext/chain")).use(t("./ext/bool")).use(t("./ext/number")).use(t("./ext/eql")).use(t("./ext/type")).use(t("./ext/string")).use(t("./ext/property")).use(t("./ext/error")).use(t("./ext/match")).use(t("./ext/contain")).use(t("./ext/promise"))},{"./assertion":4,"./assertion-error":3,"./config":5,"./ext/assert":7,"./ext/bool":8,"./ext/chain":9,"./ext/contain":10,"./ext/eql":11,"./ext/error":12,"./ext/match":13,"./ext/number":14,"./ext/promise":15,"./ext/property":16,"./ext/string":17,"./ext/type":18,"./util":20,"should-type":29}],20:[function(t,e,r){var a=t("should-type"),n=t("./config");r.isWrapperType=function(t){return t instanceof Number||t instanceof String||t instanceof Boolean},r.merge=function(t,e){if(t&&e)for(var r in e)t[r]=e[r];return t};var o=Object.prototype.hasOwnProperty;r.forEach=function s(t,e,a){if(r.isGeneratorFunction(t))return s(t(),e,a);if(r.isGeneratorObject(t))for(var n=t.next();!n.done;){if(e.call(a,n.value,"value",t)===!1)return;n=t.next()}else for(var i in t)if(o.call(t,i)&&e.call(a,t[i],i,t)===!1)return},r.some=function(t,e,a){var n=!1;return r.forEach(t,function(r,o){return e.call(a,r,o,t)?(n=!0,!1):void 0},a),n},r.isEmptyObject=function(t){for(var e in t)if(o.call(t,e))return!1;return!0},r.isIndexable=function(t){var e=a(t);return e.type===a.OBJECT&&e.cls===a.ARRAY||e.type===a.OBJECT&&e.cls===a.BUFFER||e.type===a.OBJECT&&e.cls===a.ARGUMENTS||e.type===a.OBJECT&&e.cls===a.ARRAY_BUFFER||e.type===a.OBJECT&&e.cls===a.TYPED_ARRAY||e.type===a.OBJECT&&e.cls===a.DATA_VIEW||e.type===a.OBJECT&&e.cls===a.STRING||e.type===a.STRING},r.length=function(t){var e=a(t);switch(e.type){case a.STRING:return t.length;case a.OBJECT:switch(e.cls){case a.ARRAY_BUFFER:case a.TYPED_ARRAY:case a.DATA_VIEW:return t.byteLength;case a.ARRAY:case a.BUFFER:case a.ARGUMENTS:case a.FUNCTION:return t.length}}},r.convertPropertyName=function(t){return"symbol"==typeof t?t:String(t)},r.isGeneratorObject=function(t){return t?"function"==typeof t.next&&"function"==typeof t[Symbol.iterator]&&t[Symbol.iterator]()===t:!1},r.isGeneratorFunction=function(t){return"function"!=typeof t?!1:/^function\s*\*\s*/.test(t.toString())},r.format=function(t,e){return n.getFormatter(e).format(t)},r.functionName=t("should-format").Formatter.functionName,r.formatProp=function(t){return n.getFormatter().formatPropertyName(String(t))}},{"./config":5,"should-format":25,"should-type":29}],21:[function(t,e,r){e.exports=function(t){for(var e=arguments,r=1,a=e.length;a>r;r++)t=t.replace(/%s/,e[r]);return t}},{}],22:[function(t,e,r){function a(t,e,r,a,n){var o={result:t};return t||(o.path=e,o.reason=r,o.a=a,o.b=n),o}function n(t){return t.type+(t.cls?"("+t.cls+(t.sub?" "+t.sub:"")+")":"")}function o(t,e,r,s,p,f,d){function m(n,o){if(arguments.length>2){var s=Array.prototype.slice.call(arguments,2);o=u.apply(null,[o].concat(s))}var i=a(n,f,o,t,e);return!n&&r.collectAllFails&&d.push(i),i}function b(a){return o(t[a],e[a],r,s,p,f.concat([a]),d)}function y(t,e){return o(t,e,r,s,p,f,d)}var g=l;if(t===e)return m(0!==t||1/t==1/e||r.plusZeroAndMinusZeroEqual,h.PLUS_0_AND_MINUS_0);var j,v,E,A=i(t),O=i(e),x=A.type!==O.type||A.cls!==O.cls;if(x||r.checkSubType&&A.sub!==O.sub||!r.checkSubType)return m(!1,h.DIFFERENT_TYPES,n(A),n(O));switch(A.type){case"number":return t!==t?m(e!==e,h.NAN_NUMBER):0===t?m(1/t==1/e||r.plusZeroAndMinusZeroEqual,h.PLUS_0_AND_MINUS_0):m(t===e,h.EQUALITY);case"boolean":case"string":return m(t===e,h.EQUALITY);case"function":if(g=y(t.toString(),e.toString()),!g.result&&(g.reason=h.FUNCTION_SOURCES,!r.collectAllFails))return g;break;case"object":switch(A.cls){case"regexp":for(v=["source","global","multiline","lastIndex","ignoreCase"];v.length;)if(g=b(v.shift()),!g.result&&!r.collectAllFails)return g;break;case"date":if(+t!==+e&&(g=m(!1,h.EQUALITY),!g.result&&!r.collectAllFails))return g;break;case"number":case"boolean":case"string":if(g=y(t.valueOf(),e.valueOf()),!g.result&&(g.reason=h.WRAPPED_VALUE,!r.collectAllFails))return g;break;case"buffer":if(g=b("length"),!g.result&&!r.collectAllFails)return g;for(j=t.length;j--;)if(g=b(j),!g.result&&!r.collectAllFails)return g;return l;case"error":for(v=["name","message"];v.length;)if(g=b(v.shift()),!g.result&&!r.collectAllFails)return g;break;case"array":case"arguments":case"typed-array":if(g=b("length"),!g.result&&!r.collectAllFails)return g;break;case"array-buffer":if(g=b("byteLength"),!g.result&&!r.collectAllFails)return g;break;case"map":case"set":if(g=b("size"),!g.result&&!r.collectAllFails)return g;s.push(t),p.push(e);for(var S=t.entries(),P=S.next();!P.done;){if(E=P.value[0],"object"!=i(E).type){if(e.has(E)){if("map"==A.cls){var T=e.get(E);if(g=y(P.value[1],T),!g.result&&(g.a=P.value,g.b=T,g.reason=h.MAP_VALUE_EQUALITY,!r.collectAllFails))break}}else if(g=m(!1,h.SET_MAP_MISSING_KEY),g.a=E,g.b=E,!r.collectAllFails)break}else for(var N=e.entries(),F=N.next();!F.done;){if(g=y(P.value[0],F.value[0]),g.result){if("map"==A.cls&&(g=y(P.value[1],F.value[1]),g.result||(g.a=P.value,g.b=F.value,g.reason=h.MAP_VALUE_EQUALITY)),!r.collectAllFails)break}else g.reason=h.SET_MAP_MISSING_KEY,g.a=E,g.b=E;F=N.next()}if(!g.result&&!r.collectAllFails)break;P=S.next()}if(s.pop(),p.pop(),!g.result&&(g.reason=h.SET_MAP_MISSING_ENTRY,!r.collectAllFails))return g}}for(j=s.length;j--;)if(s[j]==t)return m(p[j]==e,h.CIRCULAR_VALUES);s.push(t),p.push(e);for(E in e)if(c.call(e,E)){if(g=m(c.call(t,E),h.MISSING_KEY,"A",E),!g.result&&!r.collectAllFails)break;if(g.result&&(g=b(E),!g.result&&!r.collectAllFails))break}if(g.result||r.collectAllFails)for(E in t)if(c.call(t,E)&&(g=m(c.call(e,E),h.MISSING_KEY,"B",E),!g.result&&!r.collectAllFails))return g;if(s.pop(),p.pop(),!g.result&&!r.collectAllFails)return g;var _=!1,w=!1;return!r.checkProtoEql||(Object.getPrototypeOf&&(_=Object.getPrototypeOf(t)===Object.getPrototypeOf(e),w=!0),!w||_||(g=m(_,h.EQUALITY_PROTOTYPE),g.showReason=!0,g.result||r.collectAllFails))?l:g}function s(t,e,r){r=r||{},"boolean"!=typeof r.checkProtoEql&&(r.checkProtoEql=p.checkProtoEql),"boolean"!=typeof r.checkSubType&&(r.checkSubType=p.checkSubType),"boolean"!=typeof r.plusZeroAndMinusZeroEqual&&(r.plusZeroAndMinusZeroEqual=p.plusZeroAndMinusZeroEqual);var a=[],n=o(t,e,r,[],[],[],a);return r.collectAllFails?a:n}var i=t("should-type"),u=t("./format"),c=Object.prototype.hasOwnProperty,l=a(!0),h={PLUS_0_AND_MINUS_0:"+0 is not equal to -0",DIFFERENT_TYPES:"A has type %s and B has type %s",NAN_NUMBER:"NaN is not equal to any number",EQUALITY:"A is not equal to B",EQUALITY_PROTOTYPE:"A and B have different prototypes",WRAPPED_VALUE:"A wrapped value is not equal to B wrapped value",FUNCTION_SOURCES:"function A is not equal to B by source code value (via .toString call)",MISSING_KEY:"%s has no key %s",CIRCULAR_VALUES:"A has circular reference that was visited not in the same time as B",SET_MAP_MISSING_KEY:"Set/Map missing key",MAP_VALUE_EQUALITY:"Values of the same key in A and B is not equal"},p={checkProtoEql:!0,checkSubType:!0,plusZeroAndMinusZeroEqual:!1};e.exports=s,s.r=h},{"./format":21,"should-type":23}],23:[function(t,e,r){function a(t,e,r){this.type=t,this.cls=e,this.sub=r}function n(){this.checks=[]}function o(t){return u.getType(t)}var s=Object.prototype.toString,i=t("./types");n.prototype={add:function(t){return this.checks.push(t),this},addTypeOf:function(t,e){return this.add(function(r,n){return n===t?new a(e):void 0})},addClass:function(t,e,r){return this.add(function(n,o,s){return s===t?new a(i.OBJECT,e,r):void 0})},getType:function(t){for(var e=typeof t,r=s.call(t),a=0,n=this.checks.length;n>a;a++){var o=this.checks[a].call(this,t,e,r);if("undefined"!=typeof o)return o}}};var u=new n;u.addTypeOf(i.NUMBER,i.NUMBER).addTypeOf(i.UNDEFINED,i.UNDEFINED).addTypeOf(i.STRING,i.STRING).addTypeOf(i.BOOLEAN,i.BOOLEAN).addTypeOf(i.FUNCTION,i.FUNCTION).addTypeOf(i.SYMBOL,i.SYMBOL).add(function(t,e){return null===t?new a(i.NULL):void 0}).addClass("[object String]",i.STRING).addClass("[object Boolean]",i.BOOLEAN).addClass("[object Number]",i.NUMBER).addClass("[object Array]",i.ARRAY).addClass("[object RegExp]",i.REGEXP).addClass("[object Error]",i.ERROR).addClass("[object Date]",i.DATE).addClass("[object Arguments]",i.ARGUMENTS).addClass("[object Math]").addClass("[object JSON]").addClass("[object ArrayBuffer]",i.ARRAY_BUFFER).addClass("[object Int8Array]",i.TYPED_ARRAY,"int8").addClass("[object Uint8Array]",i.TYPED_ARRAY,"uint8").addClass("[object Uint8ClampedArray]",i.TYPED_ARRAY,"uint8clamped").addClass("[object Int16Array]",i.TYPED_ARRAY,"int16").addClass("[object Uint16Array]",i.TYPED_ARRAY,"uint16").addClass("[object Int32Array]",i.TYPED_ARRAY,"int32").addClass("[object Uint32Array]",i.TYPED_ARRAY,"uint32").addClass("[object Float32Array]",i.TYPED_ARRAY,"float32").addClass("[object Float64Array]",i.TYPED_ARRAY,"float64").addClass("[object DataView]",i.DATA_VIEW).addClass("[object Map]",i.MAP).addClass("[object WeakMap]",i.WEAK_MAP).addClass("[object Set]",i.SET).addClass("[object WeakSet]",i.WEAK_SET).addClass("[object Promise]",i.PROMISE).addClass("[object Blob]",i.BLOB).addClass("[object File]",i.FILE).addClass("[object FileList]",i.FILE_LIST).addClass("[object XMLHttpRequest]",i.XHR).add(function(t){return typeof Promise===i.FUNCTION&&t instanceof Promise||typeof t.then===i.FUNCTION?new a(i.OBJECT,i.PROMISE):void 0}).add(function(t){return"undefined"!=typeof Buffer&&t instanceof Buffer?new a(i.OBJECT,i.BUFFER):void 0}).add(function(t){return"undefined"!=typeof Node&&t instanceof Node?new a(i.OBJECT,i.HTML_ELEMENT,t.nodeName):void 0}).add(function(t){return t.Boolean===Boolean&&t.Number===Number&&t.String===String&&t.Date===Date?new a(i.OBJECT,i.HOST):void 0}).add(function(){return new a(i.OBJECT)}),o.checker=u,o.TypeChecker=n,o.Type=a,Object.keys(i).forEach(function(t){o[t]=i[t]}),e.exports=o},{"./types":24}],24:[function(t,e,r){var a={NUMBER:"number",UNDEFINED:"undefined",STRING:"string",BOOLEAN:"boolean",OBJECT:"object",FUNCTION:"function",NULL:"null",ARRAY:"array",
REGEXP:"regexp",DATE:"date",ERROR:"error",ARGUMENTS:"arguments",SYMBOL:"symbol",ARRAY_BUFFER:"array-buffer",TYPED_ARRAY:"typed-array",DATA_VIEW:"data-view",MAP:"map",SET:"set",WEAK_SET:"weak-set",WEAK_MAP:"weak-map",PROMISE:"promise",BUFFER:"buffer",HTML_ELEMENT:"html-element",HTML_ELEMENT_TEXT:"html-element-text",DOCUMENT:"document",WINDOW:"window",FILE:"file",FILE_LIST:"file-list",BLOB:"blob",HOST:"host",XHR:"xhr"};e.exports=a},{}],25:[function(t,e,r){function a(t){return function(e){var r=t(e);return r.sort(),r}}function n(t){t=t||{},this.seen=[],this.keys=a(t.keys===!1?Object.getOwnPropertyNames:Object.keys),this.maxLineLength="number"==typeof t.maxLineLength?t.maxLineLength:60,this.propSep=t.propSep||",",this.isUTCdate=!!t.isUTCdate}function o(t,e){var r=e?"UTC":"",a=t["get"+r+"FullYear"]()+"-"+u.pad0(t["get"+r+"Month"]()+1,2)+"-"+u.pad0(t["get"+r+"Date"](),2),n=u.pad0(t["get"+r+"Hours"](),2)+":"+u.pad0(t["get"+r+"Minutes"](),2)+":"+u.pad0(t["get"+r+"Seconds"](),2)+"."+u.pad0(t["get"+r+"Milliseconds"](),3),o=t.getTimezoneOffset(),s=Math.abs(o),i=Math.floor(s/60),c=s-60*i,l=(0>o?"+":"-")+u.pad0(i,2)+u.pad0(c,2);return a+" "+n+(e?"":" "+l)}function s(t,e){return new n(e).format(t)}var i=t("should-type"),u=t("./util");n.prototype={constructor:n,format:function(t){var e=i(t),r=e.type,a=e.type;e.cls&&(r+="_"+e.cls,a+="_"+e.cls),e.sub&&(a+="_"+e.sub);var n=this["_format_"+a]||this["_format_"+r]||this["_format_"+e.type]||this.defaultFormat;return n.call(this,t).trim()},_formatObject:function(t,e){e=e||{};var r=e.keys||this.keys(t),a=0,o=e.formatPropertyValue||this.formatPropertyValue,s=e.formatPropertyName||this.formatPropertyName,i=e.keyValueSep||": ",c=e.keyFilter||function(){return!0};this.seen.push(t);var l=[];r.forEach(function(e){if(c(e)){var r=s.call(this,e),n=(r?r+i:"")+o.call(this,t,e);a+=n.length,l.push(n)}},this),this.seen.pop(),(e.additionalProperties||[]).forEach(function(t){var e=t[0]+i+this.format(t[1]);a+=e.length,l.push(e)},this);var h=e.prefix||n.constructorName(t)||"";h.length>0&&(h+=" ");var p,f;Array.isArray(e.brackets)?(p=e.brackets&&e.brackets[0],f=e.brackets&&e.brackets[1]):(p="{",f="}");var d=e.value||"";return 0===l.length?d||h+p+f:a<=this.maxLineLength?h+p+" "+(d?d+" ":"")+l.join(this.propSep+" ")+" "+f:h+p+"\n"+(d?" "+d+"\n":"")+l.map(u.addSpaces).join(this.propSep+"\n")+"\n"+f},formatObject:function(t,e,r){r=r||this.keys(t);var a=0;return this.seen.push(t),r=r.map(function(e){var r=this.formatProperty(t,e);return a+=r.length,r},this),this.seen.pop(),0===r.length?"{}":a<=this.maxLineLength?"{ "+(e?e+" ":"")+r.join(this.propSep+" ")+" }":"{\n"+(e?" "+e+"\n":"")+r.map(u.addSpaces).join(this.propSep+"\n")+"\n}"},formatPropertyName:function(t){return t.match(/^[a-zA-Z_$][a-zA-Z_$0-9]*$/)?t:this.format(t)},formatProperty:function(t,e){var r=n.getPropertyDescriptor(t,e),a=this.formatPropertyName(e),o=r.get&&r.set?"[Getter/Setter]":r.get?"[Getter]":r.set?"[Setter]":this.seen.indexOf(r.value)>=0?"[Circular]":this.format(r.value);return a+": "+o},formatPropertyValue:function(t,e){var r=n.getPropertyDescriptor(t,e),a=r.get&&r.set?"[Getter/Setter]":r.get?"[Getter]":r.set?"[Setter]":this.seen.indexOf(r.value)>=0?"[Circular]":this.format(r.value);return a}},n.add=function(t,e,r,a){var o=Array.prototype.slice.call(arguments);a=o.pop(),n.prototype["_format_"+o.join("_")]=a},n.formatObjectWithPrefix=function(t){return function(e){var r=t.call(this,e),a=this.keys(e);return 0==a.length?r:this.formatObject(e,r,a)}};var c=/^\s*function\s*(\S*)\s*\(/;n.functionName=function(t){if(t.name)return t.name;var e=t.toString().match(c);if(null===e)return"";var r=e[1];return r},n.constructorName=function(t){for(;t;){var e=Object.getOwnPropertyDescriptor(t,"constructor");if(void 0!==e&&"function"==typeof e.value){var r=n.functionName(e.value);if(""!==r)return r}t=Object.getPrototypeOf(t)}},n.getPropertyDescriptor=function(t,e){var r;try{r=Object.getOwnPropertyDescriptor(t,e)||{value:t[e]}}catch(a){r={value:a}}return r},n.generateFunctionForIndexedArray=function(t,e,r){return function(a){for(var n=this.byteArrayMaxLength||50,o=a[t],s=[],i=0,c=0;n>c&&o>c;c++){var l=a[c]||0,h=u.pad0(l.toString(16),r);i+=h.length,s.push(h)}var p=a.constructor.name||e||"";return p&&(p+=" "),0===s.length?p+"[]":i<=this.maxLineLength?p+"[ "+s.join(this.propSep+" ")+" ]":p+"[\n"+s.map(u.addSpaces).join(this.propSep+"\n")+"\n]"}},n.add("undefined",function(){return"undefined"}),n.add("null",function(){return"null"}),n.add("boolean",function(t){return t?"true":"false"}),n.add("symbol",function(t){return t.toString()}),["number","boolean"].forEach(function(t){n.add("object",t,function(t){return this._formatObject(t,{additionalProperties:[["[[PrimitiveValue]]",t.valueOf()]]})})}),n.add("object","string",function(t){var e=t.valueOf();return this._formatObject(t,{keyFilter:function(t){return!(t.match(/\d+/)&&parseInt(t,10)<e.length)},additionalProperties:[["[[PrimitiveValue]]",e]]})}),n.add("object","regexp",function(t){return this._formatObject(t,{value:String(t)})}),n.add("number",function(t){return 0===t&&0>1/t?"-0":String(t)}),n.add("string",function(t){return"'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'"}),n.add("object",function(t){return this._formatObject(t)}),n.add("object","arguments",function(t){return this._formatObject(t,{prefix:"Arguments",formatPropertyName:function(t){return t.match(/\d+/)?void 0:this.formatPropertyName(t)},brackets:["[","]"]})}),n.add("object","array",function(t){return this._formatObject(t,{formatPropertyName:function(t){return t.match(/\d+/)?void 0:this.formatPropertyName(t)},brackets:["[","]"]})}),n.add("object","date",function(t){return this._formatObject(t,{value:o(t,this.isUTCdate)})}),n.add("function",function(t){return this._formatObject(t,{additionalProperties:[["name",n.functionName(t)]]})}),n.add("object","error",function(t){return this._formatObject(t,{prefix:t.name,additionalProperties:[["message",t.message]]})}),n.add("object","buffer",n.generateFunctionForIndexedArray("length","Buffer",2)),n.add("object","array-buffer",n.generateFunctionForIndexedArray("byteLength","ArrayBuffer",2)),n.add("object","typed-array","int8",n.generateFunctionForIndexedArray("length","Int8Array",2)),n.add("object","typed-array","uint8",n.generateFunctionForIndexedArray("length","Uint8Array",2)),n.add("object","typed-array","uint8clamped",n.generateFunctionForIndexedArray("length","Uint8ClampedArray",2)),n.add("object","typed-array","int16",n.generateFunctionForIndexedArray("length","Int16Array",4)),n.add("object","typed-array","uint16",n.generateFunctionForIndexedArray("length","Uint16Array",4)),n.add("object","typed-array","int32",n.generateFunctionForIndexedArray("length","Int32Array",8)),n.add("object","typed-array","uint32",n.generateFunctionForIndexedArray("length","Uint32Array",8)),n.add("object","promise",function(){return"[Promise]"}),n.add("object","xhr",function(){return"[XMLHttpRequest]"}),n.add("object","html-element",function(t){return t.outerHTML}),n.add("object","html-element","#text",function(t){return t.nodeValue}),n.add("object","html-element","#document",function(t){return t.documentElement.outerHTML}),n.add("object","host",function(){return"[Host]"}),n.add("object","set",function(t){var e=t.values(),r=0;this.seen.push(t);for(var a=[],n=e.next();!n.done;){var o=n.value,s=this.format(o);r+=s.length,a.push(s),n=e.next()}return this.seen.pop(),0===a.length?"Set {}":r<=this.maxLineLength?"Set { "+a.join(this.propSep+" ")+" }":"Set {\n"+a.map(u.addSpaces).join(this.propSep+"\n")+"\n}"}),n.add("object","map",function(t){var e=t.entries(),r=0;this.seen.push(t);for(var a=[],n=e.next();!n.done;){var o,s=n.value,i=this.format(s[0]),c=this.format(s[1]);o=i.length+c.length+4<=this.maxLineLength?i+" => "+c:i+" =>\n"+c,r+=i.length+c.length+4,a.push(o),n=e.next()}return this.seen.pop(),0===a.length?"Map {}":r<=this.maxLineLength?"Map { "+a.join(this.propSep+" ")+" }":"Map {\n"+a.map(u.addSpaces).join(this.propSep+"\n")+"\n}"}),n.prototype.defaultFormat=n.prototype._format_object,s.Formatter=n,e.exports=s},{"./util":28,"should-type":26}],26:[function(t,e,r){arguments[4][23][0].apply(r,arguments)},{"./types":27,dup:23}],27:[function(t,e,r){arguments[4][24][0].apply(r,arguments)},{dup:24}],28:[function(t,e,r){function a(t){return t.split("\n").map(function(t){return" "+t}).join("\n")}function n(t,e,r){t=String(t);var a=!1;if(0>e&&(a=!0,e=-e),t.length<e){var n=new Array(e-t.length+1).join(r);return a?t+n:n+t}return t}e.exports={addSpaces:a,pad:n,pad0:function(t,e){return n(t,e,"0")}}},{}],29:[function(t,e,r){arguments[4][23][0].apply(r,arguments)},{"./types":30,dup:23}],30:[function(t,e,r){arguments[4][24][0].apply(r,arguments)},{dup:24}]},{},[1]);
!function t(e,r,a){function n(s,i){if(!r[s]){if(!e[s]){var u="function"==typeof require&&require;if(!i&&u)return u(s,!0);if(o)return o(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var l=r[s]={exports:{}};e[s][0].call(l.exports,function(t){var r=e[s][1][t];return n(r?r:t)},l,l.exports,t,e,r,a)}return r[s].exports}for(var o="function"==typeof require&&require,s=0;s<a.length;s++)n(a[s]);return n}({1:[function(t,e,r){window.Should=t("./index"),Object.defineProperty(window,"should",{enumerable:!1,configurable:!0,value:window.Should})},{"./index":2}],2:[function(t,e,r){var a=t("./lib/should"),n=Object.prototype,o="should";try{var s=a.extend(o,n);a._prevShould=s}catch(i){}e.exports=a},{"./lib/should":19}],3:[function(t,e,r){function a(t){return i+t}function n(t){return t.split("\n").map(a).join("\n")}var o=t("./util"),s=function(t){if(o.merge(this,t),t.message||Object.defineProperty(this,"message",{get:function(){return this._message||(this._message=this.generateMessage(),this.generatedMessage=!0),this._message},configurable:!0,enumerable:!1}),Error.captureStackTrace)Error.captureStackTrace(this,this.stackStartFunction);else{var e=new Error;if(e.stack){var r=e.stack;if(this.stackStartFunction){var a=o.functionName(this.stackStartFunction),n=r.indexOf("\n"+a);if(n>=0){var s=r.indexOf("\n",n+1);r=r.substring(s+1)}}this.stack=r}}},i=" ";s.prototype=Object.create(Error.prototype,{name:{value:"AssertionError"},generateMessage:{value:function(){if(!this.operator&&this.previous)return this.previous.message;var t=o.format(this.actual),e="expected"in this?" "+o.format(this.expected):"",r="details"in this&&this.details?" ("+this.details+")":"",a=this.previous?"\n"+n(this.previous.message):"";return"expected "+t+(this.negate?" not ":" ")+this.operator+e+r+a}}}),e.exports=s},{"./util":20}],4:[function(t,e,r){function a(t){this.obj=t,this.anyOne=!1,this.negate=!1,this.params={actual:t}}function n(){a.apply(this,arguments)}var o=t("./assertion-error");a.prototype={constructor:a,assert:function(t){if(t)return this;var e=this.params;throw"obj"in e&&!("actual"in e)?e.actual=e.obj:"obj"in e||"actual"in e||(e.actual=this.obj),e.stackStartFunction=e.stackStartFunction||this.assert,e.negate=this.negate,e.assertion=this,new o(e)},fail:function(){return this.assert(!1)}},n.prototype.then=function(t,e){return this.obj.then(t,e)},a.add=function(t,e){Object.defineProperty(a.prototype,t,{enumerable:!0,configurable:!0,value:function(){var r=new a(this.obj,this,t);r.anyOne=this.anyOne;try{e.apply(r,arguments)}catch(n){if(n instanceof o){if(this.negate)return this.obj=r.obj,this.negate=!1,this;r!==n.assertion&&(r.params.previous=n),r.negate=!1,r.fail()}throw n}return this.negate&&(r.negate=!0,r.params.details="false negative fail",r.fail()),this.params.operator||(this.params=r.params),this.obj=r.obj,this.negate=!1,this}}),Object.defineProperty(n.prototype,t,{enumerable:!0,configurable:!0,value:function(){var e=arguments;return this.obj=this.obj.then(function(r){return r[t].apply(r,e)}),this}})},a.addChain=function(t,e){e=e||function(){},Object.defineProperty(a.prototype,t,{get:function(){return e.call(this),this},enumerable:!0}),Object.defineProperty(n.prototype,t,{enumerable:!0,configurable:!0,get:function(){return this.obj=this.obj.then(function(e){return e[t]}),this}})},a.alias=function(t,e){var r=Object.getOwnPropertyDescriptor(a.prototype,t);if(!r)throw new Error("Alias "+t+" -> "+e+" could not be created as "+t+" not defined");Object.defineProperty(a.prototype,e,r);var o=Object.getOwnPropertyDescriptor(n.prototype,t);o&&Object.defineProperty(n.prototype,e,o)},a.addChain("not",function(){this.negate=!this.negate}),a.addChain("any",function(){this.anyOne=!0}),e.exports=a,e.exports.PromisedAssertion=n},{"./assertion-error":3}],5:[function(t,e,r){var a=t("should-format").Formatter,n={checkProtoEql:!1,getFormatter:function(t){return new a(t||n)}};e.exports=n},{"should-format":23}],6:[function(t,e,r){function a(t,e,r,n,o){var s=new i(t);s.params={operator:n,expected:e,message:r,stackStartFunction:o||a},s.fail()}function n(t,e){t||a(t,!0,e,"==",l.ok)}function o(t,e){return t&&e?"[object RegExp]"==Object.prototype.toString.call(e)?e.test(t):t instanceof e?!0:e.call({},t)===!0?!0:!1:!1}function s(t,e,r,n){var s;"string"==typeof r&&(n=r,r=null);try{e()}catch(i){s=i}if(n=(r&&r.name?" ("+r.name+")":".")+(n?" "+n:"."),t&&!s&&a(s,r,"Missing expected exception"+n),!t&&o(s,r)&&a(s,r,"Got unwanted exception"+n),t&&s&&r&&!o(s,r)||!t&&s)throw s}var i=t("./../assertion"),u=t("should-equal"),c=Array.prototype.slice,l=e.exports=n;l.fail=a,l.ok=n,l.equal=function(t,e,r){t!=e&&a(t,e,r,"==",l.equal)},l.notEqual=function(t,e,r){t==e&&a(t,e,r,"!=",l.notEqual)},l.deepEqual=function(t,e,r){u(t,e).result||a(t,e,r,"deepEqual",l.deepEqual)},l.notDeepEqual=function(t,e,r){u(t,e).result&&a(t,e,r,"notDeepEqual",l.notDeepEqual)},l.strictEqual=function(t,e,r){t!==e&&a(t,e,r,"===",l.strictEqual)},l.notStrictEqual=function(t,e,r){t===e&&a(t,e,r,"!==",l.notStrictEqual)},l["throws"]=function(t,e,r){s.apply(this,[!0].concat(c.call(arguments)))},l.doesNotThrow=function(t,e){s.apply(this,[!1].concat(c.call(arguments)))},l.ifError=function(t){if(t)throw t}},{"./../assertion":4,"should-equal":22}],7:[function(t,e,r){var a=t("../util"),n=t("./_assert"),o=t("../assertion-error");e.exports=function(t){var e=t.format;a.merge(t,n),t.exist=t.exists=function(r,a){if(null==r)throw new o({message:a||"expected "+e(r)+" to exist",stackStartFunction:t.exist})},t.not={},t.not.exist=t.not.exists=function(r,a){if(null!=r)throw new o({message:a||"expected "+e(r)+" to not exist",stackStartFunction:t.not.exist})}}},{"../assertion-error":3,"../util":20,"./_assert":6}],8:[function(t,e,r){e.exports=function(t,e){e.add("true",function(){this.is.exactly(!0)}),e.alias("true","True"),e.add("false",function(){this.is.exactly(!1)}),e.alias("false","False"),e.add("ok",function(){this.params={operator:"to be truthy"},this.assert(this.obj)})}},{}],9:[function(t,e,r){e.exports=function(t,e){["an","of","a","and","be","has","have","with","is","which","the","it"].forEach(function(t){e.addChain(t)})}},{}],10:[function(t,e,r){var a=t("../util"),n=t("should-equal");e.exports=function(t,e){var r=t.format;e.add("containEql",function(t){this.params={operator:"to contain "+r(t)},this.is.not["null"]().and.not.undefined();var e=this.obj;"string"==typeof e?this.assert(e.indexOf(String(t))>=0):a.isIndexable(e)?this.assert(a.some(e,function(e){return n(e,t).result})):this.have.properties(t)}),e.add("containDeepOrdered",function(e){this.params={operator:"to contain "+r(e)};var n=this.obj;if("string"==typeof n)this.is.equal(String(e));else if(a.isIndexable(n)&&a.isIndexable(e)){for(var o=0,s=0,i=a.length(n),u=a.length(e);i>o&&u>s;o++)try{t(n[o]).containDeepOrdered(e[s]),s++}catch(c){if(c instanceof t.AssertionError)continue;throw c}this.assert(s===u)}else null!=n&&null!=e&&"object"==typeof n&&"object"==typeof e?(a.forEach(e,function(e,r){t(n[r]).containDeepOrdered(e)}),a.isEmptyObject(e)&&this.eql(e)):this.eql(e)}),e.add("containDeep",function(e){this.params={operator:"to contain "+r(e)};var n=this.obj;if("string"==typeof n)this.is.equal(String(e));else if(a.isIndexable(n)&&a.isIndexable(e)){var o={};a.forEach(e,function(e){this.assert(a.some(n,function(r,a){if(a in o)return!1;try{return t(r).containDeep(e),o[a]=!0,!0}catch(n){if(n instanceof t.AssertionError)return!1;throw n}}))},this)}else null!=n&&null!=e&&"object"==typeof n&&"object"==typeof e?(a.forEach(e,function(e,r){t(n[r]).containDeep(e)}),a.isEmptyObject(e)&&this.eql(e)):this.eql(e)})}},{"../util":20,"should-equal":22}],11:[function(t,e,r){function a(t,e,r){return((t.path.length>0?"at "+t.path.map(s.formatProp).join(" -> "):"")+(t.a===e?"":", A has "+s.format(t.a))+(t.b===r?"":" and B has "+s.format(t.b))+(t.showReason?" because "+t.reason:"")).trim()}var n=t("should-equal"),o=t("should-type"),s=t("../util");e.exports=function(t,e){function r(r,a,n){e.add(r,function(e){1!==arguments.length?e=Array.prototype.slice.call(arguments):t(e).be.Array(),this.params={operator:a,expected:e};var r=this.obj,o=!1;s.forEach(e,function(e){try{return t(e)[n](r),o=!0,!1}catch(a){if(a instanceof t.AssertionError)return;throw a}}),this.assert(o)})}e.add("eql",function(e,r){this.params={operator:"to equal",expected:e,message:r};var s=n(this.obj,e,t.config);this.params.details=s.result?"":a(s,this.obj,e),this.params.showDiff=n(o(this.obj),o(e)).result,this.assert(s.result)}),e.add("equal",function(t,e){this.params={operator:"to be",expected:t,message:e},this.params.showDiff=n(o(this.obj),o(t)).result,this.assert(t===this.obj)}),e.alias("equal","exactly"),e.alias("eql","deepEqual"),r("equalOneOf","to be equals one of","equal"),r("oneOf","to be one of","eql")}},{"../util":20,"should-equal":22,"should-type":27}],12:[function(t,e,r){var a=t("../util");e.exports=function(t,e){var r=t.format;e.add("throw",function(e,n){var o=this.obj,s={},i="",u=!1;if(a.isGeneratorFunction(o))return t(o())["throw"](e,n);if(a.isGeneratorObject(o))return t(o.next.bind(o))["throw"](e,n);this.is.a.Function();var c=!0;try{o()}catch(l){u=!0,s=l}if(u)if(e){if("string"==typeof e)c=e==s.message;else if(e instanceof RegExp)c=e.test(s.message);else if("function"==typeof e)c=s instanceof e;else if(null!=e)try{t(s).match(e)}catch(l){if(!(l instanceof t.AssertionError))throw l;i=": "+l.message,c=!1}if(c){if("function"==typeof e&&n)try{t(s).match(n)}catch(l){if(!(l instanceof t.AssertionError))throw l;i=": "+l.message,c=!1}}else"string"==typeof e||e instanceof RegExp?i=" with a message matching "+r(e)+", but got '"+s.message+"'":"function"==typeof e&&(i=" of type "+a.functionName(e)+", but got "+a.functionName(s.constructor))}else i=" (got "+r(s)+")";this.params={operator:"to throw exception"+i},this.assert(u),this.assert(c)}),e.alias("throw","throwError")}},{"../util":20}],13:[function(t,e,r){var a=t("../util"),n=t("should-equal");e.exports=function(t,e){var r=t.format;e.add("match",function(e,o){if(this.params={operator:"to match "+r(e),message:o},!n(this.obj,e).result)if(e instanceof RegExp){if("string"==typeof this.obj)this.assert(e.exec(this.obj));else if(a.isIndexable(this.obj))a.forEach(this.obj,function(t){this.assert(e.exec(t))},this);else if(null!=this.obj&&"object"==typeof this.obj){var s=[],i=[];a.forEach(this.obj,function(t,n){e.exec(t)?i.push(a.formatProp(n)):s.push(a.formatProp(n)+" ("+r(t)+")")},this),s.length&&(this.params.operator+="\n not matched properties: "+s.join(", ")),i.length&&(this.params.operator+="\n matched properties: "+i.join(", ")),this.assert(0===s.length)}}else if("function"==typeof e){var u;u=e(this.obj),"boolean"==typeof u&&this.assert(u)}else null!=e&&null!=this.obj&&"object"==typeof e?(s=[],i=[],a.forEach(e,function(e,n){try{t(this.obj).have.property(n).which.match(e),i.push(a.formatProp(n))}catch(o){if(!(o instanceof t.AssertionError))throw o;s.push(a.formatProp(n)+" ("+r(this.obj[n])+")")}},this),s.length&&(this.params.operator+="\n not matched properties: "+s.join(", ")),i.length&&(this.params.operator+="\n matched properties: "+i.join(", ")),this.assert(0===s.length)):this.assert(!1)}),e.add("matchEach",function(e,n){this.params={operator:"to match each "+r(e),message:n},a.forEach(this.obj,function(r){t(r).match(e)},this)}),e.add("matchAny",function(e,n){this.params={operator:"to match any "+r(e),message:n},this.assert(a.some(this.obj,function(r){try{return t(r).match(e),!0}catch(a){if(a instanceof t.AssertionError)return!1;throw a}}))}),e.alias("matchAny","matchSome"),e.alias("matchEach","matchEvery")}},{"../util":20,"should-equal":22}],14:[function(t,e,r){e.exports=function(t,e){e.add("NaN",function(){this.params={operator:"to be NaN"},this.assert(this.obj!==this.obj)}),e.add("Infinity",function(){this.params={operator:"to be Infinity"},this.is.a.Number().and.not.a.NaN().and.assert(!isFinite(this.obj))}),e.add("within",function(t,e,r){this.params={operator:"to be within "+t+".."+e,message:r},this.assert(this.obj>=t&&this.obj<=e)}),e.add("approximately",function(t,e,r){this.params={operator:"to be approximately "+t+" ±"+e,message:r},this.assert(Math.abs(this.obj-t)<=e)}),e.add("above",function(t,e){this.params={operator:"to be above "+t,message:e},this.assert(this.obj>t)}),e.add("below",function(t,e){this.params={operator:"to be below "+t,message:e},this.assert(this.obj<t)}),e.alias("above","greaterThan"),e.alias("below","lessThan"),e.add("aboveOrEqual",function(t,e){this.params={operator:"to be above or equal"+t,message:e},this.assert(this.obj>=t)}),e.add("belowOrEqual",function(t,e){this.params={operator:"to be below or equal"+t,message:e},this.assert(this.obj<=t)}),e.alias("aboveOrEqual","greaterThanOrEqual"),e.alias("belowOrEqual","lessThanOrEqual")}},{}],15:[function(t,e,r){var a=t("../util"),n=t("../assertion").PromisedAssertion,o=t("../assertion");e.exports=function(t){o.add("Promise",function(){this.params={operator:"to be promise"};var e=this.obj;t(e).have.property("then").which.is.a.Function()}),o.prototype.fulfilled=function(){this.params={operator:"to be fulfilled"},t(this.obj).be.a.Promise();var e=this;return this.obj.then(function(t){return e.negate&&e.fail(),t},function(t){return e.negate||e.fail(),t})},o.prototype.rejected=function(){this.params={operator:"to be rejected"},t(this.obj).be.a.Promise();var e=this;return this.obj.then(function(t){return e.negate||e.fail(),t},function(t){return e.negate&&e.fail(),t})},o.prototype.fulfilledWith=function(e){this.params={operator:"to be fulfilled"},t(this.obj).be.a.Promise();var r=this;return this.obj.then(function(a){return r.negate&&r.fail(),t(a).eql(e),a},function(t){return r.negate||r.fail(),t})},o.prototype.rejectedWith=function(e,r){this.params={operator:"to be rejected"},t(this.obj).be.a.Promise();var n=this;return this.obj.then(function(t){return n.negate||n.fail(),t},function(o){n.negate&&n.fail();var s=!0,i="";if("string"==typeof e)s=e===o.message;else if(e instanceof RegExp)s=e.test(o.message);else if("function"==typeof e)s=o instanceof e;else if(null!==e&&"object"==typeof e)try{t(o).match(e)}catch(u){if(!(u instanceof t.AssertionError))throw u;i=": "+u.message,s=!1}if(s){if("function"==typeof e&&r)try{t(o).match(r)}catch(u){if(!(u instanceof t.AssertionError))throw u;i=": "+u.message,s=!1}}else"string"==typeof e||e instanceof RegExp?i=" with a message matching "+t.format(e)+", but got '"+o.message+"'":"function"==typeof e&&(i=" of type "+a.functionName(e)+", but got "+a.functionName(o.constructor));return n.params.operator+=i,n.assert(s),o})},Object.defineProperty(o.prototype,"finally",{get:function(){t(this.obj).be.a.Promise();var e=this;return new n(this.obj.then(function(r){var a=t(r);return a.negate=e.negate,a.anyOne=e.anyOne,a}))}}),o.alias("finally","eventually")}},{"../assertion":4,"../util":20}],16:[function(t,e,r){var a=t("../util"),n=t("should-equal"),o=Array.prototype.slice;e.exports=function(t,e){function r(){var t={};if(arguments.length>1)t.names=o.call(arguments);else{var e=arguments[0];"string"==typeof e?t.names=[e]:a.isIndexable(e)?t.names=e:(t.names=Object.keys(e),t.values=e)}return t}var s=t.format;e.add("propertyWithDescriptor",function(e,r){this.params={actual:this.obj,operator:"to have own property with descriptor "+s(r)};var a=this.obj;this.have.ownProperty(e),t(Object.getOwnPropertyDescriptor(Object(a),e)).have.properties(r)}),e.add("enumerable",function(t,e){t=a.convertPropertyName(t),this.params={operator:"to have enumerable property "+a.formatProp(t)+(arguments.length>1?" equal to "+s(e):"")};var r={enumerable:!0};arguments.length>1&&(r.value=e),this.have.propertyWithDescriptor(t,r)}),e.add("enumerables",function(e){var n=r.apply(null,arguments);this.params={operator:"to have enumerables "+n.names.map(a.formatProp)};var o=this.obj;n.names.forEach(function(e){t(o).have.enumerable(e)})}),e.add("property",function(t,e){if(t=a.convertPropertyName(t),arguments.length>1){var r={};r[t]=e,this.have.properties(r)}else this.have.properties(t);this.obj=this.obj[t]}),e.add("properties",function(t){var e={};arguments.length>1?t=o.call(arguments):Array.isArray(t)||("string"==typeof t||"symbol"==typeof t?t=[t]:(e=t,t=Object.keys(t)));var r=Object(this.obj),i=[];t.forEach(function(t){t in r||i.push(a.formatProp(t))});var u=i;0===u.length?u=t.map(a.formatProp):this.anyOne&&(u=t.filter(function(t){return i.indexOf(a.formatProp(t))<0}).map(a.formatProp));var c=(1===u.length?"to have property ":"to have "+(this.anyOne?"any of ":"")+"properties ")+u.join(", ");this.params={obj:this.obj,operator:c},this.assert(0===i.length||this.anyOne&&i.length!=t.length);var l=Object.keys(e);if(l.length){var h=[];u=[],l.forEach(function(t){var o=e[t];n(r[t],o).result?u.push(a.formatProp(t)+" of "+s(o)):h.push(a.formatProp(t)+" of "+s(o)+" (got "+s(r[t])+")")}),(0!==h.length&&!this.anyOne||this.anyOne&&0===u.length)&&(u=h),c=(1===u.length?"to have property ":"to have "+(this.anyOne?"any of ":"")+"properties ")+u.join(", "),this.params={obj:this.obj,operator:c},this.assert(0===h.length||this.anyOne&&h.length!=l.length)}}),e.add("length",function(t,e){this.have.property("length",t,e)}),e.alias("length","lengthOf");var i=Object.prototype.hasOwnProperty;e.add("ownProperty",function(t,e){t=a.convertPropertyName(t),this.params={actual:this.obj,operator:"to have own property "+a.formatProp(t),message:e},this.assert(i.call(this.obj,t)),this.obj=this.obj[t]}),e.alias("ownProperty","hasOwnProperty"),e.add("empty",function(){if(this.params={operator:"to be empty"},void 0!==a.length(this.obj))t(this.obj).have.property("length",0);else{var e=Object(this.obj);for(var r in e)t(this.obj).not.have.ownProperty(r)}},!0),e.add("keys",function(t){arguments.length>1?t=o.call(arguments):1===arguments.length&&"string"==typeof t?t=[t]:0===arguments.length&&(t=[]),t=t.map(String);var e=Object(this.obj),r=[];t.forEach(function(t){i.call(this.obj,t)||r.push(a.formatProp(t))},this);var n=[];Object.keys(e).forEach(function(e){t.indexOf(e)<0&&n.push(a.formatProp(e))});var s=0===t.length?"to be empty":"to have "+(1===t.length?"key ":"keys ");this.params={operator:s+t.map(a.formatProp).join(", ")},r.length>0&&(this.params.operator+="\n missing keys: "+r.join(", ")),n.length>0&&(this.params.operator+="\n extra keys: "+n.join(", ")),this.assert(0===r.length&&0===n.length)}),e.alias("keys","key"),e.add("propertyByPath",function(e){arguments.length>1?e=o.call(arguments):1===arguments.length&&"string"==typeof e?e=[e]:0===arguments.length&&(e=[]);var r=e.map(a.formatProp);e=e.map(String);for(var n,s=t(Object(this.obj)),i=[];n=e.shift();)this.params={operator:"to have property by path "+r.join(", ")+" - failed on "+a.formatProp(n)},s=s.have.property(n),i.push(n);this.params={obj:this.obj,operator:"to have property by path "+r.join(", ")},this.obj=s.obj})}},{"../util":20,"should-equal":22}],17:[function(t,e,r){e.exports=function(t,e){e.add("startWith",function(e,r){this.params={operator:"to start with "+t.format(e),message:r},this.assert(0===this.obj.indexOf(e))}),e.add("endWith",function(e,r){this.params={operator:"to end with "+t.format(e),message:r},this.assert(this.obj.indexOf(e,this.obj.length-e.length)>=0)})}},{}],18:[function(t,e,r){var a=t("../util");e.exports=function(t,e){e.add("Number",function(){this.params={operator:"to be a number"},this.have.type("number")}),e.add("arguments",function(){this.params={operator:"to be arguments"},this.have["class"]("Arguments")}),e.alias("arguments","Arguments"),e.add("type",function(e,r){this.params={operator:"to have type "+e,message:r},t(typeof this.obj).be.exactly(e)}),e.add("instanceof",function(t,e){this.params={operator:"to be an instance of "+a.functionName(t),message:e},this.assert(Object(this.obj)instanceof t)}),e.alias("instanceof","instanceOf"),e.add("Function",function(){this.params={operator:"to be a function"},this.have.type("function")}),e.add("Object",function(){this.params={operator:"to be an object"},this.is.not["null"]().and.have.type("object")}),e.add("String",function(){this.params={operator:"to be a string"},this.have.type("string")}),e.add("Array",function(){this.params={operator:"to be an array"},this.have["class"]("Array")}),e.add("Boolean",function(){this.params={operator:"to be a boolean"},this.have.type("boolean")}),e.add("Error",function(){this.params={operator:"to be an error"},this.have.instanceOf(Error)}),e.add("Date",function(){this.params={operator:"to be a date"},this.have.instanceOf(Date)}),e.add("null",function(){this.params={operator:"to be null"},this.assert(null===this.obj)}),e.alias("null","Null"),e.add("class",function(t){this.params={operator:"to have [[Class]] "+t},this.assert(Object.prototype.toString.call(this.obj)==="[object "+t+"]")}),e.alias("class","Class"),e.add("undefined",function(){this.params={operator:"to be undefined"},this.assert(void 0===this.obj)}),e.alias("undefined","Undefined"),e.add("iterable",function(){this.params={operator:"to be iterable"},t(this.obj).have.property(Symbol.iterator).which.is.a.Function()}),e.add("iterator",function(){this.params={operator:"to be iterator"},t(this.obj).have.property("next").which.is.a.Function()}),e.add("generator",function(){this.params={operator:"to be generator"},t(this.obj).be.iterable.and.iterator.and.it.is.equal(this.obj[Symbol.iterator]())})}},{"../util":20}],19:[function(t,e,r){function a(t){return new a.Assertion(t)}var n=t("./util");a.AssertionError=t("./assertion-error"),a.Assertion=t("./assertion"),a.format=n.format,a.type=t("should-type"),a.util=n,a.config=t("./config"),r=e.exports=a,a.extend=function(t,e){t=t||"should",e=e||Object.prototype;var r=Object.getOwnPropertyDescriptor(e,t);return Object.defineProperty(e,t,{set:function(){},get:function(){return a(n.isWrapperType(this)?this.valueOf():this)},configurable:!0}),{name:t,descriptor:r,proto:e}},a.noConflict=function(t){return t=t||a._prevShould,t&&(delete t.proto[t.name],t.descriptor&&Object.defineProperty(t.proto,t.name,t.descriptor)),a},a.use=function(t){return t(a,a.Assertion),this},a.use(t("./ext/assert")).use(t("./ext/chain")).use(t("./ext/bool")).use(t("./ext/number")).use(t("./ext/eql")).use(t("./ext/type")).use(t("./ext/string")).use(t("./ext/property")).use(t("./ext/error")).use(t("./ext/match")).use(t("./ext/contain")).use(t("./ext/promise"))},{"./assertion":4,"./assertion-error":3,"./config":5,"./ext/assert":7,"./ext/bool":8,"./ext/chain":9,"./ext/contain":10,"./ext/eql":11,"./ext/error":12,"./ext/match":13,"./ext/number":14,"./ext/promise":15,"./ext/property":16,"./ext/string":17,"./ext/type":18,"./util":20,"should-type":27}],20:[function(t,e,r){var a=t("should-type"),n=t("./config");r.isWrapperType=function(t){return t instanceof Number||t instanceof String||t instanceof Boolean},r.merge=function(t,e){if(t&&e)for(var r in e)t[r]=e[r];return t};var o=Object.prototype.hasOwnProperty;r.forEach=function s(t,e,a){if(r.isGeneratorFunction(t))return s(t(),e,a);if(r.isGeneratorObject(t))for(var n=t.next();!n.done;){if(e.call(a,n.value,"value",t)===!1)return;n=t.next()}else for(var i in t)if(o.call(t,i)&&e.call(a,t[i],i,t)===!1)return},r.some=function(t,e,a){var n=!1;return r.forEach(t,function(r,o){return e.call(a,r,o,t)?(n=!0,!1):void 0},a),n},r.isEmptyObject=function(t){for(var e in t)if(o.call(t,e))return!1;return!0},r.isIndexable=function(t){var e=a(t);return e.type===a.OBJECT&&e.cls===a.ARRAY||e.type===a.OBJECT&&e.cls===a.BUFFER||e.type===a.OBJECT&&e.cls===a.ARGUMENTS||e.type===a.OBJECT&&e.cls===a.ARRAY_BUFFER||e.type===a.OBJECT&&e.cls===a.TYPED_ARRAY||e.type===a.OBJECT&&e.cls===a.DATA_VIEW||e.type===a.OBJECT&&e.cls===a.STRING||e.type===a.STRING},r.length=function(t){var e=a(t);switch(e.type){case a.STRING:return t.length;case a.OBJECT:switch(e.cls){case a.ARRAY_BUFFER:case a.TYPED_ARRAY:case a.DATA_VIEW:return t.byteLength;case a.ARRAY:case a.BUFFER:case a.ARGUMENTS:case a.FUNCTION:return t.length}}},r.convertPropertyName=function(t){return"symbol"==typeof t?t:String(t)},r.isGeneratorObject=function(t){return t?"function"==typeof t.next&&"function"==typeof t[Symbol.iterator]&&t[Symbol.iterator]()===t:!1},r.isGeneratorFunction=function(t){return"function"!=typeof t?!1:/^function\s*\*\s*/.test(t.toString())},r.format=function(t,e){return n.getFormatter(e).format(t)},r.functionName=t("should-format").Formatter.functionName,r.formatProp=function(t){return n.getFormatter().formatPropertyName(String(t))}},{"./config":5,"should-format":23,"should-type":27}],21:[function(t,e,r){e.exports=function(t){for(var e=arguments,r=1,a=e.length;a>r;r++)t=t.replace(/%s/,e[r]);return t}},{}],22:[function(t,e,r){function a(t,e,r,a,n){var o={result:t};return t||(o.path=e,o.reason=r,o.a=a,o.b=n),o}function n(t){return t.type+(t.cls?"("+t.cls+(t.sub?" "+t.sub:"")+")":"")}function o(t,e,r,s,f,p,d){function m(n,o){if(arguments.length>2){var s=Array.prototype.slice.call(arguments,2);o=u.apply(null,[o].concat(s))}var i=a(n,p,o,t,e);return!n&&r.collectAllFails&&d.push(i),i}function b(a){return o(t[a],e[a],r,s,f,p.concat([a]),d)}function y(t,e){return o(t,e,r,s,f,p,d)}var g=l;if(t===e)return m(0!==t||1/t==1/e||r.plusZeroAndMinusZeroEqual,h.PLUS_0_AND_MINUS_0);var j,v,E,A=i(t),O=i(e),x=A.type!==O.type||A.cls!==O.cls;if(x||r.checkSubType&&A.sub!==O.sub||!r.checkSubType)return m(!1,h.DIFFERENT_TYPES,n(A),n(O));switch(A.type){case"number":return t!==t?m(e!==e,h.NAN_NUMBER):m(t===e,h.EQUALITY);case"boolean":case"string":return m(t===e,h.EQUALITY);case"function":if(g=y(t.toString(),e.toString()),!g.result&&(g.reason=h.FUNCTION_SOURCES,!r.collectAllFails))return g;break;case"object":switch(A.cls){case"regexp":for(v=["source","global","multiline","lastIndex","ignoreCase"];v.length;)if(g=b(v.shift()),!g.result&&!r.collectAllFails)return g;break;case"date":if(+t!==+e&&(g=m(!1,h.EQUALITY),!g.result&&!r.collectAllFails))return g;break;case"number":case"boolean":case"string":if(g=y(t.valueOf(),e.valueOf()),!g.result&&(g.reason=h.WRAPPED_VALUE,!r.collectAllFails))return g;break;case"buffer":if(g=b("length"),!g.result&&!r.collectAllFails)return g;for(j=t.length;j--;)if(g=b(j),!g.result&&!r.collectAllFails)return g;return l;case"error":for(v=["name","message"];v.length;)if(g=b(v.shift()),!g.result&&!r.collectAllFails)return g;break;case"array":case"arguments":case"typed-array":if(g=b("length"),!g.result&&!r.collectAllFails)return g;break;case"array-buffer":if(g=b("byteLength"),!g.result&&!r.collectAllFails)return g;break;case"map":case"set":if(g=b("size"),!g.result&&!r.collectAllFails)return g;s.push(t),f.push(e);for(var S=t.entries(),P=S.next();!P.done;){if(E=P.value[0],"object"!=i(E).type){if(e.has(E)){if("map"==A.cls){var T=e.get(E);if(g=y(P.value[1],T),!g.result&&(g.a=P.value,g.b=T,g.reason=h.MAP_VALUE_EQUALITY,!r.collectAllFails))break}}else if(g=m(!1,h.SET_MAP_MISSING_KEY),g.a=E,g.b=E,!r.collectAllFails)break}else for(var N=e.entries(),F=N.next();!F.done;){if(g=y(P.value[0],F.value[0]),g.result){if("map"==A.cls&&(g=y(P.value[1],F.value[1]),g.result||(g.a=P.value,g.b=F.value,g.reason=h.MAP_VALUE_EQUALITY)),!r.collectAllFails)break}else g.reason=h.SET_MAP_MISSING_KEY,g.a=E,g.b=E;F=N.next()}if(!g.result&&!r.collectAllFails)break;P=S.next()}if(s.pop(),f.pop(),!g.result&&(g.reason=h.SET_MAP_MISSING_ENTRY,!r.collectAllFails))return g}}for(j=s.length;j--;)if(s[j]==t)return m(f[j]==e,h.CIRCULAR_VALUES);s.push(t),f.push(e);for(E in e)if(c.call(e,E)){if(g=m(c.call(t,E),h.MISSING_KEY,"A",E),!g.result&&!r.collectAllFails)break;if(g.result&&(g=b(E),!g.result&&!r.collectAllFails))break}if(g.result||r.collectAllFails)for(E in t)if(c.call(t,E)&&(g=m(c.call(e,E),h.MISSING_KEY,"B",E),!g.result&&!r.collectAllFails))return g;if(s.pop(),f.pop(),!g.result&&!r.collectAllFails)return g;var w=!1,_=!1;return!r.checkProtoEql||(Object.getPrototypeOf&&(w=Object.getPrototypeOf(t)===Object.getPrototypeOf(e),_=!0),!_||w||(g=m(w,h.EQUALITY_PROTOTYPE),g.showReason=!0,g.result||r.collectAllFails))?l:g}function s(t,e,r){r=r||{},"boolean"!=typeof r.checkProtoEql&&(r.checkProtoEql=f.checkProtoEql),"boolean"!=typeof r.checkSubType&&(r.checkSubType=f.checkSubType),"boolean"!=typeof r.plusZeroAndMinusZeroEqual&&(r.plusZeroAndMinusZeroEqual=f.plusZeroAndMinusZeroEqual);var a=[],n=o(t,e,r,[],[],[],a);return r.collectAllFails?a:n}var i=t("should-type"),u=t("./format"),c=Object.prototype.hasOwnProperty,l=a(!0),h={PLUS_0_AND_MINUS_0:"+0 is not equal to -0",DIFFERENT_TYPES:"A has type %s and B has type %s",NAN_NUMBER:"NaN is not equal to any number",EQUALITY:"A is not equal to B",EQUALITY_PROTOTYPE:"A and B have different prototypes",WRAPPED_VALUE:"A wrapped value is not equal to B wrapped value",FUNCTION_SOURCES:"function A is not equal to B by source code value (via .toString call)",MISSING_KEY:"%s has no key %s",CIRCULAR_VALUES:"A has circular reference that was visited not in the same time as B",SET_MAP_MISSING_KEY:"Set/Map missing key",MAP_VALUE_EQUALITY:"Values of the same key in A and B is not equal"},f={checkProtoEql:!0,checkSubType:!0,plusZeroAndMinusZeroEqual:!1};e.exports=s,s.r=h},{"./format":21,"should-type":27}],23:[function(t,e,r){function a(t){return function(e){var r=t(e);return r.sort(),r}}function n(t){t=t||{},this.seen=[],this.keys=a(t.keys===!1?Object.getOwnPropertyNames:Object.keys),this.maxLineLength="number"==typeof t.maxLineLength?t.maxLineLength:60,this.propSep=t.propSep||",",this.isUTCdate=!!t.isUTCdate}function o(t,e){var r=e?"UTC":"",a=t["get"+r+"FullYear"]()+"-"+u.pad0(t["get"+r+"Month"]()+1,2)+"-"+u.pad0(t["get"+r+"Date"](),2),n=u.pad0(t["get"+r+"Hours"](),2)+":"+u.pad0(t["get"+r+"Minutes"](),2)+":"+u.pad0(t["get"+r+"Seconds"](),2)+"."+u.pad0(t["get"+r+"Milliseconds"](),3),o=t.getTimezoneOffset(),s=Math.abs(o),i=Math.floor(s/60),c=s-60*i,l=(0>o?"+":"-")+u.pad0(i,2)+u.pad0(c,2);return a+" "+n+(e?"":" "+l)}function s(t,e){return new n(e).format(t)}var i=t("should-type"),u=t("./util");n.prototype={constructor:n,format:function(t){var e=i(t),r=e.type,a=e.type;e.cls&&(r+="_"+e.cls,a+="_"+e.cls),e.sub&&(a+="_"+e.sub);var n=this["_format_"+a]||this["_format_"+r]||this["_format_"+e.type]||this.defaultFormat;return n.call(this,t).trim()},_formatObject:function(t,e){e=e||{};var r=e.keys||this.keys(t),a=0,o=e.formatPropertyValue||this.formatPropertyValue,s=e.formatPropertyName||this.formatPropertyName,i=e.keyValueSep||": ",c=e.keyFilter||function(){return!0};this.seen.push(t);var l=[];r.forEach(function(e){if(c(e)){var r=s.call(this,e),n=(r?r+i:"")+o.call(this,t,e);a+=n.length,l.push(n)}},this),this.seen.pop(),(e.additionalProperties||[]).forEach(function(t){var e=t[0]+i+this.format(t[1]);a+=e.length,l.push(e)},this);var h=e.prefix||n.constructorName(t)||"";h.length>0&&(h+=" ");var f,p;Array.isArray(e.brackets)?(f=e.brackets&&e.brackets[0],p=e.brackets&&e.brackets[1]):(f="{",p="}");var d=e.value||"";return 0===l.length?d||h+f+p:a<=this.maxLineLength?h+f+" "+(d?d+" ":"")+l.join(this.propSep+" ")+" "+p:h+f+"\n"+(d?" "+d+"\n":"")+l.map(u.addSpaces).join(this.propSep+"\n")+"\n"+p},formatObject:function(t,e,r){r=r||this.keys(t);var a=0;return this.seen.push(t),r=r.map(function(e){var r=this.formatProperty(t,e);return a+=r.length,r},this),this.seen.pop(),0===r.length?"{}":a<=this.maxLineLength?"{ "+(e?e+" ":"")+r.join(this.propSep+" ")+" }":"{\n"+(e?" "+e+"\n":"")+r.map(u.addSpaces).join(this.propSep+"\n")+"\n}"},formatPropertyName:function(t){return t.match(/^[a-zA-Z_$][a-zA-Z_$0-9]*$/)?t:this.format(t)},formatProperty:function(t,e){var r=n.getPropertyDescriptor(t,e),a=this.formatPropertyName(e),o=r.get&&r.set?"[Getter/Setter]":r.get?"[Getter]":r.set?"[Setter]":this.seen.indexOf(r.value)>=0?"[Circular]":this.format(r.value);return a+": "+o},formatPropertyValue:function(t,e){var r=n.getPropertyDescriptor(t,e),a=r.get&&r.set?"[Getter/Setter]":r.get?"[Getter]":r.set?"[Setter]":this.seen.indexOf(r.value)>=0?"[Circular]":this.format(r.value);return a}},n.add=function(t,e,r,a){var o=Array.prototype.slice.call(arguments);a=o.pop(),n.prototype["_format_"+o.join("_")]=a},n.formatObjectWithPrefix=function(t){return function(e){var r=t.call(this,e),a=this.keys(e);
return 0==a.length?r:this.formatObject(e,r,a)}};var c=/^\s*function\s*(\S*)\s*\(/;n.functionName=function(t){if(t.name)return t.name;var e=t.toString().match(c);if(null===e)return"";var r=e[1];return r},n.constructorName=function(t){for(;t;){var e=Object.getOwnPropertyDescriptor(t,"constructor");if(void 0!==e&&"function"==typeof e.value){var r=n.functionName(e.value);if(""!==r)return r}t=Object.getPrototypeOf(t)}},n.getPropertyDescriptor=function(t,e){var r;try{r=Object.getOwnPropertyDescriptor(t,e)||{value:t[e]}}catch(a){r={value:a}}return r},n.generateFunctionForIndexedArray=function(t,e,r){return function(a){for(var n=this.byteArrayMaxLength||50,o=a[t],s=[],i=0,c=0;n>c&&o>c;c++){var l=a[c]||0,h=u.pad0(l.toString(16),r);i+=h.length,s.push(h)}var f=a.constructor.name||e||"";return f&&(f+=" "),0===s.length?f+"[]":i<=this.maxLineLength?f+"[ "+s.join(this.propSep+" ")+" ]":f+"[\n"+s.map(u.addSpaces).join(this.propSep+"\n")+"\n]"}},n.add("undefined",function(){return"undefined"}),n.add("null",function(){return"null"}),n.add("boolean",function(t){return t?"true":"false"}),n.add("symbol",function(t){return t.toString()}),["number","boolean"].forEach(function(t){n.add("object",t,function(t){return this._formatObject(t,{additionalProperties:[["[[PrimitiveValue]]",t.valueOf()]]})})}),n.add("object","string",function(t){var e=t.valueOf();return this._formatObject(t,{keyFilter:function(t){return!(t.match(/\d+/)&&parseInt(t,10)<e.length)},additionalProperties:[["[[PrimitiveValue]]",e]]})}),n.add("object","regexp",function(t){return this._formatObject(t,{value:String(t)})}),n.add("number",function(t){return 0===t&&0>1/t?"-0":String(t)}),n.add("string",function(t){return"'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'"}),n.add("object",function(t){return this._formatObject(t)}),n.add("object","arguments",function(t){return this._formatObject(t,{prefix:"Arguments",formatPropertyName:function(t){return t.match(/\d+/)?void 0:this.formatPropertyName(t)},brackets:["[","]"]})}),n.add("object","array",function(t){return this._formatObject(t,{formatPropertyName:function(t){return t.match(/\d+/)?void 0:this.formatPropertyName(t)},brackets:["[","]"]})}),n.add("object","date",function(t){return this._formatObject(t,{value:o(t,this.isUTCdate)})}),n.add("function",function(t){return this._formatObject(t,{additionalProperties:[["name",n.functionName(t)]]})}),n.add("object","error",function(t){return this._formatObject(t,{prefix:t.name,additionalProperties:[["message",t.message]]})}),n.add("object","buffer",n.generateFunctionForIndexedArray("length","Buffer",2)),n.add("object","array-buffer",n.generateFunctionForIndexedArray("byteLength","ArrayBuffer",2)),n.add("object","typed-array","int8",n.generateFunctionForIndexedArray("length","Int8Array",2)),n.add("object","typed-array","uint8",n.generateFunctionForIndexedArray("length","Uint8Array",2)),n.add("object","typed-array","uint8clamped",n.generateFunctionForIndexedArray("length","Uint8ClampedArray",2)),n.add("object","typed-array","int16",n.generateFunctionForIndexedArray("length","Int16Array",4)),n.add("object","typed-array","uint16",n.generateFunctionForIndexedArray("length","Uint16Array",4)),n.add("object","typed-array","int32",n.generateFunctionForIndexedArray("length","Int32Array",8)),n.add("object","typed-array","uint32",n.generateFunctionForIndexedArray("length","Uint32Array",8)),n.add("object","promise",function(){return"[Promise]"}),n.add("object","xhr",function(){return"[XMLHttpRequest]"}),n.add("object","html-element",function(t){return t.outerHTML}),n.add("object","html-element","#text",function(t){return t.nodeValue}),n.add("object","html-element","#document",function(t){return t.documentElement.outerHTML}),n.add("object","host",function(){return"[Host]"}),n.add("object","set",function(t){var e=t.values(),r=0;this.seen.push(t);for(var a=[],n=e.next();!n.done;){var o=n.value,s=this.format(o);r+=s.length,a.push(s),n=e.next()}return this.seen.pop(),0===a.length?"Set {}":r<=this.maxLineLength?"Set { "+a.join(this.propSep+" ")+" }":"Set {\n"+a.map(u.addSpaces).join(this.propSep+"\n")+"\n}"}),n.add("object","map",function(t){var e=t.entries(),r=0;this.seen.push(t);for(var a=[],n=e.next();!n.done;){var o,s=n.value,i=this.format(s[0]),c=this.format(s[1]);o=i.length+c.length+4<=this.maxLineLength?i+" => "+c:i+" =>\n"+c,r+=i.length+c.length+4,a.push(o),n=e.next()}return this.seen.pop(),0===a.length?"Map {}":r<=this.maxLineLength?"Map { "+a.join(this.propSep+" ")+" }":"Map {\n"+a.map(u.addSpaces).join(this.propSep+"\n")+"\n}"}),n.prototype.defaultFormat=n.prototype._format_object,s.Formatter=n,e.exports=s},{"./util":26,"should-type":24}],24:[function(t,e,r){function a(t,e,r){this.type=t,this.cls=e,this.sub=r}function n(){this.checks=[]}function o(t){return u.getType(t)}var s=Object.prototype.toString,i=t("./types");n.prototype={add:function(t){return this.checks.push(t),this},addTypeOf:function(t,e){return this.add(function(r,n){return n===t?new a(e):void 0})},addClass:function(t,e,r){return this.add(function(n,o,s){return s===t?new a(i.OBJECT,e,r):void 0})},getType:function(t){for(var e=typeof t,r=s.call(t),a=0,n=this.checks.length;n>a;a++){var o=this.checks[a].call(this,t,e,r);if("undefined"!=typeof o)return o}}};var u=new n;u.addTypeOf(i.NUMBER,i.NUMBER).addTypeOf(i.UNDEFINED,i.UNDEFINED).addTypeOf(i.STRING,i.STRING).addTypeOf(i.BOOLEAN,i.BOOLEAN).addTypeOf(i.FUNCTION,i.FUNCTION).addTypeOf(i.SYMBOL,i.SYMBOL).add(function(t,e){return null===t?new a(i.NULL):void 0}).addClass("[object String]",i.STRING).addClass("[object Boolean]",i.BOOLEAN).addClass("[object Number]",i.NUMBER).addClass("[object Array]",i.ARRAY).addClass("[object RegExp]",i.REGEXP).addClass("[object Error]",i.ERROR).addClass("[object Date]",i.DATE).addClass("[object Arguments]",i.ARGUMENTS).addClass("[object Math]").addClass("[object JSON]").addClass("[object ArrayBuffer]",i.ARRAY_BUFFER).addClass("[object Int8Array]",i.TYPED_ARRAY,"int8").addClass("[object Uint8Array]",i.TYPED_ARRAY,"uint8").addClass("[object Uint8ClampedArray]",i.TYPED_ARRAY,"uint8clamped").addClass("[object Int16Array]",i.TYPED_ARRAY,"int16").addClass("[object Uint16Array]",i.TYPED_ARRAY,"uint16").addClass("[object Int32Array]",i.TYPED_ARRAY,"int32").addClass("[object Uint32Array]",i.TYPED_ARRAY,"uint32").addClass("[object Float32Array]",i.TYPED_ARRAY,"float32").addClass("[object Float64Array]",i.TYPED_ARRAY,"float64").addClass("[object DataView]",i.DATA_VIEW).addClass("[object Map]",i.MAP).addClass("[object WeakMap]",i.WEAK_MAP).addClass("[object Set]",i.SET).addClass("[object WeakSet]",i.WEAK_SET).addClass("[object Promise]",i.PROMISE).addClass("[object Blob]",i.BLOB).addClass("[object File]",i.FILE).addClass("[object FileList]",i.FILE_LIST).addClass("[object XMLHttpRequest]",i.XHR).add(function(t){return typeof Promise===i.FUNCTION&&t instanceof Promise||typeof t.then===i.FUNCTION?new a(i.OBJECT,i.PROMISE):void 0}).add(function(t){return"undefined"!=typeof Buffer&&t instanceof Buffer?new a(i.OBJECT,i.BUFFER):void 0}).add(function(t){return"undefined"!=typeof Node&&t instanceof Node?new a(i.OBJECT,i.HTML_ELEMENT,t.nodeName):void 0}).add(function(t){return t.Boolean===Boolean&&t.Number===Number&&t.String===String&&t.Date===Date?new a(i.OBJECT,i.HOST):void 0}).add(function(){return new a(i.OBJECT)}),o.checker=u,o.TypeChecker=n,o.Type=a,Object.keys(i).forEach(function(t){o[t]=i[t]}),e.exports=o},{"./types":25}],25:[function(t,e,r){var a={NUMBER:"number",UNDEFINED:"undefined",STRING:"string",BOOLEAN:"boolean",OBJECT:"object",FUNCTION:"function",NULL:"null",ARRAY:"array",REGEXP:"regexp",DATE:"date",ERROR:"error",ARGUMENTS:"arguments",SYMBOL:"symbol",ARRAY_BUFFER:"array-buffer",TYPED_ARRAY:"typed-array",DATA_VIEW:"data-view",MAP:"map",SET:"set",WEAK_SET:"weak-set",WEAK_MAP:"weak-map",PROMISE:"promise",BUFFER:"buffer",HTML_ELEMENT:"html-element",HTML_ELEMENT_TEXT:"html-element-text",DOCUMENT:"document",WINDOW:"window",FILE:"file",FILE_LIST:"file-list",BLOB:"blob",HOST:"host",XHR:"xhr"};e.exports=a},{}],26:[function(t,e,r){function a(t){return t.split("\n").map(function(t){return" "+t}).join("\n")}function n(t,e,r){t=String(t);var a=!1;if(0>e&&(a=!0,e=-e),t.length<e){var n=new Array(e-t.length+1).join(r);return a?t+n:n+t}return t}e.exports={addSpaces:a,pad:n,pad0:function(t,e){return n(t,e,"0")}}},{}],27:[function(t,e,r){arguments[4][24][0].apply(r,arguments)},{"./types":28,dup:24}],28:[function(t,e,r){arguments[4][25][0].apply(r,arguments)},{dup:25}]},{},[1]);

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc