@usebruno/js 0.14.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +22 -4
- package/src/bru.js +35 -12
- package/src/interpolate-string.js +2 -2
- package/src/runtime/assert-runtime.js +44 -20
- package/src/runtime/script-runtime.js +62 -23
- package/src/runtime/test-runtime.js +63 -47
- package/src/runtime/vars-runtime.js +44 -21
- package/src/sandbox/bundle-browser-rollup.js +502 -0
- package/src/sandbox/bundle-libraries.js +88 -0
- package/src/sandbox/quickjs/index.js +193 -0
- package/src/sandbox/quickjs/shims/bru.js +87 -0
- package/src/sandbox/quickjs/shims/bruno-request.js +112 -0
- package/src/sandbox/quickjs/shims/bruno-response.js +55 -0
- package/src/sandbox/quickjs/shims/console.js +46 -0
- package/src/sandbox/quickjs/shims/lib/axios.js +72 -0
- package/src/sandbox/quickjs/shims/lib/index.js +13 -0
- package/src/sandbox/quickjs/shims/lib/nanoid.js +24 -0
- package/src/sandbox/quickjs/shims/lib/path.js +28 -0
- package/src/sandbox/quickjs/shims/lib/uuid.js +30 -0
- package/src/sandbox/quickjs/shims/local-module.js +35 -0
- package/src/sandbox/quickjs/shims/test.js +63 -0
- package/src/sandbox/quickjs/utils/index.js +33 -0
- package/src/utils.js +6 -1
|
@@ -0,0 +1,502 @@
|
|
|
1
|
+
|
|
2
|
+
const getBundledCode = () => {
|
|
3
|
+
return function(){
|
|
4
|
+
!function(){"use strict";function e(e,t){return t.forEach((function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach((function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}}))})),Object.freeze(e)}var t="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function r(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var n=function e(){if(this instanceof e){var n=[null];return n.push.apply(n,arguments),new(Function.bind.apply(t,n))}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach((function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})})),n}var i={},o={get exports(){return i},set exports(e){i=e}},s={};
|
|
5
|
+
/*!
|
|
6
|
+
* assertion-error
|
|
7
|
+
* Copyright(c) 2013 Jake Luer <jake@qualiancy.com>
|
|
8
|
+
* MIT Licensed
|
|
9
|
+
*/
|
|
10
|
+
/*!
|
|
11
|
+
* Return a function that will copy properties from
|
|
12
|
+
* one object to another excluding any originally
|
|
13
|
+
* listed. Returned function will create a new `{}`.
|
|
14
|
+
*
|
|
15
|
+
* @param {String} excluded properties ...
|
|
16
|
+
* @return {Function}
|
|
17
|
+
*/
|
|
18
|
+
function a(){var e=[].slice.call(arguments);function t(t,n){Object.keys(n).forEach((function(r){~e.indexOf(r)||(t[r]=n[r])}))}return function(){for(var e=[].slice.call(arguments),n=0,r={};n<e.length;n++)t(r,e[n]);return r}}
|
|
19
|
+
/*!
|
|
20
|
+
* Primary Exports
|
|
21
|
+
*/var u=c;function c(e,t,n){var r=a("name","message","stack","constructor","toJSON")(t||{});for(var i in this.message=e||"Unspecified AssertionError",this.showDiff=!1,r)this[i]=r[i];if(n=n||c,Error.captureStackTrace)Error.captureStackTrace(this,n);else try{throw new Error}catch(e){this.stack=e.stack}}
|
|
22
|
+
/*!
|
|
23
|
+
* Inherit from Error.prototype
|
|
24
|
+
*/c.prototype=Object.create(Error.prototype),
|
|
25
|
+
/*!
|
|
26
|
+
* Statically set name
|
|
27
|
+
*/
|
|
28
|
+
c.prototype.name="AssertionError",
|
|
29
|
+
/*!
|
|
30
|
+
* Ensure correct constructor
|
|
31
|
+
*/
|
|
32
|
+
c.prototype.constructor=c,c.prototype.toJSON=function(e){var t=a("constructor","toJSON","stack")({name:this.name},this);return!1!==e&&this.stack&&(t.stack=this.stack),t};var h={};function l(e,t){return null!=e&&t in Object(e)}function f(e){return e.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map((function(e){if("constructor"===e||"__proto__"===e||"prototype"===e)return{};var t=/^\[(\d+)\]$/.exec(e);return t?{i:parseFloat(t[1])}:{p:e.replace(/\\([.[\]])/g,"$1")}}))}function d(e,t,n){var r=e,i=null;n=void 0===n?t.length:n;for(var o=0;o<n;o++){var s=t[o];r&&(r=void 0===s.p?r[s.i]:r[s.p],o===n-1&&(i=r))}return i}function p(e,t){var n=f(t),r=n[n.length-1],i={parent:n.length>1?d(e,n,n.length-1):e,name:r.p||r.i,value:d(e,n)};return i.exists=l(i.parent,i.name),i}var y={hasProperty:l,getPathInfo:p,getPathValue:function(e,t){return p(e,t).value},setPathValue:function(e,t,n){return function(e,t,n){for(var r=e,i=n.length,o=null,s=0;s<i;s++){var a=null,u=null;if(o=n[s],s===i-1)r[a=void 0===o.p?o.i:o.p]=t;else if(void 0!==o.p&&r[o.p])r=r[o.p];else if(void 0!==o.i&&r[o.i])r=r[o.i];else{var c=n[s+1];a=void 0===o.p?o.i:o.p,u=void 0===c.p?[]:{},r[a]=u,r=r[a]}}}(e,n,f(t)),e}},g=function(e,t,n){var r=e.__flags||(e.__flags=Object.create(null));if(3!==arguments.length)return r[t];r[t]=n},m=g,v=function(e,t){var n=m(e,"negate"),r=t[0];return n?!r:r},w={};
|
|
33
|
+
/*!
|
|
34
|
+
* Chai - flag utility
|
|
35
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
36
|
+
* MIT Licensed
|
|
37
|
+
*/({get exports(){return w},set exports(e){w=e}}).exports=function(){var e="function"==typeof Promise,n="object"==typeof self?self:t,r="undefined"!=typeof Symbol,i="undefined"!=typeof Map,o="undefined"!=typeof Set,s="undefined"!=typeof WeakMap,a="undefined"!=typeof WeakSet,u="undefined"!=typeof DataView,c=r&&void 0!==Symbol.iterator,h=r&&void 0!==Symbol.toStringTag,l=o&&"function"==typeof Set.prototype.entries,f=i&&"function"==typeof Map.prototype.entries,d=l&&Object.getPrototypeOf((new Set).entries()),p=f&&Object.getPrototypeOf((new Map).entries()),y=c&&"function"==typeof Array.prototype[Symbol.iterator],g=y&&Object.getPrototypeOf([][Symbol.iterator]()),m=c&&"function"==typeof String.prototype[Symbol.iterator],v=m&&Object.getPrototypeOf(""[Symbol.iterator]()),w=8,b=-1;function _(t){var r=typeof t;if("object"!==r)return r;if(null===t)return"null";if(t===n)return"global";if(Array.isArray(t)&&(!1===h||!(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 c=h&&t[Symbol.toStringTag];if("string"==typeof c)return c;var l=Object.getPrototypeOf(t);return l===RegExp.prototype?"RegExp":l===Date.prototype?"Date":e&&l===Promise.prototype?"Promise":o&&l===Set.prototype?"Set":i&&l===Map.prototype?"Map":a&&l===WeakSet.prototype?"WeakSet":s&&l===WeakMap.prototype?"WeakMap":u&&l===DataView.prototype?"DataView":i&&l===p?"Map Iterator":o&&l===d?"Set Iterator":y&&l===g?"Array Iterator":m&&l===v?"String Iterator":null===l?"Object":Object.prototype.toString.call(t).slice(w,b)}return _}();
|
|
38
|
+
/*!
|
|
39
|
+
* Chai - expectTypes utility
|
|
40
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
41
|
+
* MIT Licensed
|
|
42
|
+
*/
|
|
43
|
+
var b=u,_=g,x=w,k=function(e,t){var n=_(e,"message"),r=_(e,"ssfi");n=n?n+": ":"",e=_(e,"object"),(t=t.map((function(e){return e.toLowerCase()}))).sort();var i=t.map((function(e,n){var r=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an":"a";return(t.length>1&&n===t.length-1?"or ":"")+r+" "+e})).join(", "),o=x(e).toLowerCase();if(!t.some((function(e){return o===e})))throw new b(n+"object tested must be "+i+", but "+o+" given",void 0,r)},S=function(e,t){return t.length>4?t[4]:e._obj},M=Function.prototype.toString,O=/\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\s\(\/]+)/;var D=function(e){if("function"!=typeof e)return null;var t="";if(void 0===Function.prototype.name&&void 0===e.name){var n=M.call(e);if(n.indexOf("(")>512)return t;var r=n.match(O);r&&(t=r[1])}else t=e.name;return t};const A={bold:["1","22"],dim:["2","22"],italic:["3","23"],underline:["4","24"],inverse:["7","27"],hidden:["8","28"],strike:["9","29"],black:["30","39"],red:["31","39"],green:["32","39"],yellow:["33","39"],blue:["34","39"],magenta:["35","39"],cyan:["36","39"],white:["37","39"],brightblack:["30;1","39"],brightred:["31;1","39"],brightgreen:["32;1","39"],brightyellow:["33;1","39"],brightblue:["34;1","39"],brightmagenta:["35;1","39"],brightcyan:["36;1","39"],brightwhite:["37;1","39"],grey:["90","39"]},E={special:"cyan",number:"yellow",bigint:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",symbol:"green",date:"magenta",regexp:"red"},B="…";function N(e,t){const n=A[E[t]]||A[t];return n?`[${n[0]}m${String(e)}[${n[1]}m`:String(e)}function P(e,t,n=B){e=String(e);const r=n.length,i=e.length;return r>t&&i>r?n:i>t&&i>r?`${e.slice(0,t-r)}${n}`:e}function T(e,t,n,r=", "){n=n||t.inspect;const i=e.length;if(0===i)return"";const o=t.truncate;let s="",a="",u="";for(let c=0;c<i;c+=1){const i=c+1===e.length,h=c+2===e.length;u=`${B}(${e.length-c})`;const l=e[c];t.truncate=o-s.length-(i?0:r.length);const f=a||n(l,t)+(i?"":r),d=s.length+f.length,p=d+u.length;if(i&&d>o&&s.length+u.length<=o)break;if(!i&&!h&&p>o)break;if(a=i?"":n(e[c+1],t)+(h?"":r),!i&&h&&p>o&&d+a.length>o)break;if(s+=f,!i&&!h&&d+a.length>=o){u=`${B}(${e.length-c-1})`;break}u=""}return`${s}${u}`}function C([e,t],n){return n.truncate-=2,"string"==typeof e?e=function(e){return e.match(/^[a-zA-Z_][a-zA-Z_0-9]*$/)?e:JSON.stringify(e).replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'")}(e):"number"!=typeof e&&(e=`[${n.inspect(e,n)}]`),n.truncate-=e.length,`${e}: ${t=n.inspect(t,n)}`}function Y(e,t){const n=(e=>"function"==typeof Buffer&&e instanceof Buffer?"Buffer":e[Symbol.toStringTag]?e[Symbol.toStringTag]:D(e.constructor))(e);t.truncate-=n.length+4;const r=Object.keys(e).slice(e.length);if(!e.length&&!r.length)return`${n}[]`;let i="";for(let n=0;n<e.length;n++){const r=`${t.stylize(P(e[n],t.truncate),"number")}${n===e.length-1?"":", "}`;if(t.truncate-=r.length,e[n]!==e.length&&t.truncate<=3){i+=`${B}(${e.length-e[n]+1})`;break}i+=r}let o="";return r.length&&(o=T(r.map((t=>[t,e[t]])),t,C)),`${n}[ ${i}${o?`, ${o}`:""} ]`}function j(e,t){const n=D(e);return n?t.stylize(`[Function ${P(n,t.truncate-11)}]`,"special"):t.stylize("[Function]","special")}function R([e,t],n){return n.truncate-=4,e=n.inspect(e,n),n.truncate-=e.length,`${e} => ${t=n.inspect(t,n)}`}const H=Number.isNaN||(e=>e!=e);function U(e,t){return H(e)?t.stylize("NaN","number"):e===1/0?t.stylize("Infinity","number"):e===-1/0?t.stylize("-Infinity","number"):0===e?t.stylize(1/e==1/0?"+0":"-0","number"):t.stylize(P(e,t.truncate),"number")}function z(e,t){let n=P(e.toString(),t.truncate-1);return n!==B&&(n+="n"),t.stylize(n,"bigint")}const I=new RegExp("['\\u0000-\\u001f\\u007f-\\u009f\\u00ad\\u0600-\\u0604\\u070f\\u17b4\\u17b5\\u200c-\\u200f\\u2028-\\u202f\\u2060-\\u206f\\ufeff\\ufff0-\\uffff]","g"),L={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r","'":"\\'","\\":"\\\\"},F=16,W=4;function V(e){return L[e]||`\\u${`0000${e.charCodeAt(0).toString(F)}`.slice(-W)}`}function q(e,t){return I.test(e)&&(e=e.replace(I,V)),t.stylize(`'${P(e,t.truncate-2)}'`,"string")}function $(e){return"description"in Symbol.prototype?e.description?`Symbol(${e.description})`:"Symbol()":e.toString()}let G=()=>"Promise{…}";try{const{getPromiseDetails:e,kPending:t,kRejected:n}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(G=(r,i)=>{const[o,s]=e(r);return o===t?"Promise{<pending>}":`Promise${o===n?"!":""}{${i.inspect(s,i)}}`})}catch(e){}var Z=G;function K(e,t){const n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[];if(0===n.length&&0===r.length)return"{}";if(t.truncate-=4,t.seen=t.seen||[],t.seen.indexOf(e)>=0)return"[Circular]";t.seen.push(e);const i=T(n.map((t=>[t,e[t]])),t,C),o=T(r.map((t=>[t,e[t]])),t,C);t.seen.pop();let s="";return i&&o&&(s=", "),`{ ${i}${s}${o} }`}const X=!("undefined"==typeof Symbol||!Symbol.toStringTag)&&Symbol.toStringTag;const J=["stack","line","column","name","message","fileName","lineNumber","columnNumber","number","description"];function Q([e,t],n){return n.truncate-=3,t?`${n.stylize(e,"yellow")}=${n.stylize(`"${t}"`,"string")}`:`${n.stylize(e,"yellow")}`}function ee(e,t){return T(e,t,te,"\n")}function te(e,t){const n=e.getAttributeNames(),r=e.tagName.toLowerCase(),i=t.stylize(`<${r}`,"special"),o=t.stylize(">","special"),s=t.stylize(`</${r}>`,"special");t.truncate-=2*r.length+5;let a="";n.length>0&&(a+=" ",a+=T(n.map((t=>[t,e.getAttribute(t)])),t,Q," ")),t.truncate-=a.length;const u=t.truncate;let c=ee(e.children,t);return c&&c.length>u&&(c=`${B}(${e.children.length})`),`${i}${a}${o}${c}${s}`}const ne="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("chai/inspect"):"@@chai/inspect";let re=!1;try{const e=require("util");re=!!e.inspect&&e.inspect.custom}catch(e){re=!1}function ie(){this.key="chai/loupe__"+Math.random()+Date.now()}ie.prototype={get:function(e){return e[this.key]},has:function(e){return this.key in e},set:function(e,t){Object.isExtensible(e)&&Object.defineProperty(e,this.key,{value:t,configurable:!0})}};const oe=new("function"==typeof WeakMap?WeakMap:ie),se={},ae={undefined:(e,t)=>t.stylize("undefined","undefined"),null:(e,t)=>t.stylize(null,"null"),boolean:(e,t)=>t.stylize(e,"boolean"),Boolean:(e,t)=>t.stylize(e,"boolean"),number:U,Number:U,bigint:z,BigInt:z,string:q,String:q,function:j,Function:j,symbol:$,Symbol:$,Array:function(e,t){const n=Object.keys(e).slice(e.length);if(!e.length&&!n.length)return"[]";t.truncate-=4;const r=T(e,t);t.truncate-=r.length;let i="";return n.length&&(i=T(n.map((t=>[t,e[t]])),t,C)),`[ ${r}${i?`, ${i}`:""} ]`},Date:function(e,t){const n=e.toJSON();if(null===n)return"Invalid Date";const r=n.split("T"),i=r[0];return t.stylize(`${i}T${P(r[1],t.truncate-i.length-1)}`,"date")},Map:function(e,t){return e.size-1<=0?"Map{}":(t.truncate-=7,`Map{ ${T(function(e){const t=[];return e.forEach(((e,n)=>{t.push([n,e])})),t}(e),t,R)} }`)},Set:function(e,t){return 0===e.size?"Set{}":(t.truncate-=7,`Set{ ${T(function(e){const t=[];return e.forEach((e=>{t.push(e)})),t}(e),t)} }`)},RegExp:function(e,t){const n=e.toString().split("/")[2],r=t.truncate-(2+n.length),i=e.source;return t.stylize(`/${P(i,r)}/${n}`,"regexp")},Promise:Z,WeakSet:(e,t)=>t.stylize("WeakSet{…}","special"),WeakMap:(e,t)=>t.stylize("WeakMap{…}","special"),Arguments:function(e,t){return 0===e.length?"Arguments[]":(t.truncate-=13,`Arguments[ ${T(e,t)} ]`)},Int8Array:Y,Uint8Array:Y,Uint8ClampedArray:Y,Int16Array:Y,Uint16Array:Y,Int32Array:Y,Uint32Array:Y,Float32Array:Y,Float64Array:Y,Generator:()=>"",DataView:()=>"",ArrayBuffer:()=>"",Error:function(e,t){const n=Object.getOwnPropertyNames(e).filter((e=>-1===J.indexOf(e))),r=e.name;t.truncate-=r.length;let i="";"string"==typeof e.message?i=P(e.message,t.truncate):n.unshift("message"),i=i?`: ${i}`:"",t.truncate-=i.length+5;const o=T(n.map((t=>[t,e[t]])),t,C);return`${r}${i}${o?` { ${o} }`:""}`},HTMLCollection:ee,NodeList:ee},ue=Object.prototype.toString;function ce(e,t){t=function({showHidden:e=!1,depth:t=2,colors:n=!1,customInspect:r=!0,showProxy:i=!1,maxArrayLength:o=1/0,breakLength:s=1/0,seen:a=[],truncate:u=1/0,stylize:c=String}={}){const h={showHidden:Boolean(e),depth:Number(t),colors:Boolean(n),customInspect:Boolean(r),showProxy:Boolean(i),maxArrayLength:Number(o),breakLength:Number(s),truncate:Number(u),seen:a,stylize:c};return h.colors&&(h.stylize=N),h}(t),t.inspect=ce;const{customInspect:n}=t;let r=null===e?"null":typeof e;if("object"===r&&(r=ue.call(e).slice(8,-1)),ae[r])return ae[r](e,t);if(n&&e){const n=((e,t,n)=>ne in e&&"function"==typeof e[ne]?e[ne](t):re&&re in e&&"function"==typeof e[re]?e[re](t.depth,t):"inspect"in e&&"function"==typeof e.inspect?e.inspect(t.depth,t):"constructor"in e&&oe.has(e.constructor)?oe.get(e.constructor)(e,t):se[n]?se[n](e,t):"")(e,t,r);if(n)return"string"==typeof n?n:ce(n,t)}const i=!!e&&Object.getPrototypeOf(e);return i===Object.prototype||null===i?K(e,t):e&&"function"==typeof HTMLElement&&e instanceof HTMLElement?te(e,t):"constructor"in e?e.constructor!==Object?function(e,t){let n="";return X&&X in e&&(n=e[X]),n=n||D(e.constructor),n&&"_class"!==n||(n="<Anonymous Class>"),t.truncate-=n.length,`${n}${K(e,t)}`}(e,t):K(e,t):e===Object(e)?K(e,t):t.stylize(String(e),r)}const he=ne;var le={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","catch","inspect","toJSON"],deepEqual:null},fe=r(Object.freeze({__proto__:null,inspect:ce,registerConstructor:function(e,t){return!oe.has(e)&&(oe.set(e,t),!0)},registerStringTag:function(e,t){return!(e in se)&&(se[e]=t,!0)},custom:he,default:ce})),de=le,pe=function(e,t,n,r){var i={colors:r,depth:void 0===n?2:n,showHidden:t,truncate:de.truncateThreshold?de.truncateThreshold:1/0};return fe.inspect(e,i)}
|
|
44
|
+
/*!
|
|
45
|
+
* Chai - flag utility
|
|
46
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
47
|
+
* MIT Licensed
|
|
48
|
+
*/
|
|
49
|
+
/*!
|
|
50
|
+
* Module dependencies
|
|
51
|
+
*/;var ye=pe,ge=le,me=function(e){var t=ye(e),n=Object.prototype.toString.call(e);if(ge.truncateThreshold&&t.length>=ge.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 r=Object.keys(e);return"{ Object ("+(r.length>2?r.splice(0,2).join(", ")+", ...":r.join(", "))+") }"}return t}return t},ve=g,we=S,be=me,_e=function(e,t){var n=ve(e,"negate"),r=ve(e,"object"),i=t[3],o=we(e,t),s=n?t[2]:t[1],a=ve(e,"message");return"function"==typeof s&&(s=s()),s=(s=s||"").replace(/#\{this\}/g,(function(){return be(r)})).replace(/#\{act\}/g,(function(){return be(o)})).replace(/#\{exp\}/g,(function(){return be(i)})),a?a+": "+s:s},xe=function(e,t,n){var r=e.__flags||(e.__flags=Object.create(null));for(var i in t.__flags||(t.__flags=Object.create(null)),n=3!==arguments.length||n,r)(n||"object"!==i&&"ssfi"!==i&&"lockSsfi"!==i&&"message"!=i)&&(t.__flags[i]=r[i])},ke={},Se={get exports(){return ke},set exports(e){ke=e}},Me=w;function Oe(){this._key="chai/deep-eql__"+Math.random()+Date.now()}Oe.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 De="function"==typeof WeakMap?WeakMap:Oe;
|
|
52
|
+
/*!
|
|
53
|
+
* Check to see if the MemoizeMap has recorded a result of the two operands
|
|
54
|
+
*
|
|
55
|
+
* @param {Mixed} leftHandOperand
|
|
56
|
+
* @param {Mixed} rightHandOperand
|
|
57
|
+
* @param {MemoizeMap} memoizeMap
|
|
58
|
+
* @returns {Boolean|null} result
|
|
59
|
+
*/function Ae(e,t,n){if(!n||ze(e)||ze(t))return null;var r=n.get(e);if(r){var i=r.get(t);if("boolean"==typeof i)return i}return null}
|
|
60
|
+
/*!
|
|
61
|
+
* Set the result of the equality into the MemoizeMap
|
|
62
|
+
*
|
|
63
|
+
* @param {Mixed} leftHandOperand
|
|
64
|
+
* @param {Mixed} rightHandOperand
|
|
65
|
+
* @param {MemoizeMap} memoizeMap
|
|
66
|
+
* @param {Boolean} result
|
|
67
|
+
*/function Ee(e,t,n,r){if(n&&!ze(e)&&!ze(t)){var i=n.get(e);i?i.set(t,r):((i=new De).set(t,r),n.set(e,i))}}
|
|
68
|
+
/*!
|
|
69
|
+
* Primary Export
|
|
70
|
+
*/function Be(e,t,n){if(n&&n.comparator)return Pe(e,t,n);var r=Ne(e,t);return null!==r?r:Pe(e,t,n)}function Ne(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t||!ze(e)&&!ze(t)&&null}
|
|
71
|
+
/*!
|
|
72
|
+
* The main logic of the `deepEqual` function.
|
|
73
|
+
*
|
|
74
|
+
* @param {Mixed} leftHandOperand
|
|
75
|
+
* @param {Mixed} rightHandOperand
|
|
76
|
+
* @param {Object} [options] (optional) Additional options
|
|
77
|
+
* @param {Array} [options.comparator] (optional) Override default algorithm, determining custom equality.
|
|
78
|
+
* @param {Array} [options.memoize] (optional) Provide a custom memoization object which will cache the results of
|
|
79
|
+
complex objects for a speed boost. By passing `false` you can disable memoization, but this will cause circular
|
|
80
|
+
references to blow the stack.
|
|
81
|
+
* @return {Boolean} equal match
|
|
82
|
+
*/function Pe(e,t,n){(n=n||{}).memoize=!1!==n.memoize&&(n.memoize||new De);var r=n&&n.comparator,i=Ae(e,t,n.memoize);if(null!==i)return i;var o=Ae(t,e,n.memoize);if(null!==o)return o;if(r){var s=r(e,t);if(!1===s||!0===s)return Ee(e,t,n.memoize,s),s;var a=Ne(e,t);if(null!==a)return a}var u=Me(e);if(u!==Me(t))return Ee(e,t,n.memoize,!1),!1;Ee(e,t,n.memoize,!0);var c=function(e,t,n,r){switch(n){case"String":case"Number":case"Boolean":case"Date":return Be(e.valueOf(),t.valueOf());case"Promise":case"Symbol":case"function":case"WeakMap":case"WeakSet":return e===t;case"Error":return Ue(e,t,["name","message","code"],r);case"Arguments":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"Array":return Ce(e,t,r);case"RegExp":
|
|
83
|
+
/*!
|
|
84
|
+
* Compare two Regular Expressions for equality.
|
|
85
|
+
*
|
|
86
|
+
* @param {RegExp} leftHandOperand
|
|
87
|
+
* @param {RegExp} rightHandOperand
|
|
88
|
+
* @return {Boolean} result
|
|
89
|
+
*/
|
|
90
|
+
return function(e,t){return e.toString()===t.toString()}
|
|
91
|
+
/*!
|
|
92
|
+
* Compare two Sets/Maps for equality. Faster than other equality functions.
|
|
93
|
+
*
|
|
94
|
+
* @param {Set} leftHandOperand
|
|
95
|
+
* @param {Set} rightHandOperand
|
|
96
|
+
* @param {Object} [options] (Optional)
|
|
97
|
+
* @return {Boolean} result
|
|
98
|
+
*/(e,t);case"Generator":
|
|
99
|
+
/*!
|
|
100
|
+
* Simple equality for generator objects such as those returned by generator functions.
|
|
101
|
+
*
|
|
102
|
+
* @param {Iterable} leftHandOperand
|
|
103
|
+
* @param {Iterable} rightHandOperand
|
|
104
|
+
* @param {Object} [options] (Optional)
|
|
105
|
+
* @return {Boolean} result
|
|
106
|
+
*/
|
|
107
|
+
return function(e,t,n){return Ce(je(e),je(t),n)}
|
|
108
|
+
/*!
|
|
109
|
+
* Determine if the given object has an @@iterator function.
|
|
110
|
+
*
|
|
111
|
+
* @param {Object} target
|
|
112
|
+
* @return {Boolean} `true` if the object has an @@iterator function.
|
|
113
|
+
*/(e,t,r);case"DataView":return Ce(new Uint8Array(e.buffer),new Uint8Array(t.buffer),r);case"ArrayBuffer":return Ce(new Uint8Array(e),new Uint8Array(t),r);case"Set":case"Map":return Te(e,t,r);case"Temporal.PlainDate":case"Temporal.PlainTime":case"Temporal.PlainDateTime":case"Temporal.Instant":case"Temporal.ZonedDateTime":case"Temporal.PlainYearMonth":case"Temporal.PlainMonthDay":return e.equals(t);case"Temporal.Duration":return e.total("nanoseconds")===t.total("nanoseconds");case"Temporal.TimeZone":case"Temporal.Calendar":return e.toString()===t.toString();default:
|
|
114
|
+
/*!
|
|
115
|
+
* Recursively check the equality of two Objects. Once basic sameness has been established it will defer to `deepEqual`
|
|
116
|
+
* for each enumerable key in the object.
|
|
117
|
+
*
|
|
118
|
+
* @param {Mixed} leftHandOperand
|
|
119
|
+
* @param {Mixed} rightHandOperand
|
|
120
|
+
* @param {Object} [options] (Optional)
|
|
121
|
+
* @return {Boolean} result
|
|
122
|
+
*/
|
|
123
|
+
return function(e,t,n){var r=Re(e),i=Re(t),o=He(e),s=He(t);if(r=r.concat(o),i=i.concat(s),r.length&&r.length===i.length)return!1!==Ce(Ie(r).sort(),Ie(i).sort())&&Ue(e,t,r,n);var a=Ye(e),u=Ye(t);if(a.length&&a.length===u.length)return a.sort(),u.sort(),Ce(a,u,n);if(0===r.length&&0===a.length&&0===i.length&&0===u.length)return!0;return!1}
|
|
124
|
+
/*!
|
|
125
|
+
* Returns true if the argument is a primitive.
|
|
126
|
+
*
|
|
127
|
+
* This intentionally returns true for all objects that can be compared by reference,
|
|
128
|
+
* including functions and symbols.
|
|
129
|
+
*
|
|
130
|
+
* @param {Mixed} value
|
|
131
|
+
* @return {Boolean} result
|
|
132
|
+
*/(e,t,r)}}(e,t,u,n);return Ee(e,t,n.memoize,c),c}function Te(e,t,n){try{if(e.size!==t.size)return!1;if(0===e.size)return!0}catch(e){return!1}var r=[],i=[];return e.forEach((function(e,t){r.push([e,t])})),t.forEach((function(e,t){i.push([e,t])})),Ce(r.sort(),i.sort(),n)}
|
|
133
|
+
/*!
|
|
134
|
+
* Simple equality for flat iterable objects such as Arrays, TypedArrays or Node.js buffers.
|
|
135
|
+
*
|
|
136
|
+
* @param {Iterable} leftHandOperand
|
|
137
|
+
* @param {Iterable} rightHandOperand
|
|
138
|
+
* @param {Object} [options] (Optional)
|
|
139
|
+
* @return {Boolean} result
|
|
140
|
+
*/function Ce(e,t,n){var r=e.length;if(r!==t.length)return!1;if(0===r)return!0;for(var i=-1;++i<r;)if(!1===Be(e[i],t[i],n))return!1;return!0}
|
|
141
|
+
/*!
|
|
142
|
+
* Gets all iterator entries from the given Object. If the Object has no @@iterator function, returns an empty array.
|
|
143
|
+
* This will consume the iterator - which could have side effects depending on the @@iterator implementation.
|
|
144
|
+
*
|
|
145
|
+
* @param {Object} target
|
|
146
|
+
* @returns {Array} an array of entries from the @@iterator function
|
|
147
|
+
*/
|
|
148
|
+
function Ye(e){if(function(e){return"undefined"!=typeof Symbol&&"object"==typeof e&&void 0!==Symbol.iterator&&"function"==typeof e[Symbol.iterator]}(e))try{return je(e[Symbol.iterator]())}catch(e){return[]}return[]}
|
|
149
|
+
/*!
|
|
150
|
+
* Gets all entries from a Generator. This will consume the generator - which could have side effects.
|
|
151
|
+
*
|
|
152
|
+
* @param {Generator} target
|
|
153
|
+
* @returns {Array} an array of entries from the Generator.
|
|
154
|
+
*/function je(e){for(var t=e.next(),n=[t.value];!1===t.done;)t=e.next(),n.push(t.value);return n}
|
|
155
|
+
/*!
|
|
156
|
+
* Gets all own and inherited enumerable keys from a target.
|
|
157
|
+
*
|
|
158
|
+
* @param {Object} target
|
|
159
|
+
* @returns {Array} an array of own and inherited enumerable keys from the target.
|
|
160
|
+
*/function Re(e){var t=[];for(var n in e)t.push(n);return t}function He(e){for(var t=[],n=Object.getOwnPropertySymbols(e),r=0;r<n.length;r+=1){var i=n[r];Object.getOwnPropertyDescriptor(e,i).enumerable&&t.push(i)}return t}
|
|
161
|
+
/*!
|
|
162
|
+
* Determines if two objects have matching values, given a set of keys. Defers to deepEqual for the equality check of
|
|
163
|
+
* each key. If any value of the given key is not equal, the function will return false (early).
|
|
164
|
+
*
|
|
165
|
+
* @param {Mixed} leftHandOperand
|
|
166
|
+
* @param {Mixed} rightHandOperand
|
|
167
|
+
* @param {Array} keys An array of keys to compare the values of leftHandOperand and rightHandOperand against
|
|
168
|
+
* @param {Object} [options] (Optional)
|
|
169
|
+
* @return {Boolean} result
|
|
170
|
+
*/function Ue(e,t,n,r){var i=n.length;if(0===i)return!0;for(var o=0;o<i;o+=1)if(!1===Be(e[n[o]],t[n[o]],r))return!1;return!0}function ze(e){return null===e||"object"!=typeof e}function Ie(e){return e.map((function(e){return"symbol"==typeof e?e.toString():e}))}Se.exports=Be,ke.MemoizeMap=De;var Le,Fe,We=le,Ve=function(){return We.useProxy&&"undefined"!=typeof Proxy&&"undefined"!=typeof Reflect};
|
|
171
|
+
/*!
|
|
172
|
+
* Chai - isProxyEnabled helper
|
|
173
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
174
|
+
* MIT Licensed
|
|
175
|
+
*/var qe,$e,Ge,Ze,Ke,Xe,Je,Qe,et,tt,nt=Object.getOwnPropertyDescriptor((function(){}),"length"),rt=function(e,t,n){return nt.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},it=le,ot=g,st=function(e){var t=Object.getOwnPropertyNames(e);function n(e){-1===t.indexOf(e)&&t.push(e)}for(var r=Object.getPrototypeOf(e);null!==r;)Object.getOwnPropertyNames(r).forEach(n),r=Object.getPrototypeOf(r);return t},at=Ve,ut=["__flags","__methods","_obj","assert"],ct=function(e,t){return at()?new Proxy(e,{get:function e(n,r){if("string"==typeof r&&-1===it.proxyExcludedKeys.indexOf(r)&&!Reflect.has(n,r)){if(t)throw Error("Invalid Chai property: "+t+"."+r+'. See docs for proper usage of "'+t+'".');var i=null,o=4;throw st(n).forEach((function(e){if(!Object.prototype.hasOwnProperty(e)&&-1===ut.indexOf(e)){var t=function(e,t,n){if(Math.abs(e.length-t.length)>=n)return n;for(var r=[],i=0;i<=e.length;i++)r[i]=Array(t.length+1).fill(0),r[i][0]=i;for(var o=0;o<t.length;o++)r[0][o]=o;for(i=1;i<=e.length;i++){var s=e.charCodeAt(i-1);for(o=1;o<=t.length;o++)Math.abs(i-o)>=n?r[i][o]=n:r[i][o]=Math.min(r[i-1][o]+1,r[i][o-1]+1,r[i-1][o-1]+(s===t.charCodeAt(o-1)?0:1))}return r[e.length][t.length]}
|
|
176
|
+
/*!
|
|
177
|
+
* Chai - addMethod utility
|
|
178
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
179
|
+
* MIT Licensed
|
|
180
|
+
*/(r,e,o);t<o&&(i=e,o=t)}})),null!==i?Error("Invalid Chai property: "+r+'. Did you mean "'+i+'"?'):Error("Invalid Chai property: "+r)}return-1!==ut.indexOf(r)||ot(n,"lockSsfi")||ot(n,"ssfi",e),Reflect.get(n,r)}}):e};
|
|
181
|
+
/*!
|
|
182
|
+
* Chai - addLengthGuard utility
|
|
183
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
184
|
+
* MIT Licensed
|
|
185
|
+
*/
|
|
186
|
+
/*!
|
|
187
|
+
* Chai - compareByInspect utility
|
|
188
|
+
* Copyright(c) 2011-2016 Jake Luer <jake@alogicalparadox.com>
|
|
189
|
+
* MIT Licensed
|
|
190
|
+
*/
|
|
191
|
+
/*!
|
|
192
|
+
* Module dependencies
|
|
193
|
+
*/
|
|
194
|
+
var ht=pe,lt=function(e,t){return ht(e)<ht(t)?-1:1},ft=function(e){return"function"!=typeof Object.getOwnPropertySymbols?[]:Object.getOwnPropertySymbols(e).filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))},dt=ft,pt=function(e){return Object.keys(e).concat(dt(e))},yt=D;var gt={compatibleInstance:function(e,t){return t instanceof Error&&e===t},compatibleConstructor:function(e,t){return t instanceof Error?e.constructor===t.constructor||e instanceof t.constructor:(t.prototype instanceof Error||t===Error)&&(e.constructor===t||e instanceof t)},compatibleMessage:function(e,t){var n="string"==typeof e?e:e.message;return t instanceof RegExp?t.test(n):"string"==typeof t&&-1!==n.indexOf(t)},getMessage:function(e){var t="";return e&&e.message?t=e.message:"string"==typeof e&&(t=e),t},getConstructorName:function(e){var t=e;if(e instanceof Error)t=yt(e.constructor);else if("function"==typeof e){if(""===(t=yt(e)))t=yt(new e)||t}return t}};
|
|
195
|
+
/*!
|
|
196
|
+
* Chai - isNaN utility
|
|
197
|
+
* Copyright(c) 2012-2015 Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
|
|
198
|
+
* MIT Licensed
|
|
199
|
+
*/var mt=Number.isNaN||function(e){return e!=e},vt=w,wt=g;var bt,_t=function(e,t){var n=wt(e,"operator"),r=wt(e,"negate"),i=t[3],o=r?t[2]:t[1];if(n)return n;if("function"==typeof o&&(o=o()),(o=o||"")&&!/\shave\s/.test(o)){var s=function(e){var t=vt(e);return-1!==["Array","Object","function"].indexOf(t)}(i);return/\snot\s/.test(o)?s?"notDeepStrictEqual":"notStrictEqual":s?"deepStrictEqual":"strictEqual"}};
|
|
200
|
+
/*!
|
|
201
|
+
* chai
|
|
202
|
+
* Copyright(c) 2011 Jake Luer <jake@alogicalparadox.com>
|
|
203
|
+
* MIT Licensed
|
|
204
|
+
*/function xt(){if(bt)return h;bt=1;
|
|
205
|
+
/*!
|
|
206
|
+
* Dependencies that are used for multiple exports are required here only once
|
|
207
|
+
*/
|
|
208
|
+
var e=y;
|
|
209
|
+
/*!
|
|
210
|
+
* test utility
|
|
211
|
+
*/return h.test=v,
|
|
212
|
+
/*!
|
|
213
|
+
* type utility
|
|
214
|
+
*/
|
|
215
|
+
h.type=w,
|
|
216
|
+
/*!
|
|
217
|
+
* expectTypes utility
|
|
218
|
+
*/
|
|
219
|
+
h.expectTypes=k,
|
|
220
|
+
/*!
|
|
221
|
+
* message utility
|
|
222
|
+
*/
|
|
223
|
+
h.getMessage=_e,
|
|
224
|
+
/*!
|
|
225
|
+
* actual utility
|
|
226
|
+
*/
|
|
227
|
+
h.getActual=S,
|
|
228
|
+
/*!
|
|
229
|
+
* Inspect util
|
|
230
|
+
*/
|
|
231
|
+
h.inspect=pe,
|
|
232
|
+
/*!
|
|
233
|
+
* Object Display util
|
|
234
|
+
*/
|
|
235
|
+
h.objDisplay=me,
|
|
236
|
+
/*!
|
|
237
|
+
* Flag utility
|
|
238
|
+
*/
|
|
239
|
+
h.flag=g,
|
|
240
|
+
/*!
|
|
241
|
+
* Flag transferring utility
|
|
242
|
+
*/
|
|
243
|
+
h.transferFlags=xe,
|
|
244
|
+
/*!
|
|
245
|
+
* Deep equal utility
|
|
246
|
+
*/
|
|
247
|
+
h.eql=ke,
|
|
248
|
+
/*!
|
|
249
|
+
* Deep path info
|
|
250
|
+
*/
|
|
251
|
+
h.getPathInfo=e.getPathInfo,
|
|
252
|
+
/*!
|
|
253
|
+
* Check if a property exists
|
|
254
|
+
*/
|
|
255
|
+
h.hasProperty=e.hasProperty,
|
|
256
|
+
/*!
|
|
257
|
+
* Function name
|
|
258
|
+
*/
|
|
259
|
+
h.getName=D,
|
|
260
|
+
/*!
|
|
261
|
+
* add Property
|
|
262
|
+
*/
|
|
263
|
+
h.addProperty=function(){if(Fe)return Le;Fe=1;var e=Bt(),t=g,n=Ve,r=xe;return Le=function(i,o,s){s=void 0===s?function(){}:s,Object.defineProperty(i,o,{get:function i(){n()||t(this,"lockSsfi")||t(this,"ssfi",i);var o=s.call(this);if(void 0!==o)return o;var a=new e.Assertion;return r(this,a),a},configurable:!0})}}(),
|
|
264
|
+
/*!
|
|
265
|
+
* add Method
|
|
266
|
+
*/
|
|
267
|
+
h.addMethod=function(){if($e)return qe;$e=1;var e=rt,t=Bt(),n=g,r=ct,i=xe;return qe=function(o,s,a){var u=function(){n(this,"lockSsfi")||n(this,"ssfi",u);var e=a.apply(this,arguments);if(void 0!==e)return e;var r=new t.Assertion;return i(this,r),r};e(u,s,!1),o[s]=r(u,s)},qe}
|
|
268
|
+
/*!
|
|
269
|
+
* Chai - overwriteProperty utility
|
|
270
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
271
|
+
* MIT Licensed
|
|
272
|
+
*/(),
|
|
273
|
+
/*!
|
|
274
|
+
* overwrite Property
|
|
275
|
+
*/
|
|
276
|
+
h.overwriteProperty=function(){if(Ze)return Ge;Ze=1;var e=Bt(),t=g,n=Ve,r=xe;return Ge=function(i,o,s){var a=Object.getOwnPropertyDescriptor(i,o),u=function(){};a&&"function"==typeof a.get&&(u=a.get),Object.defineProperty(i,o,{get:function i(){n()||t(this,"lockSsfi")||t(this,"ssfi",i);var o=t(this,"lockSsfi");t(this,"lockSsfi",!0);var a=s(u).call(this);if(t(this,"lockSsfi",o),void 0!==a)return a;var c=new e.Assertion;return r(this,c),c},configurable:!0})}}
|
|
277
|
+
/*!
|
|
278
|
+
* Chai - overwriteMethod utility
|
|
279
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
280
|
+
* MIT Licensed
|
|
281
|
+
*/(),
|
|
282
|
+
/*!
|
|
283
|
+
* overwrite Method
|
|
284
|
+
*/
|
|
285
|
+
h.overwriteMethod=function(){if(Xe)return Ke;Xe=1;var e=rt,t=Bt(),n=g,r=ct,i=xe;return Ke=function(o,s,a){var u=o[s],c=function(){throw new Error(s+" is not a function")};u&&"function"==typeof u&&(c=u);var h=function(){n(this,"lockSsfi")||n(this,"ssfi",h);var e=n(this,"lockSsfi");n(this,"lockSsfi",!0);var r=a(c).apply(this,arguments);if(n(this,"lockSsfi",e),void 0!==r)return r;var o=new t.Assertion;return i(this,o),o};e(h,s,!1),o[s]=r(h,s)},Ke}
|
|
286
|
+
/*!
|
|
287
|
+
* Chai - addChainingMethod utility
|
|
288
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
289
|
+
* MIT Licensed
|
|
290
|
+
*/(),
|
|
291
|
+
/*!
|
|
292
|
+
* Add a chainable method
|
|
293
|
+
*/
|
|
294
|
+
h.addChainableMethod=function(){if(Qe)return Je;Qe=1;
|
|
295
|
+
/*!
|
|
296
|
+
* Module dependencies
|
|
297
|
+
*/
|
|
298
|
+
var e=rt,t=Bt(),n=g,r=ct,i=xe,o="function"==typeof Object.setPrototypeOf,s=function(){},a=Object.getOwnPropertyNames(s).filter((function(e){var t=Object.getOwnPropertyDescriptor(s,e);return"object"!=typeof t||!t.configurable})),u=Function.prototype.call,c=Function.prototype.apply;return Je=function(s,h,l,f){"function"!=typeof f&&(f=function(){});var d={method:l,chainingBehavior:f};s.__methods||(s.__methods={}),s.__methods[h]=d,Object.defineProperty(s,h,{get:function(){d.chainingBehavior.call(this);var l=function(){n(this,"lockSsfi")||n(this,"ssfi",l);var e=d.method.apply(this,arguments);if(void 0!==e)return e;var r=new t.Assertion;return i(this,r),r};if(e(l,h,!0),o){var f=Object.create(this);f.call=u,f.apply=c,Object.setPrototypeOf(l,f)}else Object.getOwnPropertyNames(s).forEach((function(e){if(-1===a.indexOf(e)){var t=Object.getOwnPropertyDescriptor(s,e);Object.defineProperty(l,e,t)}}));return i(this,l),r(l)},configurable:!0})},Je}
|
|
299
|
+
/*!
|
|
300
|
+
* Chai - overwriteChainableMethod utility
|
|
301
|
+
* Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com>
|
|
302
|
+
* MIT Licensed
|
|
303
|
+
*/(),
|
|
304
|
+
/*!
|
|
305
|
+
* Overwrite chainable method
|
|
306
|
+
*/
|
|
307
|
+
h.overwriteChainableMethod=function(){if(tt)return et;tt=1;var e=Bt(),t=xe;return et=function(n,r,i,o){var s=n.__methods[r],a=s.chainingBehavior;s.chainingBehavior=function(){var n=o(a).call(this);if(void 0!==n)return n;var r=new e.Assertion;return t(this,r),r};var u=s.method;s.method=function(){var n=i(u).apply(this,arguments);if(void 0!==n)return n;var r=new e.Assertion;return t(this,r),r}},et}(),
|
|
308
|
+
/*!
|
|
309
|
+
* Compare by inspect method
|
|
310
|
+
*/
|
|
311
|
+
h.compareByInspect=lt,
|
|
312
|
+
/*!
|
|
313
|
+
* Get own enumerable property symbols method
|
|
314
|
+
*/
|
|
315
|
+
h.getOwnEnumerablePropertySymbols=ft,
|
|
316
|
+
/*!
|
|
317
|
+
* Get own enumerable properties method
|
|
318
|
+
*/
|
|
319
|
+
h.getOwnEnumerableProperties=pt,
|
|
320
|
+
/*!
|
|
321
|
+
* Checks error against a given set of criteria
|
|
322
|
+
*/
|
|
323
|
+
h.checkError=gt,
|
|
324
|
+
/*!
|
|
325
|
+
* Proxify util
|
|
326
|
+
*/
|
|
327
|
+
h.proxify=ct,
|
|
328
|
+
/*!
|
|
329
|
+
* addLengthGuard util
|
|
330
|
+
*/
|
|
331
|
+
h.addLengthGuard=rt,
|
|
332
|
+
/*!
|
|
333
|
+
* isProxyEnabled helper
|
|
334
|
+
*/
|
|
335
|
+
h.isProxyEnabled=Ve,
|
|
336
|
+
/*!
|
|
337
|
+
* isNaN method
|
|
338
|
+
*/
|
|
339
|
+
h.isNaN=mt,
|
|
340
|
+
/*!
|
|
341
|
+
* getOperator method
|
|
342
|
+
*/
|
|
343
|
+
h.getOperator=_t,h}
|
|
344
|
+
/*!
|
|
345
|
+
* chai
|
|
346
|
+
* http://chaijs.com
|
|
347
|
+
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
|
348
|
+
* MIT Licensed
|
|
349
|
+
*/var kt,St=le,Mt=function(e,t){
|
|
350
|
+
/*!
|
|
351
|
+
* Module dependencies.
|
|
352
|
+
*/
|
|
353
|
+
var n=e.AssertionError,r=t.flag;
|
|
354
|
+
/*!
|
|
355
|
+
* Module export.
|
|
356
|
+
*/
|
|
357
|
+
/*!
|
|
358
|
+
* Assertion Constructor
|
|
359
|
+
*
|
|
360
|
+
* Creates object for chaining.
|
|
361
|
+
*
|
|
362
|
+
* `Assertion` objects contain metadata in the form of flags. Three flags can
|
|
363
|
+
* be assigned during instantiation by passing arguments to this constructor:
|
|
364
|
+
*
|
|
365
|
+
* - `object`: This flag contains the target of the assertion. For example, in
|
|
366
|
+
* the assertion `expect(numKittens).to.equal(7);`, the `object` flag will
|
|
367
|
+
* contain `numKittens` so that the `equal` assertion can reference it when
|
|
368
|
+
* needed.
|
|
369
|
+
*
|
|
370
|
+
* - `message`: This flag contains an optional custom error message to be
|
|
371
|
+
* prepended to the error message that's generated by the assertion when it
|
|
372
|
+
* fails.
|
|
373
|
+
*
|
|
374
|
+
* - `ssfi`: This flag stands for "start stack function indicator". It
|
|
375
|
+
* contains a function reference that serves as the starting point for
|
|
376
|
+
* removing frames from the stack trace of the error that's created by the
|
|
377
|
+
* assertion when it fails. The goal is to provide a cleaner stack trace to
|
|
378
|
+
* end users by removing Chai's internal functions. Note that it only works
|
|
379
|
+
* in environments that support `Error.captureStackTrace`, and only when
|
|
380
|
+
* `Chai.config.includeStack` hasn't been set to `false`.
|
|
381
|
+
*
|
|
382
|
+
* - `lockSsfi`: This flag controls whether or not the given `ssfi` flag
|
|
383
|
+
* should retain its current value, even as assertions are chained off of
|
|
384
|
+
* this object. This is usually set to `true` when creating a new assertion
|
|
385
|
+
* from within another assertion. It's also temporarily set to `true` before
|
|
386
|
+
* an overwritten assertion gets called by the overwriting assertion.
|
|
387
|
+
*
|
|
388
|
+
* - `eql`: This flag contains the deepEqual function to be used by the assertion.
|
|
389
|
+
*
|
|
390
|
+
* @param {Mixed} obj target of the assertion
|
|
391
|
+
* @param {String} msg (optional) custom error message
|
|
392
|
+
* @param {Function} ssfi (optional) starting point for removing stack frames
|
|
393
|
+
* @param {Boolean} lockSsfi (optional) whether or not the ssfi flag is locked
|
|
394
|
+
* @api private
|
|
395
|
+
*/
|
|
396
|
+
function i(e,n,o,s){return r(this,"ssfi",o||i),r(this,"lockSsfi",s),r(this,"object",e),r(this,"message",n),r(this,"eql",St.deepEqual||t.eql),t.proxify(this)}e.Assertion=i,Object.defineProperty(i,"includeStack",{get:function(){return console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),St.includeStack},set:function(e){console.warn("Assertion.includeStack is deprecated, use chai.config.includeStack instead."),St.includeStack=e}}),Object.defineProperty(i,"showDiff",{get:function(){return console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),St.showDiff},set:function(e){console.warn("Assertion.showDiff is deprecated, use chai.config.showDiff instead."),St.showDiff=e}}),i.addProperty=function(e,n){t.addProperty(this.prototype,e,n)},i.addMethod=function(e,n){t.addMethod(this.prototype,e,n)},i.addChainableMethod=function(e,n,r){t.addChainableMethod(this.prototype,e,n,r)},i.overwriteProperty=function(e,n){t.overwriteProperty(this.prototype,e,n)},i.overwriteMethod=function(e,n){t.overwriteMethod(this.prototype,e,n)},i.overwriteChainableMethod=function(e,n,r){t.overwriteChainableMethod(this.prototype,e,n,r)},i.prototype.assert=function(e,i,o,s,a,u){var c=t.test(this,arguments);if(!1!==u&&(u=!0),void 0===s&&void 0===a&&(u=!1),!0!==St.showDiff&&(u=!1),!c){i=t.getMessage(this,arguments);var h={actual:t.getActual(this,arguments),expected:s,showDiff:u},l=t.getOperator(this,arguments);throw l&&(h.operator=l),new n(i,h,St.includeStack?this.assert:r(this,"ssfi"))}},
|
|
397
|
+
/*!
|
|
398
|
+
* ### ._obj
|
|
399
|
+
*
|
|
400
|
+
* Quick reference to stored `actual` value for plugin developers.
|
|
401
|
+
*
|
|
402
|
+
* @api private
|
|
403
|
+
*/
|
|
404
|
+
Object.defineProperty(i.prototype,"_obj",{get:function(){return r(this,"object")},set:function(e){r(this,"object",e)}})},Ot=function(e,t){var n=e.Assertion,r=e.AssertionError,i=t.flag;function o(e,n){n&&i(this,"message",n),e=e.toLowerCase();var r=i(this,"object"),o=~["a","e","i","o","u"].indexOf(e.charAt(0))?"an ":"a ";this.assert(e===t.type(r).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(){i(this,"contains",!0)}function u(e,o){o&&i(this,"message",o);var a=i(this,"object"),u=t.type(a).toLowerCase(),c=i(this,"message"),h=i(this,"negate"),l=i(this,"ssfi"),f=i(this,"deep"),d=f?"deep ":"",p=f?i(this,"eql"):s;c=c?c+": ":"";var y=!1;switch(u){case"string":y=-1!==a.indexOf(e);break;case"weakset":if(f)throw new r(c+"unable to use .deep.include with WeakSet",void 0,l);y=a.has(e);break;case"map":a.forEach((function(t){y=y||p(t,e)}));break;case"set":f?a.forEach((function(t){y=y||p(t,e)})):y=a.has(e);break;case"array":y=f?a.some((function(t){return p(t,e)})):-1!==a.indexOf(e);break;default:if(e!==Object(e))throw new r(c+"the given combination of arguments ("+u+" and "+t.type(e).toLowerCase()+") is invalid for this assertion. You can use an array, a map, an object, a set, a string, or a weakset instead of a "+t.type(e).toLowerCase(),void 0,l);var g=Object.keys(e),m=null,v=0;if(g.forEach((function(o){var s=new n(a);if(t.transferFlags(this,s,!0),i(s,"lockSsfi",!0),h&&1!==g.length)try{s.property(o,e[o])}catch(e){if(!t.checkError.compatibleConstructor(e,r))throw e;null===m&&(m=e),v++}else s.property(o,e[o])}),this),h&&g.length>1&&v===g.length)throw m;return}this.assert(y,"expected #{this} to "+d+"include "+t.inspect(e),"expected #{this} to not "+d+"include "+t.inspect(e))}function c(){var e=i(this,"object");this.assert(null!=e,"expected #{this} to exist","expected #{this} to not exist")}function h(){var e=i(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 l(e,t){t&&i(this,"message",t);var n=i(this,"object");if(i(this,"deep")){var r=i(this,"lockSsfi");i(this,"lockSsfi",!0),this.eql(e),i(this,"lockSsfi",r)}else this.assert(e===n,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",e,this._obj,!0)}function f(e,t){t&&i(this,"message",t);var n=i(this,"eql");this.assert(n(e,i(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",e,this._obj,!0)}function d(e,o){o&&i(this,"message",o);var s,a=i(this,"object"),u=i(this,"doLength"),c=i(this,"message"),h=c?c+": ":"",l=i(this,"ssfi"),f=t.type(a).toLowerCase(),d=t.type(e).toLowerCase(),p=!0;if(u&&"map"!==f&&"set"!==f&&new n(a,c,l,!0).to.have.property("length"),u||"date"!==f||"date"===d)if("number"===d||!u&&"number"!==f)if(u||"date"===f||"number"===f)p=!1;else{s=h+"expected "+("string"===f?"'"+a+"'":a)+" to be a number or a date"}else s=h+"the argument to above must be a number";else s=h+"the argument to above must be a date";if(p)throw new r(s,void 0,l);if(u){var y,g="length";"map"===f||"set"===f?(g="size",y=a.size):y=a.length,this.assert(y>e,"expected #{this} to have a "+g+" above #{exp} but got #{act}","expected #{this} to not have a "+g+" above #{exp}",e,y)}else this.assert(a>e,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",e)}function p(e,o){o&&i(this,"message",o);var s,a=i(this,"object"),u=i(this,"doLength"),c=i(this,"message"),h=c?c+": ":"",l=i(this,"ssfi"),f=t.type(a).toLowerCase(),d=t.type(e).toLowerCase(),p=!0;if(u&&"map"!==f&&"set"!==f&&new n(a,c,l,!0).to.have.property("length"),u||"date"!==f||"date"===d)if("number"===d||!u&&"number"!==f)if(u||"date"===f||"number"===f)p=!1;else{s=h+"expected "+("string"===f?"'"+a+"'":a)+" to be a number or a date"}else s=h+"the argument to least must be a number";else s=h+"the argument to least must be a date";if(p)throw new r(s,void 0,l);if(u){var y,g="length";"map"===f||"set"===f?(g="size",y=a.size):y=a.length,this.assert(y>=e,"expected #{this} to have a "+g+" at least #{exp} but got #{act}","expected #{this} to have a "+g+" below #{exp}",e,y)}else this.assert(a>=e,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",e)}function y(e,o){o&&i(this,"message",o);var s,a=i(this,"object"),u=i(this,"doLength"),c=i(this,"message"),h=c?c+": ":"",l=i(this,"ssfi"),f=t.type(a).toLowerCase(),d=t.type(e).toLowerCase(),p=!0;if(u&&"map"!==f&&"set"!==f&&new n(a,c,l,!0).to.have.property("length"),u||"date"!==f||"date"===d)if("number"===d||!u&&"number"!==f)if(u||"date"===f||"number"===f)p=!1;else{s=h+"expected "+("string"===f?"'"+a+"'":a)+" to be a number or a date"}else s=h+"the argument to below must be a number";else s=h+"the argument to below must be a date";if(p)throw new r(s,void 0,l);if(u){var y,g="length";"map"===f||"set"===f?(g="size",y=a.size):y=a.length,this.assert(y<e,"expected #{this} to have a "+g+" below #{exp} but got #{act}","expected #{this} to not have a "+g+" below #{exp}",e,y)}else this.assert(a<e,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",e)}function g(e,o){o&&i(this,"message",o);var s,a=i(this,"object"),u=i(this,"doLength"),c=i(this,"message"),h=c?c+": ":"",l=i(this,"ssfi"),f=t.type(a).toLowerCase(),d=t.type(e).toLowerCase(),p=!0;if(u&&"map"!==f&&"set"!==f&&new n(a,c,l,!0).to.have.property("length"),u||"date"!==f||"date"===d)if("number"===d||!u&&"number"!==f)if(u||"date"===f||"number"===f)p=!1;else{s=h+"expected "+("string"===f?"'"+a+"'":a)+" to be a number or a date"}else s=h+"the argument to most must be a number";else s=h+"the argument to most must be a date";if(p)throw new r(s,void 0,l);if(u){var y,g="length";"map"===f||"set"===f?(g="size",y=a.size):y=a.length,this.assert(y<=e,"expected #{this} to have a "+g+" at most #{exp} but got #{act}","expected #{this} to have a "+g+" above #{exp}",e,y)}else this.assert(a<=e,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",e)}function m(e,n){n&&i(this,"message",n);var o=i(this,"object"),s=i(this,"ssfi"),a=i(this,"message");try{var u=o instanceof e}catch(n){if(n instanceof TypeError)throw new r((a=a?a+": ":"")+"The instanceof assertion needs a constructor but "+t.type(e)+" was given.",void 0,s);throw n}var c=t.getName(e);null===c&&(c="an unnamed constructor"),this.assert(u,"expected #{this} to be an instance of "+c,"expected #{this} to not be an instance of "+c)}function v(e,n,o){o&&i(this,"message",o);var s=i(this,"nested"),a=i(this,"own"),u=i(this,"message"),c=i(this,"object"),h=i(this,"ssfi"),l=typeof e;if(u=u?u+": ":"",s){if("string"!==l)throw new r(u+"the argument to property must be a string when using nested syntax",void 0,h)}else if("string"!==l&&"number"!==l&&"symbol"!==l)throw new r(u+"the argument to property must be a string, number, or symbol",void 0,h);if(s&&a)throw new r(u+'The "nested" and "own" flags cannot be combined.',void 0,h);if(null==c)throw new r(u+"Target cannot be null or undefined.",void 0,h);var f,d=i(this,"deep"),p=i(this,"negate"),y=s?t.getPathInfo(c,e):null,g=s?y.value:c[e],m=d?i(this,"eql"):(e,t)=>e===t,v="";d&&(v+="deep "),a&&(v+="own "),s&&(v+="nested "),v+="property ",f=a?Object.prototype.hasOwnProperty.call(c,e):s?y.exists:t.hasProperty(c,e),p&&1!==arguments.length||this.assert(f,"expected #{this} to have "+v+t.inspect(e),"expected #{this} to not have "+v+t.inspect(e)),arguments.length>1&&this.assert(f&&m(n,g),"expected #{this} to have "+v+t.inspect(e)+" of #{exp}, but got #{act}","expected #{this} to not have "+v+t.inspect(e)+" of #{act}",n,g),i(this,"object",g)}function w(e,t,n){i(this,"own",!0),v.apply(this,arguments)}function b(e,n,r){"string"==typeof n&&(r=n,n=null),r&&i(this,"message",r);var o=i(this,"object"),s=Object.getOwnPropertyDescriptor(Object(o),e),a=i(this,"eql");s&&n?this.assert(a(n,s),"expected the own property descriptor for "+t.inspect(e)+" on #{this} to match "+t.inspect(n)+", got "+t.inspect(s),"expected the own property descriptor for "+t.inspect(e)+" on #{this} to not match "+t.inspect(n),n,s,!0):this.assert(s,"expected #{this} to have an own property descriptor for "+t.inspect(e),"expected #{this} to not have an own property descriptor for "+t.inspect(e)),i(this,"object",s)}function _(){i(this,"doLength",!0)}function x(e,r){r&&i(this,"message",r);var o,s=i(this,"object"),a=t.type(s).toLowerCase(),u=i(this,"message"),c=i(this,"ssfi"),h="length";switch(a){case"map":case"set":h="size",o=s.size;break;default:new n(s,u,c,!0).to.have.property("length"),o=s.length}this.assert(o==e,"expected #{this} to have a "+h+" of #{exp} but got #{act}","expected #{this} to not have a "+h+" of #{act}",e,o)}function k(e,t){t&&i(this,"message",t);var n=i(this,"object");this.assert(e.exec(n),"expected #{this} to match "+e,"expected #{this} not to match "+e)}function S(e){var n,o,s=i(this,"object"),a=t.type(s),u=t.type(e),c=i(this,"ssfi"),h=i(this,"deep"),l="",f=!0,d=i(this,"message"),p=(d=d?d+": ":"")+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if("Map"===a||"Set"===a)l=h?"deeply ":"",o=[],s.forEach((function(e,t){o.push(t)})),"Array"!==u&&(e=Array.prototype.slice.call(arguments));else{switch(o=t.getOwnEnumerableProperties(s),u){case"Array":if(arguments.length>1)throw new r(p,void 0,c);break;case"Object":if(arguments.length>1)throw new r(p,void 0,c);e=Object.keys(e);break;default:e=Array.prototype.slice.call(arguments)}e=e.map((function(e){return"symbol"==typeof e?e:String(e)}))}if(!e.length)throw new r(d+"keys required",void 0,c);var y=e.length,g=i(this,"any"),m=i(this,"all"),v=e,w=h?i(this,"eql"):(e,t)=>e===t;if(g||m||(m=!0),g&&(f=v.some((function(e){return o.some((function(t){return w(e,t)}))}))),m&&(f=v.every((function(e){return o.some((function(t){return w(e,t)}))})),i(this,"contains")||(f=f&&e.length==o.length)),y>1){var b=(e=e.map((function(e){return t.inspect(e)}))).pop();m&&(n=e.join(", ")+", and "+b),g&&(n=e.join(", ")+", or "+b)}else n=t.inspect(e[0]);n=(y>1?"keys ":"key ")+n,n=(i(this,"contains")?"contain ":"have ")+n,this.assert(f,"expected #{this} to "+l+n,"expected #{this} to not "+l+n,v.slice(0).sort(t.compareByInspect),o.sort(t.compareByInspect),!0)}function M(e,r,o){o&&i(this,"message",o);var s,a=i(this,"object"),u=i(this,"ssfi"),c=i(this,"message"),h=i(this,"negate")||!1;new n(a,c,u,!0).is.a("function"),(e instanceof RegExp||"string"==typeof e)&&(r=e,e=null);try{a()}catch(e){s=e}var l=void 0===e&&void 0===r,f=Boolean(e&&r),d=!1,p=!1;if(l||!l&&!h){var y="an error";e instanceof Error?y="#{exp}":e&&(y=t.checkError.getConstructorName(e)),this.assert(s,"expected #{this} to throw "+y,"expected #{this} to not throw an error but #{act} was thrown",e&&e.toString(),s instanceof Error?s.toString():"string"==typeof s?s:s&&t.checkError.getConstructorName(s))}if(e&&s){if(e instanceof Error)t.checkError.compatibleInstance(s,e)===h&&(f&&h?d=!0:this.assert(h,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(s&&!h?" but #{act} was thrown":""),e.toString(),s.toString()));t.checkError.compatibleConstructor(s,e)===h&&(f&&h?d=!0:this.assert(h,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(s?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&t.checkError.getConstructorName(e),s instanceof Error?s.toString():s&&t.checkError.getConstructorName(s)))}if(s&&null!=r){var g="including";r instanceof RegExp&&(g="matching"),t.checkError.compatibleMessage(s,r)===h&&(f&&h?p=!0:this.assert(h,"expected #{this} to throw error "+g+" #{exp} but got #{act}","expected #{this} to throw error not "+g+" #{exp}",r,t.checkError.getMessage(s)))}d&&p&&this.assert(h,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(s?" but #{act} was thrown":""),e instanceof Error?e.toString():e&&t.checkError.getConstructorName(e),s instanceof Error?s.toString():s&&t.checkError.getConstructorName(s)),i(this,"object",s)}function O(e,n){n&&i(this,"message",n);var r=i(this,"object"),o=i(this,"itself"),s="function"!=typeof r||o?r[e]:r.prototype[e];this.assert("function"==typeof s,"expected #{this} to respond to "+t.inspect(e),"expected #{this} to not respond to "+t.inspect(e))}function D(e,n){n&&i(this,"message",n);var r=e(i(this,"object"));this.assert(r,"expected #{this} to satisfy "+t.objDisplay(e),"expected #{this} to not satisfy"+t.objDisplay(e),!i(this,"negate"),r)}function A(e,t,o){o&&i(this,"message",o);var s=i(this,"object"),a=i(this,"message"),u=i(this,"ssfi");if(new n(s,a,u,!0).is.a("number"),"number"!=typeof e||"number"!=typeof t)throw new r((a=a?a+": ":"")+"the arguments to closeTo or approximately must be numbers"+(void 0===t?", and a delta is required":""),void 0,u);this.assert(Math.abs(s-e)<=t,"expected #{this} to be close to "+e+" +/- "+t,"expected #{this} not to be close to "+e+" +/- "+t)}function E(e,t,r){r&&i(this,"message",r);var o,s=i(this,"object"),a=i(this,"message"),u=i(this,"ssfi");new n(s,a,u,!0).is.a("function"),t?(new n(e,a,u,!0).to.have.property(t),o=e[t]):(new n(e,a,u,!0).is.a("function"),o=e()),s();var c=null==t?e():e[t],h=null==t?o:"."+t;i(this,"deltaMsgObj",h),i(this,"initialDeltaValue",o),i(this,"finalDeltaValue",c),i(this,"deltaBehavior","change"),i(this,"realDelta",c!==o),this.assert(o!==c,"expected "+h+" to change","expected "+h+" to not change")}function B(e,t,r){r&&i(this,"message",r);var o,s=i(this,"object"),a=i(this,"message"),u=i(this,"ssfi");new n(s,a,u,!0).is.a("function"),t?(new n(e,a,u,!0).to.have.property(t),o=e[t]):(new n(e,a,u,!0).is.a("function"),o=e()),new n(o,a,u,!0).is.a("number"),s();var c=null==t?e():e[t],h=null==t?o:"."+t;i(this,"deltaMsgObj",h),i(this,"initialDeltaValue",o),i(this,"finalDeltaValue",c),i(this,"deltaBehavior","increase"),i(this,"realDelta",c-o),this.assert(c-o>0,"expected "+h+" to increase","expected "+h+" to not increase")}function N(e,t,r){r&&i(this,"message",r);var o,s=i(this,"object"),a=i(this,"message"),u=i(this,"ssfi");new n(s,a,u,!0).is.a("function"),t?(new n(e,a,u,!0).to.have.property(t),o=e[t]):(new n(e,a,u,!0).is.a("function"),o=e()),new n(o,a,u,!0).is.a("number"),s();var c=null==t?e():e[t],h=null==t?o:"."+t;i(this,"deltaMsgObj",h),i(this,"initialDeltaValue",o),i(this,"finalDeltaValue",c),i(this,"deltaBehavior","decrease"),i(this,"realDelta",o-c),this.assert(c-o<0,"expected "+h+" to decrease","expected "+h+" to not decrease")}["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach((function(e){n.addProperty(e)})),n.addProperty("not",(function(){i(this,"negate",!0)})),n.addProperty("deep",(function(){i(this,"deep",!0)})),n.addProperty("nested",(function(){i(this,"nested",!0)})),n.addProperty("own",(function(){i(this,"own",!0)})),n.addProperty("ordered",(function(){i(this,"ordered",!0)})),n.addProperty("any",(function(){i(this,"any",!0),i(this,"all",!1)})),n.addProperty("all",(function(){i(this,"all",!0),i(this,"any",!1)})),n.addChainableMethod("an",o),n.addChainableMethod("a",o),n.addChainableMethod("include",u,a),n.addChainableMethod("contain",u,a),n.addChainableMethod("contains",u,a),n.addChainableMethod("includes",u,a),n.addProperty("ok",(function(){this.assert(i(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy")})),n.addProperty("true",(function(){this.assert(!0===i(this,"object"),"expected #{this} to be true","expected #{this} to be false",!i(this,"negate"))})),n.addProperty("false",(function(){this.assert(!1===i(this,"object"),"expected #{this} to be false","expected #{this} to be true",!!i(this,"negate"))})),n.addProperty("null",(function(){this.assert(null===i(this,"object"),"expected #{this} to be null","expected #{this} not to be null")})),n.addProperty("undefined",(function(){this.assert(void 0===i(this,"object"),"expected #{this} to be undefined","expected #{this} not to be undefined")})),n.addProperty("NaN",(function(){this.assert(t.isNaN(i(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN")})),n.addProperty("exist",c),n.addProperty("exists",c),n.addProperty("empty",(function(){var e,n=i(this,"object"),o=i(this,"ssfi"),s=i(this,"message");switch(s=s?s+": ":"",t.type(n).toLowerCase()){case"array":case"string":e=n.length;break;case"map":case"set":e=n.size;break;case"weakmap":case"weakset":throw new r(s+".empty was passed a weak collection",void 0,o);case"function":var a=s+".empty was passed a function "+t.getName(n);throw new r(a.trim(),void 0,o);default:if(n!==Object(n))throw new r(s+".empty was passed non-string primitive "+t.inspect(n),void 0,o);e=Object.keys(n).length}this.assert(0===e,"expected #{this} to be empty","expected #{this} not to be empty")})),n.addProperty("arguments",h),n.addProperty("Arguments",h),n.addMethod("equal",l),n.addMethod("equals",l),n.addMethod("eq",l),n.addMethod("eql",f),n.addMethod("eqls",f),n.addMethod("above",d),n.addMethod("gt",d),n.addMethod("greaterThan",d),n.addMethod("least",p),n.addMethod("gte",p),n.addMethod("greaterThanOrEqual",p),n.addMethod("below",y),n.addMethod("lt",y),n.addMethod("lessThan",y),n.addMethod("most",g),n.addMethod("lte",g),n.addMethod("lessThanOrEqual",g),n.addMethod("within",(function(e,o,s){s&&i(this,"message",s);var a,u=i(this,"object"),c=i(this,"doLength"),h=i(this,"message"),l=h?h+": ":"",f=i(this,"ssfi"),d=t.type(u).toLowerCase(),p=t.type(e).toLowerCase(),y=t.type(o).toLowerCase(),g=!0,m="date"===p&&"date"===y?e.toISOString()+".."+o.toISOString():e+".."+o;if(c&&"map"!==d&&"set"!==d&&new n(u,h,f,!0).to.have.property("length"),c||"date"!==d||"date"===p&&"date"===y)if("number"===p&&"number"===y||!c&&"number"!==d)if(c||"date"===d||"number"===d)g=!1;else{a=l+"expected "+("string"===d?"'"+u+"'":u)+" to be a number or a date"}else a=l+"the arguments to within must be numbers";else a=l+"the arguments to within must be dates";if(g)throw new r(a,void 0,f);if(c){var v,w="length";"map"===d||"set"===d?(w="size",v=u.size):v=u.length,this.assert(v>=e&&v<=o,"expected #{this} to have a "+w+" within "+m,"expected #{this} to not have a "+w+" within "+m)}else this.assert(u>=e&&u<=o,"expected #{this} to be within "+m,"expected #{this} to not be within "+m)})),n.addMethod("instanceof",m),n.addMethod("instanceOf",m),n.addMethod("property",v),n.addMethod("ownProperty",w),n.addMethod("haveOwnProperty",w),n.addMethod("ownPropertyDescriptor",b),n.addMethod("haveOwnPropertyDescriptor",b),n.addChainableMethod("length",x,_),n.addChainableMethod("lengthOf",x,_),n.addMethod("match",k),n.addMethod("matches",k),n.addMethod("string",(function(e,r){r&&i(this,"message",r);var o=i(this,"object"),s=i(this,"message"),a=i(this,"ssfi");new n(o,s,a,!0).is.a("string"),this.assert(~o.indexOf(e),"expected #{this} to contain "+t.inspect(e),"expected #{this} to not contain "+t.inspect(e))})),n.addMethod("keys",S),n.addMethod("key",S),n.addMethod("throw",M),n.addMethod("throws",M),n.addMethod("Throw",M),n.addMethod("respondTo",O),n.addMethod("respondsTo",O),n.addProperty("itself",(function(){i(this,"itself",!0)})),n.addMethod("satisfy",D),n.addMethod("satisfies",D),n.addMethod("closeTo",A),n.addMethod("approximately",A),n.addMethod("members",(function(e,t){t&&i(this,"message",t);var r=i(this,"object"),o=i(this,"message"),s=i(this,"ssfi");new n(r,o,s,!0).to.be.an("array"),new n(e,o,s,!0).to.be.an("array");var a,u,c,h=i(this,"contains"),l=i(this,"ordered");h?(u="expected #{this} to be "+(a=l?"an ordered superset":"a superset")+" of #{exp}",c="expected #{this} to not be "+a+" of #{exp}"):(u="expected #{this} to have the same "+(a=l?"ordered members":"members")+" as #{exp}",c="expected #{this} to not have the same "+a+" as #{exp}");var f=i(this,"deep")?i(this,"eql"):void 0;this.assert(function(e,t,n,r,i){if(!r){if(e.length!==t.length)return!1;t=t.slice()}return e.every((function(e,o){if(i)return n?n(e,t[o]):e===t[o];if(!n){var s=t.indexOf(e);return-1!==s&&(r||t.splice(s,1),!0)}return t.some((function(i,o){return!!n(e,i)&&(r||t.splice(o,1),!0)}))}))}(e,r,f,h,l),u,c,e,r,!0)})),n.addMethod("oneOf",(function(e,t){t&&i(this,"message",t);var r=i(this,"object"),o=i(this,"message"),s=i(this,"ssfi"),a=i(this,"contains"),u=i(this,"deep"),c=i(this,"eql");new n(e,o,s,!0).to.be.an("array"),a?this.assert(e.some((function(e){return r.indexOf(e)>-1})),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",e,r):u?this.assert(e.some((function(e){return c(r,e)})),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",e,r):this.assert(e.indexOf(r)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",e,r)})),n.addMethod("change",E),n.addMethod("changes",E),n.addMethod("increase",B),n.addMethod("increases",B),n.addMethod("decrease",N),n.addMethod("decreases",N),n.addMethod("by",(function(e,t){t&&i(this,"message",t);var n,r=i(this,"deltaMsgObj"),o=i(this,"initialDeltaValue"),s=i(this,"finalDeltaValue"),a=i(this,"deltaBehavior"),u=i(this,"realDelta");n="change"===a?Math.abs(s-o)===Math.abs(e):u===Math.abs(e),this.assert(n,"expected "+r+" to "+a+" by "+e,"expected "+r+" to not "+a+" by "+e)})),n.addProperty("extensible",(function(){var e=i(this,"object"),t=e===Object(e)&&Object.isExtensible(e);this.assert(t,"expected #{this} to be extensible","expected #{this} to not be extensible")})),n.addProperty("sealed",(function(){var e=i(this,"object"),t=e!==Object(e)||Object.isSealed(e);this.assert(t,"expected #{this} to be sealed","expected #{this} to not be sealed")})),n.addProperty("frozen",(function(){var e=i(this,"object"),t=e!==Object(e)||Object.isFrozen(e);this.assert(t,"expected #{this} to be frozen","expected #{this} to not be frozen")})),n.addProperty("finite",(function(e){var t=i(this,"object");this.assert("number"==typeof t&&isFinite(t),"expected #{this} to be a finite number","expected #{this} to not be a finite number")}))},Dt=function(e,t){e.expect=function(t,n){return new e.Assertion(t,n)},e.expect.fail=function(t,n,r,i){throw arguments.length<2&&(r=t,t=void 0),r=r||"expect.fail()",new e.AssertionError(r,{actual:t,expected:n,operator:i},e.expect.fail)}},At=function(e,t){var n=e.Assertion;function r(){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||"function"==typeof BigInt&&this instanceof BigInt?new n(this.valueOf(),null,e):new n(this,null,e)},configurable:!0});var t={fail:function(n,r,i,o){throw arguments.length<2&&(i=n,n=void 0),i=i||"should.fail()",new e.AssertionError(i,{actual:n,expected:r,operator:o},t.fail)},equal:function(e,t,r){new n(e,r).to.equal(t)},Throw:function(e,t,r,i){new n(e,i).to.Throw(t,r)},exist:function(e,t){new n(e,t).to.exist},not:{}};return t.not.equal=function(e,t,r){new n(e,r).to.not.equal(t)},t.not.Throw=function(e,t,r,i){new n(e,i).to.not.Throw(t,r)},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=r,e.Should=r},Et=function(e,t){
|
|
405
|
+
/*!
|
|
406
|
+
* Chai dependencies.
|
|
407
|
+
*/
|
|
408
|
+
var n=e.Assertion,r=t.flag,i=e.assert=function(t,r){new n(null,null,e.assert,!0).assert(t,r,"[ negation message unavailable ]")};
|
|
409
|
+
/*!
|
|
410
|
+
* Module export.
|
|
411
|
+
*/i.fail=function(t,n,r,o){throw arguments.length<2&&(r=t,t=void 0),r=r||"assert.fail()",new e.AssertionError(r,{actual:t,expected:n,operator:o},i.fail)},i.isOk=function(e,t){new n(e,t,i.isOk,!0).is.ok},i.isNotOk=function(e,t){new n(e,t,i.isNotOk,!0).is.not.ok},i.equal=function(e,t,o){var s=new n(e,o,i.equal,!0);s.assert(t==r(s,"object"),"expected #{this} to equal #{exp}","expected #{this} to not equal #{act}",t,e,!0)},i.notEqual=function(e,t,o){var s=new n(e,o,i.notEqual,!0);s.assert(t!=r(s,"object"),"expected #{this} to not equal #{exp}","expected #{this} to equal #{act}",t,e,!0)},i.strictEqual=function(e,t,r){new n(e,r,i.strictEqual,!0).to.equal(t)},i.notStrictEqual=function(e,t,r){new n(e,r,i.notStrictEqual,!0).to.not.equal(t)},i.deepEqual=i.deepStrictEqual=function(e,t,r){new n(e,r,i.deepEqual,!0).to.eql(t)},i.notDeepEqual=function(e,t,r){new n(e,r,i.notDeepEqual,!0).to.not.eql(t)},i.isAbove=function(e,t,r){new n(e,r,i.isAbove,!0).to.be.above(t)},i.isAtLeast=function(e,t,r){new n(e,r,i.isAtLeast,!0).to.be.least(t)},i.isBelow=function(e,t,r){new n(e,r,i.isBelow,!0).to.be.below(t)},i.isAtMost=function(e,t,r){new n(e,r,i.isAtMost,!0).to.be.most(t)},i.isTrue=function(e,t){new n(e,t,i.isTrue,!0).is.true},i.isNotTrue=function(e,t){new n(e,t,i.isNotTrue,!0).to.not.equal(!0)},i.isFalse=function(e,t){new n(e,t,i.isFalse,!0).is.false},i.isNotFalse=function(e,t){new n(e,t,i.isNotFalse,!0).to.not.equal(!1)},i.isNull=function(e,t){new n(e,t,i.isNull,!0).to.equal(null)},i.isNotNull=function(e,t){new n(e,t,i.isNotNull,!0).to.not.equal(null)},i.isNaN=function(e,t){new n(e,t,i.isNaN,!0).to.be.NaN},i.isNotNaN=function(e,t){new n(e,t,i.isNotNaN,!0).not.to.be.NaN},i.exists=function(e,t){new n(e,t,i.exists,!0).to.exist},i.notExists=function(e,t){new n(e,t,i.notExists,!0).to.not.exist},i.isUndefined=function(e,t){new n(e,t,i.isUndefined,!0).to.equal(void 0)},i.isDefined=function(e,t){new n(e,t,i.isDefined,!0).to.not.equal(void 0)},i.isFunction=function(e,t){new n(e,t,i.isFunction,!0).to.be.a("function")},i.isNotFunction=function(e,t){new n(e,t,i.isNotFunction,!0).to.not.be.a("function")},i.isObject=function(e,t){new n(e,t,i.isObject,!0).to.be.a("object")},i.isNotObject=function(e,t){new n(e,t,i.isNotObject,!0).to.not.be.a("object")},i.isArray=function(e,t){new n(e,t,i.isArray,!0).to.be.an("array")},i.isNotArray=function(e,t){new n(e,t,i.isNotArray,!0).to.not.be.an("array")},i.isString=function(e,t){new n(e,t,i.isString,!0).to.be.a("string")},i.isNotString=function(e,t){new n(e,t,i.isNotString,!0).to.not.be.a("string")},i.isNumber=function(e,t){new n(e,t,i.isNumber,!0).to.be.a("number")},i.isNotNumber=function(e,t){new n(e,t,i.isNotNumber,!0).to.not.be.a("number")},i.isFinite=function(e,t){new n(e,t,i.isFinite,!0).to.be.finite},i.isBoolean=function(e,t){new n(e,t,i.isBoolean,!0).to.be.a("boolean")},i.isNotBoolean=function(e,t){new n(e,t,i.isNotBoolean,!0).to.not.be.a("boolean")},i.typeOf=function(e,t,r){new n(e,r,i.typeOf,!0).to.be.a(t)},i.notTypeOf=function(e,t,r){new n(e,r,i.notTypeOf,!0).to.not.be.a(t)},i.instanceOf=function(e,t,r){new n(e,r,i.instanceOf,!0).to.be.instanceOf(t)},i.notInstanceOf=function(e,t,r){new n(e,r,i.notInstanceOf,!0).to.not.be.instanceOf(t)},i.include=function(e,t,r){new n(e,r,i.include,!0).include(t)},i.notInclude=function(e,t,r){new n(e,r,i.notInclude,!0).not.include(t)},i.deepInclude=function(e,t,r){new n(e,r,i.deepInclude,!0).deep.include(t)},i.notDeepInclude=function(e,t,r){new n(e,r,i.notDeepInclude,!0).not.deep.include(t)},i.nestedInclude=function(e,t,r){new n(e,r,i.nestedInclude,!0).nested.include(t)},i.notNestedInclude=function(e,t,r){new n(e,r,i.notNestedInclude,!0).not.nested.include(t)},i.deepNestedInclude=function(e,t,r){new n(e,r,i.deepNestedInclude,!0).deep.nested.include(t)},i.notDeepNestedInclude=function(e,t,r){new n(e,r,i.notDeepNestedInclude,!0).not.deep.nested.include(t)},i.ownInclude=function(e,t,r){new n(e,r,i.ownInclude,!0).own.include(t)},i.notOwnInclude=function(e,t,r){new n(e,r,i.notOwnInclude,!0).not.own.include(t)},i.deepOwnInclude=function(e,t,r){new n(e,r,i.deepOwnInclude,!0).deep.own.include(t)},i.notDeepOwnInclude=function(e,t,r){new n(e,r,i.notDeepOwnInclude,!0).not.deep.own.include(t)},i.match=function(e,t,r){new n(e,r,i.match,!0).to.match(t)},i.notMatch=function(e,t,r){new n(e,r,i.notMatch,!0).to.not.match(t)},i.property=function(e,t,r){new n(e,r,i.property,!0).to.have.property(t)},i.notProperty=function(e,t,r){new n(e,r,i.notProperty,!0).to.not.have.property(t)},i.propertyVal=function(e,t,r,o){new n(e,o,i.propertyVal,!0).to.have.property(t,r)},i.notPropertyVal=function(e,t,r,o){new n(e,o,i.notPropertyVal,!0).to.not.have.property(t,r)},i.deepPropertyVal=function(e,t,r,o){new n(e,o,i.deepPropertyVal,!0).to.have.deep.property(t,r)},i.notDeepPropertyVal=function(e,t,r,o){new n(e,o,i.notDeepPropertyVal,!0).to.not.have.deep.property(t,r)},i.ownProperty=function(e,t,r){new n(e,r,i.ownProperty,!0).to.have.own.property(t)},i.notOwnProperty=function(e,t,r){new n(e,r,i.notOwnProperty,!0).to.not.have.own.property(t)},i.ownPropertyVal=function(e,t,r,o){new n(e,o,i.ownPropertyVal,!0).to.have.own.property(t,r)},i.notOwnPropertyVal=function(e,t,r,o){new n(e,o,i.notOwnPropertyVal,!0).to.not.have.own.property(t,r)},i.deepOwnPropertyVal=function(e,t,r,o){new n(e,o,i.deepOwnPropertyVal,!0).to.have.deep.own.property(t,r)},i.notDeepOwnPropertyVal=function(e,t,r,o){new n(e,o,i.notDeepOwnPropertyVal,!0).to.not.have.deep.own.property(t,r)},i.nestedProperty=function(e,t,r){new n(e,r,i.nestedProperty,!0).to.have.nested.property(t)},i.notNestedProperty=function(e,t,r){new n(e,r,i.notNestedProperty,!0).to.not.have.nested.property(t)},i.nestedPropertyVal=function(e,t,r,o){new n(e,o,i.nestedPropertyVal,!0).to.have.nested.property(t,r)},i.notNestedPropertyVal=function(e,t,r,o){new n(e,o,i.notNestedPropertyVal,!0).to.not.have.nested.property(t,r)},i.deepNestedPropertyVal=function(e,t,r,o){new n(e,o,i.deepNestedPropertyVal,!0).to.have.deep.nested.property(t,r)},i.notDeepNestedPropertyVal=function(e,t,r,o){new n(e,o,i.notDeepNestedPropertyVal,!0).to.not.have.deep.nested.property(t,r)},i.lengthOf=function(e,t,r){new n(e,r,i.lengthOf,!0).to.have.lengthOf(t)},i.hasAnyKeys=function(e,t,r){new n(e,r,i.hasAnyKeys,!0).to.have.any.keys(t)},i.hasAllKeys=function(e,t,r){new n(e,r,i.hasAllKeys,!0).to.have.all.keys(t)},i.containsAllKeys=function(e,t,r){new n(e,r,i.containsAllKeys,!0).to.contain.all.keys(t)},i.doesNotHaveAnyKeys=function(e,t,r){new n(e,r,i.doesNotHaveAnyKeys,!0).to.not.have.any.keys(t)},i.doesNotHaveAllKeys=function(e,t,r){new n(e,r,i.doesNotHaveAllKeys,!0).to.not.have.all.keys(t)},i.hasAnyDeepKeys=function(e,t,r){new n(e,r,i.hasAnyDeepKeys,!0).to.have.any.deep.keys(t)},i.hasAllDeepKeys=function(e,t,r){new n(e,r,i.hasAllDeepKeys,!0).to.have.all.deep.keys(t)},i.containsAllDeepKeys=function(e,t,r){new n(e,r,i.containsAllDeepKeys,!0).to.contain.all.deep.keys(t)},i.doesNotHaveAnyDeepKeys=function(e,t,r){new n(e,r,i.doesNotHaveAnyDeepKeys,!0).to.not.have.any.deep.keys(t)},i.doesNotHaveAllDeepKeys=function(e,t,r){new n(e,r,i.doesNotHaveAllDeepKeys,!0).to.not.have.all.deep.keys(t)},i.throws=function(e,t,o,s){("string"==typeof t||t instanceof RegExp)&&(o=t,t=null);var a=new n(e,s,i.throws,!0).to.throw(t,o);return r(a,"object")},i.doesNotThrow=function(e,t,r,o){("string"==typeof t||t instanceof RegExp)&&(r=t,t=null),new n(e,o,i.doesNotThrow,!0).to.not.throw(t,r)},i.operator=function(o,s,a,u){var c;switch(s){case"==":c=o==a;break;case"===":c=o===a;break;case">":c=o>a;break;case">=":c=o>=a;break;case"<":c=o<a;break;case"<=":c=o<=a;break;case"!=":c=o!=a;break;case"!==":c=o!==a;break;default:throw u=u?u+": ":u,new e.AssertionError(u+'Invalid operator "'+s+'"',void 0,i.operator)}var h=new n(c,u,i.operator,!0);h.assert(!0===r(h,"object"),"expected "+t.inspect(o)+" to be "+s+" "+t.inspect(a),"expected "+t.inspect(o)+" to not be "+s+" "+t.inspect(a))},i.closeTo=function(e,t,r,o){new n(e,o,i.closeTo,!0).to.be.closeTo(t,r)},i.approximately=function(e,t,r,o){new n(e,o,i.approximately,!0).to.be.approximately(t,r)},i.sameMembers=function(e,t,r){new n(e,r,i.sameMembers,!0).to.have.same.members(t)},i.notSameMembers=function(e,t,r){new n(e,r,i.notSameMembers,!0).to.not.have.same.members(t)},i.sameDeepMembers=function(e,t,r){new n(e,r,i.sameDeepMembers,!0).to.have.same.deep.members(t)},i.notSameDeepMembers=function(e,t,r){new n(e,r,i.notSameDeepMembers,!0).to.not.have.same.deep.members(t)},i.sameOrderedMembers=function(e,t,r){new n(e,r,i.sameOrderedMembers,!0).to.have.same.ordered.members(t)},i.notSameOrderedMembers=function(e,t,r){new n(e,r,i.notSameOrderedMembers,!0).to.not.have.same.ordered.members(t)},i.sameDeepOrderedMembers=function(e,t,r){new n(e,r,i.sameDeepOrderedMembers,!0).to.have.same.deep.ordered.members(t)},i.notSameDeepOrderedMembers=function(e,t,r){new n(e,r,i.notSameDeepOrderedMembers,!0).to.not.have.same.deep.ordered.members(t)},i.includeMembers=function(e,t,r){new n(e,r,i.includeMembers,!0).to.include.members(t)},i.notIncludeMembers=function(e,t,r){new n(e,r,i.notIncludeMembers,!0).to.not.include.members(t)},i.includeDeepMembers=function(e,t,r){new n(e,r,i.includeDeepMembers,!0).to.include.deep.members(t)},i.notIncludeDeepMembers=function(e,t,r){new n(e,r,i.notIncludeDeepMembers,!0).to.not.include.deep.members(t)},i.includeOrderedMembers=function(e,t,r){new n(e,r,i.includeOrderedMembers,!0).to.include.ordered.members(t)},i.notIncludeOrderedMembers=function(e,t,r){new n(e,r,i.notIncludeOrderedMembers,!0).to.not.include.ordered.members(t)},i.includeDeepOrderedMembers=function(e,t,r){new n(e,r,i.includeDeepOrderedMembers,!0).to.include.deep.ordered.members(t)},i.notIncludeDeepOrderedMembers=function(e,t,r){new n(e,r,i.notIncludeDeepOrderedMembers,!0).to.not.include.deep.ordered.members(t)},i.oneOf=function(e,t,r){new n(e,r,i.oneOf,!0).to.be.oneOf(t)},i.changes=function(e,t,r,o){3===arguments.length&&"function"==typeof t&&(o=r,r=null),new n(e,o,i.changes,!0).to.change(t,r)},i.changesBy=function(e,t,r,o,s){if(4===arguments.length&&"function"==typeof t){var a=o;o=r,s=a}else 3===arguments.length&&(o=r,r=null);new n(e,s,i.changesBy,!0).to.change(t,r).by(o)},i.doesNotChange=function(e,t,r,o){return 3===arguments.length&&"function"==typeof t&&(o=r,r=null),new n(e,o,i.doesNotChange,!0).to.not.change(t,r)},i.changesButNotBy=function(e,t,r,o,s){if(4===arguments.length&&"function"==typeof t){var a=o;o=r,s=a}else 3===arguments.length&&(o=r,r=null);new n(e,s,i.changesButNotBy,!0).to.change(t,r).but.not.by(o)},i.increases=function(e,t,r,o){return 3===arguments.length&&"function"==typeof t&&(o=r,r=null),new n(e,o,i.increases,!0).to.increase(t,r)},i.increasesBy=function(e,t,r,o,s){if(4===arguments.length&&"function"==typeof t){var a=o;o=r,s=a}else 3===arguments.length&&(o=r,r=null);new n(e,s,i.increasesBy,!0).to.increase(t,r).by(o)},i.doesNotIncrease=function(e,t,r,o){return 3===arguments.length&&"function"==typeof t&&(o=r,r=null),new n(e,o,i.doesNotIncrease,!0).to.not.increase(t,r)},i.increasesButNotBy=function(e,t,r,o,s){if(4===arguments.length&&"function"==typeof t){var a=o;o=r,s=a}else 3===arguments.length&&(o=r,r=null);new n(e,s,i.increasesButNotBy,!0).to.increase(t,r).but.not.by(o)},i.decreases=function(e,t,r,o){return 3===arguments.length&&"function"==typeof t&&(o=r,r=null),new n(e,o,i.decreases,!0).to.decrease(t,r)},i.decreasesBy=function(e,t,r,o,s){if(4===arguments.length&&"function"==typeof t){var a=o;o=r,s=a}else 3===arguments.length&&(o=r,r=null);new n(e,s,i.decreasesBy,!0).to.decrease(t,r).by(o)},i.doesNotDecrease=function(e,t,r,o){return 3===arguments.length&&"function"==typeof t&&(o=r,r=null),new n(e,o,i.doesNotDecrease,!0).to.not.decrease(t,r)},i.doesNotDecreaseBy=function(e,t,r,o,s){if(4===arguments.length&&"function"==typeof t){var a=o;o=r,s=a}else 3===arguments.length&&(o=r,r=null);return new n(e,s,i.doesNotDecreaseBy,!0).to.not.decrease(t,r).by(o)},i.decreasesButNotBy=function(e,t,r,o,s){if(4===arguments.length&&"function"==typeof t){var a=o;o=r,s=a}else 3===arguments.length&&(o=r,r=null);new n(e,s,i.decreasesButNotBy,!0).to.decrease(t,r).but.not.by(o)},
|
|
412
|
+
/*!
|
|
413
|
+
* ### .ifError(object)
|
|
414
|
+
*
|
|
415
|
+
* Asserts if value is not a false value, and throws if it is a true value.
|
|
416
|
+
* This is added to allow for chai to be a drop-in replacement for Node's
|
|
417
|
+
* assert class.
|
|
418
|
+
*
|
|
419
|
+
* var err = new Error('I am a custom error');
|
|
420
|
+
* assert.ifError(err); // Rethrows err!
|
|
421
|
+
*
|
|
422
|
+
* @name ifError
|
|
423
|
+
* @param {Object} object
|
|
424
|
+
* @namespace Assert
|
|
425
|
+
* @api public
|
|
426
|
+
*/
|
|
427
|
+
i.ifError=function(e){if(e)throw e},i.isExtensible=function(e,t){new n(e,t,i.isExtensible,!0).to.be.extensible},i.isNotExtensible=function(e,t){new n(e,t,i.isNotExtensible,!0).to.not.be.extensible},i.isSealed=function(e,t){new n(e,t,i.isSealed,!0).to.be.sealed},i.isNotSealed=function(e,t){new n(e,t,i.isNotSealed,!0).to.not.be.sealed},i.isFrozen=function(e,t){new n(e,t,i.isFrozen,!0).to.be.frozen},i.isNotFrozen=function(e,t){new n(e,t,i.isNotFrozen,!0).to.not.be.frozen},i.isEmpty=function(e,t){new n(e,t,i.isEmpty,!0).to.be.empty},i.isNotEmpty=function(e,t){new n(e,t,i.isNotEmpty,!0).to.not.be.empty},
|
|
428
|
+
/*!
|
|
429
|
+
* Aliases.
|
|
430
|
+
*/
|
|
431
|
+
function e(t,n){return i[n]=i[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 Bt(){return kt||(kt=1,function(e){var t=[];
|
|
432
|
+
/*!
|
|
433
|
+
* Chai version
|
|
434
|
+
*/e.version="4.3.8",
|
|
435
|
+
/*!
|
|
436
|
+
* Assertion Error
|
|
437
|
+
*/
|
|
438
|
+
e.AssertionError=u;
|
|
439
|
+
/*!
|
|
440
|
+
* Utils for plugins (not exported)
|
|
441
|
+
*/
|
|
442
|
+
var n=xt();e.use=function(r){return~t.indexOf(r)||(r(e,n),t.push(r)),e},
|
|
443
|
+
/*!
|
|
444
|
+
* Utility Functions
|
|
445
|
+
*/
|
|
446
|
+
e.util=n;
|
|
447
|
+
/*!
|
|
448
|
+
* Configuration
|
|
449
|
+
*/
|
|
450
|
+
var r=le;e.config=r;
|
|
451
|
+
/*!
|
|
452
|
+
* Primary `Assertion` prototype
|
|
453
|
+
*/
|
|
454
|
+
var i=Mt;e.use(i);
|
|
455
|
+
/*!
|
|
456
|
+
* Core Assertions
|
|
457
|
+
*/
|
|
458
|
+
var o=Ot;e.use(o);
|
|
459
|
+
/*!
|
|
460
|
+
* Expect interface
|
|
461
|
+
*/
|
|
462
|
+
var s=Dt;e.use(s);
|
|
463
|
+
/*!
|
|
464
|
+
* Should interface
|
|
465
|
+
*/
|
|
466
|
+
var a=At;e.use(a);
|
|
467
|
+
/*!
|
|
468
|
+
* Assert interface
|
|
469
|
+
*/
|
|
470
|
+
var c=Et;e.use(c)}(s)),s}!function(e){e.exports=Bt()}(o);var Nt=n(i);const Pt=Nt.expect;Nt.version,Nt.Assertion,Nt.AssertionError,Nt.util,Nt.config,Nt.use,Nt.should;const Tt=Nt.assert;Nt.core;for(var Ct={},Yt={byteLength:function(e){var t=It(e),n=t[0],r=t[1];return 3*(n+r)/4-r},toByteArray:function(e){var t,n,r=It(e),i=r[0],o=r[1],s=new Ht(function(e,t,n){return 3*(t+n)/4-n}(0,i,o)),a=0,u=o>0?i-4:i;for(n=0;n<u;n+=4)t=Rt[e.charCodeAt(n)]<<18|Rt[e.charCodeAt(n+1)]<<12|Rt[e.charCodeAt(n+2)]<<6|Rt[e.charCodeAt(n+3)],s[a++]=t>>16&255,s[a++]=t>>8&255,s[a++]=255&t;2===o&&(t=Rt[e.charCodeAt(n)]<<2|Rt[e.charCodeAt(n+1)]>>4,s[a++]=255&t);1===o&&(t=Rt[e.charCodeAt(n)]<<10|Rt[e.charCodeAt(n+1)]<<4|Rt[e.charCodeAt(n+2)]>>2,s[a++]=t>>8&255,s[a++]=255&t);return s},fromByteArray:function(e){for(var t,n=e.length,r=n%3,i=[],o=16383,s=0,a=n-r;s<a;s+=o)i.push(Lt(e,s,s+o>a?a:s+o));1===r?(t=e[n-1],i.push(jt[t>>2]+jt[t<<4&63]+"==")):2===r&&(t=(e[n-2]<<8)+e[n-1],i.push(jt[t>>10]+jt[t>>4&63]+jt[t<<2&63]+"="));return i.join("")}},jt=[],Rt=[],Ht="undefined"!=typeof Uint8Array?Uint8Array:Array,Ut="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",zt=0;zt<64;++zt)jt[zt]=Ut[zt],Rt[Ut.charCodeAt(zt)]=zt;function It(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function Lt(e,t,n){for(var r,i,o=[],s=t;s<n;s+=3)r=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),o.push(jt[(i=r)>>18&63]+jt[i>>12&63]+jt[i>>6&63]+jt[63&i]);return o.join("")}Rt["-".charCodeAt(0)]=62,Rt["_".charCodeAt(0)]=63;var Ft={};
|
|
471
|
+
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */function Wt(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}Ft.read=function(e,t,n,r,i){var o,s,a=8*i-r-1,u=(1<<a)-1,c=u>>1,h=-7,l=n?i-1:0,f=n?-1:1,d=e[t+l];for(l+=f,o=d&(1<<-h)-1,d>>=-h,h+=a;h>0;o=256*o+e[t+l],l+=f,h-=8);for(s=o&(1<<-h)-1,o>>=-h,h+=r;h>0;s=256*s+e[t+l],l+=f,h-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:1/0*(d?-1:1);s+=Math.pow(2,r),o-=c}return(d?-1:1)*s*Math.pow(2,o-r)},Ft.write=function(e,t,n,r,i,o){var s,a,u,c=8*o-i-1,h=(1<<c)-1,l=h>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=h):(s=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-s))<1&&(s--,u*=2),(t+=s+l>=1?f/u:f*Math.pow(2,1-l))*u>=2&&(s++,u/=2),s+l>=h?(a=0,s=h):s+l>=1?(a=(t*u-1)*Math.pow(2,i),s+=l):(a=t*Math.pow(2,l-1)*Math.pow(2,i),s=0));i>=8;e[n+d]=255&a,d+=p,a/=256,i-=8);for(s=s<<i|a,c+=i;c>0;e[n+d]=255&s,d+=p,s/=256,c-=8);e[n+d-p]|=128*y},
|
|
472
|
+
/*!
|
|
473
|
+
* The buffer module from node.js, for the browser.
|
|
474
|
+
*
|
|
475
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
476
|
+
* @license MIT
|
|
477
|
+
*/
|
|
478
|
+
function(e){var t=Yt,n=Ft,r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=function(e){+e!=e&&(e=0);return s.alloc(+e)},e.INSPECT_MAX_BYTES=50;var i=2147483647;function o(e){if(e>i)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if("number"==typeof e){if("string"==typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return c(e)}return a(e,t,n)}function a(e,t,n){if("string"==typeof e)return function(e,t){"string"==typeof t&&""!==t||(t="utf8");if(!s.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|d(e,t),r=o(n),i=r.write(e,t);i!==n&&(r=r.slice(0,i));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(U(e,Uint8Array)){var t=new Uint8Array(e);return l(t.buffer,t.byteOffset,t.byteLength)}return h(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(U(e,ArrayBuffer)||e&&U(e.buffer,ArrayBuffer))return l(e,t,n);if("undefined"!=typeof SharedArrayBuffer&&(U(e,SharedArrayBuffer)||e&&U(e.buffer,SharedArrayBuffer)))return l(e,t,n);if("number"==typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return s.from(r,t,n);var i=function(e){if(s.isBuffer(e)){var t=0|f(e.length),n=o(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!=typeof e.length||z(e.length)?o(0):h(e);if("Buffer"===e.type&&Array.isArray(e.data))return h(e.data)}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return s.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function c(e){return u(e),o(e<0?0:0|f(e))}function h(e){for(var t=e.length<0?0:0|f(e.length),n=o(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function l(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,s.prototype),r}function f(e){if(e>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return 0|e}function d(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||U(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return j(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return R(e).length;default:if(i)return r?-1:j(e).length;t=(""+t).toLowerCase(),i=!0}}function p(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,n);case"utf8":case"utf-8":return S(this,t,n);case"ascii":return O(this,t,n);case"latin1":case"binary":return D(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return E(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function y(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,i){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),z(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:m(e,t,n,r,i);if("number"==typeof t)return t&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):m(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function m(e,t,n,r,i){var o,s=1,a=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,u/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(i){var h=-1;for(o=n;o<a;o++)if(c(e,o)===c(t,-1===h?0:o-h)){if(-1===h&&(h=o),o-h+1===u)return h*s}else-1!==h&&(o-=o-h),h=-1}else for(n+u>a&&(n=a-u),o=n;o>=0;o--){for(var l=!0,f=0;f<u;f++)if(c(e,o+f)!==c(t,f)){l=!1;break}if(l)return o}return-1}function v(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=t.length;r>o/2&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(t.substr(2*s,2),16);if(z(a))return s;e[n+s]=a}return s}function w(e,t,n,r){return H(j(t,e.length-n),e,n,r)}function b(e,t,n,r){return H(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function _(e,t,n,r){return H(R(t),e,n,r)}function x(e,t,n,r){return H(function(e,t){for(var n,r,i,o=[],s=0;s<e.length&&!((t-=2)<0);++s)r=(n=e.charCodeAt(s))>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function k(e,n,r){return 0===n&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function S(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o,s,a,u,c=e[i],h=null,l=c>239?4:c>223?3:c>191?2:1;if(i+l<=n)switch(l){case 1:c<128&&(h=c);break;case 2:128==(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(h=u);break;case 3:o=e[i+1],s=e[i+2],128==(192&o)&&128==(192&s)&&(u=(15&c)<<12|(63&o)<<6|63&s)>2047&&(u<55296||u>57343)&&(h=u);break;case 4:o=e[i+1],s=e[i+2],a=e[i+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&(u=(15&c)<<18|(63&o)<<12|(63&s)<<6|63&a)>65535&&u<1114112&&(h=u)}null===h?(h=65533,l=1):h>65535&&(h-=65536,r.push(h>>>10&1023|55296),h=56320|1023&h),r.push(h),i+=l}return function(e){var t=e.length;if(t<=M)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=M));return n}(r)}e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),s.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}}),s.poolSize=8192,s.from=function(e,t,n){return a(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array),s.alloc=function(e,t,n){return function(e,t,n){return u(e),e<=0?o(e):void 0!==t?"string"==typeof n?o(e).fill(t,n):o(e).fill(t):o(e)}(e,t,n)},s.allocUnsafe=function(e){return c(e)},s.allocUnsafeSlow=function(e){return c(e)},s.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==s.prototype},s.compare=function(e,t){if(U(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),U(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return s.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=s.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(U(o,Uint8Array))i+o.length>r.length?s.from(o).copy(r,i):Uint8Array.prototype.set.call(r,o,i);else{if(!s.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i)}i+=o.length}return r},s.byteLength=d,s.prototype._isBuffer=!0,s.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)y(this,t,t+1);return this},s.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},s.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},s.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?S(this,0,e):p.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===s.compare(this,e)},s.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return t=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(t+=" ... "),"<Buffer "+t+">"},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(U(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),u=Math.min(o,a),c=this.slice(r,i),h=e.slice(t,n),l=0;l<u;++l)if(c[l]!==h[l]){o=c[l],a=h[l];break}return o<a?-1:a<o?1:0},s.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},s.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},s.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return v(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":case"latin1":case"binary":return b(this,e,t,n);case"base64":return _(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var M=4096;function O(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function D(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function A(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=I[e[o]];return i}function E(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length-1;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function B(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function N(e,t,n,r,i,o){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function P(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function T(e,t,r,i,o){return t=+t,r>>>=0,o||P(e,0,r,4),n.write(e,t,r,i,23,4),r+4}function C(e,t,r,i,o){return t=+t,r>>>=0,o||P(e,0,r,8),n.write(e,t,r,i,52,8),r+8}s.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,s.prototype),r},s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||B(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||B(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||B(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||B(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||B(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||B(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||B(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||B(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||B(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},s.prototype.readInt8=function(e,t){return e>>>=0,t||B(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||B(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||B(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||B(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||B(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return e>>>=0,t||B(e,4,this.length),n.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||B(e,4,this.length),n.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||B(e,8,this.length),n.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||B(e,8,this.length),n.read(this,e,!1,52,8)},s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||N(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||N(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,255,0),this[t]=255&e,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);N(this,e,t,n,i-1,-i)}var o=0,s=1,a=0;for(this[t]=255&e;++o<n&&(s*=256);)e<0&&0===a&&0!==this[t+o-1]&&(a=1),this[t+o]=(e/s|0)-a&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);N(this,e,t,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[t+o]=255&e;--o>=0&&(s*=256);)e<0&&0===a&&0!==this[t+o+1]&&(a=1),this[t+o]=(e/s|0)-a&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},s.prototype.writeFloatLE=function(e,t,n){return T(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return T(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return C(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return C(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},s.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!s.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var i=e.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(e=i)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=s.isBuffer(e)?e:s.from(e,r),u=a.length;if(0===u)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=a[o%u]}return this};var Y=/[^+/0-9A-Za-z-_]/g;function j(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],s=0;s<r;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function R(e){return t.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(Y,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function H(e,t,n,r){for(var i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function U(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function z(e){return e!=e}var I=function(){for(var e="0123456789abcdef",t=new Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}()}(Ct);var Vt={};!function(e){e.exports=function(){var t,n;function r(){return t.apply(null,arguments)}function i(e){t=e}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function u(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;var t;for(t in e)if(a(e,t))return!1;return!0}function c(e){return void 0===e}function h(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function l(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function f(e,t){var n,r=[],i=e.length;for(n=0;n<i;++n)r.push(t(e[n],n));return r}function d(e,t){for(var n in t)a(t,n)&&(e[n]=t[n]);return a(t,"toString")&&(e.toString=t.toString),a(t,"valueOf")&&(e.valueOf=t.valueOf),e}function p(e,t,n,r){return Zn(e,t,n,r,!0).utc()}function y(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function g(e){return null==e._pf&&(e._pf=y()),e._pf}function m(e){var t=null,r=!1,i=e._d&&!isNaN(e._d.getTime());return i&&(t=g(e),r=n.call(t.parsedDateParts,(function(e){return null!=e})),i=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r),e._strict&&(i=i&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e)?i:(e._isValid=i,e._isValid)}function v(e){var t=p(NaN);return null!=e?d(g(t),e):g(t).userInvalidated=!0,t}n=Array.prototype.some?Array.prototype.some:function(e){var t,n=Object(this),r=n.length>>>0;for(t=0;t<r;t++)if(t in n&&e.call(this,n[t],t,n))return!0;return!1};var w=r.momentProperties=[],b=!1;function _(e,t){var n,r,i,o=w.length;if(c(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),c(t._i)||(e._i=t._i),c(t._f)||(e._f=t._f),c(t._l)||(e._l=t._l),c(t._strict)||(e._strict=t._strict),c(t._tzm)||(e._tzm=t._tzm),c(t._isUTC)||(e._isUTC=t._isUTC),c(t._offset)||(e._offset=t._offset),c(t._pf)||(e._pf=g(t)),c(t._locale)||(e._locale=t._locale),o>0)for(n=0;n<o;n++)c(i=t[r=w[n]])||(e[r]=i);return e}function x(e){_(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===b&&(b=!0,r.updateOffset(this),b=!1)}function k(e){return e instanceof x||null!=e&&null!=e._isAMomentObject}function S(e){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function M(e,t){var n=!0;return d((function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,e),n){var i,o,s,u=[],c=arguments.length;for(o=0;o<c;o++){if(i="","object"==typeof arguments[o]){for(s in i+="\n["+o+"] ",arguments[0])a(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[o];u.push(i)}S(e+"\nArguments: "+Array.prototype.slice.call(u).join("")+"\n"+(new Error).stack),n=!1}return t.apply(this,arguments)}),t)}var O,D={};function A(e,t){null!=r.deprecationHandler&&r.deprecationHandler(e,t),D[e]||(S(t),D[e]=!0)}function E(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function B(e){var t,n;for(n in e)a(e,n)&&(E(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function N(e,t){var n,r=d({},e);for(n in t)a(t,n)&&(s(e[n])&&s(t[n])?(r[n]={},d(r[n],e[n]),d(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)a(e,n)&&!a(t,n)&&s(e[n])&&(r[n]=d({},r[n]));return r}function P(e){null!=e&&this.set(e)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,O=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)a(e,t)&&n.push(t);return n};var T={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function C(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return E(r)?r.call(t,n):r}function Y(e,t,n){var r=""+Math.abs(e),i=t-r.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var j=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,R=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,H={},U={};function z(e,t,n,r){var i=r;"string"==typeof r&&(i=function(){return this[r]()}),e&&(U[e]=i),t&&(U[t[0]]=function(){return Y(i.apply(this,arguments),t[1],t[2])}),n&&(U[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function I(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function L(e){var t,n,r=e.match(j);for(t=0,n=r.length;t<n;t++)U[r[t]]?r[t]=U[r[t]]:r[t]=I(r[t]);return function(t){var i,o="";for(i=0;i<n;i++)o+=E(r[i])?r[i].call(t,e):r[i];return o}}function F(e,t){return e.isValid()?(t=W(t,e.localeData()),H[t]=H[t]||L(t),H[t](e)):e.localeData().invalidDate()}function W(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(R.lastIndex=0;n>=0&&R.test(e);)e=e.replace(R,r),R.lastIndex=0,n-=1;return e}var V={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function q(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(j).map((function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e})).join(""),this._longDateFormat[e])}var $="Invalid date";function G(){return this._invalidDate}var Z="%d",K=/\d{1,2}/;function X(e){return this._ordinal.replace("%d",e)}var J={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Q(e,t,n,r){var i=this._relativeTime[n];return E(i)?i(e,t,n,r):i.replace(/%d/i,e)}function ee(e,t){var n=this._relativeTime[e>0?"future":"past"];return E(n)?n(t):n.replace(/%s/i,t)}var te={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ne(e){return"string"==typeof e?te[e]||te[e.toLowerCase()]:void 0}function re(e){var t,n,r={};for(n in e)a(e,n)&&(t=ne(n))&&(r[t]=e[n]);return r}var ie={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function oe(e){var t,n=[];for(t in e)a(e,t)&&n.push({unit:t,priority:ie[t]});return n.sort((function(e,t){return e.priority-t.priority})),n}var se,ae=/\d/,ue=/\d\d/,ce=/\d{3}/,he=/\d{4}/,le=/[+-]?\d{6}/,fe=/\d\d?/,de=/\d\d\d\d?/,pe=/\d\d\d\d\d\d?/,ye=/\d{1,3}/,ge=/\d{1,4}/,me=/[+-]?\d{1,6}/,ve=/\d+/,we=/[+-]?\d+/,be=/Z|[+-]\d\d:?\d\d/gi,_e=/Z|[+-]\d\d(?::?\d\d)?/gi,xe=/[+-]?\d+(\.\d{1,3})?/,ke=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Se=/^[1-9]\d?/,Me=/^([1-9]\d|\d)/;function Oe(e,t,n){se[e]=E(t)?t:function(e,r){return e&&n?n:t}}function De(e,t){return a(se,e)?se[e](t._strict,t._locale):new RegExp(Ae(e))}function Ae(e){return Ee(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(e,t,n,r,i){return t||n||r||i})))}function Ee(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Be(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Ne(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=Be(t)),n}se={};var Pe={};function Te(e,t){var n,r,i=t;for("string"==typeof e&&(e=[e]),h(t)&&(i=function(e,n){n[t]=Ne(e)}),r=e.length,n=0;n<r;n++)Pe[e[n]]=i}function Ce(e,t){Te(e,(function(e,n,r,i){r._w=r._w||{},t(e,r._w,r,i)}))}function Ye(e,t,n){null!=t&&a(Pe,e)&&Pe[e](t,n._a,n,e)}function je(e){return e%4==0&&e%100!=0||e%400==0}var Re=0,He=1,Ue=2,ze=3,Ie=4,Le=5,Fe=6,We=7,Ve=8;function qe(e){return je(e)?366:365}z("Y",0,0,(function(){var e=this.year();return e<=9999?Y(e,4):"+"+e})),z(0,["YY",2],0,(function(){return this.year()%100})),z(0,["YYYY",4],0,"year"),z(0,["YYYYY",5],0,"year"),z(0,["YYYYYY",6,!0],0,"year"),Oe("Y",we),Oe("YY",fe,ue),Oe("YYYY",ge,he),Oe("YYYYY",me,le),Oe("YYYYYY",me,le),Te(["YYYYY","YYYYYY"],Re),Te("YYYY",(function(e,t){t[Re]=2===e.length?r.parseTwoDigitYear(e):Ne(e)})),Te("YY",(function(e,t){t[Re]=r.parseTwoDigitYear(e)})),Te("Y",(function(e,t){t[Re]=parseInt(e,10)})),r.parseTwoDigitYear=function(e){return Ne(e)+(Ne(e)>68?1900:2e3)};var $e,Ge=Ke("FullYear",!0);function Ze(){return je(this.year())}function Ke(e,t){return function(n){return null!=n?(Je(this,e,n),r.updateOffset(this,t),this):Xe(this,e)}}function Xe(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function Je(e,t,n){var r,i,o,s,a;if(e.isValid()&&!isNaN(n)){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}o=n,s=e.month(),a=29!==(a=e.date())||1!==s||je(o)?a:28,i?r.setUTCFullYear(o,s,a):r.setFullYear(o,s,a)}}function Qe(e){return E(this[e=ne(e)])?this[e]():this}function et(e,t){if("object"==typeof e){var n,r=oe(e=re(e)),i=r.length;for(n=0;n<i;n++)this[r[n].unit](e[r[n].unit])}else if(E(this[e=ne(e)]))return this[e](t);return this}function tt(e,t){return(e%t+t)%t}function nt(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=tt(t,12);return e+=(t-n)/12,1===n?je(e)?29:28:31-n%7%2}$e=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1},z("M",["MM",2],"Mo",(function(){return this.month()+1})),z("MMM",0,0,(function(e){return this.localeData().monthsShort(this,e)})),z("MMMM",0,0,(function(e){return this.localeData().months(this,e)})),Oe("M",fe,Se),Oe("MM",fe,ue),Oe("MMM",(function(e,t){return t.monthsShortRegex(e)})),Oe("MMMM",(function(e,t){return t.monthsRegex(e)})),Te(["M","MM"],(function(e,t){t[He]=Ne(e)-1})),Te(["MMM","MMMM"],(function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);null!=i?t[He]=i:g(n).invalidMonth=e}));var rt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),it="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ot=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,st=ke,at=ke;function ut(e,t){return e?o(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||ot).test(t)?"format":"standalone"][e.month()]:o(this._months)?this._months:this._months.standalone}function ct(e,t){return e?o(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[ot.test(t)?"format":"standalone"][e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function ht(e,t,n){var r,i,o,s=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=p([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===t?-1!==(i=$e.call(this._shortMonthsParse,s))?i:null:-1!==(i=$e.call(this._longMonthsParse,s))?i:null:"MMM"===t?-1!==(i=$e.call(this._shortMonthsParse,s))||-1!==(i=$e.call(this._longMonthsParse,s))?i:null:-1!==(i=$e.call(this._longMonthsParse,s))||-1!==(i=$e.call(this._shortMonthsParse,s))?i:null}function lt(e,t,n){var r,i,o;if(this._monthsParseExact)return ht.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=p([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(o="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function ft(e,t){if(!e.isValid())return e;if("string"==typeof t)if(/^\d+$/.test(t))t=Ne(t);else if(!h(t=e.localeData().monthsParse(t)))return e;var n=t,r=e.date();return r=r<29?r:Math.min(r,nt(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function dt(e){return null!=e?(ft(this,e),r.updateOffset(this,!0),this):Xe(this,"Month")}function pt(){return nt(this.year(),this.month())}function yt(e){return this._monthsParseExact?(a(this,"_monthsRegex")||mt.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=st),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function gt(e){return this._monthsParseExact?(a(this,"_monthsRegex")||mt.call(this),e?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=at),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function mt(){function e(e,t){return t.length-e.length}var t,n,r,i,o=[],s=[],a=[];for(t=0;t<12;t++)n=p([2e3,t]),r=Ee(this.monthsShort(n,"")),i=Ee(this.months(n,"")),o.push(r),s.push(i),a.push(i),a.push(r);o.sort(e),s.sort(e),a.sort(e),this._monthsRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+o.join("|")+")","i")}function vt(e,t,n,r,i,o,s){var a;return e<100&&e>=0?(a=new Date(e+400,t,n,r,i,o,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,i,o,s),a}function wt(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function bt(e,t,n){var r=7+t-n;return-(7+wt(e,0,r).getUTCDay()-t)%7+r-1}function _t(e,t,n,r,i){var o,s,a=1+7*(t-1)+(7+n-r)%7+bt(e,r,i);return a<=0?s=qe(o=e-1)+a:a>qe(e)?(o=e+1,s=a-qe(e)):(o=e,s=a),{year:o,dayOfYear:s}}function xt(e,t,n){var r,i,o=bt(e.year(),t,n),s=Math.floor((e.dayOfYear()-o-1)/7)+1;return s<1?r=s+kt(i=e.year()-1,t,n):s>kt(e.year(),t,n)?(r=s-kt(e.year(),t,n),i=e.year()+1):(i=e.year(),r=s),{week:r,year:i}}function kt(e,t,n){var r=bt(e,t,n),i=bt(e+1,t,n);return(qe(e)-r+i)/7}function St(e){return xt(e,this._week.dow,this._week.doy).week}z("w",["ww",2],"wo","week"),z("W",["WW",2],"Wo","isoWeek"),Oe("w",fe,Se),Oe("ww",fe,ue),Oe("W",fe,Se),Oe("WW",fe,ue),Ce(["w","ww","W","WW"],(function(e,t,n,r){t[r.substr(0,1)]=Ne(e)}));var Mt={dow:0,doy:6};function Ot(){return this._week.dow}function Dt(){return this._week.doy}function At(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")}function Et(e){var t=xt(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")}function Bt(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Nt(e,t){return"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Pt(e,t){return e.slice(t,7).concat(e.slice(0,t))}z("d",0,"do","day"),z("dd",0,0,(function(e){return this.localeData().weekdaysMin(this,e)})),z("ddd",0,0,(function(e){return this.localeData().weekdaysShort(this,e)})),z("dddd",0,0,(function(e){return this.localeData().weekdays(this,e)})),z("e",0,0,"weekday"),z("E",0,0,"isoWeekday"),Oe("d",fe),Oe("e",fe),Oe("E",fe),Oe("dd",(function(e,t){return t.weekdaysMinRegex(e)})),Oe("ddd",(function(e,t){return t.weekdaysShortRegex(e)})),Oe("dddd",(function(e,t){return t.weekdaysRegex(e)})),Ce(["dd","ddd","dddd"],(function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);null!=i?t.d=i:g(n).invalidWeekday=e})),Ce(["d","e","E"],(function(e,t,n,r){t[r]=Ne(e)}));var Tt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Ct="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Yt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),jt=ke,Rt=ke,Ht=ke;function Ut(e,t){var n=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?Pt(n,this._week.dow):e?n[e.day()]:n}function zt(e){return!0===e?Pt(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function It(e){return!0===e?Pt(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Lt(e,t,n){var r,i,o,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=p([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===t?-1!==(i=$e.call(this._weekdaysParse,s))?i:null:"ddd"===t?-1!==(i=$e.call(this._shortWeekdaysParse,s))?i:null:-1!==(i=$e.call(this._minWeekdaysParse,s))?i:null:"dddd"===t?-1!==(i=$e.call(this._weekdaysParse,s))||-1!==(i=$e.call(this._shortWeekdaysParse,s))||-1!==(i=$e.call(this._minWeekdaysParse,s))?i:null:"ddd"===t?-1!==(i=$e.call(this._shortWeekdaysParse,s))||-1!==(i=$e.call(this._weekdaysParse,s))||-1!==(i=$e.call(this._minWeekdaysParse,s))?i:null:-1!==(i=$e.call(this._minWeekdaysParse,s))||-1!==(i=$e.call(this._weekdaysParse,s))||-1!==(i=$e.call(this._shortWeekdaysParse,s))?i:null}function Ft(e,t,n){var r,i,o;if(this._weekdaysParseExact)return Lt.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=p([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(o="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function Vt(e){if(!this.isValid())return null!=e?this:NaN;var t=Xe(this,"Day");return null!=e?(e=Bt(e,this.localeData()),this.add(e-t,"d")):t}function qt(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")}function $t(e){if(!this.isValid())return null!=e?this:NaN;if(null!=e){var t=Nt(e,this.localeData());return this.day(this.day()%7?t:t-7)}return this.day()||7}function Gt(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=jt),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function Zt(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Rt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Kt(e){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Xt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ht),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Xt(){function e(e,t){return t.length-e.length}var t,n,r,i,o,s=[],a=[],u=[],c=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),r=Ee(this.weekdaysMin(n,"")),i=Ee(this.weekdaysShort(n,"")),o=Ee(this.weekdays(n,"")),s.push(r),a.push(i),u.push(o),c.push(r),c.push(i),c.push(o);s.sort(e),a.sort(e),u.sort(e),c.sort(e),this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Jt(){return this.hours()%12||12}function Qt(){return this.hours()||24}function en(e,t){z(e,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)}))}function tn(e,t){return t._meridiemParse}function nn(e){return"p"===(e+"").toLowerCase().charAt(0)}z("H",["HH",2],0,"hour"),z("h",["hh",2],0,Jt),z("k",["kk",2],0,Qt),z("hmm",0,0,(function(){return""+Jt.apply(this)+Y(this.minutes(),2)})),z("hmmss",0,0,(function(){return""+Jt.apply(this)+Y(this.minutes(),2)+Y(this.seconds(),2)})),z("Hmm",0,0,(function(){return""+this.hours()+Y(this.minutes(),2)})),z("Hmmss",0,0,(function(){return""+this.hours()+Y(this.minutes(),2)+Y(this.seconds(),2)})),en("a",!0),en("A",!1),Oe("a",tn),Oe("A",tn),Oe("H",fe,Me),Oe("h",fe,Se),Oe("k",fe,Se),Oe("HH",fe,ue),Oe("hh",fe,ue),Oe("kk",fe,ue),Oe("hmm",de),Oe("hmmss",pe),Oe("Hmm",de),Oe("Hmmss",pe),Te(["H","HH"],ze),Te(["k","kk"],(function(e,t,n){var r=Ne(e);t[ze]=24===r?0:r})),Te(["a","A"],(function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e})),Te(["h","hh"],(function(e,t,n){t[ze]=Ne(e),g(n).bigHour=!0})),Te("hmm",(function(e,t,n){var r=e.length-2;t[ze]=Ne(e.substr(0,r)),t[Ie]=Ne(e.substr(r)),g(n).bigHour=!0})),Te("hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[ze]=Ne(e.substr(0,r)),t[Ie]=Ne(e.substr(r,2)),t[Le]=Ne(e.substr(i)),g(n).bigHour=!0})),Te("Hmm",(function(e,t,n){var r=e.length-2;t[ze]=Ne(e.substr(0,r)),t[Ie]=Ne(e.substr(r))})),Te("Hmmss",(function(e,t,n){var r=e.length-4,i=e.length-2;t[ze]=Ne(e.substr(0,r)),t[Ie]=Ne(e.substr(r,2)),t[Le]=Ne(e.substr(i))}));var rn=/[ap]\.?m?\.?/i,on=Ke("Hours",!0);function sn(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var an,un={calendar:T,longDateFormat:V,invalidDate:$,ordinal:Z,dayOfMonthOrdinalParse:K,relativeTime:J,months:rt,monthsShort:it,week:Mt,weekdays:Tt,weekdaysMin:Yt,weekdaysShort:Ct,meridiemParse:rn},cn={},hn={};function ln(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function fn(e){return e?e.toLowerCase().replace("_","-"):e}function dn(e){for(var t,n,r,i,o=0;o<e.length;){for(t=(i=fn(e[o]).split("-")).length,n=(n=fn(e[o+1]))?n.split("-"):null;t>0;){if(r=yn(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&ln(i,n)>=t-1)break;t--}o++}return an}function pn(e){return!(!e||!e.match("^[^/\\\\]*$"))}function yn(t){var n=null;if(void 0===cn[t]&&e&&e.exports&&pn(t))try{n=an._abbr,Wt("./locale/"+t),gn(n)}catch(e){cn[t]=null}return cn[t]}function gn(e,t){var n;return e&&((n=c(t)?wn(e):mn(e,t))?an=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),an._abbr}function mn(e,t){if(null!==t){var n,r=un;if(t.abbr=e,null!=cn[e])A("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=cn[e]._config;else if(null!=t.parentLocale)if(null!=cn[t.parentLocale])r=cn[t.parentLocale]._config;else{if(null==(n=yn(t.parentLocale)))return hn[t.parentLocale]||(hn[t.parentLocale]=[]),hn[t.parentLocale].push({name:e,config:t}),null;r=n._config}return cn[e]=new P(N(r,t)),hn[e]&&hn[e].forEach((function(e){mn(e.name,e.config)})),gn(e),cn[e]}return delete cn[e],null}function vn(e,t){if(null!=t){var n,r,i=un;null!=cn[e]&&null!=cn[e].parentLocale?cn[e].set(N(cn[e]._config,t)):(null!=(r=yn(e))&&(i=r._config),t=N(i,t),null==r&&(t.abbr=e),(n=new P(t)).parentLocale=cn[e],cn[e]=n),gn(e)}else null!=cn[e]&&(null!=cn[e].parentLocale?(cn[e]=cn[e].parentLocale,e===gn()&&gn(e)):null!=cn[e]&&delete cn[e]);return cn[e]}function wn(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return an;if(!o(e)){if(t=yn(e))return t;e=[e]}return dn(e)}function bn(){return O(cn)}function _n(e){var t,n=e._a;return n&&-2===g(e).overflow&&(t=n[He]<0||n[He]>11?He:n[Ue]<1||n[Ue]>nt(n[Re],n[He])?Ue:n[ze]<0||n[ze]>24||24===n[ze]&&(0!==n[Ie]||0!==n[Le]||0!==n[Fe])?ze:n[Ie]<0||n[Ie]>59?Ie:n[Le]<0||n[Le]>59?Le:n[Fe]<0||n[Fe]>999?Fe:-1,g(e)._overflowDayOfYear&&(t<Re||t>Ue)&&(t=Ue),g(e)._overflowWeeks&&-1===t&&(t=We),g(e)._overflowWeekday&&-1===t&&(t=Ve),g(e).overflow=t),e}var xn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,kn=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Sn=/Z|[+-]\d\d(?::?\d\d)?/,Mn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],On=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Dn=/^\/?Date\((-?\d+)/i,An=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,En={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Bn(e){var t,n,r,i,o,s,a=e._i,u=xn.exec(a)||kn.exec(a),c=Mn.length,h=On.length;if(u){for(g(e).iso=!0,t=0,n=c;t<n;t++)if(Mn[t][1].exec(u[1])){i=Mn[t][0],r=!1!==Mn[t][2];break}if(null==i)return void(e._isValid=!1);if(u[3]){for(t=0,n=h;t<n;t++)if(On[t][1].exec(u[3])){o=(u[2]||" ")+On[t][0];break}if(null==o)return void(e._isValid=!1)}if(!r&&null!=o)return void(e._isValid=!1);if(u[4]){if(!Sn.exec(u[4]))return void(e._isValid=!1);s="Z"}e._f=i+(o||"")+(s||""),Ln(e)}else e._isValid=!1}function Nn(e,t,n,r,i,o){var s=[Pn(e),it.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&s.push(parseInt(o,10)),s}function Pn(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Tn(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Cn(e,t,n){return!e||Ct.indexOf(e)===new Date(t[0],t[1],t[2]).getDay()||(g(n).weekdayMismatch=!0,n._isValid=!1,!1)}function Yn(e,t,n){if(e)return En[e];if(t)return 0;var r=parseInt(n,10),i=r%100;return(r-i)/100*60+i}function jn(e){var t,n=An.exec(Tn(e._i));if(n){if(t=Nn(n[4],n[3],n[2],n[5],n[6],n[7]),!Cn(n[1],t,e))return;e._a=t,e._tzm=Yn(n[8],n[9],n[10]),e._d=wt.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0}else e._isValid=!1}function Rn(e){var t=Dn.exec(e._i);null===t?(Bn(e),!1===e._isValid&&(delete e._isValid,jn(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:r.createFromInputFallback(e)))):e._d=new Date(+t[1])}function Hn(e,t,n){return null!=e?e:null!=t?t:n}function Un(e){var t=new Date(r.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function zn(e){var t,n,r,i,o,s=[];if(!e._d){for(r=Un(e),e._w&&null==e._a[Ue]&&null==e._a[He]&&In(e),null!=e._dayOfYear&&(o=Hn(e._a[Re],r[Re]),(e._dayOfYear>qe(o)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),n=wt(o,0,e._dayOfYear),e._a[He]=n.getUTCMonth(),e._a[Ue]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=s[t]=r[t];for(;t<7;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ze]&&0===e._a[Ie]&&0===e._a[Le]&&0===e._a[Fe]&&(e._nextDay=!0,e._a[ze]=0),e._d=(e._useUTC?wt:vt).apply(null,s),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ze]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(g(e).weekdayMismatch=!0)}}function In(e){var t,n,r,i,o,s,a,u,c;null!=(t=e._w).GG||null!=t.W||null!=t.E?(o=1,s=4,n=Hn(t.GG,e._a[Re],xt(Kn(),1,4).year),r=Hn(t.W,1),((i=Hn(t.E,1))<1||i>7)&&(u=!0)):(o=e._locale._week.dow,s=e._locale._week.doy,c=xt(Kn(),o,s),n=Hn(t.gg,e._a[Re],c.year),r=Hn(t.w,c.week),null!=t.d?((i=t.d)<0||i>6)&&(u=!0):null!=t.e?(i=t.e+o,(t.e<0||t.e>6)&&(u=!0)):i=o),r<1||r>kt(n,o,s)?g(e)._overflowWeeks=!0:null!=u?g(e)._overflowWeekday=!0:(a=_t(n,r,i,o,s),e._a[Re]=a.year,e._dayOfYear=a.dayOfYear)}function Ln(e){if(e._f!==r.ISO_8601)if(e._f!==r.RFC_2822){e._a=[],g(e).empty=!0;var t,n,i,o,s,a,u,c=""+e._i,h=c.length,l=0;for(u=(i=W(e._f,e._locale).match(j)||[]).length,t=0;t<u;t++)o=i[t],(n=(c.match(De(o,e))||[])[0])&&((s=c.substr(0,c.indexOf(n))).length>0&&g(e).unusedInput.push(s),c=c.slice(c.indexOf(n)+n.length),l+=n.length),U[o]?(n?g(e).empty=!1:g(e).unusedTokens.push(o),Ye(o,n,e)):e._strict&&!n&&g(e).unusedTokens.push(o);g(e).charsLeftOver=h-l,c.length>0&&g(e).unusedInput.push(c),e._a[ze]<=12&&!0===g(e).bigHour&&e._a[ze]>0&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[ze]=Fn(e._locale,e._a[ze],e._meridiem),null!==(a=g(e).era)&&(e._a[Re]=e._locale.erasConvertYear(a,e._a[Re])),zn(e),_n(e)}else jn(e);else Bn(e)}function Fn(e,t,n){var r;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((r=e.isPM(n))&&t<12&&(t+=12),r||12!==t||(t=0),t):t}function Wn(e){var t,n,r,i,o,s,a=!1,u=e._f.length;if(0===u)return g(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;i<u;i++)o=0,s=!1,t=_({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Ln(t),m(t)&&(s=!0),o+=g(t).charsLeftOver,o+=10*g(t).unusedTokens.length,g(t).score=o,a?o<r&&(r=o,n=t):(null==r||o<r||s)&&(r=o,n=t,s&&(a=!0));d(e,n||t)}function Vn(e){if(!e._d){var t=re(e._i),n=void 0===t.day?t.date:t.day;e._a=f([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],(function(e){return e&&parseInt(e,10)})),zn(e)}}function qn(e){var t=new x(_n($n(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function $n(e){var t=e._i,n=e._f;return e._locale=e._locale||wn(e._l),null===t||void 0===n&&""===t?v({nullInput:!0}):("string"==typeof t&&(e._i=t=e._locale.preparse(t)),k(t)?new x(_n(t)):(l(t)?e._d=t:o(n)?Wn(e):n?Ln(e):Gn(e),m(e)||(e._d=null),e))}function Gn(e){var t=e._i;c(t)?e._d=new Date(r.now()):l(t)?e._d=new Date(t.valueOf()):"string"==typeof t?Rn(e):o(t)?(e._a=f(t.slice(0),(function(e){return parseInt(e,10)})),zn(e)):s(t)?Vn(e):h(t)?e._d=new Date(t):r.createFromInputFallback(e)}function Zn(e,t,n,r,i){var a={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(s(e)&&u(e)||o(e)&&0===e.length)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=i,a._l=n,a._i=e,a._f=t,a._strict=r,qn(a)}function Kn(e,t,n,r){return Zn(e,t,n,r,!1)}r.createFromInputFallback=M("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))})),r.ISO_8601=function(){},r.RFC_2822=function(){};var Xn=M("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Kn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:v()})),Jn=M("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var e=Kn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:v()}));function Qn(e,t){var n,r;if(1===t.length&&o(t[0])&&(t=t[0]),!t.length)return Kn();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}function er(){return Qn("isBefore",[].slice.call(arguments,0))}function tr(){return Qn("isAfter",[].slice.call(arguments,0))}var nr=function(){return Date.now?Date.now():+new Date},rr=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ir(e){var t,n,r=!1,i=rr.length;for(t in e)if(a(e,t)&&(-1===$e.call(rr,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[rr[n]]){if(r)return!1;parseFloat(e[rr[n]])!==Ne(e[rr[n]])&&(r=!0)}return!0}function or(){return this._isValid}function sr(){return Er(NaN)}function ar(e){var t=re(e),n=t.year||0,r=t.quarter||0,i=t.month||0,o=t.week||t.isoWeek||0,s=t.day||0,a=t.hour||0,u=t.minute||0,c=t.second||0,h=t.millisecond||0;this._isValid=ir(t),this._milliseconds=+h+1e3*c+6e4*u+1e3*a*60*60,this._days=+s+7*o,this._months=+i+3*r+12*n,this._data={},this._locale=wn(),this._bubble()}function ur(e){return e instanceof ar}function cr(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function hr(e,t,n){var r,i=Math.min(e.length,t.length),o=Math.abs(e.length-t.length),s=0;for(r=0;r<i;r++)(n&&e[r]!==t[r]||!n&&Ne(e[r])!==Ne(t[r]))&&s++;return s+o}function lr(e,t){z(e,0,0,(function(){var e=this.utcOffset(),n="+";return e<0&&(e=-e,n="-"),n+Y(~~(e/60),2)+t+Y(~~e%60,2)}))}lr("Z",":"),lr("ZZ",""),Oe("Z",_e),Oe("ZZ",_e),Te(["Z","ZZ"],(function(e,t,n){n._useUTC=!0,n._tzm=dr(_e,e)}));var fr=/([\+\-]|\d\d)/gi;function dr(e,t){var n,r,i=(t||"").match(e);return null===i?null:0===(r=60*(n=((i[i.length-1]||[])+"").match(fr)||["-",0,0])[1]+Ne(n[2]))?0:"+"===n[0]?r:-r}function pr(e,t){var n,i;return t._isUTC?(n=t.clone(),i=(k(e)||l(e)?e.valueOf():Kn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),r.updateOffset(n,!1),n):Kn(e).local()}function yr(e){return-Math.round(e._d.getTimezoneOffset())}function gr(e,t,n){var i,o=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null!=e){if("string"==typeof e){if(null===(e=dr(_e,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(i=yr(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),o!==e&&(!t||this._changeInProgress?Cr(this,Er(e-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:yr(this)}function mr(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function vr(e){return this.utcOffset(0,e)}function wr(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(yr(this),"m")),this}function br(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=dr(be,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this}function _r(e){return!!this.isValid()&&(e=e?Kn(e).utcOffset():0,(this.utcOffset()-e)%60==0)}function xr(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function kr(){if(!c(this._isDSTShifted))return this._isDSTShifted;var e,t={};return _(t,this),(t=$n(t))._a?(e=t._isUTC?p(t._a):Kn(t._a),this._isDSTShifted=this.isValid()&&hr(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Sr(){return!!this.isValid()&&!this._isUTC}function Mr(){return!!this.isValid()&&this._isUTC}function Or(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Dr=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ar=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Er(e,t){var n,r,i,o=e,s=null;return ur(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:h(e)||!isNaN(+e)?(o={},t?o[t]=+e:o.milliseconds=+e):(s=Dr.exec(e))?(n="-"===s[1]?-1:1,o={y:0,d:Ne(s[Ue])*n,h:Ne(s[ze])*n,m:Ne(s[Ie])*n,s:Ne(s[Le])*n,ms:Ne(cr(1e3*s[Fe]))*n}):(s=Ar.exec(e))?(n="-"===s[1]?-1:1,o={y:Br(s[2],n),M:Br(s[3],n),w:Br(s[4],n),d:Br(s[5],n),h:Br(s[6],n),m:Br(s[7],n),s:Br(s[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(i=Pr(Kn(o.from),Kn(o.to)),(o={}).ms=i.milliseconds,o.M=i.months),r=new ar(o),ur(e)&&a(e,"_locale")&&(r._locale=e._locale),ur(e)&&a(e,"_isValid")&&(r._isValid=e._isValid),r}function Br(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function Nr(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Pr(e,t){var n;return e.isValid()&&t.isValid()?(t=pr(t,e),e.isBefore(t)?n=Nr(e,t):((n=Nr(t,e)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Tr(e,t){return function(n,r){var i;return null===r||isNaN(+r)||(A(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),Cr(this,Er(n,r),e),this}}function Cr(e,t,n,i){var o=t._milliseconds,s=cr(t._days),a=cr(t._months);e.isValid()&&(i=null==i||i,a&&ft(e,Xe(e,"Month")+a*n),s&&Je(e,"Date",Xe(e,"Date")+s*n),o&&e._d.setTime(e._d.valueOf()+o*n),i&&r.updateOffset(e,s||a))}Er.fn=ar.prototype,Er.invalid=sr;var Yr=Tr(1,"add"),jr=Tr(-1,"subtract");function Rr(e){return"string"==typeof e||e instanceof String}function Hr(e){return k(e)||l(e)||Rr(e)||h(e)||zr(e)||Ur(e)||null==e}function Ur(e){var t,n,r=s(e)&&!u(e),i=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],c=o.length;for(t=0;t<c;t+=1)n=o[t],i=i||a(e,n);return r&&i}function zr(e){var t=o(e),n=!1;return t&&(n=0===e.filter((function(t){return!h(t)&&Rr(e)})).length),t&&n}function Ir(e){var t,n,r=s(e)&&!u(e),i=!1,o=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<o.length;t+=1)n=o[t],i=i||a(e,n);return r&&i}function Lr(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Fr(e,t){1===arguments.length&&(arguments[0]?Hr(arguments[0])?(e=arguments[0],t=void 0):Ir(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Kn(),i=pr(n,this).startOf("day"),o=r.calendarFormat(this,i)||"sameElse",s=t&&(E(t[o])?t[o].call(this,n):t[o]);return this.format(s||this.localeData().calendar(o,this,Kn(n)))}function Wr(){return new x(this)}function Vr(e,t){var n=k(e)?e:Kn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf())}function qr(e,t){var n=k(e)?e:Kn(e);return!(!this.isValid()||!n.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf())}function $r(e,t,n,r){var i=k(e)?e:Kn(e),o=k(t)?t:Kn(t);return!!(this.isValid()&&i.isValid()&&o.isValid())&&("("===(r=r||"()")[0]?this.isAfter(i,n):!this.isBefore(i,n))&&(")"===r[1]?this.isBefore(o,n):!this.isAfter(o,n))}function Gr(e,t){var n,r=k(e)?e:Kn(e);return!(!this.isValid()||!r.isValid())&&("millisecond"===(t=ne(t)||"millisecond")?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf()))}function Zr(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function Kr(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Xr(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=pr(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=ne(t)){case"year":o=Jr(this,r)/12;break;case"month":o=Jr(this,r);break;case"quarter":o=Jr(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:Be(o)}function Jr(e,t){if(e.date()<t.date())return-Jr(t,e);var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months");return-(n+(t-r<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(n+1,"months")-r)))||0}function Qr(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function ei(e){if(!this.isValid())return null;var t=!0!==e,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?F(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):E(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",F(n,"Z")):F(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function ti(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,r,i="moment",o="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),e="["+i+'("]',t=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=o+'[")]',this.format(e+t+n+r)}function ni(e){e||(e=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var t=F(this,e);return this.localeData().postformat(t)}function ri(e,t){return this.isValid()&&(k(e)&&e.isValid()||Kn(e).isValid())?Er({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function ii(e){return this.from(Kn(),e)}function oi(e,t){return this.isValid()&&(k(e)&&e.isValid()||Kn(e).isValid())?Er({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function si(e){return this.to(Kn(),e)}function ai(e){var t;return void 0===e?this._locale._abbr:(null!=(t=wn(e))&&(this._locale=t),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ui=M("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(e){return void 0===e?this.localeData():this.locale(e)}));function ci(){return this._locale}var hi=1e3,li=60*hi,fi=60*li,di=3506328*fi;function pi(e,t){return(e%t+t)%t}function yi(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-di:new Date(e,t,n).valueOf()}function gi(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-di:Date.UTC(e,t,n)}function mi(e){var t,n;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?gi:yi,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=pi(t+(this._isUTC?0:this.utcOffset()*li),fi);break;case"minute":t=this._d.valueOf(),t-=pi(t,li);break;case"second":t=this._d.valueOf(),t-=pi(t,hi)}return this._d.setTime(t),r.updateOffset(this,!0),this}function vi(e){var t,n;if(void 0===(e=ne(e))||"millisecond"===e||!this.isValid())return this;switch(n=this._isUTC?gi:yi,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=fi-pi(t+(this._isUTC?0:this.utcOffset()*li),fi)-1;break;case"minute":t=this._d.valueOf(),t+=li-pi(t,li)-1;break;case"second":t=this._d.valueOf(),t+=hi-pi(t,hi)-1}return this._d.setTime(t),r.updateOffset(this,!0),this}function wi(){return this._d.valueOf()-6e4*(this._offset||0)}function bi(){return Math.floor(this.valueOf()/1e3)}function _i(){return new Date(this.valueOf())}function xi(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function ki(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Si(){return this.isValid()?this.toISOString():null}function Mi(){return m(this)}function Oi(){return d({},g(this))}function Di(){return g(this).overflow}function Ai(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Ei(e,t){var n,i,o,s=this._eras||wn("en")._eras;for(n=0,i=s.length;n<i;++n)switch("string"==typeof s[n].since&&(o=r(s[n].since).startOf("day"),s[n].since=o.valueOf()),typeof s[n].until){case"undefined":s[n].until=1/0;break;case"string":o=r(s[n].until).startOf("day").valueOf(),s[n].until=o.valueOf()}return s}function Bi(e,t,n){var r,i,o,s,a,u=this.eras();for(e=e.toUpperCase(),r=0,i=u.length;r<i;++r)if(o=u[r].name.toUpperCase(),s=u[r].abbr.toUpperCase(),a=u[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return u[r];break;case"NNNN":if(o===e)return u[r];break;case"NNNNN":if(a===e)return u[r]}else if([o,s,a].indexOf(e)>=0)return u[r]}function Ni(e,t){var n=e.since<=e.until?1:-1;return void 0===t?r(e.since).year():r(e.since).year()+(t-e.offset)*n}function Pi(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].name;if(r[e].until<=n&&n<=r[e].since)return r[e].name}return""}function Ti(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].narrow;if(r[e].until<=n&&n<=r[e].since)return r[e].narrow}return""}function Ci(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e){if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until)return r[e].abbr;if(r[e].until<=n&&n<=r[e].since)return r[e].abbr}return""}function Yi(){var e,t,n,i,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(n=o[e].since<=o[e].until?1:-1,i=this.clone().startOf("day").valueOf(),o[e].since<=i&&i<=o[e].until||o[e].until<=i&&i<=o[e].since)return(this.year()-r(o[e].since).year())*n+o[e].offset;return this.year()}function ji(e){return a(this,"_erasNameRegex")||Fi.call(this),e?this._erasNameRegex:this._erasRegex}function Ri(e){return a(this,"_erasAbbrRegex")||Fi.call(this),e?this._erasAbbrRegex:this._erasRegex}function Hi(e){return a(this,"_erasNarrowRegex")||Fi.call(this),e?this._erasNarrowRegex:this._erasRegex}function Ui(e,t){return t.erasAbbrRegex(e)}function zi(e,t){return t.erasNameRegex(e)}function Ii(e,t){return t.erasNarrowRegex(e)}function Li(e,t){return t._eraYearOrdinalRegex||ve}function Fi(){var e,t,n,r,i,o=[],s=[],a=[],u=[],c=this.eras();for(e=0,t=c.length;e<t;++e)n=Ee(c[e].name),r=Ee(c[e].abbr),i=Ee(c[e].narrow),s.push(n),o.push(r),a.push(i),u.push(n),u.push(r),u.push(i);this._erasRegex=new RegExp("^("+u.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+s.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+a.join("|")+")","i")}function Wi(e,t){z(0,[e,e.length],0,t)}function Vi(e){return Xi.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function qi(e){return Xi.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function $i(){return kt(this.year(),1,4)}function Gi(){return kt(this.isoWeekYear(),1,4)}function Zi(){var e=this.localeData()._week;return kt(this.year(),e.dow,e.doy)}function Ki(){var e=this.localeData()._week;return kt(this.weekYear(),e.dow,e.doy)}function Xi(e,t,n,r,i){var o;return null==e?xt(this,r,i).year:(t>(o=kt(e,r,i))&&(t=o),Ji.call(this,e,t,n,r,i))}function Ji(e,t,n,r,i){var o=_t(e,t,n,r,i),s=wt(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}function Qi(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)}z("N",0,0,"eraAbbr"),z("NN",0,0,"eraAbbr"),z("NNN",0,0,"eraAbbr"),z("NNNN",0,0,"eraName"),z("NNNNN",0,0,"eraNarrow"),z("y",["y",1],"yo","eraYear"),z("y",["yy",2],0,"eraYear"),z("y",["yyy",3],0,"eraYear"),z("y",["yyyy",4],0,"eraYear"),Oe("N",Ui),Oe("NN",Ui),Oe("NNN",Ui),Oe("NNNN",zi),Oe("NNNNN",Ii),Te(["N","NN","NNN","NNNN","NNNNN"],(function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?g(n).era=i:g(n).invalidEra=e})),Oe("y",ve),Oe("yy",ve),Oe("yyy",ve),Oe("yyyy",ve),Oe("yo",Li),Te(["y","yy","yyy","yyyy"],Re),Te(["yo"],(function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Re]=n._locale.eraYearOrdinalParse(e,i):t[Re]=parseInt(e,10)})),z(0,["gg",2],0,(function(){return this.weekYear()%100})),z(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Wi("gggg","weekYear"),Wi("ggggg","weekYear"),Wi("GGGG","isoWeekYear"),Wi("GGGGG","isoWeekYear"),Oe("G",we),Oe("g",we),Oe("GG",fe,ue),Oe("gg",fe,ue),Oe("GGGG",ge,he),Oe("gggg",ge,he),Oe("GGGGG",me,le),Oe("ggggg",me,le),Ce(["gggg","ggggg","GGGG","GGGGG"],(function(e,t,n,r){t[r.substr(0,2)]=Ne(e)})),Ce(["gg","GG"],(function(e,t,n,i){t[i]=r.parseTwoDigitYear(e)})),z("Q",0,"Qo","quarter"),Oe("Q",ae),Te("Q",(function(e,t){t[He]=3*(Ne(e)-1)})),z("D",["DD",2],"Do","date"),Oe("D",fe,Se),Oe("DD",fe,ue),Oe("Do",(function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient})),Te(["D","DD"],Ue),Te("Do",(function(e,t){t[Ue]=Ne(e.match(fe)[0])}));var eo=Ke("Date",!0);function to(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")}z("DDD",["DDDD",3],"DDDo","dayOfYear"),Oe("DDD",ye),Oe("DDDD",ce),Te(["DDD","DDDD"],(function(e,t,n){n._dayOfYear=Ne(e)})),z("m",["mm",2],0,"minute"),Oe("m",fe,Me),Oe("mm",fe,ue),Te(["m","mm"],Ie);var no=Ke("Minutes",!1);z("s",["ss",2],0,"second"),Oe("s",fe,Me),Oe("ss",fe,ue),Te(["s","ss"],Le);var ro,io,oo=Ke("Seconds",!1);for(z("S",0,0,(function(){return~~(this.millisecond()/100)})),z(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),z(0,["SSS",3],0,"millisecond"),z(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),z(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),z(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),z(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),z(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),z(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),Oe("S",ye,ae),Oe("SS",ye,ue),Oe("SSS",ye,ce),ro="SSSS";ro.length<=9;ro+="S")Oe(ro,ve);function so(e,t){t[Fe]=Ne(1e3*("0."+e))}for(ro="S";ro.length<=9;ro+="S")Te(ro,so);function ao(){return this._isUTC?"UTC":""}function uo(){return this._isUTC?"Coordinated Universal Time":""}io=Ke("Milliseconds",!1),z("z",0,0,"zoneAbbr"),z("zz",0,0,"zoneName");var co=x.prototype;function ho(e){return Kn(1e3*e)}function lo(){return Kn.apply(null,arguments).parseZone()}function fo(e){return e}co.add=Yr,co.calendar=Fr,co.clone=Wr,co.diff=Xr,co.endOf=vi,co.format=ni,co.from=ri,co.fromNow=ii,co.to=oi,co.toNow=si,co.get=Qe,co.invalidAt=Di,co.isAfter=Vr,co.isBefore=qr,co.isBetween=$r,co.isSame=Gr,co.isSameOrAfter=Zr,co.isSameOrBefore=Kr,co.isValid=Mi,co.lang=ui,co.locale=ai,co.localeData=ci,co.max=Jn,co.min=Xn,co.parsingFlags=Oi,co.set=et,co.startOf=mi,co.subtract=jr,co.toArray=xi,co.toObject=ki,co.toDate=_i,co.toISOString=ei,co.inspect=ti,"undefined"!=typeof Symbol&&null!=Symbol.for&&(co[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),co.toJSON=Si,co.toString=Qr,co.unix=bi,co.valueOf=wi,co.creationData=Ai,co.eraName=Pi,co.eraNarrow=Ti,co.eraAbbr=Ci,co.eraYear=Yi,co.year=Ge,co.isLeapYear=Ze,co.weekYear=Vi,co.isoWeekYear=qi,co.quarter=co.quarters=Qi,co.month=dt,co.daysInMonth=pt,co.week=co.weeks=At,co.isoWeek=co.isoWeeks=Et,co.weeksInYear=Zi,co.weeksInWeekYear=Ki,co.isoWeeksInYear=$i,co.isoWeeksInISOWeekYear=Gi,co.date=eo,co.day=co.days=Vt,co.weekday=qt,co.isoWeekday=$t,co.dayOfYear=to,co.hour=co.hours=on,co.minute=co.minutes=no,co.second=co.seconds=oo,co.millisecond=co.milliseconds=io,co.utcOffset=gr,co.utc=vr,co.local=wr,co.parseZone=br,co.hasAlignedHourOffset=_r,co.isDST=xr,co.isLocal=Sr,co.isUtcOffset=Mr,co.isUtc=Or,co.isUTC=Or,co.zoneAbbr=ao,co.zoneName=uo,co.dates=M("dates accessor is deprecated. Use date instead.",eo),co.months=M("months accessor is deprecated. Use month instead",dt),co.years=M("years accessor is deprecated. Use year instead",Ge),co.zone=M("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",mr),co.isDSTShifted=M("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",kr);var po=P.prototype;function yo(e,t,n,r){var i=wn(),o=p().set(r,t);return i[n](o,e)}function go(e,t,n){if(h(e)&&(t=e,e=void 0),e=e||"",null!=t)return yo(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=yo(e,r,n,"month");return i}function mo(e,t,n,r){"boolean"==typeof e?(h(t)&&(n=t,t=void 0),t=t||""):(n=t=e,e=!1,h(t)&&(n=t,t=void 0),t=t||"");var i,o=wn(),s=e?o._week.dow:0,a=[];if(null!=n)return yo(t,(n+s)%7,r,"day");for(i=0;i<7;i++)a[i]=yo(t,(i+s)%7,r,"day");return a}function vo(e,t){return go(e,t,"months")}function wo(e,t){return go(e,t,"monthsShort")}function bo(e,t,n){return mo(e,t,n,"weekdays")}function _o(e,t,n){return mo(e,t,n,"weekdaysShort")}function xo(e,t,n){return mo(e,t,n,"weekdaysMin")}po.calendar=C,po.longDateFormat=q,po.invalidDate=G,po.ordinal=X,po.preparse=fo,po.postformat=fo,po.relativeTime=Q,po.pastFuture=ee,po.set=B,po.eras=Ei,po.erasParse=Bi,po.erasConvertYear=Ni,po.erasAbbrRegex=Ri,po.erasNameRegex=ji,po.erasNarrowRegex=Hi,po.months=ut,po.monthsShort=ct,po.monthsParse=lt,po.monthsRegex=gt,po.monthsShortRegex=yt,po.week=St,po.firstDayOfYear=Dt,po.firstDayOfWeek=Ot,po.weekdays=Ut,po.weekdaysMin=It,po.weekdaysShort=zt,po.weekdaysParse=Ft,po.weekdaysRegex=Gt,po.weekdaysShortRegex=Zt,po.weekdaysMinRegex=Kt,po.isPM=nn,po.meridiem=sn,gn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===Ne(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),r.lang=M("moment.lang is deprecated. Use moment.locale instead.",gn),r.langData=M("moment.langData is deprecated. Use moment.localeData instead.",wn);var ko=Math.abs;function So(){var e=this._data;return this._milliseconds=ko(this._milliseconds),this._days=ko(this._days),this._months=ko(this._months),e.milliseconds=ko(e.milliseconds),e.seconds=ko(e.seconds),e.minutes=ko(e.minutes),e.hours=ko(e.hours),e.months=ko(e.months),e.years=ko(e.years),this}function Mo(e,t,n,r){var i=Er(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Oo(e,t){return Mo(this,e,t,1)}function Do(e,t){return Mo(this,e,t,-1)}function Ao(e){return e<0?Math.floor(e):Math.ceil(e)}function Eo(){var e,t,n,r,i,o=this._milliseconds,s=this._days,a=this._months,u=this._data;return o>=0&&s>=0&&a>=0||o<=0&&s<=0&&a<=0||(o+=864e5*Ao(No(a)+s),s=0,a=0),u.milliseconds=o%1e3,e=Be(o/1e3),u.seconds=e%60,t=Be(e/60),u.minutes=t%60,n=Be(t/60),u.hours=n%24,s+=Be(n/24),a+=i=Be(Bo(s)),s-=Ao(No(i)),r=Be(a/12),a%=12,u.days=s,u.months=a,u.years=r,this}function Bo(e){return 4800*e/146097}function No(e){return 146097*e/4800}function Po(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=ne(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+Bo(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(No(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}}function To(e){return function(){return this.as(e)}}var Co=To("ms"),Yo=To("s"),jo=To("m"),Ro=To("h"),Ho=To("d"),Uo=To("w"),zo=To("M"),Io=To("Q"),Lo=To("y"),Fo=Co;function Wo(){return Er(this)}function Vo(e){return e=ne(e),this.isValid()?this[e+"s"]():NaN}function qo(e){return function(){return this.isValid()?this._data[e]:NaN}}var $o=qo("milliseconds"),Go=qo("seconds"),Zo=qo("minutes"),Ko=qo("hours"),Xo=qo("days"),Jo=qo("months"),Qo=qo("years");function es(){return Be(this.days()/7)}var ts=Math.round,ns={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function rs(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function is(e,t,n,r){var i=Er(e).abs(),o=ts(i.as("s")),s=ts(i.as("m")),a=ts(i.as("h")),u=ts(i.as("d")),c=ts(i.as("M")),h=ts(i.as("w")),l=ts(i.as("y")),f=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||s<=1&&["m"]||s<n.m&&["mm",s]||a<=1&&["h"]||a<n.h&&["hh",a]||u<=1&&["d"]||u<n.d&&["dd",u];return null!=n.w&&(f=f||h<=1&&["w"]||h<n.w&&["ww",h]),(f=f||c<=1&&["M"]||c<n.M&&["MM",c]||l<=1&&["y"]||["yy",l])[2]=t,f[3]=+e>0,f[4]=r,rs.apply(null,f)}function os(e){return void 0===e?ts:"function"==typeof e&&(ts=e,!0)}function ss(e,t){return void 0!==ns[e]&&(void 0===t?ns[e]:(ns[e]=t,"s"===e&&(ns.ss=t-1),!0))}function as(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,r,i=!1,o=ns;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(i=e),"object"==typeof t&&(o=Object.assign({},ns,t),null!=t.s&&null==t.ss&&(o.ss=t.s-1)),r=is(this,!i,o,n=this.localeData()),i&&(r=n.pastFuture(+this,r)),n.postformat(r)}var us=Math.abs;function cs(e){return(e>0)-(e<0)||+e}function hs(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,r,i,o,s,a,u=us(this._milliseconds)/1e3,c=us(this._days),h=us(this._months),l=this.asSeconds();return l?(e=Be(u/60),t=Be(e/60),u%=60,e%=60,n=Be(h/12),h%=12,r=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=l<0?"-":"",o=cs(this._months)!==cs(l)?"-":"",s=cs(this._days)!==cs(l)?"-":"",a=cs(this._milliseconds)!==cs(l)?"-":"",i+"P"+(n?o+n+"Y":"")+(h?o+h+"M":"")+(c?s+c+"D":"")+(t||e||u?"T":"")+(t?a+t+"H":"")+(e?a+e+"M":"")+(u?a+r+"S":"")):"P0D"}var ls=ar.prototype;return ls.isValid=or,ls.abs=So,ls.add=Oo,ls.subtract=Do,ls.as=Po,ls.asMilliseconds=Co,ls.asSeconds=Yo,ls.asMinutes=jo,ls.asHours=Ro,ls.asDays=Ho,ls.asWeeks=Uo,ls.asMonths=zo,ls.asQuarters=Io,ls.asYears=Lo,ls.valueOf=Fo,ls._bubble=Eo,ls.clone=Wo,ls.get=Vo,ls.milliseconds=$o,ls.seconds=Go,ls.minutes=Zo,ls.hours=Ko,ls.days=Xo,ls.weeks=es,ls.months=Jo,ls.years=Qo,ls.humanize=as,ls.toISOString=hs,ls.toString=hs,ls.toJSON=hs,ls.locale=ai,ls.localeData=ci,ls.toIsoString=M("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",hs),ls.lang=ui,z("X",0,0,"unix"),z("x",0,0,"valueOf"),Oe("x",we),Oe("X",xe),Te("X",(function(e,t,n){n._d=new Date(1e3*parseFloat(e))})),Te("x",(function(e,t,n){n._d=new Date(Ne(e))})),
|
|
479
|
+
//! moment.js
|
|
480
|
+
r.version="2.30.1",i(Kn),r.fn=co,r.min=er,r.max=tr,r.now=nr,r.utc=p,r.unix=ho,r.months=vo,r.isDate=l,r.locale=gn,r.invalid=v,r.duration=Er,r.isMoment=k,r.weekdays=bo,r.parseZone=lo,r.localeData=wn,r.isDuration=ur,r.monthsShort=wo,r.weekdaysMin=xo,r.defineLocale=mn,r.updateLocale=vn,r.locales=bn,r.weekdaysShort=_o,r.normalizeUnits=ne,r.relativeTimeRounding=os,r.relativeTimeThreshold=ss,r.calendarFormat=Lr,r.prototype=co,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r}()}({get exports(){return Vt},set exports(e){Vt=e}});var qt=Vt,$t={};function Gt(e){return Buffer.from(e,"base64").toString("binary")}({get exports(){return $t},set exports(e){$t=e}}).exports=function(e){return(e instanceof Buffer?e:Buffer.from(e.toString(),"binary")).toString("base64")};var Zt,Kt=Gt.atob=Gt,Xt={},Jt={get exports(){return Xt},set exports(e){Xt=e}},Qt={},en={get exports(){return Qt},set exports(e){Qt=e}};function tn(){return Zt||(Zt=1,function(e){e.exports=function(){var e=e||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),r={},i=r.lib={},o=i.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},s=i.WordArray=o.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var s=n[o>>>2]>>>24-o%4*8&255;t[r+o>>>2]|=s<<24-(r+o)%4*8}else for(o=0;o<i;o+=4)t[r+o>>>2]=n[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],i=function(t){var n=987654321,r=4294967295;return function(){var i=((n=36969*(65535&n)+(n>>16)&r)<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},o=0;o<t;o+=4){var a=i(4294967296*(n||e.random()));n=987654071*a(),r.push(4294967296*a()|0)}return new s.init(r,t)}}),a=r.enc={},u=a.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new s.init(n,t/2)}},c=a.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new s.init(n,t)}},h=a.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},l=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=h.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,i=n.sigBytes,o=this.blockSize,a=i/(4*o),u=(a=t?e.ceil(a):e.max((0|a)-this._minBufferSize,0))*o,c=e.min(4*u,i);if(u){for(var h=0;h<u;h+=o)this._doProcessBlock(r,h);var l=r.splice(0,u);n.sigBytes-=c}return new s.init(l,c)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0});i.Hasher=l.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){l.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new f.HMAC.init(e,n).finalize(t)}}});var f=r.algo={};return r}(Math);return e}()}(en)),Qt}var nn,rn={},on={get exports(){return rn},set exports(e){rn=e}};function sn(){return nn||(nn=1,function(e){e.exports=function(e){return r=(n=e).lib,i=r.Base,o=r.WordArray,(s=n.x64={}).Word=i.extend({init:function(e,t){this.high=e,this.low=t}}),s.WordArray=i.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:8*e.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var i=e[r];n.push(i.high),n.push(i.low)}return o.create(n,this.sigBytes)},clone:function(){for(var e=i.clone.call(this),t=e.words=this.words.slice(0),n=t.length,r=0;r<n;r++)t[r]=t[r].clone();return e}}),e;var t,n,r,i,o,s}(tn())}(on)),rn}var an,un={},cn={get exports(){return un},set exports(e){un=e}};function hn(){return an||(an=1,function(e){e.exports=function(e){return function(){if("function"==typeof ArrayBuffer){var t=e.lib.WordArray,n=t.init,r=t.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var t=e.byteLength,r=[],i=0;i<t;i++)r[i>>>2]|=e[i]<<24-i%4*8;n.call(this,r,t)}else n.apply(this,arguments)};r.prototype=t}}(),e.lib.WordArray}(tn())}(cn)),un}var ln,fn={},dn={get exports(){return fn},set exports(e){fn=e}};function pn(){return ln||(ln=1,function(e){e.exports=function(e){return function(){var t=e,n=t.lib.WordArray,r=t.enc;function i(e){return e<<8&4278255360|e>>>8&16711935}r.Utf16=r.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i+=2){var o=t[i>>>2]>>>16-i%4*8&65535;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,r=[],i=0;i<t;i++)r[i>>>1]|=e.charCodeAt(i)<<16-i%2*16;return n.create(r,2*t)}},r.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o<n;o+=2){var s=i(t[o>>>2]>>>16-o%4*8&65535);r.push(String.fromCharCode(s))}return r.join("")},parse:function(e){for(var t=e.length,r=[],o=0;o<t;o++)r[o>>>1]|=i(e.charCodeAt(o)<<16-o%2*16);return n.create(r,2*t)}}}(),e.enc.Utf16}(tn())}(dn)),fn}var yn,gn={},mn={get exports(){return gn},set exports(e){gn=e}};function vn(){return yn||(yn=1,function(e){e.exports=function(e){return function(){var t=e,n=t.lib.WordArray;function r(e,t,r){for(var i=[],o=0,s=0;s<t;s++)if(s%4){var a=r[e.charCodeAt(s-1)]<<s%4*2,u=r[e.charCodeAt(s)]>>>6-s%4*2;i[o>>>2]|=(a|u)<<24-o%4*8,o++}return n.create(i,o)}t.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],o=0;o<n;o+=3)for(var s=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,a=0;a<4&&o+.75*a<n;a++)i.push(r.charAt(s>>>6*(3-a)&63));var u=r.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(e){var t=e.length,n=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<n.length;o++)i[n.charCodeAt(o)]=o}var s=n.charAt(64);if(s){var a=e.indexOf(s);-1!==a&&(t=a)}return r(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),e.enc.Base64}(tn())}(mn)),gn}var wn,bn={},_n={get exports(){return bn},set exports(e){bn=e}};function xn(){return wn||(wn=1,function(e){e.exports=function(e){return function(t){var n=e,r=n.lib,i=r.WordArray,o=r.Hasher,s=n.algo,a=[];!function(){for(var e=0;e<64;e++)a[e]=4294967296*t.abs(t.sin(e+1))|0}();var u=s.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,s=e[t+0],u=e[t+1],d=e[t+2],p=e[t+3],y=e[t+4],g=e[t+5],m=e[t+6],v=e[t+7],w=e[t+8],b=e[t+9],_=e[t+10],x=e[t+11],k=e[t+12],S=e[t+13],M=e[t+14],O=e[t+15],D=o[0],A=o[1],E=o[2],B=o[3];D=c(D,A,E,B,s,7,a[0]),B=c(B,D,A,E,u,12,a[1]),E=c(E,B,D,A,d,17,a[2]),A=c(A,E,B,D,p,22,a[3]),D=c(D,A,E,B,y,7,a[4]),B=c(B,D,A,E,g,12,a[5]),E=c(E,B,D,A,m,17,a[6]),A=c(A,E,B,D,v,22,a[7]),D=c(D,A,E,B,w,7,a[8]),B=c(B,D,A,E,b,12,a[9]),E=c(E,B,D,A,_,17,a[10]),A=c(A,E,B,D,x,22,a[11]),D=c(D,A,E,B,k,7,a[12]),B=c(B,D,A,E,S,12,a[13]),E=c(E,B,D,A,M,17,a[14]),D=h(D,A=c(A,E,B,D,O,22,a[15]),E,B,u,5,a[16]),B=h(B,D,A,E,m,9,a[17]),E=h(E,B,D,A,x,14,a[18]),A=h(A,E,B,D,s,20,a[19]),D=h(D,A,E,B,g,5,a[20]),B=h(B,D,A,E,_,9,a[21]),E=h(E,B,D,A,O,14,a[22]),A=h(A,E,B,D,y,20,a[23]),D=h(D,A,E,B,b,5,a[24]),B=h(B,D,A,E,M,9,a[25]),E=h(E,B,D,A,p,14,a[26]),A=h(A,E,B,D,w,20,a[27]),D=h(D,A,E,B,S,5,a[28]),B=h(B,D,A,E,d,9,a[29]),E=h(E,B,D,A,v,14,a[30]),D=l(D,A=h(A,E,B,D,k,20,a[31]),E,B,g,4,a[32]),B=l(B,D,A,E,w,11,a[33]),E=l(E,B,D,A,x,16,a[34]),A=l(A,E,B,D,M,23,a[35]),D=l(D,A,E,B,u,4,a[36]),B=l(B,D,A,E,y,11,a[37]),E=l(E,B,D,A,v,16,a[38]),A=l(A,E,B,D,_,23,a[39]),D=l(D,A,E,B,S,4,a[40]),B=l(B,D,A,E,s,11,a[41]),E=l(E,B,D,A,p,16,a[42]),A=l(A,E,B,D,m,23,a[43]),D=l(D,A,E,B,b,4,a[44]),B=l(B,D,A,E,k,11,a[45]),E=l(E,B,D,A,O,16,a[46]),D=f(D,A=l(A,E,B,D,d,23,a[47]),E,B,s,6,a[48]),B=f(B,D,A,E,v,10,a[49]),E=f(E,B,D,A,M,15,a[50]),A=f(A,E,B,D,g,21,a[51]),D=f(D,A,E,B,k,6,a[52]),B=f(B,D,A,E,p,10,a[53]),E=f(E,B,D,A,_,15,a[54]),A=f(A,E,B,D,u,21,a[55]),D=f(D,A,E,B,w,6,a[56]),B=f(B,D,A,E,O,10,a[57]),E=f(E,B,D,A,m,15,a[58]),A=f(A,E,B,D,S,21,a[59]),D=f(D,A,E,B,y,6,a[60]),B=f(B,D,A,E,x,10,a[61]),E=f(E,B,D,A,d,15,a[62]),A=f(A,E,B,D,b,21,a[63]),o[0]=o[0]+D|0,o[1]=o[1]+A|0,o[2]=o[2]+E|0,o[3]=o[3]+B|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;n[i>>>5]|=128<<24-i%32;var o=t.floor(r/4294967296),s=r;n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),e.sigBytes=4*(n.length+1),this._process();for(var a=this._hash,u=a.words,c=0;c<4;c++){var h=u[c];u[c]=16711935&(h<<8|h>>>24)|4278255360&(h<<24|h>>>8)}return a},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,r,i,o,s){var a=e+(t&n|~t&r)+i+s;return(a<<o|a>>>32-o)+t}function h(e,t,n,r,i,o,s){var a=e+(t&r|n&~r)+i+s;return(a<<o|a>>>32-o)+t}function l(e,t,n,r,i,o,s){var a=e+(t^n^r)+i+s;return(a<<o|a>>>32-o)+t}function f(e,t,n,r,i,o,s){var a=e+(n^(t|~r))+i+s;return(a<<o|a>>>32-o)+t}n.MD5=o._createHelper(u),n.HmacMD5=o._createHmacHelper(u)}(Math),e.MD5}(tn())}(_n)),bn}var kn,Sn={},Mn={get exports(){return Sn},set exports(e){Sn=e}};function On(){return kn||(kn=1,function(e){e.exports=function(e){return n=(t=e).lib,r=n.WordArray,i=n.Hasher,o=t.algo,s=[],a=o.SHA1=i.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],u=n[4],c=0;c<80;c++){if(c<16)s[c]=0|e[t+c];else{var h=s[c-3]^s[c-8]^s[c-14]^s[c-16];s[c]=h<<1|h>>>31}var l=(r<<5|r>>>27)+u+s[c];l+=c<20?1518500249+(i&o|~i&a):c<40?1859775393+(i^o^a):c<60?(i&o|i&a|o&a)-1894007588:(i^o^a)-899497514,u=a,a=o,o=i<<30|i>>>2,i=r,r=l}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+u|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}}),t.SHA1=i._createHelper(a),t.HmacSHA1=i._createHmacHelper(a),e.SHA1;var t,n,r,i,o,s,a}(tn())}(Mn)),Sn}var Dn,An={},En={get exports(){return An},set exports(e){An=e}};function Bn(){return Dn||(Dn=1,function(e){e.exports=function(e){return function(t){var n=e,r=n.lib,i=r.WordArray,o=r.Hasher,s=n.algo,a=[],u=[];!function(){function e(e){for(var n=t.sqrt(e),r=2;r<=n;r++)if(!(e%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,i=0;i<64;)e(r)&&(i<8&&(a[i]=n(t.pow(r,.5))),u[i]=n(t.pow(r,1/3)),i++),r++}();var c=[],h=s.SHA256=o.extend({_doReset:function(){this._hash=new i.init(a.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],h=n[5],l=n[6],f=n[7],d=0;d<64;d++){if(d<16)c[d]=0|e[t+d];else{var p=c[d-15],y=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,g=c[d-2],m=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[d]=y+c[d-7]+m+c[d-16]}var v=r&i^r&o^i&o,w=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),b=f+((a<<26|a>>>6)^(a<<21|a>>>11)^(a<<7|a>>>25))+(a&h^~a&l)+u[d]+c[d];f=l,l=h,h=a,a=s+b|0,s=o,o=i,i=r,r=b+(w+v)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+a|0,n[5]=n[5]+h|0,n[6]=n[6]+l|0,n[7]=n[7]+f|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,i=8*e.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=t.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=o._createHelper(h),n.HmacSHA256=o._createHmacHelper(h)}(Math),e.SHA256}(tn())}(En)),An}var Nn,Pn={},Tn={get exports(){return Pn},set exports(e){Pn=e}};var Cn,Yn={},jn={get exports(){return Yn},set exports(e){Yn=e}};function Rn(){return Cn||(Cn=1,function(e){e.exports=function(e){return function(){var t=e,n=t.lib.Hasher,r=t.x64,i=r.Word,o=r.WordArray,s=t.algo;function a(){return i.create.apply(i,arguments)}var u=[a(1116352408,3609767458),a(1899447441,602891725),a(3049323471,3964484399),a(3921009573,2173295548),a(961987163,4081628472),a(1508970993,3053834265),a(2453635748,2937671579),a(2870763221,3664609560),a(3624381080,2734883394),a(310598401,1164996542),a(607225278,1323610764),a(1426881987,3590304994),a(1925078388,4068182383),a(2162078206,991336113),a(2614888103,633803317),a(3248222580,3479774868),a(3835390401,2666613458),a(4022224774,944711139),a(264347078,2341262773),a(604807628,2007800933),a(770255983,1495990901),a(1249150122,1856431235),a(1555081692,3175218132),a(1996064986,2198950837),a(2554220882,3999719339),a(2821834349,766784016),a(2952996808,2566594879),a(3210313671,3203337956),a(3336571891,1034457026),a(3584528711,2466948901),a(113926993,3758326383),a(338241895,168717936),a(666307205,1188179964),a(773529912,1546045734),a(1294757372,1522805485),a(1396182291,2643833823),a(1695183700,2343527390),a(1986661051,1014477480),a(2177026350,1206759142),a(2456956037,344077627),a(2730485921,1290863460),a(2820302411,3158454273),a(3259730800,3505952657),a(3345764771,106217008),a(3516065817,3606008344),a(3600352804,1432725776),a(4094571909,1467031594),a(275423344,851169720),a(430227734,3100823752),a(506948616,1363258195),a(659060556,3750685593),a(883997877,3785050280),a(958139571,3318307427),a(1322822218,3812723403),a(1537002063,2003034995),a(1747873779,3602036899),a(1955562222,1575990012),a(2024104815,1125592928),a(2227730452,2716904306),a(2361852424,442776044),a(2428436474,593698344),a(2756734187,3733110249),a(3204031479,2999351573),a(3329325298,3815920427),a(3391569614,3928383900),a(3515267271,566280711),a(3940187606,3454069534),a(4118630271,4000239992),a(116418474,1914138554),a(174292421,2731055270),a(289380356,3203993006),a(460393269,320620315),a(685471733,587496836),a(852142971,1086792851),a(1017036298,365543100),a(1126000580,2618297676),a(1288033470,3409855158),a(1501505948,4234509866),a(1607167915,987167468),a(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=a()}();var h=s.SHA512=n.extend({_doReset:function(){this._hash=new o.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],h=n[5],l=n[6],f=n[7],d=r.high,p=r.low,y=i.high,g=i.low,m=o.high,v=o.low,w=s.high,b=s.low,_=a.high,x=a.low,k=h.high,S=h.low,M=l.high,O=l.low,D=f.high,A=f.low,E=d,B=p,N=y,P=g,T=m,C=v,Y=w,j=b,R=_,H=x,U=k,z=S,I=M,L=O,F=D,W=A,V=0;V<80;V++){var q=c[V];if(V<16)var $=q.high=0|e[t+2*V],G=q.low=0|e[t+2*V+1];else{var Z=c[V-15],K=Z.high,X=Z.low,J=(K>>>1|X<<31)^(K>>>8|X<<24)^K>>>7,Q=(X>>>1|K<<31)^(X>>>8|K<<24)^(X>>>7|K<<25),ee=c[V-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,ie=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),oe=c[V-7],se=oe.high,ae=oe.low,ue=c[V-16],ce=ue.high,he=ue.low;$=($=($=J+se+((G=Q+ae)>>>0<Q>>>0?1:0))+re+((G+=ie)>>>0<ie>>>0?1:0))+ce+((G+=he)>>>0<he>>>0?1:0),q.high=$,q.low=G}var le,fe=R&U^~R&I,de=H&z^~H&L,pe=E&N^E&T^N&T,ye=B&P^B&C^P&C,ge=(E>>>28|B<<4)^(E<<30|B>>>2)^(E<<25|B>>>7),me=(B>>>28|E<<4)^(B<<30|E>>>2)^(B<<25|E>>>7),ve=(R>>>14|H<<18)^(R>>>18|H<<14)^(R<<23|H>>>9),we=(H>>>14|R<<18)^(H>>>18|R<<14)^(H<<23|R>>>9),be=u[V],_e=be.high,xe=be.low,ke=F+ve+((le=W+we)>>>0<W>>>0?1:0),Se=me+ye;F=I,W=L,I=U,L=z,U=R,z=H,R=Y+(ke=(ke=(ke=ke+fe+((le+=de)>>>0<de>>>0?1:0))+_e+((le+=xe)>>>0<xe>>>0?1:0))+$+((le+=G)>>>0<G>>>0?1:0))+((H=j+le|0)>>>0<j>>>0?1:0)|0,Y=T,j=C,T=N,C=P,N=E,P=B,E=ke+(ge+pe+(Se>>>0<me>>>0?1:0))+((B=le+Se|0)>>>0<le>>>0?1:0)|0}p=r.low=p+B,r.high=d+E+(p>>>0<B>>>0?1:0),g=i.low=g+P,i.high=y+N+(g>>>0<P>>>0?1:0),v=o.low=v+C,o.high=m+T+(v>>>0<C>>>0?1:0),b=s.low=b+j,s.high=w+Y+(b>>>0<j>>>0?1:0),x=a.low=x+H,a.high=_+R+(x>>>0<H>>>0?1:0),S=h.low=S+z,h.high=k+U+(S>>>0<z>>>0?1:0),O=l.low=O+L,l.high=M+I+(O>>>0<L>>>0?1:0),A=f.low=A+W,f.high=D+F+(A>>>0<W>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=n.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});t.SHA512=n._createHelper(h),t.HmacSHA512=n._createHmacHelper(h)}(),e.SHA512}(tn(),sn())}(jn)),Yn}var Hn,Un={},zn={get exports(){return Un},set exports(e){Un=e}};var In,Ln={},Fn={get exports(){return Ln},set exports(e){Ln=e}};function Wn(){return In||(In=1,function(e){e.exports=function(e){return function(t){var n=e,r=n.lib,i=r.WordArray,o=r.Hasher,s=n.x64.Word,a=n.algo,u=[],c=[],h=[];!function(){for(var e=1,t=0,n=0;n<24;n++){u[e+5*t]=(n+1)*(n+2)/2%64;var r=(2*e+3*t)%5;e=t%5,t=r}for(e=0;e<5;e++)for(t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,o=0;o<24;o++){for(var a=0,l=0,f=0;f<7;f++){if(1&i){var d=(1<<f)-1;d<32?l^=1<<d:a^=1<<d-32}128&i?i=i<<1^113:i<<=1}h[o]=s.create(a,l)}}();var l=[];!function(){for(var e=0;e<25;e++)l[e]=s.create()}();var f=a.SHA3=o.extend({cfg:o.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,r=this.blockSize/2,i=0;i<r;i++){var o=e[t+2*i],s=e[t+2*i+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),(A=n[i]).high^=s,A.low^=o}for(var a=0;a<24;a++){for(var f=0;f<5;f++){for(var d=0,p=0,y=0;y<5;y++)d^=(A=n[f+5*y]).high,p^=A.low;var g=l[f];g.high=d,g.low=p}for(f=0;f<5;f++){var m=l[(f+4)%5],v=l[(f+1)%5],w=v.high,b=v.low;for(d=m.high^(w<<1|b>>>31),p=m.low^(b<<1|w>>>31),y=0;y<5;y++)(A=n[f+5*y]).high^=d,A.low^=p}for(var _=1;_<25;_++){var x=(A=n[_]).high,k=A.low,S=u[_];S<32?(d=x<<S|k>>>32-S,p=k<<S|x>>>32-S):(d=k<<S-32|x>>>64-S,p=x<<S-32|k>>>64-S);var M=l[c[_]];M.high=d,M.low=p}var O=l[0],D=n[0];for(O.high=D.high,O.low=D.low,f=0;f<5;f++)for(y=0;y<5;y++){var A=n[_=f+5*y],E=l[_],B=l[(f+1)%5+5*y],N=l[(f+2)%5+5*y];A.high=E.high^~B.high&N.high,A.low=E.low^~B.low&N.low}A=n[0];var P=h[a];A.high^=P.high,A.low^=P.low}},_doFinalize:function(){var e=this._data,n=e.words;this._nDataBytes;var r=8*e.sigBytes,o=32*this.blockSize;n[r>>>5]|=1<<24-r%32,n[(t.ceil((r+1)/o)*o>>>5)-1]|=128,e.sigBytes=4*n.length,this._process();for(var s=this._state,a=this.cfg.outputLength/8,u=a/8,c=[],h=0;h<u;h++){var l=s[h],f=l.high,d=l.low;f=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8),d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),c.push(d),c.push(f)}return new i.init(c,a)},clone:function(){for(var e=o.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});n.SHA3=o._createHelper(f),n.HmacSHA3=o._createHmacHelper(f)}(Math),e.SHA3}(tn(),sn())}(Fn)),Ln}var Vn,qn={},$n={get exports(){return qn},set exports(e){qn=e}};var Gn,Zn={},Kn={get exports(){return Zn},set exports(e){Zn=e}};function Xn(){return Gn||(Gn=1,function(e){e.exports=function(e){var t,n,r;n=(t=e).lib.Base,r=t.enc.Utf8,t.algo.HMAC=n.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=r.parse(t));var n=e.blockSize,i=4*n;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),s=this._iKey=t.clone(),a=o.words,u=s.words,c=0;c<n;c++)a[c]^=1549556828,u[c]^=909522486;o.sigBytes=s.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})}(tn())}(Kn)),Zn}var Jn,Qn={},er={get exports(){return Qn},set exports(e){Qn=e}};var tr,nr={},rr={get exports(){return nr},set exports(e){nr=e}};function ir(){return tr||(tr=1,function(e){e.exports=function(e){return n=(t=e).lib,r=n.Base,i=n.WordArray,o=t.algo,s=o.MD5,a=o.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:s,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,r=n.hasher.create(),o=i.create(),s=o.words,a=n.keySize,u=n.iterations;s.length<a;){c&&r.update(c);var c=r.update(e).finalize(t);r.reset();for(var h=1;h<u;h++)c=r.finalize(c),r.reset();o.concat(c)}return o.sigBytes=4*a,o}}),t.EvpKDF=function(e,t,n){return a.create(n).compute(e,t)},e.EvpKDF;var t,n,r,i,o,s,a}(tn(),On(),Xn())}(rr)),nr}var or,sr={},ar={get exports(){return sr},set exports(e){sr=e}};function ur(){return or||(or=1,function(e){e.exports=function(e){e.lib.Cipher||function(t){var n=e,r=n.lib,i=r.Base,o=r.WordArray,s=r.BufferedBlockAlgorithm,a=n.enc;a.Utf8;var u=a.Base64,c=n.algo.EvpKDF,h=r.Cipher=s.extend({cfg:i.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){s.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?w:m}return function(t){return{encrypt:function(n,r,i){return e(r).encrypt(t,n,r,i)},decrypt:function(n,r,i){return e(r).decrypt(t,n,r,i)}}}}()});r.StreamCipher=h.extend({_doFinalize:function(){return this._process(!0)},blockSize:1});var l=n.mode={},f=r.BlockCipherMode=i.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),d=l.CBC=function(){var e=f.extend();function n(e,n,r){var i=this._iv;if(i){var o=i;this._iv=t}else o=this._prevBlock;for(var s=0;s<r;s++)e[n+s]^=o[s]}return e.Encryptor=e.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize;n.call(this,e,t,i),r.encryptBlock(e,t),this._prevBlock=e.slice(t,t+i)}}),e.Decryptor=e.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize,o=e.slice(t,t+i);r.decryptBlock(e,t),n.call(this,e,t,i),this._prevBlock=o}}),e}(),p=(n.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,r=n-e.sigBytes%n,i=r<<24|r<<16|r<<8|r,s=[],a=0;a<r;a+=4)s.push(i);var u=o.create(s,r);e.concat(u)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}};r.BlockCipher=h.extend({cfg:h.cfg.extend({mode:d,padding:p}),reset:function(){h.reset.call(this);var e=this.cfg,t=e.iv,n=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var r=n.createEncryptor;else r=n.createDecryptor,this._minBufferSize=1;this._mode&&this._mode.__creator==r?this._mode.init(this,t&&t.words):(this._mode=r.call(n,this,t&&t.words),this._mode.__creator=r)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else t=this._process(!0),e.unpad(t);return t},blockSize:4});var y=r.CipherParams=i.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}}),g=(n.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;if(n)var r=o.create([1398893684,1701076831]).concat(n).concat(t);else r=t;return r.toString(u)},parse:function(e){var t=u.parse(e),n=t.words;if(1398893684==n[0]&&1701076831==n[1]){var r=o.create(n.slice(2,4));n.splice(0,4),t.sigBytes-=16}return y.create({ciphertext:t,salt:r})}},m=r.SerializableCipher=i.extend({cfg:i.extend({format:g}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=e.createEncryptor(n,r),o=i.finalize(t),s=i.cfg;return y.create({ciphertext:o,key:n,iv:s.iv,algorithm:e,mode:s.mode,padding:s.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),v=(n.kdf={}).OpenSSL={execute:function(e,t,n,r){r||(r=o.random(8));var i=c.create({keySize:t+n}).compute(e,r),s=o.create(i.words.slice(t),4*n);return i.sigBytes=4*t,y.create({key:i,iv:s,salt:r})}},w=r.PasswordBasedCipher=m.extend({cfg:m.cfg.extend({kdf:v}),encrypt:function(e,t,n,r){var i=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize);r.iv=i.iv;var o=m.encrypt.call(this,e,t,i.key,r);return o.mixIn(i),o},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var i=r.kdf.execute(n,e.keySize,e.ivSize,t.salt);return r.iv=i.iv,m.decrypt.call(this,e,t,i.key,r)}})}()}(tn(),ir())}(ar)),sr}var cr,hr={},lr={get exports(){return hr},set exports(e){hr=e}};function fr(){return cr||(cr=1,function(e){e.exports=function(e){return e.mode.CFB=function(){var t=e.lib.BlockCipherMode.extend();function n(e,t,n,r){var i=this._iv;if(i){var o=i.slice(0);this._iv=void 0}else o=this._prevBlock;r.encryptBlock(o,0);for(var s=0;s<n;s++)e[t+s]^=o[s]}return t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize;n.call(this,e,t,i,r),this._prevBlock=e.slice(t,t+i)}}),t.Decryptor=t.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize,o=e.slice(t,t+i);n.call(this,e,t,i,r),this._prevBlock=o}}),t}(),e.mode.CFB}(tn(),ur())}(lr)),hr}var dr,pr={},yr={get exports(){return pr},set exports(e){pr=e}};function gr(){return dr||(dr=1,function(e){e.exports=function(e){return e.mode.CTR=(t=e.lib.BlockCipherMode.extend(),n=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,i=this._iv,o=this._counter;i&&(o=this._counter=i.slice(0),this._iv=void 0);var s=o.slice(0);n.encryptBlock(s,0),o[r-1]=o[r-1]+1|0;for(var a=0;a<r;a++)e[t+a]^=s[a]}}),t.Decryptor=n,t),e.mode.CTR;var t,n}(tn(),ur())}(yr)),pr}var mr,vr={},wr={get exports(){return vr},set exports(e){vr=e}};function br(){return mr||(mr=1,function(e){e.exports=function(e){
|
|
481
|
+
/** @preserve
|
|
482
|
+
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
483
|
+
* derived from CryptoJS.mode.CTR
|
|
484
|
+
* Jan Hruby jhruby.web@gmail.com
|
|
485
|
+
*/
|
|
486
|
+
return e.mode.CTRGladman=function(){var t=e.lib.BlockCipherMode.extend();function n(e){if(255&~(e>>24))e+=1<<24;else{var t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}return e}function r(e){return 0===(e[0]=n(e[0]))&&(e[1]=n(e[1])),e}var i=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,i=n.blockSize,o=this._iv,s=this._counter;o&&(s=this._counter=o.slice(0),this._iv=void 0),r(s);var a=s.slice(0);n.encryptBlock(a,0);for(var u=0;u<i;u++)e[t+u]^=a[u]}});return t.Decryptor=i,t}(),e.mode.CTRGladman}(tn(),ur())}(wr)),vr}var _r,xr={},kr={get exports(){return xr},set exports(e){xr=e}};function Sr(){return _r||(_r=1,function(e){e.exports=function(e){return e.mode.OFB=(t=e.lib.BlockCipherMode.extend(),n=t.Encryptor=t.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,i=this._iv,o=this._keystream;i&&(o=this._keystream=i.slice(0),this._iv=void 0),n.encryptBlock(o,0);for(var s=0;s<r;s++)e[t+s]^=o[s]}}),t.Decryptor=n,t),e.mode.OFB;var t,n}(tn(),ur())}(kr)),xr}var Mr,Or={},Dr={get exports(){return Or},set exports(e){Or=e}};var Ar,Er={},Br={get exports(){return Er},set exports(e){Er=e}};var Nr,Pr={},Tr={get exports(){return Pr},set exports(e){Pr=e}};var Cr,Yr={},jr={get exports(){return Yr},set exports(e){Yr=e}};var Rr,Hr={},Ur={get exports(){return Hr},set exports(e){Hr=e}};var zr,Ir={},Lr={get exports(){return Ir},set exports(e){Ir=e}};var Fr,Wr={},Vr={get exports(){return Wr},set exports(e){Wr=e}};var qr,$r={},Gr={get exports(){return $r},set exports(e){$r=e}};var Zr,Kr={},Xr={get exports(){return Kr},set exports(e){Kr=e}};var Jr,Qr={},ei={get exports(){return Qr},set exports(e){Qr=e}};var ti,ni={},ri={get exports(){return ni},set exports(e){ni=e}};var ii,oi={},si={get exports(){return oi},set exports(e){oi=e}};!function(e){e.exports=function(e){return e}(tn(),sn(),hn(),pn(),vn(),xn(),On(),Bn(),Nn||(Nn=1,function(e){e.exports=function(e){return n=(t=e).lib.WordArray,r=t.algo,i=r.SHA256,o=r.SHA224=i.extend({_doReset:function(){this._hash=new n.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=i._doFinalize.call(this);return e.sigBytes-=4,e}}),t.SHA224=i._createHelper(o),t.HmacSHA224=i._createHmacHelper(o),e.SHA224;var t,n,r,i,o}(tn(),Bn())}(Tn)),Rn(),Hn||(Hn=1,function(e){e.exports=function(e){return n=(t=e).x64,r=n.Word,i=n.WordArray,o=t.algo,s=o.SHA512,a=o.SHA384=s.extend({_doReset:function(){this._hash=new i.init([new r.init(3418070365,3238371032),new r.init(1654270250,914150663),new r.init(2438529370,812702999),new r.init(355462360,4144912697),new r.init(1731405415,4290775857),new r.init(2394180231,1750603025),new r.init(3675008525,1694076839),new r.init(1203062813,3204075428)])},_doFinalize:function(){var e=s._doFinalize.call(this);return e.sigBytes-=16,e}}),t.SHA384=s._createHelper(a),t.HmacSHA384=s._createHmacHelper(a),e.SHA384;var t,n,r,i,o,s,a}(tn(),sn(),Rn())}(zn)),Wn(),Vn||(Vn=1,function(e){e.exports=function(e){
|
|
487
|
+
/** @preserve
|
|
488
|
+
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
489
|
+
|
|
490
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
491
|
+
|
|
492
|
+
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
493
|
+
- Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
494
|
+
|
|
495
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
496
|
+
*/
|
|
497
|
+
return function(){var t=e,n=t.lib,r=n.WordArray,i=n.Hasher,o=t.algo,s=r.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),a=r.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),u=r.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),c=r.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),h=r.create([0,1518500249,1859775393,2400959708,2840853838]),l=r.create([1352829926,1548603684,1836072691,2053994217,0]),f=o.RIPEMD160=i.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,f,w,b,_,x,k,S,M,O,D,A=this._hash.words,E=h.words,B=l.words,N=s.words,P=a.words,T=u.words,C=c.words;for(x=o=A[0],k=f=A[1],S=w=A[2],M=b=A[3],O=_=A[4],n=0;n<80;n+=1)D=o+e[t+N[n]]|0,D+=n<16?d(f,w,b)+E[0]:n<32?p(f,w,b)+E[1]:n<48?y(f,w,b)+E[2]:n<64?g(f,w,b)+E[3]:m(f,w,b)+E[4],D=(D=v(D|=0,T[n]))+_|0,o=_,_=b,b=v(w,10),w=f,f=D,D=x+e[t+P[n]]|0,D+=n<16?m(k,S,M)+B[0]:n<32?g(k,S,M)+B[1]:n<48?y(k,S,M)+B[2]:n<64?p(k,S,M)+B[3]:d(k,S,M)+B[4],D=(D=v(D|=0,C[n]))+O|0,x=O,O=M,M=v(S,10),S=k,k=D;D=A[1]+w+M|0,A[1]=A[2]+b+O|0,A[2]=A[3]+_+x|0,A[3]=A[4]+o+k|0,A[4]=A[0]+f+S|0,A[0]=D},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,o=i.words,s=0;s<5;s++){var a=o[s];o[s]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8)}return i},clone:function(){var e=i.clone.call(this);return e._hash=this._hash.clone(),e}});function d(e,t,n){return e^t^n}function p(e,t,n){return e&t|~e&n}function y(e,t,n){return(e|~t)^n}function g(e,t,n){return e&n|t&~n}function m(e,t,n){return e^(t|~n)}function v(e,t){return e<<t|e>>>32-t}t.RIPEMD160=i._createHelper(f),t.HmacRIPEMD160=i._createHmacHelper(f)}(),e.RIPEMD160}(tn())}($n)),Xn(),Jn||(Jn=1,function(e){e.exports=function(e){return r=(n=(t=e).lib).Base,i=n.WordArray,s=(o=t.algo).SHA1,a=o.HMAC,u=o.PBKDF2=r.extend({cfg:r.extend({keySize:4,hasher:s,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,r=a.create(n.hasher,e),o=i.create(),s=i.create([1]),u=o.words,c=s.words,h=n.keySize,l=n.iterations;u.length<h;){var f=r.update(t).finalize(s);r.reset();for(var d=f.words,p=d.length,y=f,g=1;g<l;g++){y=r.finalize(y),r.reset();for(var m=y.words,v=0;v<p;v++)d[v]^=m[v]}o.concat(f),c[0]++}return o.sigBytes=4*h,o}}),t.PBKDF2=function(e,t,n){return u.create(n).compute(e,t)},e.PBKDF2;var t,n,r,i,o,s,a,u}(tn(),On(),Xn())}(er)),ir(),ur(),fr(),gr(),br(),Sr(),Mr||(Mr=1,function(e){e.exports=function(e){return e.mode.ECB=((t=e.lib.BlockCipherMode.extend()).Encryptor=t.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),t.Decryptor=t.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),t),e.mode.ECB;var t}(tn(),ur())}(Dr)),Ar||(Ar=1,function(e){e.exports=function(e){return e.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,r=4*t,i=r-n%r,o=n+i-1;e.clamp(),e.words[o>>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Ansix923}(tn(),ur())}(Br)),Nr||(Nr=1,function(e){e.exports=function(e){return e.pad.Iso10126={pad:function(t,n){var r=4*n,i=r-t.sigBytes%r;t.concat(e.lib.WordArray.random(i-1)).concat(e.lib.WordArray.create([i<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},e.pad.Iso10126}(tn(),ur())}(Tr)),Cr||(Cr=1,function(e){e.exports=function(e){return e.pad.Iso97971={pad:function(t,n){t.concat(e.lib.WordArray.create([2147483648],1)),e.pad.ZeroPadding.pad(t,n)},unpad:function(t){e.pad.ZeroPadding.unpad(t),t.sigBytes--}},e.pad.Iso97971}(tn(),ur())}(jr)),Rr||(Rr=1,function(e){e.exports=function(e){return e.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){for(var t=e.words,n=e.sigBytes-1;!(t[n>>>2]>>>24-n%4*8&255);)n--;e.sigBytes=n+1}},e.pad.ZeroPadding}(tn(),ur())}(Ur)),zr||(zr=1,function(e){e.exports=function(e){return e.pad.NoPadding={pad:function(){},unpad:function(){}},e.pad.NoPadding}(tn(),ur())}(Lr)),Fr||(Fr=1,function(e){e.exports=function(e){return n=(t=e).lib.CipherParams,r=t.enc.Hex,t.format.Hex={stringify:function(e){return e.ciphertext.toString(r)},parse:function(e){var t=r.parse(e);return n.create({ciphertext:t})}},e.format.Hex;var t,n,r}(tn(),ur())}(Vr)),qr||(qr=1,function(e){e.exports=function(e){return function(){var t=e,n=t.lib.BlockCipher,r=t.algo,i=[],o=[],s=[],a=[],u=[],c=[],h=[],l=[],f=[],d=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,r=0;for(t=0;t<256;t++){var p=r^r<<1^r<<2^r<<3^r<<4;p=p>>>8^255&p^99,i[n]=p,o[p]=n;var y=e[n],g=e[y],m=e[g],v=257*e[p]^16843008*p;s[n]=v<<24|v>>>8,a[n]=v<<16|v>>>16,u[n]=v<<8|v>>>24,c[n]=v,v=16843009*m^65537*g^257*y^16843008*n,h[p]=v<<24|v>>>8,l[p]=v<<16|v>>>16,f[p]=v<<8|v>>>24,d[p]=v,n?(n=y^e[e[e[m^y]]],r^=e[e[r]]):n=r=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],y=r.AES=n.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,r=4*((this._nRounds=n+6)+1),o=this._keySchedule=[],s=0;s<r;s++)if(s<n)o[s]=t[s];else{var a=o[s-1];s%n?n>6&&s%n==4&&(a=i[a>>>24]<<24|i[a>>>16&255]<<16|i[a>>>8&255]<<8|i[255&a]):(a=i[(a=a<<8|a>>>24)>>>24]<<24|i[a>>>16&255]<<16|i[a>>>8&255]<<8|i[255&a],a^=p[s/n|0]<<24),o[s]=o[s-n]^a}for(var u=this._invKeySchedule=[],c=0;c<r;c++)s=r-c,a=c%4?o[s]:o[s-4],u[c]=c<4||s<=4?a:h[i[a>>>24]]^l[i[a>>>16&255]]^f[i[a>>>8&255]]^d[i[255&a]]}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,s,a,u,c,i)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,h,l,f,d,o),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,i,o,s,a){for(var u=this._nRounds,c=e[t]^n[0],h=e[t+1]^n[1],l=e[t+2]^n[2],f=e[t+3]^n[3],d=4,p=1;p<u;p++){var y=r[c>>>24]^i[h>>>16&255]^o[l>>>8&255]^s[255&f]^n[d++],g=r[h>>>24]^i[l>>>16&255]^o[f>>>8&255]^s[255&c]^n[d++],m=r[l>>>24]^i[f>>>16&255]^o[c>>>8&255]^s[255&h]^n[d++],v=r[f>>>24]^i[c>>>16&255]^o[h>>>8&255]^s[255&l]^n[d++];c=y,h=g,l=m,f=v}y=(a[c>>>24]<<24|a[h>>>16&255]<<16|a[l>>>8&255]<<8|a[255&f])^n[d++],g=(a[h>>>24]<<24|a[l>>>16&255]<<16|a[f>>>8&255]<<8|a[255&c])^n[d++],m=(a[l>>>24]<<24|a[f>>>16&255]<<16|a[c>>>8&255]<<8|a[255&h])^n[d++],v=(a[f>>>24]<<24|a[c>>>16&255]<<16|a[h>>>8&255]<<8|a[255&l])^n[d++],e[t]=y,e[t+1]=g,e[t+2]=m,e[t+3]=v},keySize:8});t.AES=n._createHelper(y)}(),e.AES}(tn(),vn(),xn(),ir(),ur())}(Gr)),Zr||(Zr=1,function(e){e.exports=function(e){return function(){var t=e,n=t.lib,r=n.WordArray,i=n.BlockCipher,o=t.algo,s=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],a=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],h=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],l=o.DES=i.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var r=s[n]-1;t[n]=e[r>>>5]>>>31-r%32&1}for(var i=this._subKeys=[],o=0;o<16;o++){var c=i[o]=[],h=u[o];for(n=0;n<24;n++)c[n/6|0]|=t[(a[n]-1+h)%28]<<31-n%6,c[4+(n/6|0)]|=t[28+(a[n+24]-1+h)%28]<<31-n%6;for(c[0]=c[0]<<1|c[0]>>>31,n=1;n<7;n++)c[n]=c[n]>>>4*(n-1)+3;c[7]=c[7]<<5|c[7]>>>27}var l=this._invSubKeys=[];for(n=0;n<16;n++)l[n]=i[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],f.call(this,4,252645135),f.call(this,16,65535),d.call(this,2,858993459),d.call(this,8,16711935),f.call(this,1,1431655765);for(var r=0;r<16;r++){for(var i=n[r],o=this._lBlock,s=this._rBlock,a=0,u=0;u<8;u++)a|=c[u][((s^i[u])&h[u])>>>0];this._lBlock=s,this._rBlock=o^a}var l=this._lBlock;this._lBlock=this._rBlock,this._rBlock=l,f.call(this,1,1431655765),d.call(this,8,16711935),d.call(this,2,858993459),f.call(this,16,65535),f.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function f(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function d(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}t.DES=i._createHelper(l);var p=o.TripleDES=i.extend({_doReset:function(){var e=this._key.words;this._des1=l.createEncryptor(r.create(e.slice(0,2))),this._des2=l.createEncryptor(r.create(e.slice(2,4))),this._des3=l.createEncryptor(r.create(e.slice(4,6)))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=i._createHelper(p)}(),e.TripleDES}(tn(),vn(),xn(),ir(),ur())}(Xr)),Jr||(Jr=1,function(e){e.exports=function(e){return function(){var t=e,n=t.lib.StreamCipher,r=t.algo,i=r.RC4=n.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],i=0;i<256;i++)r[i]=i;i=0;for(var o=0;i<256;i++){var s=i%n,a=t[s>>>2]>>>24-s%4*8&255;o=(o+r[i]+a)%256;var u=r[i];r[i]=r[o],r[o]=u}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=o.call(this)},keySize:8,ivSize:0});function o(){for(var e=this._S,t=this._i,n=this._j,r=0,i=0;i<4;i++){n=(n+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[n],e[n]=o,r|=e[(e[t]+e[n])%256]<<24-8*i}return this._i=t,this._j=n,r}t.RC4=n._createHelper(i);var s=r.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)o.call(this)}});t.RC4Drop=n._createHelper(s)}(),e.RC4}(tn(),vn(),xn(),ir(),ur())}(ei)),ti||(ti=1,function(e){e.exports=function(e){return function(){var t=e,n=t.lib.StreamCipher,r=t.algo,i=[],o=[],s=[],a=r.Rabbit=n.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)u.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(t){var o=t.words,s=o[0],a=o[1],c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=c>>>16|4294901760&h,f=h<<16|65535&c;for(i[0]^=c,i[1]^=l,i[2]^=h,i[3]^=f,i[4]^=c,i[5]^=l,i[6]^=h,i[7]^=f,n=0;n<4;n++)u.call(this)}},_doProcessBlock:function(e,t){var n=this._X;u.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),e[t+r]^=i[r]},blockSize:4,ivSize:2});function u(){for(var e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],i=65535&r,a=r>>>16,u=((i*i>>>17)+i*a>>>15)+a*a,c=((4294901760&r)*r|0)+((65535&r)*r|0);s[n]=u^c}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.Rabbit=n._createHelper(a)}(),e.Rabbit}(tn(),vn(),xn(),ir(),ur())}(ri)),ii||(ii=1,function(e){e.exports=function(e){return function(){var t=e,n=t.lib.StreamCipher,r=t.algo,i=[],o=[],s=[],a=r.RabbitLegacy=n.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)u.call(this);for(i=0;i<8;i++)r[i]^=n[i+4&7];if(t){var o=t.words,s=o[0],a=o[1],c=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),h=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=c>>>16|4294901760&h,f=h<<16|65535&c;for(r[0]^=c,r[1]^=l,r[2]^=h,r[3]^=f,r[4]^=c,r[5]^=l,r[6]^=h,r[7]^=f,i=0;i<4;i++)u.call(this)}},_doProcessBlock:function(e,t){var n=this._X;u.call(this),i[0]=n[0]^n[5]>>>16^n[3]<<16,i[1]=n[2]^n[7]>>>16^n[5]<<16,i[2]=n[4]^n[1]>>>16^n[7]<<16,i[3]=n[6]^n[3]>>>16^n[1]<<16;for(var r=0;r<4;r++)i[r]=16711935&(i[r]<<8|i[r]>>>24)|4278255360&(i[r]<<24|i[r]>>>8),e[t+r]^=i[r]},blockSize:4,ivSize:2});function u(){for(var e=this._X,t=this._C,n=0;n<8;n++)o[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<o[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<o[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<o[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<o[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<o[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<o[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<o[6]>>>0?1:0)|0,this._b=t[7]>>>0<o[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],i=65535&r,a=r>>>16,u=((i*i>>>17)+i*a>>>15)+a*a,c=((4294901760&r)*r|0)+((65535&r)*r|0);s[n]=u^c}e[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,e[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,e[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,e[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,e[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,e[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,e[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,e[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.RabbitLegacy=n._createHelper(a)}(),e.RabbitLegacy}(tn(),vn(),xn(),ir(),ur())}(si)))}(Jt);var ai=e({__proto__:null,default:Xt},[Xt]);globalThis.expect=Pt,globalThis.assert=Tt,globalThis.moment=qt,globalThis.btoa=$t,globalThis.atob=Kt,globalThis.Buffer=Ct.Buffer,globalThis.CryptoJS=ai,globalThis.requireObject={...globalThis.requireObject||{},chai:{expect:Pt,assert:Tt},moment:qt,buffer:{Buffer:Ct.Buffer},btoa:$t,atob:Kt,"crypto-js":ai}}();
|
|
498
|
+
|
|
499
|
+
}()
|
|
500
|
+
}
|
|
501
|
+
module.exports = getBundledCode;
|
|
502
|
+
|