mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-19 06:03:50 +01:00
624 lines
1.5 MiB
JavaScript
624 lines
1.5 MiB
JavaScript
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[0],[,,,,,,,,,,,,,function(e,t,n){var i,r;
|
|||
|
/*! @preserve
|
|||
|
* numeral.js
|
|||
|
* version : 2.0.6
|
|||
|
* author : Adam Draper
|
|||
|
* license : MIT
|
|||
|
* http://adamwdraper.github.com/Numeral-js/
|
|||
|
*/void 0===(r="function"==typeof(i=function(){function e(e,t){this._input=e,this._value=t}var t,n,i={},r={},o={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},s={currentLocale:o.currentLocale,zeroFormat:o.zeroFormat,nullFormat:o.nullFormat,defaultFormat:o.defaultFormat,scalePercentBy100:o.scalePercentBy100};return(t=function(r){var o,a,c,l;if(t.isNumeral(r))o=r.value();else if(0===r||void 0===r)o=0;else if(null===r||n.isNaN(r))o=null;else if("string"==typeof r)if(s.zeroFormat&&r===s.zeroFormat)o=0;else if(s.nullFormat&&r===s.nullFormat||!r.replace(/[^0-9]+/g,"").length)o=null;else{for(a in i)if((l="function"==typeof i[a].regexps.unformat?i[a].regexps.unformat():i[a].regexps.unformat)&&r.match(l)){c=i[a].unformat;break}c=c||t._.stringToNumber,o=c(r)}else o=Number(r)||null;return new e(r,o)}).version="2.0.6",t.isNumeral=function(t){return t instanceof e},t._=n={numberToFormat:function(e,n,i){var o,s,a,c,l,u,h,d=r[t.options.currentLocale],f=!1,p=!1,g=0,m="",v=1e12,y="",b=!1;if(e=e||0,s=Math.abs(e),t._.includes(n,"(")?(f=!0,n=n.replace(/[\(|\)]/g,"")):(t._.includes(n,"+")||t._.includes(n,"-"))&&(l=t._.includes(n,"+")?n.indexOf("+"):0>e?n.indexOf("-"):-1,n=n.replace(/[\+|\-]/g,"")),t._.includes(n,"a")&&(o=!!(o=n.match(/a(k|m|b|t)?/))&&o[1],t._.includes(n," a")&&(m=" "),n=n.replace(new RegExp(m+"a[kmbt]?"),""),s>=v&&!o||"t"===o?(m+=d.abbreviations.trillion,e/=v):v>s&&s>=1e9&&!o||"b"===o?(m+=d.abbreviations.billion,e/=1e9):1e9>s&&s>=1e6&&!o||"m"===o?(m+=d.abbreviations.million,e/=1e6):(1e6>s&&s>=1e3&&!o||"k"===o)&&(m+=d.abbreviations.thousand,e/=1e3)),t._.includes(n,"[.]")&&(p=!0,n=n.replace("[.]",".")),a=e.toString().split(".")[0],c=n.split(".")[1],u=n.indexOf(","),g=(n.split(".")[0].split(",")[0].match(/0/g)||[]).length,c?(t._.includes(c,"[")?(c=(c=c.replace("]","")).split("["),y=t._.toFixed(e,c[0].length+c[1].length,i,c[1].length)):y=t._.toFixed(e,c.length,i),a=y.split(".")[0],y=t._.includes(y,".")?d.delimiters.decimal+y.split(".")[1]:"",p&&0===Number(y.slice(1))&&(y="")):a=t._.toFixed(e,0,i),m&&!o&&Number(a)>=1e3&&m!==d.abbreviations.trillion)switch(a=String(Number(a)/1e3),m){case d.abbreviations.thousand:m=d.abbreviations.million;break;case d.abbreviations.million:m=d.abbreviations.billion;break;case d.abbreviations.billion:m=d.abbreviations.trillion}if(t._.includes(a,"-")&&(a=a.slice(1),b=!0),a.length<g)for(var w=g-a.length;w>0;w--)a="0"+a;return u>-1&&(a=a.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+d.delimiters.thousands)),0===n.indexOf(".")&&(a=""),h=a+y+(m||""),f?h=(f&&b?"(":"")+h+(f&&b?")":""):l>=0?h=0===l?(b?"-":"+")+h:h+(b?"-":"+"):b&&(h="-"+h),h},stringToNumber:function(e){var t,n,i,o=r[s.currentLocale],a=e,c={thousand:3,million:6,billion:9,trillion:12};if(s.zeroFormat&&e===s.zeroFormat)n=0;else if(s.nullFormat&&e===s.nullFormat||!e.replace(/[^0-9]+/g,"").length)n=null;else{for(t in n=1,"."!==o.delimiters.decimal&&(e=e.replace(/\./g,"").replace(o.delimiters.decimal,".")),c)if(i=new RegExp("[^a-zA-Z]"+o.abbreviations[t]+"(?:\\)|(\\"+o.currency.symbol+")?(?:\\))?)?$"),a.match(i)){n*=Math.pow(10,c[t]);break}n*=(e.split("-").length+Math.min(e.split("(").length-1,e.split(")").length-1))%2?1:-1,e=e.replace(/[^0-9\.]+/g,""),n*=Number(e)}return n},isNaN:function(e){return"number"==typeof e&&isNaN(e)},includes:function(e,t){return-1!==e.indexOf(t)},insert:function(e,t,n){return e.slice(0,n)+t+e.slice(n)},reduce:function(e,t){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof t)throw new TypeError(t+" is not a function");var n,i=Object(e),r=i.length>>>0,o=0;if(3===arguments.length)n=arguments[2];else{for(;r>o&&!(o in i);)o++;if(o>=r)throw new TypeError("Reduce of empty array with no initial value");n=i[o++]}for(;r>o;o++)o in i&&(n=t(n,i[o],o,i));return n},multiplier:function(e){var t=e.toString().split(".");return t.length<2?1:Math.pow(10,t[1].length)},correctionFactor:function(){var e=Array.prototype.slice.call(arguments);return e.reduce(function(e,t){var i=n.multiplier(t);return e>i?e:i},1)},toFixed:function(e,
|
|||
|
/*!
|
|||
|
* jQuery JavaScript Library v3.3.1
|
|||
|
* https://jquery.com/
|
|||
|
*
|
|||
|
* Includes Sizzle.js
|
|||
|
* https://sizzlejs.com/
|
|||
|
*
|
|||
|
* Copyright JS Foundation and other contributors
|
|||
|
* Released under the MIT license
|
|||
|
* https://jquery.org/license
|
|||
|
*
|
|||
|
* Date: 2018-01-20T17:24Z
|
|||
|
*/
|
|||
|
/*!
|
|||
|
* jQuery JavaScript Library v3.3.1
|
|||
|
* https://jquery.com/
|
|||
|
*
|
|||
|
* Includes Sizzle.js
|
|||
|
* https://sizzlejs.com/
|
|||
|
*
|
|||
|
* Copyright JS Foundation and other contributors
|
|||
|
* Released under the MIT license
|
|||
|
* https://jquery.org/license
|
|||
|
*
|
|||
|
* Date: 2018-01-20T17:24Z
|
|||
|
*/
|
|||
|
!function(t,n){"use strict";"object"==typeof e&&"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,function(n,r){"use strict";var o=[],s=n.document,a=Object.getPrototypeOf,c=o.slice,l=o.concat,u=o.push,h=o.indexOf,d={},f=d.toString,p=d.hasOwnProperty,g=p.toString,m=g.call(Object),v={},y=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},b=function(e){return null!=e&&e===e.window},w={type:!0,src:!0,noModule:!0};function x(e,t,n){var i,r=(t=t||s).createElement("script");if(r.text=e,n)for(i in w)n[i]&&(r[i]=n[i]);t.head.appendChild(r).parentNode.removeChild(r)}function _(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[f.call(e)]||"object":typeof e}var k=function(e,t){return new k.fn.init(e,t)},C=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function E(e){var t=!!e&&"length"in e&&e.length,n=_(e);return!y(e)&&!b(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}k.fn=k.prototype={jquery:"3.3.1",constructor:k,length:0,toArray:function(){return c.call(this)},get:function(e){return null==e?c.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=k.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return k.each(this,e)},map:function(e){return this.pushStack(k.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(c.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:o.sort,splice:o.splice},k.extend=k.fn.extend=function(){var e,t,n,i,r,o,s=arguments[0]||{},a=1,c=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[a]||{},a++),"object"==typeof s||y(s)||(s={}),a===c&&(s=this,a--);a<c;a++)if(null!=(e=arguments[a]))for(t in e)n=s[t],s!==(i=e[t])&&(l&&i&&(k.isPlainObject(i)||(r=Array.isArray(i)))?(r?(r=!1,o=n&&Array.isArray(n)?n:[]):o=n&&k.isPlainObject(n)?n:{},s[t]=k.extend(l,o,i)):void 0!==i&&(s[t]=i));return s},k.extend({expando:"jQuery"+("3.3.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==f.call(e))&&(!(t=a(e))||"function"==typeof(n=p.call(t,"constructor")&&t.constructor)&&g.call(n)===m)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e){x(e)},each:function(e,t){var n,i=0;if(E(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},trim:function(e){return null==e?"":(e+"").replace(C,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(E(Object(e))?k.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:h.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e},grep:function(e,t,n){for(var i=[],r=0,o=e.length,s=!n;r<o;r++)!t(e[r],r)!==s&&i.push(e[r]);return i},map:function(e,t,n){var i,r,o=0,s=[];if(E(e))for(i=e.length;o<i;o++)null!=(r=t(e[o],o,n))&&s.push(r);else for(o in e)null!=(r=t(e[o],o,n))&&s.push(r);return l.apply([],s)},guid:1,support:v}),"function"==typeof Symbol&&(k.fn[Symbol.iterator]=o[Symbol.iterator]),k.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){d["[object "+t+"]"]=t.toLowerCase()});var A=
|
|||
|
/*!
|
|||
|
* Sizzle CSS Selector Engine v2.3.3
|
|||
|
* https://sizzlejs.com/
|
|||
|
*
|
|||
|
* Copyright jQuery Foundation and other contributors
|
|||
|
* Released under the MIT license
|
|||
|
* http://jquery.org/license
|
|||
|
*
|
|||
|
* Date: 2016-08-08
|
|||
|
*/
|
|||
|
function(e){var t,n,i,r,o,s,a,c,l,u,h,d,f,p,g,m,v,y,b,w="sizzle"+1*new Date,x=e.document,_=0,k=0,C=se(),E=se(),A=se(),S=function(e,t){return e===t&&(h=!0),0},F={}.hasOwnProperty,T=[],D=T.pop,L=T.push,P=T.push,R=T.slice,M=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},B="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",O="[\\x20\\t\\r\\n\\f]",j="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",I="\\["+O+"*("+j+")(?:"+O+"*([*^$|!~]?=)"+O+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+j+"))|)"+O+"*\\]",$=":("+j+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+I+")*)|.*)\\)|)",N=new RegExp(O+"+","g"),W=new RegExp("^"+O+"+|((?:^|[^\\\\])(?:\\\\.)*)"+O+"+$","g"),z=new RegExp("^"+O+"*,"+O+"*"),H=new RegExp("^"+O+"*([>+~]|"+O+")"+O+"*"),V=new RegExp("="+O+"*([^\\]'\"]*?)"+O+"*\\]","g"),U=new RegExp($),K=new RegExp("^"+j+"$"),G={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j+"|[*])"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+O+"*(even|odd|(([+-]|)(\\d*)n|)"+O+"*(?:([+-]|)"+O+"*(\\d+)|))"+O+"*\\)|)","i"),bool:new RegExp("^(?:"+B+")$","i"),needsContext:new RegExp("^"+O+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+O+"*((?:-\\d)?\\d*)"+O+"*\\)|)(?=[^-]|$)","i")},q=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Q=/[+~]/,J=new RegExp("\\\\([\\da-f]{1,6}"+O+"?|("+O+")|.)","ig"),ee=function(e,t,n){var i="0x"+t-65536;return i!=i||n?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ne=function(e,t){return t?"\0"===e?"<22>":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ie=function(){d()},re=ye(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{P.apply(T=R.call(x.childNodes),x.childNodes),T[x.childNodes.length].nodeType}catch(e){P={apply:T.length?function(e,t){L.apply(e,R.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function oe(e,t,i,r){var o,a,l,u,h,p,v,y=t&&t.ownerDocument,_=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==_&&9!==_&&11!==_)return i;if(!r&&((t?t.ownerDocument||t:x)!==f&&d(t),t=t||f,g)){if(11!==_&&(h=Z.exec(e)))if(o=h[1]){if(9===_){if(!(l=t.getElementById(o)))return i;if(l.id===o)return i.push(l),i}else if(y&&(l=y.getElementById(o))&&b(t,l)&&l.id===o)return i.push(l),i}else{if(h[2])return P.apply(i,t.getElementsByTagName(e)),i;if((o=h[3])&&n.getElementsByClassName&&t.getElementsByClassName)return P.apply(i,t.getElementsByClassName(o)),i}if(n.qsa&&!A[e+" "]&&(!m||!m.test(e))){if(1!==_)y=t,v=e;else if("object"!==t.nodeName.toLowerCase()){for((u=t.getAttribute("id"))?u=u.replace(te,ne):t.setAttribute("id",u=w),a=(p=s(e)).length;a--;)p[a]="#"+u+" "+ve(p[a]);v=p.join(","),y=Q.test(e)&&ge(t.parentNode)||t}if(v)try{return P.apply(i,y.querySelectorAll(v)),i}catch(e){}finally{u===w&&t.removeAttribute("id")}}}return c(e.replace(W,"$1"),t,i,r)}function se(){var e=[];return function t(n,r){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=r}}function ae(e){return e[w]=!0,e}function ce(e){var t=f.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function le(e,t){for(var n=e.split("|"),r=n.length;r--;)i.attrHandle[n[r]]=t}function ue(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function he(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function de(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function fe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisab
|
|||
|
/*!
|
|||
|
* Chai - flag utility
|
|||
|
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|||
|
* MIT Licensed
|
|||
|
*/
|
|||
|
e.exports=function(e,t,n){var i=e.__flags||(e.__flags=Object.create(null));if(3!==arguments.length)return i[t];i[t]=n}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},,,function(e,t,n){"use strict";var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var n=t.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var i in n)r(n,i)&&(e[i]=n[i])}}return e},t.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var o={arraySet:function(e,t,n,i,r){if(t.subarray&&e.subarray)e.set(t.subarray(n,n+i),r);else for(var o=0;o<i;o++)e[r+o]=t[n+o]},flattenChunks:function(e){var t,n,i,r,o,s;for(i=0,t=0,n=e.length;t<n;t++)i+=e[t].length;for(s=new Uint8Array(i),r=0,t=0,n=e.length;t<n;t++)o=e[t],s.set(o,r),r+=o.length;return s}},s={arraySet:function(e,t,n,i,r){for(var o=0;o<i;o++)e[r+o]=t[n+o]},flattenChunks:function(e){return[].concat.apply([],e)}};t.setTyped=function(e){e?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,o)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,s))},t.setTyped(i)},function(e,t,n){"use strict";(function(e){if(t.base64=!0,t.array=!0,t.string=!0,t.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,t.nodebuffer=void 0!==e,t.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)t.blob=!1;else{var i=new ArrayBuffer(0);try{t.blob=0===new Blob([i],{type:"application/zip"}).size}catch(e){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);r.append(i),t.blob=0===r.getBlob("application/zip").size}catch(e){t.blob=!1}}}try{t.nodestream=!!n(140).Readable}catch(e){t.nodestream=!1}}).call(this,n(71).Buffer)},function(e,t,n){var i;!function(){"use strict";var r={not_string:/[^s]/,not_bool:/[^t]/,not_type:/[^T]/,not_primitive:/[^v]/,number:/[diefg]/,numeric_arg:/[bcdiefguxX]/,json:/[j]/,not_json:/[^j]/,text:/^[^\x25]+/,modulo:/^\x25{2}/,placeholder:/^\x25(?:([1-9]\d*)\$|\(([^\)]+)\))?(\+)?(0|'[^$])?(-)?(\d+)?(?:\.(\d+))?([b-gijostTuvxX])/,key:/^([a-z_][a-z_\d]*)/i,key_access:/^\.([a-z_][a-z_\d]*)/i,index_access:/^\[(\d+)\]/,sign:/^[\+\-]/};function o(e){return function(e,t){var n,i,s,a,c,l,u,h,d,f=1,p=e.length,g="";for(i=0;i<p;i++)if("string"==typeof e[i])g+=e[i];else if(Array.isArray(e[i])){if((a=e[i])[2])for(n=t[f],s=0;s<a[2].length;s++){if(!n.hasOwnProperty(a[2][s]))throw new Error(o('[sprintf] property "%s" does not exist',a[2][s]));n=n[a[2][s]]}else n=a[1]?t[a[1]]:t[f++];if(r.not_type.test(a[8])&&r.not_primitive.test(a[8])&&n instanceof Function&&(n=n()),r.numeric_arg.test(a[8])&&"number"!=typeof n&&isNaN(n))throw new TypeError(o("[sprintf] expecting number but found %T",n));switch(r.number.test(a[8])&&(h=n>=0),a[8]){case"b":n=parseInt(n,10).toString(2);break;case"c":n=String.fromCharCode(parseInt(n,10));break;case"d":case"i":n=parseInt(n,10);break;case"j":n=JSON.stringify(n,null,a[6]?parseInt(a[6]):0);break;case"e":n=a[7]?parseFloat(n).toExponential(a[7]):parseFloat(n).toExponential();break;case"f":n=a[7]?parseFloat(n).toFixed(a[7]):parseFloat(n);break;case"g":n=a[7]?String(Number(n.toPrecision(a[7]))):parseFloat(n);break;case"o":n=(parseInt(n,10)>>>0).toString(8);break;case"s":n=String(n),n=a[7]?n.substring(0,a[7]):n;break;case"t":n=String(!!n),n=a[7]?n.substring(0,a[7]):n;break;case"T":n=Object.prototype.toString.call(n).slice(8,-1).toLowerCase(),n=a[7]?n.substring(0,a[7]):n;break;case"u":n=parseInt(n,10)>>>0;break;case"v":n=n.valueOf(),n=a[7]?n.substring(0,a[7]):n;break;case"x":n=(parseInt(n,10)>>>0).toString(16);break;case"X":n=(parseInt(n,10)>>>0).toString(16).toUpperCase()}r.json.test(a[8])?g+=n:(!r.number.test(a[8])||h&&!a[3]?d="":(d=h?"+":"-",n=n.toString().replace(r.sign,"")),l=a[4]?"0"===a[4]?"0":a[4].charAt(1):" ",u=a[6]-(d+n).lengt
|
|||
|
/*!
|
|||
|
* Chai - transferFlags utility
|
|||
|
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|||
|
* MIT Licensed
|
|||
|
*/
|
|||
|
e.exports=function(e,t,n){var i=e.__flags||(e.__flags=Object.create(null));for(var r in t.__flags||(t.__flags=Object.create(null)),n=3!==arguments.length||n,i)(n||"object"!==r&&"ssfi"!==r&&"lockSsfi"!==r&&"message"!=r)&&(t.__flags[r]=i[r])}},function(e,t){e.exports={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","inspect","toJSON"]}},function(e,t,n){
|
|||
|
/*!
|
|||
|
* chai
|
|||
|
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
|||
|
* MIT Licensed
|
|||
|
*/
|
|||
|
var i=[];
|
|||
|
/*!
|
|||
|
* Chai version
|
|||
|
*/t.version="4.1.2",
|
|||
|
/*!
|
|||
|
* Assertion Error
|
|||
|
*/
|
|||
|
t.AssertionError=n(108);
|
|||
|
/*!
|
|||
|
* Utils for plugins (not exported)
|
|||
|
*/
|
|||
|
var r=n(179);t.use=function(e){return~i.indexOf(e)||(e(t,r),i.push(e)),t},
|
|||
|
/*!
|
|||
|
* Utility Functions
|
|||
|
*/
|
|||
|
t.util=r;
|
|||
|
/*!
|
|||
|
* Configuration
|
|||
|
*/
|
|||
|
var o=n(59);t.config=o;
|
|||
|
/*!
|
|||
|
* Primary `Assertion` prototype
|
|||
|
*/
|
|||
|
var s=n(163);t.use(s);
|
|||
|
/*!
|
|||
|
* Core Assertions
|
|||
|
*/
|
|||
|
var a=n(162);t.use(a);
|
|||
|
/*!
|
|||
|
* Expect interface
|
|||
|
*/
|
|||
|
var c=n(161);t.use(c);
|
|||
|
/*!
|
|||
|
* Should interface
|
|||
|
*/
|
|||
|
var l=n(160);t.use(l);
|
|||
|
/*!
|
|||
|
* Assert interface
|
|||
|
*/
|
|||
|
var u=n(159);t.use(u)},function(e,t,n){"use strict";var i=n(83).nextTick,r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=h;var o=n(69);o.inherits=n(66);var s=n(139),a=n(94);o.inherits(h,s);for(var c=r(a.prototype),l=0;l<c.length;l++){var u=c[l];h.prototype[u]||(h.prototype[u]=a.prototype[u])}function h(e){if(!(this instanceof h))return new h(e);s.call(this,e),a.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",d)}function d(){this.allowHalfOpen||this._writableState.ended||i(f,this)}function f(e){e.end()}Object.defineProperty(h.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),h.prototype._destroy=function(e,t){this.push(null),this.end(),i(t,e)}},,,,,function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){"use strict";for(var i=n(42),r=n(56),o=n(81),s=n(50),a=new Array(256),c=0;c<256;c++)a[c]=c>=252?6:c>=248?5:c>=240?4:c>=224?3:c>=192?2:1;a[254]=a[254]=1;function l(){s.call(this,"utf-8 decode"),this.leftOver=null}function u(){s.call(this,"utf-8 encode")}t.utf8encode=function(e){return r.nodebuffer?o.newBufferFrom(e,"utf-8"):function(e){var t,n,i,o,s,a=e.length,c=0;for(o=0;o<a;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(i=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),c+=n<128?1:n<2048?2:n<65536?3:4;for(t=r.uint8array?new Uint8Array(c):new Array(c),s=0,o=0;s<c;o++)55296==(64512&(n=e.charCodeAt(o)))&&o+1<a&&56320==(64512&(i=e.charCodeAt(o+1)))&&(n=65536+(n-55296<<10)+(i-56320),o++),n<128?t[s++]=n:n<2048?(t[s++]=192|n>>>6,t[s++]=128|63&n):n<65536?(t[s++]=224|n>>>12,t[s++]=128|n>>>6&63,t[s++]=128|63&n):(t[s++]=240|n>>>18,t[s++]=128|n>>>12&63,t[s++]=128|n>>>6&63,t[s++]=128|63&n);return t}(e)},t.utf8decode=function(e){return r.nodebuffer?i.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,n,r,o,s=e.length,c=new Array(2*s);for(n=0,t=0;t<s;)if((r=e[t++])<128)c[n++]=r;else if((o=a[r])>4)c[n++]=65533,t+=o-1;else{for(r&=2===o?31:3===o?15:7;o>1&&t<s;)r=r<<6|63&e[t++],o--;o>1?c[n++]=65533:r<65536?c[n++]=r:(r-=65536,c[n++]=55296|r>>10&1023,c[n++]=56320|1023&r)}return c.length!==n&&(c.subarray?c=c.subarray(0,n):c.length=n),i.applyFromCharCode(c)}(e=i.transformTo(r.uint8array?"uint8array":"array",e))},i.inherits(l,s),l.prototype.processChunk=function(e){var n=i.transformTo(r.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(r.uint8array){var o=n;(n=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),n.set(o,this.leftOver.length)}else n=this.leftOver.concat(n);this.leftOver=null}var s=function(e,t){var n;for((t=t||e.length)>e.length&&(t=e.length),n=t-1;n>=0&&128==(192&e[n]);)n--;return n<0?t:0===n?t:n+a[e[n]]>t?n:t}(n),c=n;s!==n.length&&(r.uint8array?(c=n.subarray(0,s),this.leftOver=n.subarray(s,n.length)):(c=n.slice(0,s),this.leftOver=n.slice(s,n.length))),this.push({data:t.utf8decode(c),meta:e.meta})},l.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:t.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},t.Utf8DecodeWorker=l,i.inherits(u,s),u.prototype.processChunk=function(e){this.push({data:t.utf8encode(e.data),meta:e.meta})},t.Utf8EncodeWorker=u},function(e,t,n){"use strict";var i=null;i="undefined"!=typeof Promise?Promise:n(208),e.exports={Promise:i}},function(e,t,n){(function(e){function n(e){return Object.prototype.toString.call(e)}t.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===n(e)},t.i
|
|||
|
/*!
|
|||
|
* The buffer module from node.js, for the browser.
|
|||
|
*
|
|||
|
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
|
|||
|
* @license MIT
|
|||
|
*/
|
|||
|
var i=n(233),r=n(232),o=n(141);function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=c.prototype:(null===e&&(e=new c(t)),e.length=t),e}function c(e,t,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return h(this,e)}return l(this,e,t,n)}function l(e,t,n,i){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,i){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,n):new Uint8Array(t,n,i);c.TYPED_ARRAY_SUPPORT?(e=t).__proto__=c.prototype:e=d(e,t);return e}(e,t,n,i):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|p(t,n),r=(e=a(e,i)).write(t,n);r!==i&&(e=e.slice(0,r));return e}(e,t,n):function(e,t){if(c.isBuffer(t)){var n=0|f(t.length);return 0===(e=a(e,n)).length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(i=t.length)!=i?a(e,0):d(e,t);if("Buffer"===t.type&&o(t.data))return d(e,t.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function h(e,t){if(u(t),e=a(e,t<0?0:0|f(t)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|f(t.length);e=a(e,n);for(var i=0;i<n;i+=1)e[i]=255&t[i];return e}function f(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function p(e,t){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return N(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return W(e).length;default:if(i)return N(e).length;t=(""+t).toLowerCase(),i=!0}}function g(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function m(e,t,n,i,r){if(0===e.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof t&&(t=c.from(t,i)),c.isBuffer(t))return 0===t.length?-1:v(e,t,n,i,r);if("number"==typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,i,r);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,i,r){var o,s=1,a=e.length,c=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;s=2,a/=2,c/=2,n/=2}function l(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(r){var u=-1;for(o=n;o<a;o++)if(l(e,o)===l(t,-1===u?0:o-u)){if(-1===u&&(u=o),o-u+1===c)return u*s}else-1!==u&&(o-=o-u),u=-1}else for(n+c>a&&(n=a-c),o=n;o>=0;o--){for(var h=!0,d=0;d<c;d++)if(l(e,o+d)!==l(t,d)){h=!1;break}if(h)return o}return-1}function y(e,t,n,i){n=Number(n)||0;var r=e.length-n;i?(i=Number(i))>r&&(i=r):i=r;var o=t.length;if(o%2!=0)throw new TypeError("Invalid he
|
|||
|
/*!
|
|||
|
* Chai - addLengthGuard utility
|
|||
|
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|||
|
* MIT Licensed
|
|||
|
*/
|
|||
|
e.exports=function(e,t,n){return i.configurable?(Object.defineProperty(e,"length",{get:function(){if(n)throw Error("Invalid Chai property: "+t+'.length. Due to a compatibility issue, "length" cannot directly follow "'+t+'". Use "'+t+'.lengthOf" instead.');throw Error("Invalid Chai property: "+t+'.length. See docs for proper usage of "'+t+'".')}}),e):e}},function(e,t,n){var i=n(59);
|
|||
|
/*!
|
|||
|
* Chai - isProxyEnabled helper
|
|||
|
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|||
|
* MIT Licensed
|
|||
|
*/e.exports=function(){return i.useProxy&&"undefined"!=typeof Proxy&&"undefined"!=typeof Reflect}},function(e,t,n){var i=n(106),r=n(105),o=n(174),s=n(59);e.exports=function(e,t,n,i){return c({showHidden:t,seen:[],stylize:function(e){return e}},e,void 0===n?2:n)};var a=function(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&"nodeType"in e&&1===e.nodeType&&"string"==typeof e.nodeName};function c(e,n,g){if(n&&"function"==typeof n.inspect&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var m=n.inspect(g,e);return"string"!=typeof m&&(m=c(e,m,g)),m}var v=function(e,t){switch(typeof t){case"undefined":return e.stylize("undefined","undefined");case"string":var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string");case"number":return 0===t&&1/t==-1/0?e.stylize("-0","number"):e.stylize(""+t,"number");case"boolean":return e.stylize(""+t,"boolean");case"symbol":return e.stylize(t.toString(),"symbol")}if(null===t)return e.stylize("null","null")}(e,n);if(v)return v;if(a(n)){if("outerHTML"in n)return n.outerHTML;try{if(document.xmlVersion)return(new XMLSerializer).serializeToString(n);var y=document.createElementNS("http://www.w3.org/1999/xhtml","_");y.appendChild(n.cloneNode(!1));var b=y.innerHTML.replace("><",">"+n.innerHTML+"<");return y.innerHTML="",b}catch(e){}}var w,x,_=o(n),k=e.showHidden?r(n):_;if(0===k.length||f(n)&&(1===k.length&&"stack"===k[0]||2===k.length&&"description"===k[0]&&"stack"===k[1])){if("function"==typeof n)return x=(w=i(n))?": "+w:"",e.stylize("[Function"+x+"]","special");if(h(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(d(n))return e.stylize(Date.prototype.toUTCString.call(n),"date");if(f(n))return l(n)}var C,E,A="",S=!1,F=!1,T=["{","}"];if("object"==typeof(C=n)&&/\w+Array]$/.test(p(C))&&(F=!0,T=["[","]"]),function(e){return Array.isArray(e)||"object"==typeof e&&"[object Array]"===p(e)}(n)&&(S=!0,T=["[","]"]),"function"==typeof n&&(A=" [Function"+(x=(w=i(n))?": "+w:"")+"]"),h(n)&&(A=" "+RegExp.prototype.toString.call(n)),d(n)&&(A=" "+Date.prototype.toUTCString.call(n)),f(n))return l(n);if(0===k.length&&(!S||0==n.length))return T[0]+A+T[1];if(g<0)return h(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special");if(e.seen.push(n),S)E=function(e,t,n,i,r){for(var o=[],s=0,a=t.length;s<a;++s)Object.prototype.hasOwnProperty.call(t,String(s))?o.push(u(e,t,n,i,String(s),!0)):o.push("");return r.forEach(function(r){r.match(/^\d+$/)||o.push(u(e,t,n,i,r,!0))}),o}(e,n,g,_,k);else{if(F)return function(e){for(var t="[ ",n=0;n<e.length;++n){if(t.length>=s.truncateThreshold-7){t+="...";break}t+=e[n]+", "}-1!==(t+=" ]").indexOf(", ]")&&(t=t.replace(", ]"," ]"));return t}(n);E=k.map(function(t){return u(e,n,g,_,t,S)})}return e.seen.pop(),function(e,t,n){if(e.reduce(function(e,t){return 0,t.indexOf("\n")>=0&&0,e+t.length+1},0)>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(E,A,T)}function l(e){return"["+Error.prototype.toString.call(e)+"]"}function u(e,t,n,i,r,o){var s,a,l=Object.getOwnPropertyDescriptor(t,r);if(l&&(l.get?a=l.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):l.set&&(a=e.stylize("[Setter]","special"))),i.indexOf(r)<0&&(s="["+r+"]"),a||(e.seen.indexOf(t[r])<0?(a=c(e,t[r],null===n?null:n-1)).indexOf("\n")>-1&&(a=o?a.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+a.split("\n").map(function(e){return" "+e}).join("\n")):a=e.stylize("[Circular]","special")),void 0===s){if(o&&r.match(/^\d+$/))return a;(s=JSON.stringify(""+r)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=e.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=e.stylize(s,"string"))}return s+": "+a}function h(e){return"object"==typeof e&&"[object RegExp]"===p(e)}function d(e){return"object"==typeof e&&"[object Date]"===p(e)}function f(e){return"object"==typeof e&&"[object Error]"===p(e)}function p(e){return Object
|
|||
|
/*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/FileSaver.js */void 0!==e&&e.exports?e.exports.saveAs=r:null!==n(101)&&null!==n(185)&&(void 0===(i=function(){return r}.call(t,n,t,e))||(e.exports=i))},function(e,t,n){"use strict";function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files={},this.comment=null,this.root="",this.clone=function(){var e=new i;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}i.prototype=n(234),i.prototype.loadAsync=n(190),i.support=n(56),i.defaults=n(125),i.version="3.1.5",i.loadAsync=function(e,t){return(new i).loadAsync(e,t)},i.external=n(68),e.exports=i},function(e,t,n){(function(t){var n;n=function(){"use strict";var e="function"==typeof Promise,n="object"==typeof self?self:t,i="undefined"!=typeof Symbol,r="undefined"!=typeof Map,o="undefined"!=typeof Set,s="undefined"!=typeof WeakMap,a="undefined"!=typeof WeakSet,c="undefined"!=typeof DataView,l=i&&void 0!==Symbol.iterator,u=i&&void 0!==Symbol.toStringTag,h=o&&"function"==typeof Set.prototype.entries,d=r&&"function"==typeof Map.prototype.entries,f=h&&Object.getPrototypeOf((new Set).entries()),p=d&&Object.getPrototypeOf((new Map).entries()),g=l&&"function"==typeof Array.prototype[Symbol.iterator],m=g&&Object.getPrototypeOf([][Symbol.iterator]()),v=l&&"function"==typeof String.prototype[Symbol.iterator],y=v&&Object.getPrototypeOf(""[Symbol.iterator]()),b=8,w=-1;return function(t){var i=typeof t;if("object"!==i)return i;if(null===t)return"null";if(t===n)return"global";if(Array.isArray(t)&&(!1===u||!(Symbol.toStringTag in t)))return"Array";if("object"==typeof window&&null!==window){if("object"==typeof window.location&&t===window.location)return"Location";if("object"==typeof window.document&&t===window.document)return"Document";if("object"==typeof window.navigator){if("object"==typeof window.navigator.mimeTypes&&t===window.navigator.mimeTypes)return"MimeTypeArray";if("object"==typeof window.navigator.plugins&&t===window.navigator.plugins)return"PluginArray"}if(("function"==typeof window.HTMLElement||"object"==typeof window.HTMLElement)&&t instanceof window.HTMLElement){if("BLOCKQUOTE"===t.tagName)return"HTMLQuoteElement";if("TD"===t.tagName)return"HTMLTableDataCellElement";if("TH"===t.tagName)return"HTMLTableHeaderCellElement"}}var l=u&&t[Symbol.toStringTag];if("string"==typeof l)return l;var h=Object.getPrototypeOf(t);return h===RegExp.prototype?"RegExp":h===Date.prototype?"Date":e&&h===Promise.prototype?"Promise":o&&h===Set.prototype?"Set":r&&h===Map.prototype?"Map":a&&h===WeakSet.prototype?"WeakSet":s&&h===WeakMap.prototype?"WeakMap":c&&h===DataView.prototype?"DataView":r&&h===p?"Map Iterator":o&&h===f?"Set Iterator":g&&h===m?"Array Iterator":v&&h===y?"String Iterator":null===h?"Object":Object.prototype.toString.call(t).slice(b,w)}},e.exports=n()}).call(this,n(52))},,function(e,t,n){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},function(e,t,n){"use strict";var i=n(42);var r=function(){for(var e,t=[],n=0;n<256;n++){e=n;for(var i=0;i<8;i++)e=1&e?3988292384^e>>>1:e>>>1;t[n]=e}return t}();e.exports=function(e,t){return void 0!==e&&e.length?"string"!==i.getTypeOf(e)?function(e,t,n,i){var o=r,s=i+n;e^=-1;for(var a=i;a<s;a++)e=e>>>8^o[255&(e^t[a])];return-1^e}(0|t,e,e.length,0):function(e,t,n,i){var o=r,s=i+n;e^=-1;for(var a=i;a<s;a++)e=e>>>8^o[255&(e^t.charCodeAt(a))];return-1^e}(0|t,e,e.length,0):0}},function(e,t,n){"use strict";var i=n(68),r=n(124),o=n(123),s=n(122);o=n(123);function a(e,t,n,i,r){this.compressedSize=e,this.uncompressedSize=t,this.crc32=n,this.compression=i,this.compressedContent=r}a.prototype={getContentWorker:function(){var e=new r(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_len
|
|||
|
/*!
|
|||
|
* Chai - getOwnEnumerablePropertySymbols utility
|
|||
|
* Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
|
|||
|
* MIT Licensed
|
|||
|
*/
|
|||
|
e.exports=function(e){return"function"!=typeof Object.getOwnPropertySymbols?[]:Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}},function(e,t,n){
|
|||
|
/*!
|
|||
|
* Chai - flag utility
|
|||
|
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|||
|
* MIT Licensed
|
|||
|
*/
|
|||
|
/*!
|
|||
|
* Module dependancies
|
|||
|
*/
|
|||
|
var i=n(79),r=n(59);e.exports=function(e){var t=i(e),n=Object.prototype.toString.call(e);if(r.truncateThreshold&&t.length>=r.truncateThreshold){if("[object Function]"===n)return e.name&&""!==e.name?"[Function: "+e.name+"]":"[Function]";if("[object Array]"===n)return"[ Array("+e.length+") ]";if("[object Object]"===n){var o=Object.keys(e);return"{ Object ("+(o.length>2?o.splice(0,2).join(", ")+", ...":o.join(", "))+") }"}return t}return t}},function(e,t){
|
|||
|
/*!
|
|||
|
* Chai - getProperties utility
|
|||
|
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|||
|
* MIT Licensed
|
|||
|
*/
|
|||
|
e.exports=function(e){var t=Object.getOwnPropertyNames(e);function n(e){-1===t.indexOf(e)&&t.push(e)}for(var i=Object.getPrototypeOf(e);null!==i;)Object.getOwnPropertyNames(i).forEach(n),i=Object.getPrototypeOf(i);return t}},function(e,t,n){"use strict";var i=Function.prototype.toString,r=/\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\s\(\/]+)/;e.exports=function(e){if("function"!=typeof e)return null;var t="";if(void 0===Function.prototype.name&&void 0===e.name){var n=i.call(e).match(r);n&&(t=n[1])}else t=e.name;return t}},function(e,t){
|
|||
|
/*!
|
|||
|
* Chai - getActual utility
|
|||
|
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|||
|
* MIT Licensed
|
|||
|
*/
|
|||
|
e.exports=function(e,t){return t.length>4?t[4]:e._obj}},function(e,t){
|
|||
|
/*!
|
|||
|
* assertion-error
|
|||
|
* Copyright(c) 2013 Jake Luer <jake@qualiancy.com>
|
|||
|
* MIT Licensed
|
|||
|
*/
|
|||
|
/*!
|
|||
|
* Return a function that will copy properties from
|
|||
|
* one object to another excluding any originally
|
|||
|
* listed. Returned function will create a new `{}`.
|
|||
|
*
|
|||
|
* @param {String} excluded properties ...
|
|||
|
* @return {Function}
|
|||
|
*/
|
|||
|
function n(){var e=[].slice.call(arguments);function t(t,n){Object.keys(n).forEach(function(i){~e.indexOf(i)||(t[i]=n[i])})}return function(){for(var e=[].slice.call(arguments),n=0,i={};n<e.length;n++)t(i,e[n]);return i}}function i(e,t,r){var o=n("name","message","stack","constructor","toJSON")(t||{});for(var s in this.message=e||"Unspecified AssertionError",this.showDiff=!1,o)this[s]=o[s];if(r=r||i,Error.captureStackTrace)Error.captureStackTrace(this,r);else try{throw new Error}catch(e){this.stack=e.stack}}
|
|||
|
/*!
|
|||
|
* Inherit from Error.prototype
|
|||
|
*/
|
|||
|
/*!
|
|||
|
* Primary Exports
|
|||
|
*/
|
|||
|
e.exports=i,i.prototype=Object.create(Error.prototype),
|
|||
|
/*!
|
|||
|
* Statically set name
|
|||
|
*/
|
|||
|
i.prototype.name="AssertionError",
|
|||
|
/*!
|
|||
|
* Ensure correct constructor
|
|||
|
*/
|
|||
|
i.prototype.constructor=i,i.prototype.toJSON=function(e){var t=n("constructor","toJSON","stack")({name:this.name},this);return!1!==e&&this.stack&&(t.stack=this.stack),t}},function(e,t,n){"use strict";n.r(t),n.d(t,"version",function(){return me}),n.d(t,"parse",function(){return ve}),n.d(t,"parseExpressionAt",function(){return ye}),n.d(t,"tokenizer",function(){return be}),n.d(t,"parse_dammit",function(){return fe}),n.d(t,"LooseParser",function(){return pe}),n.d(t,"pluginsLoose",function(){return ge}),n.d(t,"addLooseExports",function(){return we}),n.d(t,"Parser",function(){return N}),n.d(t,"plugins",function(){return I}),n.d(t,"defaultOptions",function(){return O}),n.d(t,"Position",function(){return R}),n.d(t,"SourceLocation",function(){return M}),n.d(t,"getLineInfo",function(){return B}),n.d(t,"Node",function(){return ee}),n.d(t,"TokenType",function(){return m}),n.d(t,"tokTypes",function(){return _}),n.d(t,"keywordTypes",function(){return w}),n.d(t,"TokContext",function(){return ie}),n.d(t,"tokContexts",function(){return re}),n.d(t,"isIdentifierChar",function(){return g}),n.d(t,"isIdentifierStart",function(){return p}),n.d(t,"Token",function(){return se}),n.d(t,"isNewLine",function(){return E}),n.d(t,"lineBreak",function(){return k}),n.d(t,"lineBreakG",function(){return C}),n.d(t,"nonASCIIwhitespace",function(){return A});var i={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},r="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",o={5:r,6:r+" const class extends export import super"},s=/^in(stanceof)?$/,a="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠ-ࢴࢶ-ࢽऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿕ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞮꞰ-ꞷꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּ
|
|||
|
/*!
|
|||
|
* chai
|
|||
|
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
|||
|
* MIT Licensed
|
|||
|
*/
|
|||
|
e.exports=function(e,t){
|
|||
|
/*!
|
|||
|
* Chai dependencies.
|
|||
|
*/
|
|||
|
var n=e.Assertion,i=t.flag,r=e.assert=function(t,i){new n(null,null,e.assert,!0).assert(t,i,"[ negation message unavailable ]")};
|
|||
|
/*!
|
|||
|
* Module export.
|
|||
|
*/r.fail=function(t,n,i,o){throw i=i||"assert.fail()",new e.AssertionError(i,{actual:t,expected:n,operator:o},r.fail)},r.isOk=function(e,t){new n(e,t,r.isOk,!0).is.ok},r.isNotOk=function(e,t){new n(e,t,r.isNotOk,!0).is.not.ok},r.equal=function(e,t,o){var s=new n(e,o,r.equal,!0);s.assert(t==i(s,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",t,e,!0)},r.notEqual=function(e,t,o){var s=new n(e,o,r.notEqual,!0);s.assert(t!=i(s,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",t,e,!0)},r.strictEqual=function(e,t,i){new n(e,i,r.strictEqual,!0).to.equal(t)},r.notStrictEqual=function(e,t,i){new n(e,i,r.notStrictEqual,!0).to.not.equal(t)},r.deepEqual=r.deepStrictEqual=function(e,t,i){new n(e,i,r.deepEqual,!0).to.eql(t)},r.notDeepEqual=function(e,t,i){new n(e,i,r.notDeepEqual,!0).to.not.eql(t)},r.isAbove=function(e,t,i){new n(e,i,r.isAbove,!0).to.be.above(t)},r.isAtLeast=function(e,t,i){new n(e,i,r.isAtLeast,!0).to.be.least(t)},r.isBelow=function(e,t,i){new n(e,i,r.isBelow,!0).to.be.below(t)},r.isAtMost=function(e,t,i){new n(e,i,r.isAtMost,!0).to.be.most(t)},r.isTrue=function(e,t){new n(e,t,r.isTrue,!0).is.true},r.isNotTrue=function(e,t){new n(e,t,r.isNotTrue,!0).to.not.equal(!0)},r.isFalse=function(e,t){new n(e,t,r.isFalse,!0).is.false},r.isNotFalse=function(e,t){new n(e,t,r.isNotFalse,!0).to.not.equal(!1)},r.isNull=function(e,t){new n(e,t,r.isNull,!0).to.equal(null)},r.isNotNull=function(e,t){new n(e,t,r.isNotNull,!0).to.not.equal(null)},r.isNaN=function(e,t){new n(e,t,r.isNaN,!0).to.be.NaN},r.isNotNaN=function(e,t){new n(e,t,r.isNotNaN,!0).not.to.be.NaN},r.exists=function(e,t){new n(e,t,r.exists,!0).to.exist},r.notExists=function(e,t){new n(e,t,r.notExists,!0).to.not.exist},r.isUndefined=function(e,t){new n(e,t,r.isUndefined,!0).to.equal(void 0)},r.isDefined=function(e,t){new n(e,t,r.isDefined,!0).to.not.equal(void 0)},r.isFunction=function(e,t){new n(e,t,r.isFunction,!0).to.be.a("function")},r.isNotFunction=function(e,t){new n(e,t,r.isNotFunction,!0).to.not.be.a("function")},r.isObject=function(e,t){new n(e,t,r.isObject,!0).to.be.a("object")},r.isNotObject=function(e,t){new n(e,t,r.isNotObject,!0).to.not.be.a("object")},r.isArray=function(e,t){new n(e,t,r.isArray,!0).to.be.an("array")},r.isNotArray=function(e,t){new n(e,t,r.isNotArray,!0).to.not.be.an("array")},r.isString=function(e,t){new n(e,t,r.isString,!0).to.be.a("string")},r.isNotString=function(e,t){new n(e,t,r.isNotString,!0).to.not.be.a("string")},r.isNumber=function(e,t){new n(e,t,r.isNumber,!0).to.be.a("number")},r.isNotNumber=function(e,t){new n(e,t,r.isNotNumber,!0).to.not.be.a("number")},r.isFinite=function(e,t){new n(e,t,r.isFinite,!0).to.be.finite},r.isBoolean=function(e,t){new n(e,t,r.isBoolean,!0).to.be.a("boolean")},r.isNotBoolean=function(e,t){new n(e,t,r.isNotBoolean,!0).to.not.be.a("boolean")},r.typeOf=function(e,t,i){new n(e,i,r.typeOf,!0).to.be.a(t)},r.notTypeOf=function(e,t,i){new n(e,i,r.notTypeOf,!0).to.not.be.a(t)},r.instanceOf=function(e,t,i){new n(e,i,r.instanceOf,!0).to.be.instanceOf(t)},r.notInstanceOf=function(e,t,i){new n(e,i,r.notInstanceOf,!0).to.not.be.instanceOf(t)},r.include=function(e,t,i){new n(e,i,r.include,!0).include(t)},r.notInclude=function(e,t,i){new n(e,i,r.notInclude,!0).not.include(t)},r.deepInclude=function(e,t,i){new n(e,i,r.deepInclude,!0).deep.include(t)},r.notDeepInclude=function(e,t,i){new n(e,i,r.notDeepInclude,!0).not.deep.include(t)},r.nestedInclude=function(e,t,i){new n(e,i,r.nestedInclude,!0).nested.include(t)},r.notNestedInclude=function(e,t,i){new n(e,i,r.notNestedInclude,!0).not.nested.include(t)},r.deepNestedInclude=function(e,t,i){new n(e,i,r.deepNestedInclude,!0).deep.nested.include(t)},r.notDeepNestedInclude=function(e,t,i){new n(e,i,r.notDeepNestedInclude,!0).not.deep.nested.include(t)},r.ownInclude=function(e,t,i){new n(e,i,r.ownInclude,!0).own.include(t)},r.notOwnInclude=function(e,t,i){new n(e,i,r.notOwnInclude,!0).not.own.include(t)},r.deepOwnInclude=function(e,t,i){new n(e,i,r.deepOwnInclude,!0).deep.own.include(t)},r.notDeepOwnIncl
|
|||
|
/*!
|
|||
|
* ### .ifError(object)
|
|||
|
*
|
|||
|
* Asserts if value is not a false value, and throws if it is a true value.
|
|||
|
* This is added to allow for chai to be a drop-in replacement for Node's
|
|||
|
* assert class.
|
|||
|
*
|
|||
|
* var err = new Error('I am a custom error');
|
|||
|
* assert.ifError(err); // Rethrows err!
|
|||
|
*
|
|||
|
* @name ifError
|
|||
|
* @param {Object} object
|
|||
|
* @namespace Assert
|
|||
|
* @api public
|
|||
|
*/,r.ifError=function(e){if(e)throw e},r.isExtensible=function(e,t){new n(e,t,r.isExtensible,!0).to.be.extensible},r.isNotExtensible=function(e,t){new n(e,t,r.isNotExtensible,!0).to.not.be.extensible},r.isSealed=function(e,t){new n(e,t,r.isSealed,!0).to.be.sealed},r.isNotSealed=function(e,t){new n(e,t,r.isNotSealed,!0).to.not.be.sealed},r.isFrozen=function(e,t){new n(e,t,r.isFrozen,!0).to.be.frozen},r.isNotFrozen=function(e,t){new n(e,t,r.isNotFrozen,!0).to.not.be.frozen},r.isEmpty=function(e,t){new n(e,t,r.isEmpty,!0).to.be.empty},r.isNotEmpty=function(e,t){new n(e,t,r.isNotEmpty,!0).to.not.be.empty},
|
|||
|
/*!
|
|||
|
* Aliases.
|
|||
|
*/
|
|||
|
function e(t,n){return r[n]=r[t],e}("isOk","ok")("isNotOk","notOk")("throws","throw")("throws","Throw")("isExtensible","extensible")("isNotExtensible","notExtensible")("isSealed","sealed")("isNotSealed","notSealed")("isFrozen","frozen")("isNotFrozen","notFrozen")("isEmpty","empty")("isNotEmpty","notEmpty")}},function(e,t){
|
|||
|
/*!
|
|||
|
* chai
|
|||
|
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
|||
|
* MIT Licensed
|
|||
|
*/
|
|||
|
e.exports=function(e,t){var n=e.Assertion;function i(){Object.defineProperty(Object.prototype,"should",{set:function(e){Object.defineProperty(this,"should",{value:e,enumerable:!0,configurable:!0,writable:!0})},get:function e(){return this instanceof String||this instanceof Number||this instanceof Boolean||"function"==typeof Symbol&&this instanceof Symbol?new n(this.valueOf(),null,e):new n(this,null,e)},configurable:!0});var t={fail:function(n,i,r,o){throw r=r||"should.fail()",new e.AssertionError(r,{actual:n,expected:i,operator:o},t.fail)},equal:function(e,t,i){new n(e,i).to.equal(t)},Throw:function(e,t,i,r){new n(e,r).to.Throw(t,i)},exist:function(e,t){new n(e,t).to.exist},not:{}};return t.not.equal=function(e,t,i){new n(e,i).to.not.equal(t)},t.not.Throw=function(e,t,i,r){new n(e,r).to.not.Throw(t,i)},t.not.exist=function(e,t){new n(e,t).to.not.exist},t.throw=t.Throw,t.not.throw=t.not.Throw,t}e.should=i,e.Should=i}},function(e,t){
|
|||
|
/*!
|
|||
|
* chai
|
|||
|
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
|||
|
* MIT Licensed
|
|||
|
*/
|
|||
|
e.exports=function(e,t){e.expect=function(t,n){return new e.Assertion(t,n)},e.expect.fail=function(t,n,i,r){throw i=i||"expect.fail()",new e.AssertionError(i,{actual:t,expected:n,operator:r},e.expect.fail)}}},function(e,t){
|
|||
|
/*!
|
|||
|
* chai
|
|||
|
* http://chaijs.com
|
|||
|
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
|||
|
* MIT Licensed
|
|||
|
*/
|
|||
|
e.exports=function(e,t){var n=e.Assertion,i=e.AssertionError,r=t.flag;function o(e,n){n&&r(this,"message",n),e=e.toLowerCase();var i=r(this,"object"),o=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an ":"a ";this.assert(e===t.type(i).toLowerCase(),"expected #{this} to be "+o+e,"expected #{this} not to be "+o+e)}function s(e,n){return t.isNaN(e)&&t.isNaN(n)||e===n}function a(){r(this,"contains",!0)}function c(e,o){o&&r(this,"message",o);var a=r(this,"object"),c=t.type(a).toLowerCase(),l=r(this,"message"),u=r(this,"negate"),h=r(this,"ssfi"),d=r(this,"deep"),f=d?"deep ":"";l=l?l+": ":"";var p=!1;switch(c){case"string":p=-1!==a.indexOf(e);break;case"weakset":if(d)throw new i(l+"unable to use .deep.include with WeakSet",void 0,h);p=a.has(e);break;case"map":var g=d?t.eql:s;a.forEach(function(t){p=p||g(t,e)});break;case"set":d?a.forEach(function(n){p=p||t.eql(n,e)}):p=a.has(e);break;case"array":p=d?a.some(function(n){return t.eql(n,e)}):-1!==a.indexOf(e);break;default:if(e!==Object(e))throw new i(l+"object tested must be an array, a map, an object, a set, a string, or a weakset, but "+c+" given",void 0,h);var m=Object.keys(e),v=null,y=0;if(m.forEach(function(o){var s=new n(a);if(t.transferFlags(this,s,!0),r(s,"lockSsfi",!0),u&&1!==m.length)try{s.property(o,e[o])}catch(e){if(!t.checkError.compatibleConstructor(e,i))throw e;null===v&&(v=e),y++}else s.property(o,e[o])},this),u&&m.length>1&&y===m.length)throw v;return}this.assert(p,"expected #{this} to "+f+"include "+t.inspect(e),"expected #{this} to not "+f+"include "+t.inspect(e))}function l(){var e=r(this,"object"),n=t.type(e);this.assert("Arguments"===n,"expected #{this} to be arguments but got "+n,"expected #{this} to not be arguments")}function u(e,t){t&&r(this,"message",t);var n=r(this,"object");if(r(this,"deep"))return this.eql(e);this.assert(e===n,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",e,this._obj,!0)}function h(e,n){n&&r(this,"message",n),this.assert(t.eql(e,r(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",e,this._obj,!0)}function d(e,o){o&&r(this,"message",o);var s=r(this,"object"),a=r(this,"doLength"),c=r(this,"message"),l=c?c+": ":"",u=r(this,"ssfi"),h=t.type(s).toLowerCase(),d=t.type(e).toLowerCase(),f=!0;if(a&&new n(s,c,u,!0).to.have.property("length"),a||"date"!==h||"date"===d)if("number"===d||!a&&"number"!==h)if(a||"date"===h||"number"===h)f=!1;else{errorMessage=l+"expected "+("string"===h?"'"+s+"'":s)+" to be a number or a date"}else errorMessage=l+"the argument to above must be a number";else errorMessage=l+"the argument to above must be a date";if(f)throw new i(errorMessage,void 0,u);if(a){var p=s.length;this.assert(p>e,"expected #{this} to have a length above #{exp} but got #{act}","expected #{this} to not have a length above #{exp}",e,p)}else this.assert(s>e,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",e)}function f(e,o){o&&r(this,"message",o);var s=r(this,"object"),a=r(this,"doLength"),c=r(this,"message"),l=c?c+": ":"",u=r(this,"ssfi"),h=t.type(s).toLowerCase(),d=t.type(e).toLowerCase(),f=!0;if(a&&new n(s,c,u,!0).to.have.property("length"),a||"date"!==h||"date"===d)if("number"===d||!a&&"number"!==h)if(a||"date"===h||"number"===h)f=!1;else{errorMessage=l+"expected "+("string"===h?"'"+s+"'":s)+" to be a number or a date"}else errorMessage=l+"the argument to least must be a number";else errorMessage=l+"the argument to least must be a date";if(f)throw new i(errorMessage,void 0,u);if(a){var p=s.length;this.assert(p>=e,"expected #{this} to have a length at least #{exp} but got #{act}","expected #{this} to have a length below #{exp}",e,p)}else this.assert(s>=e,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",e)}function p(e,o){o&&r(this,"message",o);var s=r(this,"object"),a=r(this,"doLength"),c=r(this,"message"),l=c?c+": ":"",u=r(this,"ssfi"),h=t.type(s).toLowerCase(),d=t.type(e).toLowerCase(),f=!0;if(a&&new n(s,c,u,!0).to.have.property("length"),a||"date"!==h||"date"===d)if("number"===d||!a&&"number"!==h)if(a||"d
|
|||
|
/*!
|
|||
|
* chai
|
|||
|
* http://chaijs.com
|
|||
|
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
|||
|
* MIT Licensed
|
|||
|
*/
|
|||
|
var i=n(59);e.exports=function(e,t){
|
|||
|
/*!
|
|||
|
* Module dependencies.
|
|||
|
*/
|
|||
|
var n=e.AssertionError,r=t.flag;
|
|||
|
/*!
|
|||
|
* Module export.
|
|||
|
*/
|
|||
|
/*!
|
|||
|
* Assertion Constructor
|
|||
|
*
|
|||
|
* Creates object for chaining.
|
|||
|
*
|
|||
|
* `Assertion` objects contain metadata in the form of flags. Three flags can
|
|||
|
* be assigned during instantiation by passing arguments to this constructor:
|
|||
|
*
|
|||
|
* - `object`: This flag contains the target of the assertion. For example, in
|
|||
|
* the assertion `expect(numKittens).to.equal(7);`, the `object` flag will
|
|||
|
* contain `numKittens` so that the `equal` assertion can reference it when
|
|||
|
* needed.
|
|||
|
*
|
|||
|
* - `message`: This flag contains an optional custom error message to be
|
|||
|
* prepended to the error message that's generated by the assertion when it
|
|||
|
* fails.
|
|||
|
*
|
|||
|
* - `ssfi`: This flag stands for "start stack function indicator". It
|
|||
|
* contains a function reference that serves as the starting point for
|
|||
|
* removing frames from the stack trace of the error that's created by the
|
|||
|
* assertion when it fails. The goal is to provide a cleaner stack trace to
|
|||
|
* end users by removing Chai's internal functions. Note that it only works
|
|||
|
* in environments that support `Error.captureStackTrace`, and only when
|
|||
|
* `Chai.config.includeStack` hasn't been set to `false`.
|
|||
|
*
|
|||
|
* - `lockSsfi`: This flag controls whether or not the given `ssfi` flag
|
|||
|
* should retain its current value, even as assertions are chained off of
|
|||
|
* this object. This is usually set to `true` when creating a new assertion
|
|||
|
* from within another assertion. It's also temporarily set to `true` before
|
|||
|
* an overwritten assertion gets called by the overwriting assertion.
|
|||
|
*
|
|||
|
* @param {Mixed} obj target of the assertion
|
|||
|
* @param {String} msg (optional) custom error message
|
|||
|
* @param {Function} ssfi (optional) starting point for removing stack frames
|
|||
|
* @param {Boolean} lockSsfi (optional) whether or not the ssfi flag is locked
|
|||
|
* @api private
|
|||
|
*/
|
|||
|
function o(e,n,i,s){return r(this,"ssfi",i||o),r(this,"lockSsfi",s),r(this,"object",e),r(this,"message",n),t.proxify(this)}e.Assertion=o,Object.defineProperty(o,"includeStack",{get:function(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),i.includeStack},set:function(e){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),i.includeStack=e}}),Object.defineProperty(o,"showDiff",{get:function(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),i.showDiff},set:function(e){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),i.showDiff=e}}),o.addProperty=function(e,n){t.addProperty(this.prototype,e,n)},o.addMethod=function(e,n){t.addMethod(this.prototype,e,n)},o.addChainableMethod=function(e,n,i){t.addChainableMethod(this.prototype,e,n,i)},o.overwriteProperty=function(e,n){t.overwriteProperty(this.prototype,e,n)},o.overwriteMethod=function(e,n){t.overwriteMethod(this.prototype,e,n)},o.overwriteChainableMethod=function(e,n,i){t.overwriteChainableMethod(this.prototype,e,n,i)},o.prototype.assert=function(e,o,s,a,c,l){var u=t.test(this,arguments);if(!1!==l&&(l=!0),void 0===a&&void 0===c&&(l=!1),!0!==i.showDiff&&(l=!1),!u){o=t.getMessage(this,arguments);var h=t.getActual(this,arguments);throw new n(o,{actual:h,expected:a,showDiff:l},i.includeStack?this.assert:r(this,"ssfi"))}},
|
|||
|
/*!
|
|||
|
* ### ._obj
|
|||
|
*
|
|||
|
* Quick reference to stored `actual` value for plugin developers.
|
|||
|
*
|
|||
|
* @api private
|
|||
|
*/
|
|||
|
Object.defineProperty(o.prototype,"_obj",{get:function(){return r(this,"object")},set:function(e){r(this,"object",e)}})}},function(e,t){e.exports=Number.isNaN||
|
|||
|
/*!
|
|||
|
* Chai - isNaN utility
|
|||
|
* Copyright(c) 2012-2015 Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
|
|||
|
* MIT Licensed
|
|||
|
*/
|
|||
|
function(e){return e!=e}},function(e,t,n){
|
|||
|
/*!
|
|||
|
* Chai - getOwnEnumerableProperties utility
|
|||
|
* Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
|
|||
|
* MIT Licensed
|
|||
|
*/
|
|||
|
/*!
|
|||
|
* Module dependancies
|
|||
|
*/
|
|||
|
var i=n(103);e.exports=function(e){return Object.keys(e).concat(i(e))}},function(e,t,n){
|
|||
|
/*!
|
|||
|
* Chai - compareByInspect utility
|
|||
|
* Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
|
|||
|
* MIT Licensed
|
|||
|
*/
|
|||
|
/*!
|
|||
|
* Module dependancies
|
|||
|
*/
|
|||
|
var i=n(79);e.exports=function(e,t){return i(e)<i(t)?-1:1}},function(e,t,n){
|
|||
|
/*!
|
|||
|
* Chai - overwriteChainableMethod utility
|
|||
|
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|||
|
* MIT Licensed
|
|||
|
*/
|
|||
|
var i=n(60),r=n(58);e.exports=function(e,t,n,o){var s=e.__methods[t],a=s.chainingBehavior;s.chainingBehavior=function(){var e=o(a).call(this);if(void 0!==e)return e;var t=new i.Assertion;return r(this,t),t};var c=s.method;s.method=function(){var e=n(c).apply(this,arguments);if(void 0!==e)return e;var t=new i.Assertion;return r(this,t),t}}},function(e,t,n){
|
|||
|
/*!
|
|||
|
* Chai - addChainingMethod utility
|
|||
|
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|||
|
* MIT Licensed
|
|||
|
*/
|
|||
|
/*!
|
|||
|
* Module dependencies
|
|||
|
*/
|
|||
|
var i=n(77),r=n(60),o=n(51),s=n(76),a=n(58),c="function"==typeof Object.setPrototypeOf,l=function(){},u=Object.getOwnPropertyNames(l).filter(function(e){var t=Object.getOwnPropertyDescriptor(l,e);return"object"!=typeof t||!t.configurable}),h=Function.prototype.call,d=Function.prototype.apply;e.exports=function(e,t,n,l){"function"!=typeof l&&(l=function(){});var f={method:n,chainingBehavior:l};e.__methods||(e.__methods={}),e.__methods[t]=f,Object.defineProperty(e,t,{get:function(){f.chainingBehavior.call(this);var n=function(){o(this,"lockSsfi")||o(this,"ssfi",n);var e=f.method.apply(this,arguments);if(void 0!==e)return e;var t=new r.Assertion;return a(this,t),t};if(i(n,t,!0),c){var l=Object.create(this);l.call=h,l.apply=d,Object.setPrototypeOf(n,l)}else{Object.getOwnPropertyNames(e).forEach(function(t){if(-1===u.indexOf(t)){var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,i)}})}return a(this,n),s(n)},configurable:!0})}},function(e,t,n){
|
|||
|
/*!
|
|||
|
* Chai - overwriteMethod utility
|
|||
|
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|||
|
* MIT Licensed
|
|||
|
*/
|
|||
|
var i=n(77),r=n(60),o=n(51),s=n(76),a=n(58);e.exports=function(e,t,n){var c=e[t],l=function(){throw new Error(t+" is not a function")};c&&"function"==typeof c&&(l=c);var u=function(){o(this,"lockSsfi")||o(this,"ssfi",u);var e=o(this,"lockSsfi");o(this,"lockSsfi",!0);var t=n(l).apply(this,arguments);if(o(this,"lockSsfi",e),void 0!==t)return t;var i=new r.Assertion;return a(this,i),i};i(u,t,!1),e[t]=s(u,t)}},function(e,t,n){
|
|||
|
/*!
|
|||
|
* Chai - overwriteProperty utility
|
|||
|
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|||
|
* MIT Licensed
|
|||
|
*/
|
|||
|
var i=n(60),r=n(51),o=n(78),s=n(58);e.exports=function(e,t,n){var a=Object.getOwnPropertyDescriptor(e,t),c=function(){};a&&"function"==typeof a.get&&(c=a.get),Object.defineProperty(e,t,{get:function e(){o()||r(this,"lockSsfi")||r(this,"ssfi",e);var t=r(this,"lockSsfi");r(this,"lockSsfi",!0);var a=n(c).call(this);if(r(this,"lockSsfi",t),void 0!==a)return a;var l=new i.Assertion;return s(this,l),l},configurable:!0})}},function(e,t,n){
|
|||
|
/*!
|
|||
|
* Chai - addMethod utility
|
|||
|
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|||
|
* MIT Licensed
|
|||
|
*/
|
|||
|
var i=n(77),r=n(60),o=n(51),s=n(76),a=n(58);e.exports=function(e,t,n){var c=function(){o(this,"lockSsfi")||o(this,"ssfi",c);var e=n.apply(this,arguments);if(void 0!==e)return e;var t=new r.Assertion;return a(this,t),t};i(c,t,!1),e[t]=s(c,t)}},function(e,t,n){
|
|||
|
/*!
|
|||
|
* Chai - addProperty utility
|
|||
|
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|||
|
* MIT Licensed
|
|||
|
*/
|
|||
|
var i=n(60),r=n(51),o=n(78),s=n(58);e.exports=function(e,t,n){n=void 0===n?function(){}:n,Object.defineProperty(e,t,{get:function e(){o()||r(this,"lockSsfi")||r(this,"ssfi",e);var t=n.call(this);if(void 0!==t)return t;var a=new i.Assertion;return s(this,a),a},configurable:!0})}},function(e,t,n){"use strict";
|
|||
|
/*!
|
|||
|
* deep-eql
|
|||
|
* Copyright(c) 2013 Jake Luer <jake@alogicalparadox.com>
|
|||
|
* MIT Licensed
|
|||
|
*/var i=n(87);function r(){this._key="chai/deep-eql__"+Math.random()+Date.now()}r.prototype={get:function(e){return e[this._key]},set:function(e,t){Object.isExtensible(e)&&Object.defineProperty(e,this._key,{value:t,configurable:!0})}};var o="function"==typeof WeakMap?WeakMap:r;
|
|||
|
/*!
|
|||
|
* Check to see if the MemoizeMap has recorded a result of the two operands
|
|||
|
*
|
|||
|
* @param {Mixed} leftHandOperand
|
|||
|
* @param {Mixed} rightHandOperand
|
|||
|
* @param {MemoizeMap} memoizeMap
|
|||
|
* @returns {Boolean|null} result
|
|||
|
*/function s(e,t,n){if(!n||m(e)||m(t))return null;var i=n.get(e);if(i){var r=i.get(t);if("boolean"==typeof r)return r}return null}
|
|||
|
/*!
|
|||
|
* Set the result of the equality into the MemoizeMap
|
|||
|
*
|
|||
|
* @param {Mixed} leftHandOperand
|
|||
|
* @param {Mixed} rightHandOperand
|
|||
|
* @param {MemoizeMap} memoizeMap
|
|||
|
* @param {Boolean} result
|
|||
|
*/function a(e,t,n,i){if(n&&!m(e)&&!m(t)){var r=n.get(e);r?r.set(t,i):((r=new o).set(t,i),n.set(e,r))}}
|
|||
|
/*!
|
|||
|
* Primary Export
|
|||
|
*/function c(e,t,n){if(n&&n.comparator)return u(e,t,n);var i=l(e,t);return null!==i?i:u(e,t,n)}function l(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t||!m(e)&&!m(t)&&null}
|
|||
|
/*!
|
|||
|
* The main logic of the `deepEqual` function.
|
|||
|
*
|
|||
|
* @param {Mixed} leftHandOperand
|
|||
|
* @param {Mixed} rightHandOperand
|
|||
|
* @param {Object} [options] (optional) Additional options
|
|||
|
* @param {Array} [options.comparator] (optional) Override default algorithm, determining custom equality.
|
|||
|
* @param {Array} [options.memoize] (optional) Provide a custom memoization object which will cache the results of
|
|||
|
complex objects for a speed boost. By passing `false` you can disable memoization, but this will cause circular
|
|||
|
references to blow the stack.
|
|||
|
* @return {Boolean} equal match
|
|||
|
*/function u(e,t,n){(n=n||{}).memoize=!1!==n.memoize&&(n.memoize||new o);var r=n&&n.comparator,u=s(e,t,n.memoize);if(null!==u)return u;var m=s(t,e,n.memoize);if(null!==m)return m;if(r){var v=r(e,t);if(!1===v||!0===v)return a(e,t,n.memoize,v),v;var y=l(e,t);if(null!==y)return y}var b=i(e);if(b!==i(t))return a(e,t,n.memoize,!1),!1;a(e,t,n.memoize,!0);var w=function(e,t,n,i){switch(n){case"String":case"Number":case"Boolean":case"Date":return c(e.valueOf(),t.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":case"Error":return e===t;case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return d(e,t,i);case"RegExp":
|
|||
|
/*!
|
|||
|
* Compare two Regular Expressions for equality.
|
|||
|
*
|
|||
|
* @param {RegExp} leftHandOperand
|
|||
|
* @param {RegExp} rightHandOperand
|
|||
|
* @return {Boolean} result
|
|||
|
*/
|
|||
|
return function(e,t){return e.toString()===t.toString()}
|
|||
|
/*!
|
|||
|
* Compare two Sets/Maps for equality. Faster than other equality functions.
|
|||
|
*
|
|||
|
* @param {Set} leftHandOperand
|
|||
|
* @param {Set} rightHandOperand
|
|||
|
* @param {Object} [options] (Optional)
|
|||
|
* @return {Boolean} result
|
|||
|
*/(e,t);case"Generator":
|
|||
|
/*!
|
|||
|
* Simple equality for generator objects such as those returned by generator functions.
|
|||
|
*
|
|||
|
* @param {Iterable} leftHandOperand
|
|||
|
* @param {Iterable} rightHandOperand
|
|||
|
* @param {Object} [options] (Optional)
|
|||
|
* @return {Boolean} result
|
|||
|
*/
|
|||
|
return function(e,t,n){return d(p(e),p(t),n)}
|
|||
|
/*!
|
|||
|
* Determine if the given object has an @@iterator function.
|
|||
|
*
|
|||
|
* @param {Object} target
|
|||
|
* @return {Boolean} `true` if the object has an @@iterator function.
|
|||
|
*/(e,t,i);case"DataView":return d(new Uint8Array(e.buffer),new Uint8Array(t.buffer),i);case"ArrayBuffer":return d(new Uint8Array(e),new Uint8Array(t),i);case"Set":case"Map":return h(e,t,i);default:
|
|||
|
/*!
|
|||
|
* Recursively check the equality of two Objects. Once basic sameness has been established it will defer to `deepEqual`
|
|||
|
* for each enumerable key in the object.
|
|||
|
*
|
|||
|
* @param {Mixed} leftHandOperand
|
|||
|
* @param {Mixed} rightHandOperand
|
|||
|
* @param {Object} [options] (Optional)
|
|||
|
* @return {Boolean} result
|
|||
|
*/
|
|||
|
return function(e,t,n){var i=g(e),r=g(t);if(i.length&&i.length===r.length)return i.sort(),r.sort(),!1!==d(i,r)&&
|
|||
|
/*!
|
|||
|
* Determines if two objects have matching values, given a set of keys. Defers to deepEqual for the equality check of
|
|||
|
* each key. If any value of the given key is not equal, the function will return false (early).
|
|||
|
*
|
|||
|
* @param {Mixed} leftHandOperand
|
|||
|
* @param {Mixed} rightHandOperand
|
|||
|
* @param {Array} keys An array of keys to compare the values of leftHandOperand and rightHandOperand against
|
|||
|
* @param {Object} [options] (Optional)
|
|||
|
* @return {Boolean} result
|
|||
|
*/
|
|||
|
function(e,t,n,i){var r=n.length;if(0===r)return!0;for(var o=0;o<r;o+=1)if(!1===c(e[n[o]],t[n[o]],i))return!1;return!0}(e,t,i,n);var o=f(e),s=f(t);if(o.length&&o.length===s.length)return o.sort(),s.sort(),d(o,s,n);if(0===i.length&&0===o.length&&0===r.length&&0===s.length)return!0;return!1}
|
|||
|
/*!
|
|||
|
* Returns true if the argument is a primitive.
|
|||
|
*
|
|||
|
* This intentionally returns true for all objects that can be compared by reference,
|
|||
|
* including functions and symbols.
|
|||
|
*
|
|||
|
* @param {Mixed} value
|
|||
|
* @return {Boolean} result
|
|||
|
*/(e,t,i)}}(e,t,b,n);return a(e,t,n.memoize,w),w}function h(e,t,n){if(e.size!==t.size)return!1;if(0===e.size)return!0;var i=[],r=[];return e.forEach(function(e,t){i.push([e,t])}),t.forEach(function(e,t){r.push([e,t])}),d(i.sort(),r.sort(),n)}
|
|||
|
/*!
|
|||
|
* Simple equality for flat iterable objects such as Arrays, TypedArrays or Node.js buffers.
|
|||
|
*
|
|||
|
* @param {Iterable} leftHandOperand
|
|||
|
* @param {Iterable} rightHandOperand
|
|||
|
* @param {Object} [options] (Optional)
|
|||
|
* @return {Boolean} result
|
|||
|
*/function d(e,t,n){var i=e.length;if(i!==t.length)return!1;if(0===i)return!0;for(var r=-1;++r<i;)if(!1===c(e[r],t[r],n))return!1;return!0}
|
|||
|
/*!
|
|||
|
* Gets all iterator entries from the given Object. If the Object has no @@iterator function, returns an empty array.
|
|||
|
* This will consume the iterator - which could have side effects depending on the @@iterator implementation.
|
|||
|
*
|
|||
|
* @param {Object} target
|
|||
|
* @returns {Array} an array of entries from the @@iterator function
|
|||
|
*/
|
|||
|
function f(e){if(function(e){return"undefined"!=typeof Symbol&&"object"==typeof e&&void 0!==Symbol.iterator&&"function"==typeof e[Symbol.iterator]}(e))try{return p(e[Symbol.iterator]())}catch(e){return[]}return[]}
|
|||
|
/*!
|
|||
|
* Gets all entries from a Generator. This will consume the generator - which could have side effects.
|
|||
|
*
|
|||
|
* @param {Generator} target
|
|||
|
* @returns {Array} an array of entries from the Generator.
|
|||
|
*/function p(e){for(var t=e.next(),n=[t.value];!1===t.done;)t=e.next(),n.push(t.value);return n}
|
|||
|
/*!
|
|||
|
* Gets all own and inherited enumerable keys from a target.
|
|||
|
*
|
|||
|
* @param {Object} target
|
|||
|
* @returns {Array} an array of own and inherited enumerable keys from the target.
|
|||
|
*/function g(e){var t=[];for(var n in e)t.push(n);return t}function m(e){return null===e||"object"!=typeof e}e.exports=c,e.exports.MemoizeMap=o},function(e,t){
|
|||
|
/*!
|
|||
|
* Chai - getEnumerableProperties utility
|
|||
|
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|||
|
* MIT Licensed
|
|||
|
*/
|
|||
|
e.exports=function(e){var t=[];for(var n in e)t.push(n);return t}},function(e,t,n){
|
|||
|
/*!
|
|||
|
* Chai - message composition utility
|
|||
|
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|||
|
* MIT Licensed
|
|||
|
*/
|
|||
|
/*!
|
|||
|
* Module dependancies
|
|||
|
*/
|
|||
|
var i=n(51),r=n(107),o=(n(79),n(104));e.exports=function(e,t){var n=i(e,"negate"),s=i(e,"object"),a=t[3],c=r(e,t),l=n?t[2]:t[1],u=i(e,"message");return"function"==typeof l&&(l=l()),l=(l=l||"").replace(/#\{this\}/g,function(){return o(s)}).replace(/#\{act\}/g,function(){return o(c)}).replace(/#\{exp\}/g,function(){return o(a)}),u?u+": "+l:l}},function(e,t,n){
|
|||
|
/*!
|
|||
|
* Chai - expectTypes utility
|
|||
|
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|||
|
* MIT Licensed
|
|||
|
*/
|
|||
|
var i=n(108),r=n(51),o=n(87);e.exports=function(e,t){var n=r(e,"message"),s=r(e,"ssfi");n=n?n+": ":"",e=r(e,"object"),(t=t.map(function(e){return e.toLowerCase()})).sort();var a=t.map(function(e,n){var i=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an":"a";return(t.length>1&&n===t.length-1?"or ":"")+i+" "+e}).join(", "),c=o(e).toLowerCase();if(!t.some(function(e){return c===e}))throw new i(n+"object tested must be "+a+", but "+c+" given",void 0,s)}},function(e,t,n){
|
|||
|
/*!
|
|||
|
* Chai - test utility
|
|||
|
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|||
|
* MIT Licensed
|
|||
|
*/
|
|||
|
/*!
|
|||
|
* Module dependancies
|
|||
|
*/
|
|||
|
var i=n(51);e.exports=function(e,t){var n=i(e,"negate"),r=t[0];return n?!r:r}},function(e,t,n){"use strict";function i(e,t){return void 0!==e&&null!==e&&t in Object(e)}function r(e){return e.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map(function(e){var t=/^\[(\d+)\]$/.exec(e);return t?{i:parseFloat(t[1])}:{p:e.replace(/\\([.\[\]])/g,"$1")}})}function o(e,t,n){var i=e,r=null;n=void 0===n?t.length:n;for(var o=0;o<n;o++){var s=t[o];i&&(i=void 0===s.p?i[s.i]:i[s.p],o===n-1&&(r=i))}return r}function s(e,t){var n=r(t),s=n[n.length-1],a={parent:n.length>1?o(e,n,n.length-1):e,name:s.p||s.i,value:o(e,n)};return a.exists=i(a.parent,a.name),a}e.exports={hasProperty:i,getPathInfo:s,getPathValue:function(e,t){return s(e,t).value},setPathValue:function(e,t,n){return function(e,t,n){for(var i=e,r=n.length,o=null,s=0;s<r;s++){var a=null,c=null;if(o=n[s],s===r-1)i[a=void 0===o.p?o.i:o.p]=t;else if(void 0!==o.p&&i[o.p])i=i[o.p];else if(void 0!==o.i&&i[o.i])i=i[o.i];else{var l=n[s+1];a=void 0===o.p?o.i:o.p,c=void 0===l.p?[]:{},i[a]=c,i=i[a]}}}(e,n,r(t)),e}}},function(e,t,n){
|
|||
|
/*!
|
|||
|
* chai
|
|||
|
* Copyright(c) 2011 Jake Luer <jake@alogicalparadox.com>
|
|||
|
* MIT Licensed
|
|||
|
*/
|
|||
|
/*!
|
|||
|
* Dependencies that are used for multiple exports are required here only once
|
|||
|
*/
|
|||
|
var i=n(178);
|
|||
|
/*!
|
|||
|
* test utility
|
|||
|
*/t.test=n(177),
|
|||
|
/*!
|
|||
|
* type utility
|
|||
|
*/
|
|||
|
t.type=n(87),
|
|||
|
/*!
|
|||
|
* expectTypes utility
|
|||
|
*/
|
|||
|
t.expectTypes=n(176),
|
|||
|
/*!
|
|||
|
* message utility
|
|||
|
*/
|
|||
|
t.getMessage=n(175),
|
|||
|
/*!
|
|||
|
* actual utility
|
|||
|
*/
|
|||
|
t.getActual=n(107),
|
|||
|
/*!
|
|||
|
* Inspect util
|
|||
|
*/
|
|||
|
t.inspect=n(79),
|
|||
|
/*!
|
|||
|
* Object Display util
|
|||
|
*/
|
|||
|
t.objDisplay=n(104),
|
|||
|
/*!
|
|||
|
* Flag utility
|
|||
|
*/
|
|||
|
t.flag=n(51),
|
|||
|
/*!
|
|||
|
* Flag transferring utility
|
|||
|
*/
|
|||
|
t.transferFlags=n(58),
|
|||
|
/*!
|
|||
|
* Deep equal utility
|
|||
|
*/
|
|||
|
t.eql=n(173),
|
|||
|
/*!
|
|||
|
* Deep path info
|
|||
|
*/
|
|||
|
t.getPathInfo=i.getPathInfo,
|
|||
|
/*!
|
|||
|
* Check if a property exists
|
|||
|
*/
|
|||
|
t.hasProperty=i.hasProperty,
|
|||
|
/*!
|
|||
|
* Function name
|
|||
|
*/
|
|||
|
t.getName=n(106),
|
|||
|
/*!
|
|||
|
* add Property
|
|||
|
*/
|
|||
|
t.addProperty=n(172),
|
|||
|
/*!
|
|||
|
* add Method
|
|||
|
*/
|
|||
|
t.addMethod=n(171),
|
|||
|
/*!
|
|||
|
* overwrite Property
|
|||
|
*/
|
|||
|
t.overwriteProperty=n(170),
|
|||
|
/*!
|
|||
|
* overwrite Method
|
|||
|
*/
|
|||
|
t.overwriteMethod=n(169),
|
|||
|
/*!
|
|||
|
* Add a chainable method
|
|||
|
*/
|
|||
|
t.addChainableMethod=n(168),
|
|||
|
/*!
|
|||
|
* Overwrite chainable method
|
|||
|
*/
|
|||
|
t.overwriteChainableMethod=n(167),
|
|||
|
/*!
|
|||
|
* Compare by inspect method
|
|||
|
*/
|
|||
|
t.compareByInspect=n(166),
|
|||
|
/*!
|
|||
|
* Get own enumerable property symbols method
|
|||
|
*/
|
|||
|
t.getOwnEnumerablePropertySymbols=n(103),
|
|||
|
/*!
|
|||
|
* Get own enumerable properties method
|
|||
|
*/
|
|||
|
t.getOwnEnumerableProperties=n(165),
|
|||
|
/*!
|
|||
|
* Checks error against a given set of criteria
|
|||
|
*/
|
|||
|
t.checkError=n(102),
|
|||
|
/*!
|
|||
|
* Proxify util
|
|||
|
*/
|
|||
|
t.proxify=n(76),
|
|||
|
/*!
|
|||
|
* addLengthGuard util
|
|||
|
*/
|
|||
|
t.addLengthGuard=n(77),
|
|||
|
/*!
|
|||
|
* isProxyEnabled helper
|
|||
|
*/
|
|||
|
t.isProxyEnabled=n(78),
|
|||
|
/*!
|
|||
|
* isNaN method
|
|||
|
*/
|
|||
|
t.isNaN=n(164)},function(e,t,n){e.exports=n(60)},,,function(e,t){for(var n=[],i=0;i<256;++i)n[i]=(i+256).toString(16).substr(1);e.exports=function(e,t){var i=t||0,r=n;return r[e[i++]]+r[e[i++]]+r[e[i++]]+r[e[i++]]+"-"+r[e[i++]]+r[e[i++]]+"-"+r[e[i++]]+r[e[i++]]+"-"+r[e[i++]]+r[e[i++]]+"-"+r[e[i++]]+r[e[i++]]+r[e[i++]]+r[e[i++]]+r[e[i++]]+r[e[i++]]}},function(e,t){var n="undefined"!=typeof crypto&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&msCrypto.getRandomValues.bind(msCrypto);if(n){var i=new Uint8Array(16);e.exports=function(){return n(i),i}}else{var r=new Array(16);e.exports=function(){for(var e,t=0;t<16;t++)0==(3&t)&&(e=4294967296*Math.random()),r[t]=e>>>((3&t)<<3)&255;return r}}},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t,n){"use strict";var i=n(114),r=n(42),o=n(91),s=n(90),a=n(67),c=n(121),l=n(56);function u(e,t){this.options=e,this.loadOptions=t}u.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,n;if(e.skip(22),this.fileNameLength=e.readInt(2),n=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(n),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough informations from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in c)if(c.hasOwnProperty(t)&&c[t].magic===e)return c[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+r.pretty(this.compressionMethod)+" unknown (inner file : "+r.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0===e&&(this.dosPermissions=63&this.externalFileAttributes),3===e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(e){if(this.extraFields[1]){var t=i(this.extraFields[1].value);this.uncompressedSize===r.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===r.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===r.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===r.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(e){var t,n,i,r=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index<r;)t=e.readInt(2),n=e.readInt(2),i=e.readData(n),this.extraFields[t]={id:t,length:n,value:i}},handleUTF8:function(){var e=l.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=a.utf8decode(this.fileName),this.fileCommentStr=a.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var n=r.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(n)}var i=this.findExtraFieldUnicodeComment();if(null!==i)this.fileCommentStr=i;else{var o=r.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(o)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=i(e.value);return 1!==t.readInt(1)?null:s(this.fileName)!==t.
|
|||
|
//# sourceMappingURL=vendor.bundle.js.map
|