Comparing version 0.10.0 to 0.11.0
@@ -7,8 +7,8 @@ /* @license | ||
*/ | ||
(function(){var initialModResult_386389655257694535={};var mods_386389655257694535=[{fun:function(t,e,r){(function(){var t,n,i,s=[].indexOf||function(t){for(var e=0,r=this.length;e<r;e++){if(e in this&&this[e]===t)return e}return-1},o={}.hasOwnProperty,u=function(t,e){for(var r in e){if(o.call(e,r))t[r]=e[r]}function n(){this.constructor=t}n.prototype=e.prototype;t.prototype=new n;t.__super__=e.prototype;return t};i=r("wishlist");n={};n.packageInfo=r("./package.json");n.environmentType=(typeof process!=="undefined"&&process!==null?process.execPath:void 0)!=null&&typeof process.execPath==="string"&&process.execPath.search(/node/i)!==-1?"node":typeof window!=="undefined"&&window!==null&&(typeof navigator!=="undefined"&&navigator!==null)&&(typeof HTMLElement!=="undefined"&&HTMLElement!==null)?"browser":void 0;if(n.environmentType==="browser"){window.global=window}global.npmMate=n;t=function(){function t(t,e,r){this._value=t;this._chain=(e!=null?e:[]).slice(0);if(r!=null){this._chain.push(r)}Object.getter(this,"length",function(t){return function(){return t.force().length}}(this))}t.prototype.force=function(){var t,e,r,n,i;e=this._value;i=this._chain;for(r=0,n=i.length;r<n;r++){t=i[r];e=t.fun.apply(e,t.args)}return e};t.prototype.map=function(){return this._pushChain(Array.prototype.map,arguments)};t.prototype.filter=function(){return this._pushChain(Array.prototype.filter,arguments)};t.prototype.concat=function(){return this._pushChain(Array.prototype.concat,arguments)};t.prototype.portion=function(){return this._pushChain(Array.prototype.portion,arguments)};t.prototype.funSort=function(){return this._pushChain(Array.prototype.funSort,arguments)};t.prototype.funSortDescending=function(){return this._pushChain(Array.prototype.funSortDescending,arguments)};t.prototype.funReverse=function(){return this._pushChain(Array.prototype.funReverse,arguments)};t.prototype.except=function(){return this._pushChain(Array.prototype.except,arguments)};t.prototype.group=function(){return this._pushChain(Array.prototype.group,arguments)};t.prototype.flatten=function(){return this._pushChain(Array.prototype.flatten,arguments)};t.prototype.random=function(){return this._pushChain(Array.prototype.random,arguments)};t.prototype.some=function(){return this._unwrapAndDo(Array.prototype.some,arguments)};t.prototype.every=function(){return this._unwrapAndDo(Array.prototype.every,arguments)};t.prototype.isEmpty=function(){return this._unwrapAndDo(Array.prototype.isEmpty,arguments)};t.prototype.at=function(){return this._unwrapAndDo(Array.prototype.at,arguments)};t.prototype.atOrNull=function(){return this._unwrapAndDo(Array.prototype.atOrNull,arguments)};t.prototype.contains=function(){return this._unwrapAndDo(Array.prototype.contains,arguments)};t.prototype.first=function(){return this._unwrapAndDo(Array.prototype.first,arguments)};t.prototype.firstOrNull=function(){return this._unwrapAndDo(Array.prototype.firstOrNull,arguments)};t.prototype.last=function(){return this._unwrapAndDo(Array.prototype.last,arguments)};t.prototype.lastOrNull=function(){return this._unwrapAndDo(Array.prototype.lastOrNull,arguments)};t.prototype.single=function(){return this._unwrapAndDo(Array.prototype.single,arguments)};t.prototype.singleOrNull=function(){return this._unwrapAndDo(Array.prototype.singleOrNull,arguments)};t.prototype.withMax=function(){return this._unwrapAndDo(Array.prototype.withMax,arguments)};t.prototype.withMin=function(){return this._unwrapAndDo(Array.prototype.withMin,arguments)};t.prototype.max=function(){return this._unwrapAndDo(Array.prototype.max,arguments)};t.prototype.min=function(){return this._unwrapAndDo(Array.prototype.min,arguments)};t.prototype.sum=function(){return this._unwrapAndDo(Array.prototype.sum,arguments)};t.prototype.average=function(){return this._unwrapAndDo(Array.prototype.average,arguments)};t.prototype.median=function(){return this._unwrapAndDo(Array.prototype.median,arguments)};t.prototype.product=function(){return this._unwrapAndDo(Array.prototype.product,arguments)};t.prototype.randomOne=function(){return this._unwrapAndDo(Array.prototype.randomOne,arguments)};t.prototype._pushChain=function(e,r){return new t(this._value,this._chain,{fun:e,args:r})};t.prototype._unwrapAndDo=function(t,e){return t.apply(this.force(),e)};return t}();Array._elementOrUseSelector=function(t,e){if(e!=null){return e(t)}else{return t}};Array.prototype._numberToIndex=function(t){if(0<t&&t<1){return t=Math.round(t*(this.length-1))}else{return t}};Array.prototype._numberToLength=function(t){if(0<t&&t<1){return t=Math.round(t*this.length)}else{return t}};Array.prototype.clone=function(){return this.slice(0)};Array.prototype.isEmpty=function(){return this.length===0};Array.prototype.lazy=function(){return new t(this)};Array.prototype.portion=function(t,e,r){if(Number.isFraction(t)||Number.isFraction(e)||Number.isFraction(r)){if(t===0){t=0+Number.EPSILON}if(t===1){t=1-Number.EPSILON}if(e===0){e=0+Number.EPSILON}if(e===1){e=1-Number.EPSILON}if(r===0){r=0+Number.EPSILON}if(r===1){r=1-Number.EPSILON}}t=this._numberToIndex(t);e=this._numberToLength(e);r=this._numberToIndex(r);return this.slice(t,e!=null?t+e:r+1)};Array.prototype.at=function(t){t=this._numberToIndex(t);assert(0<=t&&t<this.length);return this[t]};Array.prototype.atOrNull=function(t){try{return this.at(t)}catch(t){return null}};Array.prototype.contains=function(t){return s.call(this,t)>=0};Array.prototype.first=function(t){var e;e=t!=null?this.filter(t):this;return e.at(0)};Array.prototype.firstOrNull=function(t){try{return this.first(t)}catch(t){return null}};Array.prototype.last=function(t){var e;e=t!=null?this.filter(t):this;return e.at(e.length-1)};Array.prototype.lastOrNull=function(t){try{return this.last(t)}catch(t){return null}};Array.prototype.single=function(t){var e;e=t!=null?this.filter(t):this;assert(e.length===1);return e.at(0)};Array.prototype.singleOrNull=function(t){try{return this.single(t)}catch(t){return null}};Array.prototype.withMax=function(t){return this.reduce(function(e){return function(e,r,n){if(Array._elementOrUseSelector(e,t)>Array._elementOrUseSelector(r,t)){return e}else{return r}}}(this))};Array.prototype.withMin=function(t){return this.reduce(function(e){return function(e,r,n){if(Array._elementOrUseSelector(e,t)<Array._elementOrUseSelector(r,t)){return e}else{return r}}}(this))};Array.prototype.max=function(t){return Array._elementOrUseSelector(this.withMax(t),t)};Array.prototype.min=function(t){return Array._elementOrUseSelector(this.withMin(t),t)};Array.prototype.sum=function(t){if(this.length===1){return Array._elementOrUseSelector(this.first(),t)}else{return this.reduce(function(e){return function(e,r,n){return(n===1?Array._elementOrUseSelector(e,t):e)+Array._elementOrUseSelector(r,t)}}(this))}};Array.prototype.average=function(t){return this.sum(t)/this.length};Array.prototype.median=function(t){var e,r,n,i,s;s=this.funSort(t);e=s.at(.5-Number.EPSILON);r=s.at(.5+Number.EPSILON);n=Array._elementOrUseSelector(e,t);i=Array._elementOrUseSelector(r,t);return(n+i)/2};Array.prototype.product=function(t){if(this.length===1){return Array._elementOrUseSelector(this.first(),t)}else{return this.reduce(function(e){return function(e,r,n){return(n===1?Array._elementOrUseSelector(e,t):e)*Array._elementOrUseSelector(r,t)}}(this))}};Array.prototype.group=function(t,e){var r,n,i,s,o,u,a,l;if(this.isEmpty()){return[]}u=this.funSort(t);o=[];r=Array._elementOrUseSelector(u.first(),t);n=[];for(a=0,l=u.length;a<l;a++){s=u[a];i=Array._elementOrUseSelector(s,t);if(i!==r){o.push([r,Array._elementOrUseSelector(n,e)]);r=i;n=[]}n.push(s)}o.push([r,Array._elementOrUseSelector(n,e)]);return o};Array.prototype._sort=function(t,e){return this.clone().sort(function(r){return function(r,n){var i,s;i=Array._elementOrUseSelector(r,t);s=Array._elementOrUseSelector(n,t);if(i<s){if(e){return 1}else{return-1}}else if(i>s){if(e){return-1}else{return 1}}else{return 0}}}(this))};Array.prototype.funSort=function(t){return this._sort(t,false)};Array.prototype.funSortDescending=function(t){return this._sort(t,true)};Array.prototype.funReverse=function(){return this.clone().reverse()};Array.prototype.except=function(t){return this.filter(function(e){return s.call(t,e)<0})};Array.prototype.flatten=function(t){var e,r,n,i,s,o,u,a;if(t<=0){return fail()}else{i=[];e=false;for(s=0,u=this.length;s<u;s++){r=this[s];if(Array.isArray(r)){e=true;for(o=0,a=r.length;o<a;o++){n=r[o];i.push(n)}}else{i.push(r)}}if(e){if(t!=null){if(t===1){return i}else{return i.flatten(t-1)}}else{return i.flatten()}}else{return i}}};Array.prototype.randomOne=function(){return this[Math.randomInt(this.length)]};Array.prototype.random=function(t){return this.clone().takeRandom(t)};Array.prototype.takeRandomOne=function(){var t,e;t=Math.randomInt(this.length);e=this[t];this.removeAt(t);return e};Array.prototype.takeRandom=function(t){if(t==null){t=this.length}t=this._numberToLength(t);return repeat(t,function(t){return function(){return t.takeRandomOne()}}(this))};Array.prototype.removeAt=function(t){this.splice(t,1);return this};Array.prototype.remove=function(t){var e;e=this.indexOf(t);assert(e>-1);return this.removeAt(e)};Array.prototype.removeAll=function(t){var e;while(true){e=this.indexOf(t);if(e===-1){break}this.removeAt(e)}return this};Array.prototype.removeMatch=function(t){var e;e=this.findIndex(t);assert(e>-1);return this.removeAt(e)};Array.prototype.removeAllMatch=function(t){var e;while(true){e=this.findIndex(t);if(e===-1){break}this.removeAt(e)}return this};if(Number.EPSILON===void 0){Number.EPSILON=2.220446049250313e-16}if(Number.isInteger===void 0){Number.isInteger=function(t){return typeof t==="number"&&isFinite(t)&&t>-9007199254740992&&t<9007199254740992&&Math.floor(t)===t}}if(Number.isFinite===void 0){Number.isFinite=function(t){return typeof t==="number"&&isFinite(t)}}if(Number.isNaN===void 0){Number.isNaN=function(t){return typeof t==="number"&&isNaN(t)}}if(Number.parseInt===void 0){Number.parseInt=parseInt}if(Number.parseFloat===void 0){Number.parseFloat=parseFloat}if(String.prototype.startsWith===void 0){String.prototype.startsWith=function(t){return this.indexOf(t)===0}}if(String.prototype.endsWith===void 0){String.prototype.endsWith=function(t){return this.lastIndexOf(t)===this.length-t.length}}if(String.prototype.contains===void 0){String.prototype.contains=function(t){return this.indexOf(t)!==-1}}if(Object.is===void 0){Object.is=function(t,e){if(typeof t==="number"&&typeof e==="number"){if(t===0&&e===0){return 1/t===1/e}else if(isNaN(t)&&isNaN(e)){return true}else{return t===e}}else{return t===e}}}if(Array.from===void 0){Array.from=function(t){var e,r,n,i;i=[];for(r=0,n=t.length;r<n;r++){e=t[r];i.push(e)}return i}}if(Array.of===void 0){Array.of=function(){return Array.from(arguments)}}if(Array.prototype.find===void 0){Array.prototype.find=function(t){var e;assert(typeof t==="function");e=this.filter(t);if(!e.isEmpty()){return e.at(0)}else{return void 0}}}if(Array.prototype.findIndex===void 0){Array.prototype.findIndex=function(t){var e;e=this.find(t);if(e===void 0){return-1}else{return this.indexOf(e)}}}if(Math.sign===void 0){Math.sign=function(t){if(typeof t==="number"){if(t===0){return 0}else if(t>0){return 1}else if(t<0){return-1}else{return NaN}}else{return NaN}}}if(Math.trunc===void 0){Math.trunc=function(t){if(t<0){return Math.ceil(t)}else{return Math.floor(t)}}}if(global.setImmediate===void 0){global.setImmediate=function(t,e){return setTimeout(t,0,e)}}if(global.clearImmediate===void 0){global.clearImmediate=clearTimeout}global.compose=function(t){if(arguments.length>1){t=Array.from(arguments)}return function(){var e,r,n,i;e=arguments;for(n=0,i=t.length;n<i;n++){r=t[n];e=[r.apply(this,e)]}return e[0]}};global.fail=function(t){throw new Error(t)};global.assert=function(t,e){if(!t){return fail(e)}};global.repeat=function(t,e){var r,n,i,s;if(typeof t==="number"){i=[t,e],e=i[0],t=i[1]}s=[];for(r=n=0;0<=e?n<e:n>e;r=0<=e?++n:--n){s.push(t())}return s};global.spread=function(t,e){var r,n,i;i=[];for(r=n=0;0<=e?n<e:n>e;r=0<=e?++n:--n){i.push(t)}return i};Object.getter=function(t,e,r){return Object.defineProperty(t,e,{get:r,configurable:true})};Object.setter=function(t,e,r){return Object.defineProperty(t,e,{set:r,configurable:true})};Object.clone=function(t){var e,r,n,i,s;r={};s=Object.keys(t);for(n=0,i=s.length;n<i;n++){e=s[n];r[e]=t[e]}return r};JSON.clone=function(t){return JSON.parse(JSON.stringify(t))};String.prototype.matches=function(t){var e,r,n;e=new RegExp(t.source,"g");n=[];while(true){r=e.exec(this);if(r!=null){n.push(r)}else{break}}return n};String.prototype.capitalize=function(){return this.charAt(0).toUpperCase()+this.substr(1)};Date.prototype.add=function(t){return new Date(this- -t)};Date.prototype.subtract=function(t){if(typeof t==="number"){return new Date(this-t)}else{return this-t}};Date.prototype.equals=function(t){return t<=this&&this<=t};console.logt=function(){return console.log.apply(console,[(new Date).toISOString()].concat(Array.from(arguments)))};global.Test=i.Test;global.eventField=function(){var t;t=function(e,r){if(typeof e==="function"){r=e;e="bind"}assert(typeof e==="string");t[e](r);return this};t._listeners=[];t.bind=function(e){if(s.call(t._listeners,e)<0){t._listeners.push(e)}return t};t.unbind=function(e){t._listeners.removeAll(e);return t};t.fire=function(e){var r,n,i,s;s=t._listeners;for(n=0,i=s.length;n<i;n++){r=s[n];if(e!=null?e.blocksListeners:void 0){break}r(e)}return void 0};return t};global.EventedObject=function(){function t(){this._eventList={}}t.prototype.on=function(t,e){var r;if((r=this._eventList)[t]==null){r[t]=[]}if(s.call(this._eventList[t],e)<0){this._eventList[t].push(e)}return this};t.prototype.off=function(t,e){this._eventList[t].removeAll(e);return this};t.prototype.fire=function(t,e){var r,n,i,s,o;if((n=this._eventList)[t]==null){n[t]=[]}o=this._eventList[t];for(i=0,s=o.length;i<s;i++){r=o[i];r(e)}return void 0};t.prototype.listeners=function(t){return this._eventList[t]};return t}();Math.nearlyEquals=function(t,e){var r,n;r=1+1/65536;return 1/r<(n=t/e)&&n<r};Math.nearlyGreaterThan=function(t,e){return t>e||Math.nearlyEquals(t,e)};Math.nearlyLessThan=function(t,e){return t<e||Math.nearlyEquals(t,e)};Math.radiansToDegrees=function(t){return t/Math.PI*180};Math.degreesToRadians=function(t){return t/180*Math.PI};Math.principalRadians=function(t){var e;e=t%(2*Math.PI);if(e<=-Math.PI){return e+2*Math.PI}else if(e>Math.PI){return e-2*Math.PI}else{return e}};Math.principalDegrees=function(t){var e;e=t%360;if(e<=-180){return e+360}else if(e>180){return e-360}else{return e}};Math.randomNumber=function(t,e){if(t<e){return t+Math.random()*(e-t)}else{return fail()}};Math.randomInt=function(t,e){var r,n;n=e===void 0?0:t;r=e===void 0?t:e;return Math.floor(Math.randomNumber(n,r))};Number.isFraction=function(t){return typeof t==="number"&&isFinite(t)&&Math.floor(t)!==t};Number.parseFloatExt=function(t){return parseFloat(t)*(t.endsWith("%")?.01:1)};Number.prototype.nearlyEquals=function(t){return Math.nearlyEquals(this,t)};Number.prototype.nearlyGreaterThan=function(t){return Math.nearlyGreaterThan(this,t)};Number.prototype.nearlyLessThan=function(t){return Math.nearlyLessThan(this,t)};global.Point=function(){function t(t,e){this.x=t;this.y=e}t.from=function(e){if(typeof e==="number"){return new t(e,0)}else if(e instanceof t){return e.clone()}else if(typeof e==="string"){return t.fromString(e)}else if(Array.isArray(e)){return t.fromArray(e)}else{return fail()}};t.fromArray=function(e){return new t(e[0],e[1])};t.fromString=function(e){var r,n,i,s,o,u,a;r=e.replace(/[\x20()]/g,"");s=r.match(/^([^,]*),(.*)$/);if(s!=null){return new t(Number.parseFloatExt(s[1]),Number.parseFloatExt(s[2]))}else{n=r.match(/^([+-]?[0-9]*\.?[0-9]*(?:[Ee][+-]?[0-9]+)?(?![i0-9Ee.]))?(?:([+-]?[0-9]*\.?[0-9]*(?:[Ee][+-]?[0-9]+)?)i)?$/);if(n!=null){o=(u=n[1])!=null?u:"0";i=(a=n[2])!=null?a:"0";if(o===""){o="1"}if(i===""){i="1"}if(o==="+"){o="1"}if(i==="+"){i="1"}if(o==="-"){o="-1"}if(i==="-"){i="-1"}return new t(parseFloat(o),parseFloat(i))}else{return fail()}}};t.fromPolar=function(e,r){return new t(e*Math.cos(r),e*Math.sin(r))};t.fromPolarInDegrees=function(e,r){switch(Math.principalDegrees(r)){case 0:return new t(e,0);case 90:return new t(0,e);case-90:return new t(0,-e);case 180:return new t(-e,0);default:return t.fromPolar(e,Math.degreesToRadians(r))}};t.prototype.real=function(){return this.x};t.prototype.imaginary=function(){return this.y};t.prototype.toString=function(){return"("+this.x+","+this.y+")"};t.prototype.toComplexString=function(){var t;t=this.y>=0?"+":"-";return""+this.x+t+Math.abs(this.y)+"i"};t.prototype.clone=function(){return new t(this.x,this.y)};t.prototype.equals=function(t){return cmath.equals(this,t)};t.prototype.nearlyEquals=function(t){return cmath.nearlyEquals(this,t)};t.prototype.opposite=function(){return cmath.opposite(this)};t.prototype.reciprocal=function(){return cmath.reciprocal(this)};t.prototype.conjugate=function(){return cmath.conjugate(this)};t.prototype.abs=function(){return cmath.abs(this)};t.prototype.add=function(t){return cmath.add(this,t)};t.prototype.subtract=function(t){return cmath.subtract(this,t)};t.prototype.multiply=function(t){return cmath.multiply(this,t)};t.prototype.divide=function(t){return cmath.divide(this,t)};t.prototype.distance=function(t){return cmath.distance(this,t)};t.prototype.dotProduct=function(e){e=t.from(e);return this.x*e.x+this.y*e.y};t.prototype.crossProduct=function(e){e=t.from(e);return this.x*e.y-this.y*e.x};t.prototype.isOppositeTo=function(t){return this.opposite().equals(t)};t.prototype.phase=function(){return cmath.phase(this)};t.prototype.phaseTo=function(e){e=t.from(e);return Math.principalRadians(e.phase()-this.phase())};t.prototype.phaseInDegrees=function(){return cmath.phaseInDegrees(this)};t.prototype.phaseInDegreesTo=function(e){e=t.from(e);return Math.principalDegrees(e.phaseInDegrees()-this.phaseInDegrees())};t.prototype.scale=function(e){e=t.from(e);return new t(this.x*e.x,this.y*e.y)};t.prototype.rotate=function(e){return this.multiply(t.fromPolar(1,e))};t.prototype.rotateDegrees=function(e){return this.multiply(t.fromPolarInDegrees(1,e))};return t}();global.cmath={equals:function(t,e){t=Point.from(t);e=Point.from(e);return t.x===e.x&&t.y===e.y},nearlyEquals:function(t,e){t=Point.from(t);e=Point.from(e);return t.x.nearlyEquals(e.x)&&t.y.nearlyEquals(e.y)},opposite:function(t){t=Point.from(t);return new Point(-t.x,-t.y)},reciprocal:function(t){var e;t=Point.from(t);e=t.x*t.x+t.y*t.y;return new Point(t.x/e,-t.y/e)},conjugate:function(t){t=Point.from(t);return new Point(t.x,-t.y)},abs:function(t){t=Point.from(t);if(t.x===0){return Math.abs(t.y)}else if(t.y===0){return Math.abs(t.x)}else{return Math.sqrt(t.x*t.x+t.y*t.y)}},phase:function(t){t=Point.from(t);return Math.atan2(t.y,t.x)},phaseInDegrees:function(t){var e;t=Point.from(t);if(t.x===0&&t.y===0){return 0}else if(t.x===0&&t.y>0){return 90}else if(t.x===0&&t.y<0){return-90}else if(t.x>0&&t.y===0){return 0}else if(t.x<0&&t.y===0){return 180}else{e=Math.radiansToDegrees(cmath.phase(t));if(e<=-180){return 180}else{return e}}},add:function(t,e){t=Point.from(t);e=Point.from(e);return new Point(t.x+e.x,t.y+e.y)},subtract:function(t,e){return cmath.add(t,cmath.opposite(e))},multiply:function(t,e){t=Point.from(t);e=Point.from(e);return new Point(t.x*e.x-t.y*e.y,t.x*e.y+t.y*e.x)},divide:function(t,e){return cmath.multiply(t,cmath.reciprocal(e))},distance:function(t,e){return cmath.abs(cmath.subtract(t,e))},exp:function(t){t=Point.from(t);return Point.fromPolar(Math.exp(t.x),t.y)},log:function(t){return new Point(Math.log(cmath.abs(t)),cmath.phase(t))},pow:function(t,e){return cmath.exp(cmath.multiply(cmath.log(t),e))},sqrt:function(t){var e;t=Point.from(t);e=cmath.abs(t);return new Point(Math.sqrt((e+t.x)/2),Math.sign(t.y)*Math.sqrt((e-t.x)/2))},cos:function(t){return cmath.divide(cmath.add(cmath.exp(cmath.multiply(t,new Point(0,1))),cmath.exp(cmath.multiply(cmath.opposite(t),new Point(0,1)))),2)},sin:function(t){return cmath.divide(cmath.subtract(cmath.exp(cmath.multiply(t,new Point(0,1))),cmath.exp(cmath.multiply(cmath.opposite(t),new Point(0,1)))),new Point(0,2))},tan:function(t){return cmath.divide(cmath.sin(t),cmath.cos(t))},acos:function(t){return cmath.opposite(cmath.multiply(cmath.log(cmath.add(t,cmath.multiply(cmath.sqrt(cmath.add(cmath.opposite(cmath.multiply(t,t)),1)),new Point(0,1)))),new Point(0,1)))},asin:function(t){return cmath.opposite(cmath.multiply(cmath.log(cmath.add(cmath.multiply(t,new Point(0,1)),cmath.sqrt(cmath.add(cmath.opposite(cmath.multiply(t,t)),1)))),new Point(0,1)))},atan:function(t){return cmath.multiply(cmath.subtract(cmath.log(cmath.subtract(1,cmath.multiply(t,new Point(0,1)))),cmath.log(cmath.add(1,cmath.multiply(t,new Point(0,1))))),new Point(0,.5))}};Date.Timer=function(){t._endOfTime=new Date("9999-12-30T00:00:00Z");function t(t){this.targetTime=t!=null?t:Date.Timer._endOfTime;this._counterValue=0;this._internalTimer=null;this._running=false;this.allowsEqual=true;this.precision=30;this.onArrive=eventField()}t.prototype.run=function(){if(this._running){return}this._counterValue=0;this._internalTimer=setInterval(function(t){return function(){var e,r;r=new Date;if(t.allowsEqual?r>=t.targetTime:r>t.targetTime){t._counterValue++;e=t.targetTime;t.targetTime=Date.Timer._endOfTime;return t.onArrive.fire({idealTime:e,nowTime:r,index:t._counterValue-1})}}}(this),this.precision);this._running=true;return this};t.prototype.stop=function(){if(!this._running){return}clearInterval(this._internalTimer);this._running=false;return this};t.prototype.getRunning=function(){return this._running};t.prototype.resetCounter=function(){return this._counterValue=0};t.prototype.getCounterValue=function(){return this._counterValue};return t}();Date.IntervalTimer=function(t){u(e,t);function e(t,r,n){this.interval=t!=null?t:1e3;this.startTime=r!=null?r:new Date;this.endTime=n;e.__super__.constructor.call(this);this._started=false;this.includesStart=true;this.includesEnd=false;this.onStart=eventField();this.onArrive.bind(function(t){return function(e){t.targetTime=e.idealTime.add(t.interval);if(!t._started){t._started=true;if(!t.includesStart){t.resetCounter();e.blocksListeners=true}t.onStart.fire()}if(t.endTime!=null&&(t.includesEnd?t.targetTime>t.endTime:t.targetTime>=t.endTime)){return t.stop()}}}(this))}e.prototype.run=function(){if(this.getRunning()){return}this.targetTime=this.startTime;return e.__super__.run.call(this)};return e}(Date.Timer);e.exports=n}).call(this)},nameIndexes:{wishlist:1,"./package.json":2},result:initialModResult_386389655257694535},{fun:function(exports,module,require){/* @preserve | ||
(function(){var initialModResult_386389655257694535={};var mods_386389655257694535=[{fun:function(t,e,r){(function(){var t,n,i,o=[].indexOf||function(t){for(var e=0,r=this.length;e<r;e++){if(e in this&&this[e]===t)return e}return-1},s={}.hasOwnProperty,u=function(t,e){for(var r in e){if(s.call(e,r))t[r]=e[r]}function n(){this.constructor=t}n.prototype=e.prototype;t.prototype=new n;t.__super__=e.prototype;return t};i=r("wishlist");n={};n.packageInfo=r("./package.json");n.environmentType=(typeof process!=="undefined"&&process!==null?process.execPath:void 0)!=null&&typeof process.execPath==="string"&&process.execPath.search(/node/i)!==-1?"node":typeof window!=="undefined"&&window!==null&&(typeof navigator!=="undefined"&&navigator!==null)&&(typeof HTMLElement!=="undefined"&&HTMLElement!==null)?"browser":void 0;if(n.environmentType==="browser"){window.global=window}global.npmMate=n;t=function(){function t(t,e,r){this._value=t;this._chain=(e!=null?e:[]).slice(0);if(r!=null){this._chain.push(r)}Object.getter(this,"length",function(t){return function(){return t.force().length}}(this))}t.prototype.force=function(){var t,e,r,n,i;e=this._value;i=this._chain;for(r=0,n=i.length;r<n;r++){t=i[r];e=t.fun.apply(e,t.args)}return e};t.prototype.map=function(){return this._pushChain(Array.prototype.map,arguments)};t.prototype.filter=function(){return this._pushChain(Array.prototype.filter,arguments)};t.prototype.concat=function(){return this._pushChain(Array.prototype.concat,arguments)};t.prototype.portion=function(){return this._pushChain(Array.prototype.portion,arguments)};t.prototype.funSort=function(){return this._pushChain(Array.prototype.funSort,arguments)};t.prototype.funSortDescending=function(){return this._pushChain(Array.prototype.funSortDescending,arguments)};t.prototype.funReverse=function(){return this._pushChain(Array.prototype.funReverse,arguments)};t.prototype.except=function(){return this._pushChain(Array.prototype.except,arguments)};t.prototype.group=function(){return this._pushChain(Array.prototype.group,arguments)};t.prototype.flatten=function(){return this._pushChain(Array.prototype.flatten,arguments)};t.prototype.random=function(){return this._pushChain(Array.prototype.random,arguments)};t.prototype.some=function(){return this._unwrapAndDo(Array.prototype.some,arguments)};t.prototype.every=function(){return this._unwrapAndDo(Array.prototype.every,arguments)};t.prototype.isEmpty=function(){return this._unwrapAndDo(Array.prototype.isEmpty,arguments)};t.prototype.at=function(){return this._unwrapAndDo(Array.prototype.at,arguments)};t.prototype.atOrNull=function(){return this._unwrapAndDo(Array.prototype.atOrNull,arguments)};t.prototype.contains=function(){return this._unwrapAndDo(Array.prototype.contains,arguments)};t.prototype.first=function(){return this._unwrapAndDo(Array.prototype.first,arguments)};t.prototype.firstOrNull=function(){return this._unwrapAndDo(Array.prototype.firstOrNull,arguments)};t.prototype.last=function(){return this._unwrapAndDo(Array.prototype.last,arguments)};t.prototype.lastOrNull=function(){return this._unwrapAndDo(Array.prototype.lastOrNull,arguments)};t.prototype.single=function(){return this._unwrapAndDo(Array.prototype.single,arguments)};t.prototype.singleOrNull=function(){return this._unwrapAndDo(Array.prototype.singleOrNull,arguments)};t.prototype.withMax=function(){return this._unwrapAndDo(Array.prototype.withMax,arguments)};t.prototype.withMin=function(){return this._unwrapAndDo(Array.prototype.withMin,arguments)};t.prototype.max=function(){return this._unwrapAndDo(Array.prototype.max,arguments)};t.prototype.min=function(){return this._unwrapAndDo(Array.prototype.min,arguments)};t.prototype.sum=function(){return this._unwrapAndDo(Array.prototype.sum,arguments)};t.prototype.average=function(){return this._unwrapAndDo(Array.prototype.average,arguments)};t.prototype.median=function(){return this._unwrapAndDo(Array.prototype.median,arguments)};t.prototype.product=function(){return this._unwrapAndDo(Array.prototype.product,arguments)};t.prototype.randomOne=function(){return this._unwrapAndDo(Array.prototype.randomOne,arguments)};t.prototype._pushChain=function(e,r){return new t(this._value,this._chain,{fun:e,args:r})};t.prototype._unwrapAndDo=function(t,e){return t.apply(this.force(),e)};return t}();Array._elementOrUseSelector=function(t,e){if(e!=null){return e(t)}else{return t}};Array.prototype._numberToIndex=function(t){if(0<t&&t<1){return t=Math.round(t*(this.length-1))}else{return t}};Array.prototype._numberToLength=function(t){if(0<t&&t<1){return t=Math.round(t*this.length)}else{return t}};Array.prototype.clone=function(){return this.slice(0)};Array.prototype.isEmpty=function(){return this.length===0};Array.prototype.lazy=function(){return new t(this)};Array.prototype.portion=function(t,e,r){if(Number.isFraction(t)||Number.isFraction(e)||Number.isFraction(r)){if(t===0){t=0+Number.EPSILON}if(t===1){t=1-Number.EPSILON}if(e===0){e=0+Number.EPSILON}if(e===1){e=1-Number.EPSILON}if(r===0){r=0+Number.EPSILON}if(r===1){r=1-Number.EPSILON}}t=this._numberToIndex(t);e=this._numberToLength(e);r=this._numberToIndex(r);return this.slice(t,e!=null?t+e:r+1)};Array.prototype.at=function(t){t=this._numberToIndex(t);assert(0<=t&&t<this.length);return this[t]};Array.prototype.atOrNull=function(t){try{return this.at(t)}catch(t){return null}};Array.prototype.contains=function(t){return o.call(this,t)>=0};Array.prototype.first=function(t){var e;e=t!=null?this.filter(t):this;return e.at(0)};Array.prototype.firstOrNull=function(t){try{return this.first(t)}catch(t){return null}};Array.prototype.last=function(t){var e;e=t!=null?this.filter(t):this;return e.at(e.length-1)};Array.prototype.lastOrNull=function(t){try{return this.last(t)}catch(t){return null}};Array.prototype.single=function(t){var e;e=t!=null?this.filter(t):this;assert(e.length===1);return e.at(0)};Array.prototype.singleOrNull=function(t){try{return this.single(t)}catch(t){return null}};Array.prototype.withMax=function(t){return this.reduce(function(e){return function(e,r,n){if(Array._elementOrUseSelector(e,t)>Array._elementOrUseSelector(r,t)){return e}else{return r}}}(this))};Array.prototype.withMin=function(t){return this.reduce(function(e){return function(e,r,n){if(Array._elementOrUseSelector(e,t)<Array._elementOrUseSelector(r,t)){return e}else{return r}}}(this))};Array.prototype.max=function(t){return Array._elementOrUseSelector(this.withMax(t),t)};Array.prototype.min=function(t){return Array._elementOrUseSelector(this.withMin(t),t)};Array.prototype.sum=function(t){if(this.length===1){return Array._elementOrUseSelector(this.first(),t)}else{return this.reduce(function(e){return function(e,r,n){return(n===1?Array._elementOrUseSelector(e,t):e)+Array._elementOrUseSelector(r,t)}}(this))}};Array.prototype.average=function(t){return this.sum(t)/this.length};Array.prototype.median=function(t){var e,r,n,i,o;o=this.funSort(t);e=o.at(.5-Number.EPSILON);r=o.at(.5+Number.EPSILON);n=Array._elementOrUseSelector(e,t);i=Array._elementOrUseSelector(r,t);return(n+i)/2};Array.prototype.product=function(t){if(this.length===1){return Array._elementOrUseSelector(this.first(),t)}else{return this.reduce(function(e){return function(e,r,n){return(n===1?Array._elementOrUseSelector(e,t):e)*Array._elementOrUseSelector(r,t)}}(this))}};Array.prototype.group=function(t,e){var r,n,i,o,s,u,a,l;if(this.isEmpty()){return[]}u=this.funSort(t);s=[];r=Array._elementOrUseSelector(u.first(),t);n=[];for(a=0,l=u.length;a<l;a++){o=u[a];i=Array._elementOrUseSelector(o,t);if(i!==r){s.push([r,Array._elementOrUseSelector(n,e)]);r=i;n=[]}n.push(o)}s.push([r,Array._elementOrUseSelector(n,e)]);return s};Array.prototype._sort=function(t,e){return this.clone().sort(function(r){return function(r,n){var i,o;i=Array._elementOrUseSelector(r,t);o=Array._elementOrUseSelector(n,t);if(i<o){if(e){return 1}else{return-1}}else if(i>o){if(e){return-1}else{return 1}}else{return 0}}}(this))};Array.prototype.funSort=function(t){return this._sort(t,false)};Array.prototype.funSortDescending=function(t){return this._sort(t,true)};Array.prototype.funReverse=function(){return this.clone().reverse()};Array.prototype.except=function(t){return this.filter(function(e){return o.call(t,e)<0})};Array.prototype.flatten=function(t){var e,r,n,i,o,s,u,a;if(t<=0){return fail()}else{i=[];e=false;for(o=0,u=this.length;o<u;o++){r=this[o];if(Array.isArray(r)){e=true;for(s=0,a=r.length;s<a;s++){n=r[s];i.push(n)}}else{i.push(r)}}if(e){if(t!=null){if(t===1){return i}else{return i.flatten(t-1)}}else{return i.flatten()}}else{return i}}};Array.prototype.randomOne=function(){return this[Math.randomInt(this.length)]};Array.prototype.random=function(t){return this.clone().takeRandom(t)};Array.prototype.takeRandomOne=function(){var t,e;t=Math.randomInt(this.length);e=this[t];this.removeAt(t);return e};Array.prototype.takeRandom=function(t){if(t==null){t=this.length}t=this._numberToLength(t);return repeat(t,function(t){return function(){return t.takeRandomOne()}}(this))};Array.prototype.removeAt=function(t){this.splice(t,1);return this};Array.prototype.remove=function(t){var e;e=this.indexOf(t);assert(e>-1);return this.removeAt(e)};Array.prototype.removeAll=function(t){var e;while(true){e=this.indexOf(t);if(e===-1){break}this.removeAt(e)}return this};Array.prototype.removeMatch=function(t){var e;e=this.findIndex(t);assert(e>-1);return this.removeAt(e)};Array.prototype.removeAllMatch=function(t){var e;while(true){e=this.findIndex(t);if(e===-1){break}this.removeAt(e)}return this};if(Number.EPSILON===void 0){Number.EPSILON=2.220446049250313e-16}if(Number.isInteger===void 0){Number.isInteger=function(t){return typeof t==="number"&&isFinite(t)&&t>-9007199254740992&&t<9007199254740992&&Math.floor(t)===t}}if(Number.isFinite===void 0){Number.isFinite=function(t){return typeof t==="number"&&isFinite(t)}}if(Number.isNaN===void 0){Number.isNaN=function(t){return typeof t==="number"&&isNaN(t)}}if(Number.parseInt===void 0){Number.parseInt=parseInt}if(Number.parseFloat===void 0){Number.parseFloat=parseFloat}if(String.prototype.startsWith===void 0){String.prototype.startsWith=function(t){return this.indexOf(t)===0}}if(String.prototype.endsWith===void 0){String.prototype.endsWith=function(t){return this.lastIndexOf(t)===this.length-t.length}}if(String.prototype.contains===void 0){String.prototype.contains=function(t){return this.indexOf(t)!==-1}}if(Object.is===void 0){Object.is=function(t,e){if(typeof t==="number"&&typeof e==="number"){if(t===0&&e===0){return 1/t===1/e}else if(isNaN(t)&&isNaN(e)){return true}else{return t===e}}else{return t===e}}}if(Array.from===void 0){Array.from=function(t){var e,r,n,i;i=[];for(r=0,n=t.length;r<n;r++){e=t[r];i.push(e)}return i}}if(Array.of===void 0){Array.of=function(){return Array.from(arguments)}}if(Array.prototype.find===void 0){Array.prototype.find=function(t){var e;assert(typeof t==="function");e=this.filter(t);if(!e.isEmpty()){return e.at(0)}else{return void 0}}}if(Array.prototype.findIndex===void 0){Array.prototype.findIndex=function(t){var e;e=this.find(t);if(e===void 0){return-1}else{return this.indexOf(e)}}}if(Math.sign===void 0){Math.sign=function(t){if(typeof t==="number"){if(t===0){return 0}else if(t>0){return 1}else if(t<0){return-1}else{return NaN}}else{return NaN}}}if(Math.trunc===void 0){Math.trunc=function(t){if(t<0){return Math.ceil(t)}else{return Math.floor(t)}}}if(global.setImmediate===void 0){global.setImmediate=function(t,e){return setTimeout(t,0,e)}}if(global.clearImmediate===void 0){global.clearImmediate=clearTimeout}global.compose=function(t){if(arguments.length>1){t=Array.from(arguments)}return function(){var e,r,n,i;e=arguments;for(n=0,i=t.length;n<i;n++){r=t[n];e=[r.apply(this,e)]}return e[0]}};global.fail=function(t){throw new Error(t)};global.assert=function(t,e){if(!t){return fail(e)}};global.repeat=function(t,e){var r,n,i,o;if(typeof t==="number"){i=[t,e],e=i[0],t=i[1]}o=[];for(r=n=0;0<=e?n<e:n>e;r=0<=e?++n:--n){o.push(t())}return o};global.spread=function(t,e){var r,n,i;i=[];for(r=n=0;0<=e?n<e:n>e;r=0<=e?++n:--n){i.push(t)}return i};Object.getter=function(t,e,r){return Object.defineProperty(t,e,{get:r,configurable:true})};Object.setter=function(t,e,r){return Object.defineProperty(t,e,{set:r,configurable:true})};Object.clone=function(t){var e,r,n,i,o;r={};o=Object.keys(t);for(n=0,i=o.length;n<i;n++){e=o[n];r[e]=t[e]}return r};JSON.clone=function(t){return JSON.parse(JSON.stringify(t))};String.prototype.matches=function(t){var e,r,n;e=new RegExp(t.source,"g");n=[];while(true){r=e.exec(this);if(r!=null){n.push(r)}else{break}}return n};String.prototype.capitalize=function(){return this.charAt(0).toUpperCase()+this.substr(1)};Date.prototype.add=function(t){return new Date(this- -t)};Date.prototype.subtract=function(t){if(typeof t==="number"){return new Date(this-t)}else{return this-t}};Date.prototype.equals=function(t){return t<=this&&this<=t};console.logt=function(){return console.log.apply(console,[(new Date).toISOString()].concat(Array.from(arguments)))};global.Test=i.Test;global.eventField=function(){var t;t=function(e,r){if(typeof e==="function"){r=e;e="bind"}assert(typeof e==="string");t[e](r);return this};t._listeners=[];t.bind=function(e){if(o.call(t._listeners,e)<0){t._listeners.push(e)}return t};t.unbind=function(e){t._listeners.removeAll(e);return t};t.fire=function(e){var r,n,i,o;o=t._listeners;for(n=0,i=o.length;n<i;n++){r=o[n];if(e!=null?e.blocksListeners:void 0){break}r(e)}return void 0};return t};global.EventedObject=function(){function t(){this._eventList={}}t.prototype.on=function(t,e){var r;if((r=this._eventList)[t]==null){r[t]=[]}if(o.call(this._eventList[t],e)<0){this._eventList[t].push(e)}return this};t.prototype.off=function(t,e){this._eventList[t].removeAll(e);return this};t.prototype.fire=function(t,e){var r,n,i,o,s;if((n=this._eventList)[t]==null){n[t]=[]}s=this._eventList[t];for(i=0,o=s.length;i<o;i++){r=s[i];r(e)}return void 0};t.prototype.listeners=function(t){return this._eventList[t]};return t}();Math.nearlyEquals=function(t,e){var r,n;r=1+1/65536;return 1/r<(n=t/e)&&n<r};Math.nearlyGreaterThan=function(t,e){return t>e||Math.nearlyEquals(t,e)};Math.nearlyLessThan=function(t,e){return t<e||Math.nearlyEquals(t,e)};Math.radiansToDegrees=function(t){return t/Math.PI*180};Math.degreesToRadians=function(t){return t/180*Math.PI};Math.principalRadians=function(t){var e;e=t%(2*Math.PI);if(e<=-Math.PI){return e+2*Math.PI}else if(e>Math.PI){return e-2*Math.PI}else{return e}};Math.principalDegrees=function(t){var e;e=t%360;if(e<=-180){return e+360}else if(e>180){return e-360}else{return e}};Math.randomNumber=function(t,e){if(t<e){return t+Math.random()*(e-t)}else{return fail()}};Math.randomInt=function(t,e){var r,n;n=e===void 0?0:t;r=e===void 0?t:e;return Math.floor(Math.randomNumber(n,r))};Number.isFraction=function(t){return typeof t==="number"&&isFinite(t)&&Math.floor(t)!==t};Number.parseFloatExt=function(t){return parseFloat(t)*(t.endsWith("%")?.01:1)};Number.prototype.nearlyEquals=function(t){return Math.nearlyEquals(this,t)};Number.prototype.nearlyGreaterThan=function(t){return Math.nearlyGreaterThan(this,t)};Number.prototype.nearlyLessThan=function(t){return Math.nearlyLessThan(this,t)};global.Point=function(){function t(t,e){this.x=t;this.y=e}t.from=function(e){if(typeof e==="number"){return new t(e,0)}else if(e instanceof t){return e.clone()}else if(typeof e==="string"){return t.fromString(e)}else if(Array.isArray(e)){return t.fromArray(e)}else{return fail()}};t.fromArray=function(e){return new t(e[0],e[1])};t.fromString=function(e){var r,n,i,o,s,u,a;r=e.replace(/[\x20()]/g,"");o=r.match(/^([^,]*),(.*)$/);if(o!=null){return new t(Number.parseFloatExt(o[1]),Number.parseFloatExt(o[2]))}else{n=r.match(/^([+-]?[0-9]*\.?[0-9]*(?:[Ee][+-]?[0-9]+)?(?![i0-9Ee.]))?(?:([+-]?[0-9]*\.?[0-9]*(?:[Ee][+-]?[0-9]+)?)i)?$/);if(n!=null){s=(u=n[1])!=null?u:"0";i=(a=n[2])!=null?a:"0";if(s===""){s="1"}if(i===""){i="1"}if(s==="+"){s="1"}if(i==="+"){i="1"}if(s==="-"){s="-1"}if(i==="-"){i="-1"}return new t(parseFloat(s),parseFloat(i))}else{return fail()}}};t.fromPolar=function(e,r){return new t(e*Math.cos(r),e*Math.sin(r))};t.fromPolarInDegrees=function(e,r){switch(Math.principalDegrees(r)){case 0:return new t(e,0);case 90:return new t(0,e);case-90:return new t(0,-e);case 180:return new t(-e,0);default:return t.fromPolar(e,Math.degreesToRadians(r))}};t.prototype.real=function(){return this.x};t.prototype.imaginary=function(){return this.y};t.prototype.toString=function(){return"("+this.x+","+this.y+")"};t.prototype.toComplexString=function(){var t;t=this.y>=0?"+":"-";return""+this.x+t+Math.abs(this.y)+"i"};t.prototype.clone=function(){return new t(this.x,this.y)};t.prototype.equals=function(t){return cmath.equals(this,t)};t.prototype.nearlyEquals=function(t){return cmath.nearlyEquals(this,t)};t.prototype.opposite=function(){return cmath.opposite(this)};t.prototype.reciprocal=function(){return cmath.reciprocal(this)};t.prototype.conjugate=function(){return cmath.conjugate(this)};t.prototype.abs=function(){return cmath.abs(this)};t.prototype.add=function(t){return cmath.add(this,t)};t.prototype.subtract=function(t){return cmath.subtract(this,t)};t.prototype.multiply=function(t){return cmath.multiply(this,t)};t.prototype.divide=function(t){return cmath.divide(this,t)};t.prototype.distance=function(t){return cmath.distance(this,t)};t.prototype.dotProduct=function(e){e=t.from(e);return this.x*e.x+this.y*e.y};t.prototype.crossProduct=function(e){e=t.from(e);return this.x*e.y-this.y*e.x};t.prototype.isOppositeTo=function(t){return this.opposite().equals(t)};t.prototype.phase=function(){return cmath.phase(this)};t.prototype.phaseTo=function(e){e=t.from(e);return Math.principalRadians(e.phase()-this.phase())};t.prototype.phaseInDegrees=function(){return cmath.phaseInDegrees(this)};t.prototype.phaseInDegreesTo=function(e){e=t.from(e);return Math.principalDegrees(e.phaseInDegrees()-this.phaseInDegrees())};t.prototype.scale=function(e){e=t.from(e);return new t(this.x*e.x,this.y*e.y)};t.prototype.rotate=function(e){return this.multiply(t.fromPolar(1,e))};t.prototype.rotateDegrees=function(e){return this.multiply(t.fromPolarInDegrees(1,e))};return t}();global.cmath={equals:function(t,e){t=Point.from(t);e=Point.from(e);return t.x===e.x&&t.y===e.y},nearlyEquals:function(t,e){t=Point.from(t);e=Point.from(e);return t.x.nearlyEquals(e.x)&&t.y.nearlyEquals(e.y)},opposite:function(t){t=Point.from(t);return new Point(-t.x,-t.y)},reciprocal:function(t){var e;t=Point.from(t);e=t.x*t.x+t.y*t.y;return new Point(t.x/e,-t.y/e)},conjugate:function(t){t=Point.from(t);return new Point(t.x,-t.y)},abs:function(t){t=Point.from(t);if(t.x===0){return Math.abs(t.y)}else if(t.y===0){return Math.abs(t.x)}else{return Math.sqrt(t.x*t.x+t.y*t.y)}},phase:function(t){t=Point.from(t);return Math.atan2(t.y,t.x)},phaseInDegrees:function(t){var e;t=Point.from(t);if(t.x===0&&t.y===0){return 0}else if(t.x===0&&t.y>0){return 90}else if(t.x===0&&t.y<0){return-90}else if(t.x>0&&t.y===0){return 0}else if(t.x<0&&t.y===0){return 180}else{e=Math.radiansToDegrees(cmath.phase(t));if(e<=-180){return 180}else{return e}}},add:function(t,e){t=Point.from(t);e=Point.from(e);return new Point(t.x+e.x,t.y+e.y)},subtract:function(t,e){return cmath.add(t,cmath.opposite(e))},multiply:function(t,e){t=Point.from(t);e=Point.from(e);return new Point(t.x*e.x-t.y*e.y,t.x*e.y+t.y*e.x)},divide:function(t,e){return cmath.multiply(t,cmath.reciprocal(e))},distance:function(t,e){return cmath.abs(cmath.subtract(t,e))},exp:function(t){t=Point.from(t);return Point.fromPolar(Math.exp(t.x),t.y)},log:function(t){return new Point(Math.log(cmath.abs(t)),cmath.phase(t))},pow:function(t,e){return cmath.exp(cmath.multiply(cmath.log(t),e))},sqrt:function(t){var e;t=Point.from(t);e=cmath.abs(t);return new Point(Math.sqrt((e+t.x)/2),Math.sign(t.y)*Math.sqrt((e-t.x)/2))},cos:function(t){return cmath.divide(cmath.add(cmath.exp(cmath.multiply(t,new Point(0,1))),cmath.exp(cmath.multiply(cmath.opposite(t),new Point(0,1)))),2)},sin:function(t){return cmath.divide(cmath.subtract(cmath.exp(cmath.multiply(t,new Point(0,1))),cmath.exp(cmath.multiply(cmath.opposite(t),new Point(0,1)))),new Point(0,2))},tan:function(t){return cmath.divide(cmath.sin(t),cmath.cos(t))},acos:function(t){return cmath.opposite(cmath.multiply(cmath.log(cmath.add(t,cmath.multiply(cmath.sqrt(cmath.add(cmath.opposite(cmath.multiply(t,t)),1)),new Point(0,1)))),new Point(0,1)))},asin:function(t){return cmath.opposite(cmath.multiply(cmath.log(cmath.add(cmath.multiply(t,new Point(0,1)),cmath.sqrt(cmath.add(cmath.opposite(cmath.multiply(t,t)),1)))),new Point(0,1)))},atan:function(t){return cmath.multiply(cmath.subtract(cmath.log(cmath.subtract(1,cmath.multiply(t,new Point(0,1)))),cmath.log(cmath.add(1,cmath.multiply(t,new Point(0,1))))),new Point(0,.5))}};Date.Timer=function(){t._endOfTime=new Date("9999-12-30T00:00:00Z");function t(t){this.targetTime=t!=null?t:Date.Timer._endOfTime;this._counterValue=0;this._internalTimer=null;this._running=false;this.allowsEqual=true;this.precision=30;this.onArrive=eventField()}t.prototype.run=function(){if(this._running){return}this._counterValue=0;this._internalTimer=setInterval(function(t){return function(){var e,r;r=new Date;if(t.allowsEqual?r>=t.targetTime:r>t.targetTime){t._counterValue++;e=t.targetTime;t.targetTime=Date.Timer._endOfTime;return t.onArrive.fire({idealTime:e,nowTime:r,index:t._counterValue-1})}}}(this),this.precision);this._running=true;return this};t.prototype.stop=function(){if(!this._running){return}clearInterval(this._internalTimer);this._running=false;return this};t.prototype.getRunning=function(){return this._running};t.prototype.resetCounter=function(){return this._counterValue=0};t.prototype.getCounterValue=function(){return this._counterValue};return t}();Date.IntervalTimer=function(t){u(e,t);function e(t,r,n){this.interval=t!=null?t:1e3;this.startTime=r!=null?r:new Date;this.endTime=n;e.__super__.constructor.call(this);this._started=false;this.includesStart=true;this.includesEnd=false;this.onStart=eventField();this.onArrive.bind(function(t){return function(e){t.targetTime=e.idealTime.add(t.interval);if(!t._started){t._started=true;if(!t.includesStart){t.resetCounter();e.blocksListeners=true}t.onStart.fire()}if(t.endTime!=null&&(t.includesEnd?t.targetTime>t.endTime:t.targetTime>=t.endTime)){return t.stop()}}}(this))}e.prototype.run=function(){if(this.getRunning()){return}this.targetTime=this.startTime;return e.__super__.run.call(this)};return e}(Date.Timer);e.exports=n}).call(this)},nameIndexes:{wishlist:1,"./package.json":2},result:initialModResult_386389655257694535},{fun:function(exports,module,require){/* @license | ||
Wishlist | ||
https://github.com/zhanzhenzhen/wishlist | ||
(c) 2014 Zhenzhen Zhan | ||
Wishlist may be freely distributed under the MIT license. | ||
Copyright 2014 Zhenzhen Zhan | ||
Released under the MIT license | ||
*/ | ||
(function(){var npmWishlist,__indexOf=[].indexOf||function(t){for(var e=0,r=this.length;e<r;e++){if(e in this&&this[e]===t)return e}return-1};npmWishlist={};npmWishlist.environmentType=typeof exports!=="undefined"&&exports!==null&&(typeof module!=="undefined"&&module!==null?module.exports:void 0)!=null&&(typeof process!=="undefined"&&process!==null?process.execPath:void 0)!=null&&typeof process.execPath==="string"&&process.execPath.search(/node/i)!==-1?"node":typeof window!=="undefined"&&window!==null&&(typeof navigator!=="undefined"&&navigator!==null)&&(typeof HTMLElement!=="undefined"&&HTMLElement!==null)?"browser":void 0;npmWishlist.moduleSystem=typeof exports!=="undefined"&&exports!==null&&(typeof module!=="undefined"&&module!==null?module.exports:void 0)!=null?"commonjs":null;npmWishlist.objectIs=function(t,e){if(typeof t==="number"&&typeof e==="number"){if(t===0&&e===0){return 1/t===1/e}else if(isNaN(t)&&isNaN(e)){return true}else{return t===e}}else{return t===e}};npmWishlist.objectClone=function(t){var e,r,n,i,s;r={};s=Object.keys(t);for(n=0,i=s.length;n<i;n++){e=s[n];r[e]=t[e]}return r};npmWishlist.valueToMessage=function(t){var e,r;e=function(t,r){if(t===void 0){return"undefined"}else if(t===null){return"null"}else if(Array.isArray(t)){if(r>0){return"["+t.map(function(t){return e(t,r-1)}).join(",")+"]"}else{return"[Array]"}}else if(typeof t==="function"){return"[Function]"}else if(typeof t==="object"){if(r>0){return"{"+Object.keys(t).map(function(n){return""+JSON.stringify(n)+":"+e(t[n],r-1)}).join(",")+"}"}else{return"[Object]"}}else if(typeof t==="string"){return JSON.stringify(t.toString())}else if(typeof t==="number"){if(npmWishlist.objectIs(t,-0)){return"-0"}else{return t.toString()}}else{return t.toString()}};r=e(t,3);if(r.length>1e3){r=e(t,2)}if(r.length>1e3){r=e(t,1)}if(r.length>1e3){r=e(t,0)}return r};npmWishlist.currentRootTest=null;npmWishlist.parseExpression=function(t,e){var r,n,i,s,o,u,a,l,p,f,c,h,y,m;t+=" ";if(e.length===0){return[]}c=new RegExp("^("+e.join("|")+")[^a-zA-Z0-9_$]","g");p=[];f=null;y=true;m=false;n=false;s=false;i=0;while(i<t.length-1){r=t[i];a=y;if(f===null){if("a"<=r&&r<="z"||"A"<=r&&r<="Z"||"0"<=r&&r<="9"||r==="_"||r==="$"||r===")"||r==="]"){y=false}else if(r===" "||r===" "||r==="\n"||r==="\r"){}else{y=true}}l=m;if(f===null){if("a"<=r&&r<="z"||"A"<=r&&r<="Z"||"0"<=r&&r<="9"||r==="_"||r==="$"||r==="."){m=true}else{m=false}}o=n;if(f===null){if(r==="."){n=true}else if(r===" "||r===" "||r==="\n"||r==="\r"){}else{n=false}}u=s;if(f===null){if(r==="{"||r===","){s=true}else if(r===" "||r===" "||r==="\n"||r==="\r"){}else{s=false}}if(r==='"'&&f===null){f="double";i++}else if(r==="'"&&f===null){f="single";i++}else if(r==="/"&&f===null&&a){f="slash";i++}else if(r==='"'&&f==="double"||r==="'"&&f==="single"||r==="/"&&f==="slash"){f=null;i++}else if(r==="\\"&&f!==null){i+=2}else if(f===null&&!l&&!o&&("a"<=r&&r<="z"||"A"<=r&&r<="Z")){h=t.substr(i,31);if(!(u&&h.search(/^([a-zA-Z0-9_$])+\s*:/)!==-1)&&h.search(c)!==-1){p.push(i)}i++}else{i++}}return p};npmWishlist.parseWish=function(t){var e,r;r=null;e=null;[0,1].forEach(function(n){var i,s,o,u,a,l,p,f,c,h,y,m;h=null;c=0;s=0;i=0;m=true;u=false;a=0;while(a<t.length){o=t[a];f=m;if(h===null){if("a"<=o&&o<="z"||"A"<=o&&o<="Z"||"0"<=o&&o<="9"||o==="_"||o==="$"||o===")"||o==="]"){m=false}else if(o===" "||o===" "||o==="\n"||o==="\r"){}else{m=true}}p=u;if(h===null){if(o==="."){u=true}else if(o===" "||o===" "||o==="\n"||o==="\r"){}else{u=false}}if(o==='"'&&h===null){h="double";a++}else if(o==="'"&&h===null){h="single";a++}else if(o==="/"&&h===null&&f){h="slash";a++}else if(o==='"'&&h==="double"||o==="'"&&h==="single"||o==="/"&&h==="slash"){h=null;a++}else if(o==="\\"&&h!==null){a+=2}else if(o==="("){c++;a++}else if(o==="["){s++;a++}else if(o==="{"){i++;a++}else if(o===")"){c--;a++}else if(o==="]"){s--;a++}else if(o==="}"){i--;a++}else if(h===null&&!p&&(c===s&&s===i&&i===0)){if(n===0){if(o===":"){e=t.substr(a+1);t=t.substr(0,a);break}}else if(n===1){y=t.substr(a);if((l=y.match(/^=([^]+)$/))!=null){r={type:"equal",components:[t.substr(0,a),l[1]]};break}else if((l=y.match(/^<>([^]+)$/))!=null){r={type:"notEqual",components:[t.substr(0,a),l[1]]};break}else if((l=y.match(/^\sis\s([^]+)$/))!=null){r={type:"is",components:[t.substr(0,a),l[1]]};break}else if((l=y.match(/^\sisnt\s([^]+)$/))!=null){r={type:"isnt",components:[t.substr(0,a),l[1]]};break}else if((l=y.match(/^\sthrows(?:\s([^]+))?$/))!=null){r={type:"throws",components:[t.substr(0,a),l[1]!=null?l[1]:"undefined"]};break}else if((l=y.match(/^<=([^]+)$/))!=null){r={type:"lessThanOrEqual",components:[t.substr(0,a),l[1]]};break}else if((l=y.match(/^>=([^]+)$/))!=null){r={type:"greaterThanOrEqual",components:[t.substr(0,a),l[1]]};break}else if((l=y.match(/^<([^]+)$/))!=null){r={type:"lessThan",components:[t.substr(0,a),l[1]]};break}else if((l=y.match(/^>([^]+)$/))!=null){r={type:"greaterThan",components:[t.substr(0,a),l[1]]};break}}a++}else{a++}}if(n===1){return r!=null?r:r={type:"doesNotThrow",components:[t]}}});r.components.push(JSON.stringify((e!=null?e:t).trim()));return r};npmWishlist.parseWishes=function(t){var e,r,n,i,s,o,u,a,l,p,f,c;l=null;u=0;r=0;e=0;c=true;a=[];i=0;while(i<t.length){n=t[i];o=c;if(l===null){if("a"<=n&&n<="z"||"A"<=n&&n<="Z"||"0"<=n&&n<="9"||n==="_"||n==="$"||n===")"||n==="]"){c=false}else if(n===" "||n===" "||n==="\n"||n==="\r"){}else{c=true}}if(n==='"'&&l===null){l="double";i++}else if(n==="'"&&l===null){l="single";i++}else if(n==="/"&&l===null&&o){l="slash";i++}else if(n==='"'&&l==="double"||n==="'"&&l==="single"||n==="/"&&l==="slash"){l=null;i++}else if(n==="\\"&&l!==null){i+=2}else if(n==="("){u++;i++}else if(n==="["){r++;i++}else if(n==="{"){e++;i++}else if(n===")"){u--;i++}else if(n==="]"){r--;i++}else if(n==="}"){e--;i++}else if(l===null&&(u===r&&r===e&&e===0)&&n===";"){a.push(i);i++}else{i++}}p=[];s=-1;a.forEach(function(e){var r;r=t.substring(s+1,e).trim();if(r!==""){p.push(r)}return s=e});f=t.substr(s+1).trim();if(f!==""){p.push(f)}return p};npmWishlist.sha256=function(t){var e,r,n,i,s,o,u,a,l,p,f,c,h,y,m,d,g,v,b,A,_,w,x,T,M,O,N,S,W,E,I,P,j,D,k,q,z,L,C,R;if(t.length>Math.round(Math.pow(2,31)-1)){throw new Error}j=function(t){var e;return function(){var r,n;n=[];for(e=r=7;r>=0;e=--r){n.push(((t>>>e*4)%16).toString(16))}return n}().join("")};m=function(){var t,e,r,n;e=0;for(r=0,n=arguments.length;r<n;r++){t=arguments[r];e=(e+t)%4294967296}return e};u=function(t,e){return t>>>e|t<<32-e};a=function(t,e){return t>>>e};e=function(t,e,r){return t&e^~t&r};s=function(t,e,r){return t&e^t&r^e&r};l=function(t){return u(t,2)^u(t,13)^u(t,22)};p=function(t){return u(t,6)^u(t,11)^u(t,25)};E=function(t){return u(t,7)^u(t,18)^a(t,3)};I=function(t){return u(t,17)^u(t,19)^a(t,10)};n=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];r=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];g=t.split("").map(function(t){return t.charCodeAt(0)});N=t.length*8;O=448-N-1;while(O<0){O+=512}W=N+1+O+64;g.push(128);for(T=D=0,R=Math.round((O-7)/8);0<=R?D<R:D>R;T=0<=R?++D:--D){g.push(0)}g.push(0);g.push(0);g.push(0);g.push(0);g.push(N>>>24);g.push((N>>>16)%256);g.push((N>>>8)%256);g.push(N%256);o=Math.round(W/512);i=new Array(o);for(T=k=0;0<=o?k<o:k>o;T=0<=o?++k:--k){i[T]=new Array(16);for(M=q=0;q<16;M=++q){S=T*64+M*4;i[T][M]=g[S]<<24|g[S+1]<<16|g[S+2]<<8|g[S+3]}}h=new Array(64);for(T=z=0;0<=o?z<o:z>o;T=0<=o?++z:--z){for(P=L=0;L<64;P=++L){h[P]=P<16?i[T][P]:m(I(h[P-2]),h[P-7],E(h[P-15]),h[P-16])}y=r[0];d=r[1];v=r[2];b=r[3];A=r[4];_=r[5];w=r[6];x=r[7];for(P=C=0;C<64;P=++C){f=m(x,p(A),e(A,_,w),n[P],h[P]);c=m(l(y),s(y,d,v));x=w;w=_;_=A;A=m(b,f);b=v;v=d;d=y;y=m(f,c)}r[0]=m(y,r[0]);r[1]=m(d,r[1]);r[2]=m(v,r[2]);r[3]=m(b,r[3]);r[4]=m(A,r[4]);r[5]=m(_,r[5]);r[6]=m(w,r[6]);r[7]=m(x,r[7])}return r.map(function(t){return j(t)}).join("")};npmWishlist.Test=function(){function Test(t){this.description=t!=null?t:"";this._children=[];this.fun=function(t){return function(){}}(this);this.wishes=[];this.async=false;this.parent=null;this._resetContext()}Test.prototype._resetContext=function(){this.env={};this.wishResults=[];return this.result=null};Test.prototype.set=function(){var t,e,r,n,i,s;t=e=s=i=n=void 0;r=function(t){return function(t){var e;e=Array.isArray(t)?t.join(";"):typeof t==="string"?t:"";return npmWishlist.parseWishes(e)}}(this);if(typeof arguments[0]==="string"){t=arguments[0];e=arguments[1];if(typeof arguments[2]==="object"&&arguments[2]!==null&&!Array.isArray(arguments[2])){n=arguments[2]}else{i=arguments[2];n=arguments[3]}}else{e=arguments[0];if(typeof arguments[1]==="object"&&arguments[1]!==null&&!Array.isArray(arguments[1])){n=arguments[1]}else{i=arguments[1];n=arguments[2]}}s=r(i);if(n==null){n={}}if(t!==void 0){this.description=t}this.fun=e;if(i!==void 0){this.wishes=s}if(n.async!==void 0){this.async=n.async}return this};Test.prototype.setAsync=function(){var t,e,r,n,i;t=[];for(n=0,i=arguments.length;n<i;n++){r=arguments[n];t.push(r)}e=t[t.length-1];if(typeof e==="object"&&e!==null&&!Array.isArray(e)){e.async=true}else{t.push({async:true})}return this.set.apply(this,t)};Test.prototype.add=function(){var t;t=null;if(arguments[0]instanceof npmWishlist.Test){t=arguments[0]}else{t=new npmWishlist.Test;t.set.apply(t,arguments)}t.parent=this;this._children.push(t);return this};Test.prototype.addAsync=function(){var t,e,r,n,i;t=[];for(n=0,i=arguments.length;n<i;n++){r=arguments[n];t.push(r)}e=t[t.length-1];if(typeof e==="object"&&e!==null&&!Array.isArray(e)){e.async=true}else{t.push({async:true})}return this.add.apply(this,t)};Test.prototype.getChildren=function(){return this._children.slice(0)};Test.prototype.getAncestors=function(){var t,e;e=this;t=[];while(e.parent!==null){t.push(e.parent);e=e.parent}return t};Test.prototype.run=function(t){var e,r,n,i;if(t==null){t=true}if(t){npmWishlist.currentRootTest=this}this._resetContext();if(this.parent!=null){this.env=npmWishlist.objectClone(this.parent.env)}setTimeout(function(t){return function(){var e;if(npmWishlist.environmentType==="node"){e=module.require("domain").create();e.on("error",function(e){return t.end({type:false,errorMessage:"Error Name: "+e.name+"\nError Message: "+e.message+"\nError Stack: "+e.stack})});e.run(function(){return t.fun(t.env,t)})}else{try{t.fun(t.env,t)}catch(e){t.end({type:false})}}if(t.result==null&&!t.async){return t.end({type:true})}}}(this),0);if(t){e=[];e.push(this);i=function(t){return function(t){return t.getChildren().forEach(function(t){e.push(t);return i(t)})}}(this);i(this);console.log();n=function(t){return function(){var n,i,s,o,u,a,l;u=e.filter(function(t){return t.result!=null&&t.result.type===true});n=e.filter(function(t){return t.result!=null&&t.result.type===false});a=e.filter(function(t){return t.result==null});console.log(""+(new Date).toISOString()+" OK: "+u.length+", "+("Exception: "+n.length+", Pending: "+a.length));if(a.length===0){clearInterval(r);n.forEach(function(t){console.log("\n********** Exceptional Test **********");console.log("Test: "+t.description);console.log("Function: "+t.fun.toString());if(t.result.errorMessage!=null){return console.log(t.result.errorMessage)}});i=0;l=0;o="";e.forEach(function(t){return t.wishResults.forEach(function(e){var r,n;o+=" "+e.type.toString();if(e.type===false){i++;r=t.getAncestors();r.reverse();n=r.concat([t]).map(function(t){return t.description}).join(" --> ");console.log("\n********** Broken Wish **********");console.log(" Test: "+n);console.log(" Wish: "+e.description);console.log("Expected: "+e.expected);return console.log(" Actual: "+e.actual)}else{return l++}})});o=o.trim();s=npmWishlist.sha256(o).substr(0,5);console.log("\n"+((n.length===0?"Tests OK.":""+n.length+" tests of "+e.length+" exceptional.")+" "+(i===0?"Wishes fulfilled.":""+i+" wishes of "+(i+l)+" broken.")+" "+("Mark: "+s))+"\n");t.allEnded=true;return npmWishlist.currentRootTest=null}}}(this);r=setInterval(n,1e3);setTimeout(n,10)}return this};Test.prototype.end=function(t){if(this.result==null){this.result=t!=null?t:{type:true};this.wishes.forEach(function(t){return function(e){return t._checkWish(e)}}(this));this.getChildren().forEach(function(t){return function(t){return t.run(false)}}(this))}return this};Test.prototype._checkWish=function(wishStr){var args,description,interpret,parsed,result,that;that=this;interpret=function(t){return function(e){npmWishlist.parseExpression(e,Object.keys(t.env)).forEach(function(t,r){var n,i;n="that.env.";i=t+n.length*r;return e=e.substr(0,i)+n+e.substr(i)});return e}}(this);parsed=npmWishlist.parseWish(wishStr);args=parsed.components.map(function(t){return function(t,e){if(e===parsed.components.length-1){return t}else{return interpret(t)}}}(this));description=JSON.parse(args[args.length-1]);result=function(){try{args=args.map(function(_this){return function(m){return eval("(("+m+"))")}}(this));return this["_check_"+parsed.type].apply(this,args)}catch(t){return{type:false,description:description,actual:"unknown",expected:"unknown"}}}.call(this);return this.wishResults.push(result)};Test.prototype.wish=function(t){return npmWishlist.parseWishes(t).forEach(function(t){return function(e){return t._checkWish(e)}}(this))};return Test}();npmWishlist.Test.prototype._check_equal=function(t,e,r){var n,i,s;if(r==null){r=""}i=[];n=function(t){return function(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(e.every(function(e,r){if(__indexOf.call(i,e)>=0){return npmWishlist.objectIs(t[r],e)}else{if(typeof e==="object"&&e!==null){i.push(e)}return n(t[r],e)}})){return true}else{return false}}else if(typeof t==="object"&&t!==null&&typeof e==="object"&&e!==null){if(Object.keys(e).every(function(r){var s;if(s=e[r],__indexOf.call(i,s)>=0){return npmWishlist.objectIs(t[r],e[r])}else{if(typeof e[r]==="object"&&e[r]!==null){i.push(e[r])}return n(t[r],e[r])}})){return true}else{return false}}else{return npmWishlist.objectIs(t,e)}}}(this);s={type:n(t,e),description:r};if(s.type===false){s.actual=npmWishlist.valueToMessage(t);s.expected="= "+npmWishlist.valueToMessage(e)}return s};npmWishlist.Test.prototype._check_notEqual=function(t,e,r){var n,i,s;if(r==null){r=""}i=[];n=function(t){return function(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(e.some(function(e,r){if(__indexOf.call(i,e)>=0){return!npmWishlist.objectIs(t[r],e)}else{if(typeof e==="object"&&e!==null){i.push(e)}return n(t[r],e)}})){return true}else{return false}}else if(typeof t==="object"&&t!==null&&typeof e==="object"&&e!==null){if(Object.keys(e).some(function(r){var s;if(s=e[r],__indexOf.call(i,s)>=0){return!npmWishlist.objectIs(t[r],e[r])}else{if(typeof e[r]==="object"&&e[r]!==null){i.push(e[r])}return n(t[r],e[r])}})){return true}else{return false}}else{return!npmWishlist.objectIs(t,e)}}}(this);s={type:n(t,e),description:r};if(s.type===false){s.actual=npmWishlist.valueToMessage(t);s.expected="≠ "+npmWishlist.valueToMessage(e)}return s};npmWishlist.Test.prototype._check_is=function(t,e,r){var n;if(r==null){r=""}n={type:npmWishlist.objectIs(t,e),description:r};if(n.type===false){n.actual=npmWishlist.valueToMessage(t);n.expected="is "+npmWishlist.valueToMessage(e)}return n};npmWishlist.Test.prototype._check_isnt=function(t,e,r){var n;if(r==null){r=""}n={type:!npmWishlist.objectIs(t,e),description:r};if(n.type===false){n.actual=npmWishlist.valueToMessage(t);n.expected="isn't "+npmWishlist.valueToMessage(e)}return n};npmWishlist.Test.prototype._check_throws=function(t,e,r){var n,i,s,o;if(r==null){r=""}i=false;o=function(){try{t();i=true;return false}catch(t){n=t;if(e==null){return true}else if(e instanceof RegExp){if(e.test(n.message)){return true}else{return false}}else{if(n instanceof e){return true}else{return false}}}}();s={type:o,description:r};if(s.type===false){s.actual=i?"no exception":"another exception";s.expected=i?"exception":"an exception"}return s};npmWishlist.Test.prototype._check_doesNotThrow=function(t,e){var r,n;if(e==null){e=""}n=function(){try{t();return true}catch(t){return false}}();r={type:n,description:e};if(r.type===false){r.actual="exception";r.expected="no exception"}return r};npmWishlist.Test.prototype._check_lessThan=function(t,e,r){var n;if(r==null){r=""}n={type:t<e,description:r};if(n.type===false){n.actual=npmWishlist.valueToMessage(t);n.expected="< "+npmWishlist.valueToMessage(e)}return n};npmWishlist.Test.prototype._check_lessThanOrEqual=function(t,e,r){var n;if(r==null){r=""}n={type:t<=e,description:r};if(n.type===false){n.actual=npmWishlist.valueToMessage(t);n.expected="<= "+npmWishlist.valueToMessage(e)}return n};npmWishlist.Test.prototype._check_greaterThan=function(t,e,r){var n;if(r==null){r=""}n={type:t>e,description:r};if(n.type===false){n.actual=npmWishlist.valueToMessage(t);n.expected="> "+npmWishlist.valueToMessage(e)}return n};npmWishlist.Test.prototype._check_greaterThanOrEqual=function(t,e,r){var n;if(r==null){r=""}n={type:t>=e,description:r};if(n.type===false){n.actual=npmWishlist.valueToMessage(t);n.expected=">= "+npmWishlist.valueToMessage(e)}return n};if(npmWishlist.environmentType==="browser"){window.npmWishlist=npmWishlist}if(npmWishlist.moduleSystem==="commonjs"){module.exports=npmWishlist}npmWishlist.packageInfo={name:"wishlist",version:"0.2.6",description:"Super natural testing framework.",keywords:["test","testing","async","unit","bdd","tdd","asynchronous","assertion","assert","mocha","qunit","karma","jasmine","vows","qunitjs","chai"],author:"Zhenzhen Zhan <zhanzhenzhen@hotmail.com>",homepage:"http://zhanzhenzhen.github.io/wishlist/",licenses:[{type:"MIT",url:"https://github.com/zhanzhenzhen/wishlist/blob/master/LICENSE.txt"}],repository:{type:"git",url:"https://github.com/zhanzhenzhen/wishlist.git"},devDependencies:{"coffee-script":"1.7.1","uglify-js":"2.4.13"},main:"wishlist"}}).call(this)},nameIndexes:{},result:initialModResult_386389655257694535},{fun:function(t,e,r){e.exports={name:"mate",version:"0.10.0",description:"Array extensions, ES6 shims, testing, timers, events, etc. It extends the native JavaScript/CoffeeScript.",keywords:["event","coffeescript","timer","math","javascript","js","coffee","es6","shim","test","testing"],author:"Zhenzhen Zhan <zhanzhenzhen@hotmail.com>",homepage:"http://zhanzhenzhen.github.io/mate/",license:"MIT",repository:{type:"git",url:"https://github.com/zhanzhenzhen/mate.git"},dependencies:{wishlist:"0.2.6"},devDependencies:{"coffee-script":"1.7.1","uglify-js":"2.4.13","js-bundler":"0.5.0"},main:"mate"}},nameIndexes:{},result:initialModResult_386389655257694535}];(function(){var t=initialModResult_386389655257694535;var e=mods_386389655257694535;var r=function(n){var i=e[n];var s={};var o={exports:s};var u=function(n){i.result=o.exports;var s=i.nameIndexes[n];if(s===undefined){throw new Error("Cannot find module "+JSON.stringify(n)+".")}if(e[s].result===t){r(s)}return e[s].result};i.fun.apply(s,[s,o,u]);i.result=o.exports};r(0)})()})(); | ||
(function(){var wishlist,__indexOf=[].indexOf||function(t){for(var e=0,r=this.length;e<r;e++){if(e in this&&this[e]===t)return e}return-1};wishlist={};wishlist.environmentType=typeof exports!=="undefined"&&exports!==null&&(typeof module!=="undefined"&&module!==null?module.exports:void 0)!=null&&(typeof process!=="undefined"&&process!==null?process.execPath:void 0)!=null&&typeof process.execPath==="string"&&process.execPath.search(/node/i)!==-1?"node":typeof window!=="undefined"&&window!==null&&(typeof navigator!=="undefined"&&navigator!==null)&&(typeof HTMLElement!=="undefined"&&HTMLElement!==null)?"browser":void 0;wishlist.moduleSystem=typeof exports!=="undefined"&&exports!==null&&(typeof module!=="undefined"&&module!==null?module.exports:void 0)!=null?"commonjs":null;wishlist.objectIs=function(t,e){if(typeof t==="number"&&typeof e==="number"){if(t===0&&e===0){return 1/t===1/e}else if(isNaN(t)&&isNaN(e)){return true}else{return t===e}}else{return t===e}};wishlist.objectClone=function(t){var e,r,n,i,o;r={};o=Object.keys(t);for(n=0,i=o.length;n<i;n++){e=o[n];r[e]=t[e]}return r};wishlist.valueToMessage=function(t){var e,r;e=function(t,r){if(t===void 0){return"undefined"}else if(t===null){return"null"}else if(Array.isArray(t)){if(r>0){return"["+t.map(function(t){return e(t,r-1)}).join(",")+"]"}else{return"[Array]"}}else if(typeof t==="function"){return"[Function]"}else if(typeof t==="object"){if(r>0){return"{"+Object.keys(t).map(function(n){return""+JSON.stringify(n)+":"+e(t[n],r-1)}).join(",")+"}"}else{return"[Object]"}}else if(typeof t==="string"){return JSON.stringify(t.toString())}else if(typeof t==="number"){if(wishlist.objectIs(t,-0)){return"-0"}else{return t.toString()}}else{return t.toString()}};r=e(t,3);if(r.length>1e3){r=e(t,2)}if(r.length>1e3){r=e(t,1)}if(r.length>1e3){r=e(t,0)}return r};wishlist.currentRootTest=null;wishlist.parseExpression=function(t,e){var r,n,i,o,s,u,a,l,f,c,p,h,y,m;t+=" ";if(e.length===0){return[]}p=new RegExp("^("+e.join("|")+")[^a-zA-Z0-9_$]","g");f=[];c=null;y=true;m=false;n=false;o=false;i=0;while(i<t.length-1){r=t[i];a=y;if(c===null){if("a"<=r&&r<="z"||"A"<=r&&r<="Z"||"0"<=r&&r<="9"||r==="_"||r==="$"||r===")"||r==="]"){y=false}else if(r===" "||r===" "||r==="\n"||r==="\r"){}else{y=true}}l=m;if(c===null){if("a"<=r&&r<="z"||"A"<=r&&r<="Z"||"0"<=r&&r<="9"||r==="_"||r==="$"||r==="."){m=true}else{m=false}}s=n;if(c===null){if(r==="."){n=true}else if(r===" "||r===" "||r==="\n"||r==="\r"){}else{n=false}}u=o;if(c===null){if(r==="{"||r===","){o=true}else if(r===" "||r===" "||r==="\n"||r==="\r"){}else{o=false}}if(r==='"'&&c===null){c="double";i++}else if(r==="'"&&c===null){c="single";i++}else if(r==="/"&&c===null&&a){c="slash";i++}else if(r==='"'&&c==="double"||r==="'"&&c==="single"||r==="/"&&c==="slash"){c=null;i++}else if(r==="\\"&&c!==null){i+=2}else if(c===null&&!l&&!s&&("a"<=r&&r<="z"||"A"<=r&&r<="Z")){h=t.substr(i,31);if(!(u&&h.search(/^([a-zA-Z0-9_$])+\s*:/)!==-1)&&h.search(p)!==-1){f.push(i)}i++}else{i++}}return f};wishlist.parseWish=function(t){var e,r;r=null;e=null;[0,1].forEach(function(n){var i,o,s,u,a,l,f,c,p,h,y,m;h=null;p=0;o=0;i=0;m=true;u=false;a=0;while(a<t.length){s=t[a];c=m;if(h===null){if("a"<=s&&s<="z"||"A"<=s&&s<="Z"||"0"<=s&&s<="9"||s==="_"||s==="$"||s===")"||s==="]"){m=false}else if(s===" "||s===" "||s==="\n"||s==="\r"){}else{m=true}}f=u;if(h===null){if(s==="."){u=true}else if(s===" "||s===" "||s==="\n"||s==="\r"){}else{u=false}}if(s==='"'&&h===null){h="double";a++}else if(s==="'"&&h===null){h="single";a++}else if(s==="/"&&h===null&&c){h="slash";a++}else if(s==='"'&&h==="double"||s==="'"&&h==="single"||s==="/"&&h==="slash"){h=null;a++}else if(s==="\\"&&h!==null){a+=2}else if(s==="("){p++;a++}else if(s==="["){o++;a++}else if(s==="{"){i++;a++}else if(s===")"){p--;a++}else if(s==="]"){o--;a++}else if(s==="}"){i--;a++}else if(h===null&&!f&&(p===o&&o===i&&i===0)){if(n===0){if(s===":"){e=t.substr(a+1);t=t.substr(0,a);break}}else if(n===1){y=t.substr(a);if((l=y.match(/^=([^]+)$/))!=null){r={type:"equal",components:[t.substr(0,a),l[1]]};break}else if((l=y.match(/^<>([^]+)$/))!=null){r={type:"notEqual",components:[t.substr(0,a),l[1]]};break}else if((l=y.match(/^\sis\s([^]+)$/))!=null){r={type:"is",components:[t.substr(0,a),l[1]]};break}else if((l=y.match(/^\sisnt\s([^]+)$/))!=null){r={type:"isnt",components:[t.substr(0,a),l[1]]};break}else if((l=y.match(/^\sthrows(?:\s([^]+))?$/))!=null){r={type:"throws",components:[t.substr(0,a),l[1]!=null?l[1]:"undefined"]};break}else if((l=y.match(/^<=([^]+)$/))!=null){r={type:"lessThanOrEqual",components:[t.substr(0,a),l[1]]};break}else if((l=y.match(/^>=([^]+)$/))!=null){r={type:"greaterThanOrEqual",components:[t.substr(0,a),l[1]]};break}else if((l=y.match(/^<([^]+)$/))!=null){r={type:"lessThan",components:[t.substr(0,a),l[1]]};break}else if((l=y.match(/^>([^]+)$/))!=null){r={type:"greaterThan",components:[t.substr(0,a),l[1]]};break}}a++}else{a++}}if(n===1){return r!=null?r:r={type:"doesNotThrow",components:[t]}}});r.components.push(JSON.stringify((e!=null?e:t).trim()));return r};wishlist.parseWishes=function(t){var e,r,n,i,o,s,u,a,l,f,c,p;l=null;u=0;r=0;e=0;p=true;a=[];i=0;while(i<t.length){n=t[i];s=p;if(l===null){if("a"<=n&&n<="z"||"A"<=n&&n<="Z"||"0"<=n&&n<="9"||n==="_"||n==="$"||n===")"||n==="]"){p=false}else if(n===" "||n===" "||n==="\n"||n==="\r"){}else{p=true}}if(n==='"'&&l===null){l="double";i++}else if(n==="'"&&l===null){l="single";i++}else if(n==="/"&&l===null&&s){l="slash";i++}else if(n==='"'&&l==="double"||n==="'"&&l==="single"||n==="/"&&l==="slash"){l=null;i++}else if(n==="\\"&&l!==null){i+=2}else if(n==="("){u++;i++}else if(n==="["){r++;i++}else if(n==="{"){e++;i++}else if(n===")"){u--;i++}else if(n==="]"){r--;i++}else if(n==="}"){e--;i++}else if(l===null&&(u===r&&r===e&&e===0)&&n===";"){a.push(i);i++}else{i++}}f=[];o=-1;a.forEach(function(e){var r;r=t.substring(o+1,e).trim();if(r!==""){f.push(r)}return o=e});c=t.substr(o+1).trim();if(c!==""){f.push(c)}return f};wishlist.sha256=function(t){var e,r,n,i,o,s,u,a,l,f,c,p,h,y,m,d,g,v,w,A,b,_,x,T,M,O,S,N,E,P,I,j,D,k,C,q,L,R,F,U;if(t.length>Math.round(Math.pow(2,31)-1)){throw new Error}D=function(t){var e;return function(){var r,n;n=[];for(e=r=7;r>=0;e=--r){n.push(((t>>>e*4)%16).toString(16))}return n}().join("")};m=function(){var t,e,r,n;e=0;for(r=0,n=arguments.length;r<n;r++){t=arguments[r];e=(e+t)%4294967296}return e};u=function(t,e){return t>>>e|t<<32-e};a=function(t,e){return t>>>e};e=function(t,e,r){return t&e^~t&r};o=function(t,e,r){return t&e^t&r^e&r};l=function(t){return u(t,2)^u(t,13)^u(t,22)};f=function(t){return u(t,6)^u(t,11)^u(t,25)};P=function(t){return u(t,7)^u(t,18)^a(t,3)};I=function(t){return u(t,17)^u(t,19)^a(t,10)};n=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];r=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];g=t.split("").map(function(t){return t.charCodeAt(0)});S=t.length*8;O=448-S-1;while(O<0){O+=512}E=S+1+O+64;g.push(128);for(T=k=0,U=Math.round((O-7)/8);0<=U?k<U:k>U;T=0<=U?++k:--k){g.push(0)}g.push(0);g.push(0);g.push(0);g.push(0);g.push(S>>>24);g.push((S>>>16)%256);g.push((S>>>8)%256);g.push(S%256);s=Math.round(E/512);i=new Array(s);for(T=C=0;0<=s?C<s:C>s;T=0<=s?++C:--C){i[T]=new Array(16);for(M=q=0;q<16;M=++q){N=T*64+M*4;i[T][M]=g[N]<<24|g[N+1]<<16|g[N+2]<<8|g[N+3]}}h=new Array(64);for(T=L=0;0<=s?L<s:L>s;T=0<=s?++L:--L){for(j=R=0;R<64;j=++R){h[j]=j<16?i[T][j]:m(I(h[j-2]),h[j-7],P(h[j-15]),h[j-16])}y=r[0];d=r[1];v=r[2];w=r[3];A=r[4];b=r[5];_=r[6];x=r[7];for(j=F=0;F<64;j=++F){c=m(x,f(A),e(A,b,_),n[j],h[j]);p=m(l(y),o(y,d,v));x=_;_=b;b=A;A=m(w,c);w=v;v=d;d=y;y=m(c,p)}r[0]=m(y,r[0]);r[1]=m(d,r[1]);r[2]=m(v,r[2]);r[3]=m(w,r[3]);r[4]=m(A,r[4]);r[5]=m(b,r[5]);r[6]=m(_,r[6]);r[7]=m(x,r[7])}return r.map(function(t){return D(t)}).join("")};wishlist.Test=function(){function Test(t){this.name=t!=null?t:"";this._children=[];this.fun=function(t){return function(){}}(this);this.afterFun=function(t){return function(){}}(this);this.wishes=[];this.async=false;this.parent=null;this.allCount=1;this._resetContext()}Test.prototype._resetContext=function(){this.env={};this.wishResults=[];this.result=null;return this.endedCount=0};Test.prototype.set=function(){var t,e,r,n,i,o;e=t=o=i=n=void 0;r=function(t){return function(t){var e;e=Array.isArray(t)?t.join(";"):typeof t==="string"?t:"";return wishlist.parseWishes(e)}}(this);if(typeof arguments[0]==="string"){e=arguments[0];t=arguments[1];if(typeof arguments[2]==="object"&&arguments[2]!==null&&!Array.isArray(arguments[2])){n=arguments[2]}else{i=arguments[2];n=arguments[3]}}else{t=arguments[0];if(typeof arguments[1]==="object"&&arguments[1]!==null&&!Array.isArray(arguments[1])){n=arguments[1]}else{i=arguments[1];n=arguments[2]}}o=r(i);if(n==null){n={}}if(e!==void 0){this.name=e}this.fun=t;if(i!==void 0){this.wishes=o}if(n.async!==void 0){this.async=n.async}return this};Test.prototype.setAsync=function(){var t,e,r,n,i;t=[];for(n=0,i=arguments.length;n<i;n++){r=arguments[n];t.push(r)}e=t[t.length-1];if(typeof e==="object"&&e!==null&&!Array.isArray(e)){e.async=true}else{t.push({async:true})}return this.set.apply(this,t)};Test.prototype.after=function(t){this.afterFun=t;return this};Test.prototype.add=function(){var t,e;e=null;t=null;if(arguments[0]instanceof wishlist.Test){e=arguments[0];t=e.getAll().length}else{e=new wishlist.Test;e.set.apply(e,arguments);t=1}e.parent=this;this._children.push(e);this.getAncestorsAndSelf().forEach(function(e){return function(e){return e.allCount+=t}}(this));return this};Test.prototype.addAsync=function(){var t,e,r,n,i;t=[];for(n=0,i=arguments.length;n<i;n++){r=arguments[n];t.push(r)}e=t[t.length-1];if(typeof e==="object"&&e!==null&&!Array.isArray(e)){e.async=true}else{t.push({async:true})}return this.add.apply(this,t)};Test.prototype.getChildren=function(){return this._children.slice(0)};Test.prototype.getAncestors=function(){var t,e;e=this;t=[];while(e.parent!==null){t.push(e.parent);e=e.parent}return t};Test.prototype.getAncestorsAndSelf=function(){return[this].concat(this.getAncestors())};Test.prototype.getAll=function(){var t,e;t=[];t.push(this);e=function(r){return function(r){return r.getChildren().forEach(function(r){t.push(r);return e(r)})}}(this);e(this);return t};Test.prototype.run=function(t){var e,r,n;if(t==null){t=true}if(t){wishlist.currentRootTest=this}this._resetContext();if(this.parent!=null){this.env=wishlist.objectClone(this.parent.env)}setTimeout(function(t){return function(){var e;if(wishlist.environmentType==="node"){e=require("domain").create();e.on("error",function(e){return t.end({type:false,errorMessage:"Error Name: "+e.name+"\nError Message: "+e.message+"\nError Stack: "+e.stack})});e.run(function(){return t.fun(t.env,t)})}else{try{t.fun(t.env,t)}catch(e){t.end({type:false})}}if(t.result==null&&!t.async){return t.end({type:true})}}}(this),0);if(t){e=this.getAll();console.log();n=function(t){return function(){var t,n,i,o,s,u,a;s=e.filter(function(t){return t.result!=null&&t.result.type===true});t=e.filter(function(t){return t.result!=null&&t.result.type===false});u=e.filter(function(t){return t.result==null});console.log(""+(new Date).toISOString()+" OK: "+s.length+", "+("Exception: "+t.length+", Pending: "+u.length));if(u.length===0){clearInterval(r);t.forEach(function(t){console.log("\n********** Exceptional Test **********");console.log("Test: "+t.name);console.log("Function: "+t.fun.toString());if(t.result.errorMessage!=null){return console.log(t.result.errorMessage)}});n=0;a=0;o="";e.forEach(function(t){return t.wishResults.forEach(function(e){var r,i;o+=" "+e.type.toString();if(e.type===false){n++;r=t.getAncestors();r.reverse();i=r.concat([t]).map(function(t){return t.name}).join(" --> ");console.log("\n********** Broken Wish **********");console.log(" Test: "+i);console.log(" Wish: "+e.name);console.log("Expected: "+e.expected);return console.log(" Actual: "+e.actual)}else{return a++}})});o=o.trim();i=wishlist.sha256(o).substr(0,5);console.log("\n"+((t.length===0?"Tests OK.":""+t.length+" tests of "+e.length+" exceptional.")+" "+(n===0?"Wishes fulfilled.":""+n+" wishes of "+(n+a)+" broken.")+" "+("Mark: "+i))+"\n");return wishlist.currentRootTest=null}}}(this);r=setInterval(n,1e3);setTimeout(n,10)}return this};Test.prototype.end=function(t){if(this.result==null){this.result=t!=null?t:{type:true};this.wishes.forEach(function(t){return function(e){return t._checkWish(e)}}(this));this.getAncestorsAndSelf().forEach(function(t){return function(t){t.endedCount++;if(t.endedCount===t.allCount){return t.afterFun(t.env)}}}(this));this.getChildren().forEach(function(t){return function(t){return t.run(false)}}(this))}return this};Test.prototype._checkWish=function(wishStr){var args,interpret,name,parsed,result,that;that=this;interpret=function(t){return function(e){wishlist.parseExpression(e,Object.keys(t.env)).forEach(function(t,r){var n,i;n="that.env.";i=t+n.length*r;return e=e.substr(0,i)+n+e.substr(i)});return e}}(this);parsed=wishlist.parseWish(wishStr);args=parsed.components.map(function(t){return function(t,e){if(e===parsed.components.length-1){return t}else{return interpret(t)}}}(this));name=JSON.parse(args[args.length-1]);result=function(){try{args=args.map(function(_this){return function(m){return eval("(("+m+"))")}}(this));return this["_check_"+parsed.type].apply(this,args)}catch(t){return{type:false,name:name,actual:"unknown",expected:"unknown"}}}.call(this);return this.wishResults.push(result)};Test.prototype.wish=function(t){return wishlist.parseWishes(t).forEach(function(t){return function(e){return t._checkWish(e)}}(this))};return Test}();wishlist.Test.prototype._check_equal=function(t,e,r){var n,i,o;if(r==null){r=""}i=[];n=function(t){return function(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(e.every(function(e,r){if(__indexOf.call(i,e)>=0){return wishlist.objectIs(t[r],e)}else{if(typeof e==="object"&&e!==null){i.push(e)}return n(t[r],e)}})){return true}else{return false}}else if(typeof t==="object"&&t!==null&&typeof e==="object"&&e!==null){if(Object.keys(e).every(function(r){var o;if(o=e[r],__indexOf.call(i,o)>=0){return wishlist.objectIs(t[r],e[r])}else{if(typeof e[r]==="object"&&e[r]!==null){i.push(e[r])}return n(t[r],e[r])}})){return true}else{return false}}else{return wishlist.objectIs(t,e)}}}(this);o={type:n(t,e),name:r};if(o.type===false){o.actual=wishlist.valueToMessage(t);o.expected="= "+wishlist.valueToMessage(e)}return o};wishlist.Test.prototype._check_notEqual=function(t,e,r){var n,i,o;if(r==null){r=""}i=[];n=function(t){return function(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(e.some(function(e,r){if(__indexOf.call(i,e)>=0){return!wishlist.objectIs(t[r],e)}else{if(typeof e==="object"&&e!==null){i.push(e)}return n(t[r],e)}})){return true}else{return false}}else if(typeof t==="object"&&t!==null&&typeof e==="object"&&e!==null){if(Object.keys(e).some(function(r){var o;if(o=e[r],__indexOf.call(i,o)>=0){return!wishlist.objectIs(t[r],e[r])}else{if(typeof e[r]==="object"&&e[r]!==null){i.push(e[r])}return n(t[r],e[r])}})){return true}else{return false}}else{return!wishlist.objectIs(t,e)}}}(this);o={type:n(t,e),name:r};if(o.type===false){o.actual=wishlist.valueToMessage(t);o.expected="≠ "+wishlist.valueToMessage(e)}return o};wishlist.Test.prototype._check_is=function(t,e,r){var n;if(r==null){r=""}n={type:wishlist.objectIs(t,e),name:r};if(n.type===false){n.actual=wishlist.valueToMessage(t);n.expected="is "+wishlist.valueToMessage(e)}return n};wishlist.Test.prototype._check_isnt=function(t,e,r){var n;if(r==null){r=""}n={type:!wishlist.objectIs(t,e),name:r};if(n.type===false){n.actual=wishlist.valueToMessage(t);n.expected="isn't "+wishlist.valueToMessage(e)}return n};wishlist.Test.prototype._check_throws=function(t,e,r){var n,i,o,s;if(r==null){r=""}i=false;s=function(){try{t();i=true;return false}catch(t){n=t;if(e==null){return true}else if(e instanceof RegExp){if(e.test(n.message)){return true}else{return false}}else{if(n instanceof e){return true}else{return false}}}}();o={type:s,name:r};if(o.type===false){o.actual=i?"no exception":"another exception";o.expected=i?"exception":"an exception"}return o};wishlist.Test.prototype._check_doesNotThrow=function(t,e){var r,n;if(e==null){e=""}n=function(){try{t();return true}catch(t){return false}}();r={type:n,name:e};if(r.type===false){r.actual="exception";r.expected="no exception"}return r};wishlist.Test.prototype._check_lessThan=function(t,e,r){var n;if(r==null){r=""}n={type:t<e,name:r};if(n.type===false){n.actual=wishlist.valueToMessage(t);n.expected="< "+wishlist.valueToMessage(e)}return n};wishlist.Test.prototype._check_lessThanOrEqual=function(t,e,r){var n;if(r==null){r=""}n={type:t<=e,name:r};if(n.type===false){n.actual=wishlist.valueToMessage(t);n.expected="<= "+wishlist.valueToMessage(e)}return n};wishlist.Test.prototype._check_greaterThan=function(t,e,r){var n;if(r==null){r=""}n={type:t>e,name:r};if(n.type===false){n.actual=wishlist.valueToMessage(t);n.expected="> "+wishlist.valueToMessage(e)}return n};wishlist.Test.prototype._check_greaterThanOrEqual=function(t,e,r){var n;if(r==null){r=""}n={type:t>=e,name:r};if(n.type===false){n.actual=wishlist.valueToMessage(t);n.expected=">= "+wishlist.valueToMessage(e)}return n};if(wishlist.environmentType==="browser"){window.npmWishlist=wishlist}if(wishlist.moduleSystem==="commonjs"){module.exports=wishlist}}).call(this)},nameIndexes:{},result:initialModResult_386389655257694535},{fun:function(t,e,r){e.exports={name:"mate",version:"0.11.0",description:"Array extensions, ES6 shims, testing, timers, events, etc. It extends the native JavaScript/CoffeeScript.",keywords:["event","coffeescript","timer","math","javascript","js","coffee","es6","shim","test","testing"],author:"Zhenzhen Zhan <zhanzhenzhen@hotmail.com>",homepage:"http://zhanzhenzhen.github.io/mate/",license:"MIT",repository:{type:"git",url:"https://github.com/zhanzhenzhen/mate.git"},dependencies:{wishlist:"0.3.1"},devDependencies:{"coffee-script":"1.7.1","uglify-js":"2.4.13","js-bundler":"0.5.0"},main:"mate"}},nameIndexes:{},result:initialModResult_386389655257694535}];(function(){var t=initialModResult_386389655257694535;var e=mods_386389655257694535;var r=function(n){var i=e[n];var o={};var s={exports:o};var u=function(n){i.result=s.exports;var o=i.nameIndexes[n];if(o===undefined){throw new Error("Cannot find module "+JSON.stringify(n)+".")}if(e[o].result===t){r(o)}return e[o].result};i.fun.apply(o,[o,s,u]);i.result=s.exports};r(0)})()})(); |
{ | ||
"name": "mate", | ||
"version": "0.10.0", | ||
"version": "0.11.0", | ||
"description": "Array extensions, ES6 shims, testing, timers, events, etc. It extends the native JavaScript/CoffeeScript.", | ||
@@ -17,3 +17,3 @@ "keywords": [ | ||
"dependencies": { | ||
"wishlist": "0.2.6" | ||
"wishlist": "0.3.1" | ||
}, | ||
@@ -20,0 +20,0 @@ "devDependencies": { |
Sorry, the diff of this file is too big to display
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
3751
192327
3
2
+ Addedwishlist@0.3.1(transitive)
- Removedwishlist@0.2.6(transitive)
Updatedwishlist@0.3.1