UNPKG

intern

Version:

Intern. A next-generation code testing stack for JavaScript.

103 lines (97 loc) 357 kB
!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=113)}([function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var n=void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof self?self:void 0;t.default=n}).call(this,n(7))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(6),i=n(26),a=n(0);t.default=i.default,o.__exportStar(n(26),t),i.add("es6-array",function(){return["from","of"].every(function(e){return e in a.default.Array})&&["findIndex","find","copyWithin"].every(function(e){return e in a.default.Array.prototype})},!0),i.add("es6-array-fill",function(){return"fill"in a.default.Array.prototype&&1===[1].fill(9,Number.POSITIVE_INFINITY)[0]},!0),i.add("es7-array",function(){return"includes"in a.default.Array.prototype},!0),i.add("es6-map",function(){if("function"==typeof a.default.Map)try{var e=new a.default.Map([[0,1]]);return e.has(0)&&"function"==typeof e.keys&&i.default("es6-symbol")&&"function"==typeof e.values&&"function"==typeof e.entries}catch(e){return!1}return!1},!0),i.add("es6-math",function(){return["clz32","sign","log10","log2","log1p","expm1","cosh","sinh","tanh","acosh","asinh","atanh","trunc","fround","cbrt","hypot"].every(function(e){return"function"==typeof a.default.Math[e]})},!0),i.add("es6-math-imul",function(){return"imul"in a.default.Math&&-5===Math.imul(4294967295,5)},!0),i.add("es6-object",function(){return i.default("es6-symbol")&&["assign","is","getOwnPropertySymbols","setPrototypeOf"].every(function(e){return"function"==typeof a.default.Object[e]})},!0),i.add("es2017-object",function(){return["values","entries","getOwnPropertyDescriptors"].every(function(e){return"function"==typeof a.default.Object[e]})},!0),i.add("es-observable",function(){return void 0!==a.default.Observable},!0),i.add("es6-promise",function(){return void 0!==a.default.Promise&&i.default("es6-symbol")},!0),i.add("es6-set",function(){if("function"==typeof a.default.Set){var e=new a.default.Set([1]);return e.has(1)&&"keys"in e&&"function"==typeof e.keys&&i.default("es6-symbol")}return!1},!0),i.add("es6-string",function(){return["fromCodePoint"].every(function(e){return"function"==typeof a.default.String[e]})&&["codePointAt","normalize","repeat","startsWith","endsWith","includes"].every(function(e){return"function"==typeof a.default.String.prototype[e]})},!0),i.add("es6-string-raw",function(){if("raw"in a.default.String){var e=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=o.__spread(e);return r.raw=e.raw,r}(r||(r=o.__makeTemplateObject(["a\n",""],["a\\n",""])),1);return e.raw=["a\\n"],"a:\\n"===a.default.String.raw(e,42)}return!1},!0),i.add("es2017-string",function(){return["padStart","padEnd"].every(function(e){return"function"==typeof a.default.String.prototype[e]})},!0),i.add("es6-symbol",function(){return void 0!==a.default.Symbol&&"symbol"==typeof Symbol()},!0),i.add("es6-weakmap",function(){if(void 0!==a.default.WeakMap){var e={},t=new a.default.WeakMap([[e,1]]);return Object.freeze(e),1===t.get(e)&&t.set({},2)===t&&i.default("es6-symbol")}return!1},!0),i.add("microtasks",function(){return i.default("es6-promise")||i.default("host-node")||i.default("dom-mutationobserver")},!0),i.add("postmessage",function(){return void 0!==a.default.window&&"function"==typeof a.default.postMessage},!0),i.add("raf",function(){return"function"==typeof a.default.requestAnimationFrame},!0),i.add("setimmediate",function(){return void 0!==a.default.setImmediate},!0),i.add("dom-mutationobserver",function(){if(i.default("host-browser")&&Boolean(a.default.MutationObserver||a.default.WebKitMutationObserver)){var e=document.createElement("div"),t=new(a.default.MutationObserver||a.default.WebKitMutationObserver)(function(){});return t.observe(e,{attributes:!0}),e.style.setProperty("display","block"),Boolean(t.takeRecords().length)}return!1},!0),i.add("dom-webanimation",function(){return i.default("host-browser")&&void 0!==a.default.Animation&&void 0!==a.default.KeyframeEffect},!0)},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",function(){return o}),n.d(t,"__assign",function(){return i}),n.d(t,"__rest",function(){return a}),n.d(t,"__decorate",function(){return u}),n.d(t,"__param",function(){return s}),n.d(t,"__metadata",function(){return c}),n.d(t,"__awaiter",function(){return f}),n.d(t,"__generator",function(){return l}),n.d(t,"__exportStar",function(){return p}),n.d(t,"__values",function(){return d}),n.d(t,"__read",function(){return h}),n.d(t,"__spread",function(){return v}),n.d(t,"__await",function(){return m}),n.d(t,"__asyncGenerator",function(){return g}),n.d(t,"__asyncDelegator",function(){return y}),n.d(t,"__asyncValues",function(){return b}),n.d(t,"__makeTemplateObject",function(){return w}); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n}function u(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(o=e[u])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function s(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function f(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(a,u)}s((r=r.apply(e,t||[])).next())})}function l(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=r[2&i[0]?"return":i[0]?"throw":"next"])&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[0,o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function p(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}function d(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function h(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(h(arguments[t]));return e}function m(e){return this instanceof m?(this.v=e,this):new m(e)}function g(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise(function(n,r){i.push([e,t,n,r])>1||u(e,t)})})}function u(e,t){try{(n=o[e](t)).value instanceof m?Promise.resolve(n.value.v).then(s,c):f(i[0][2],n)}catch(e){f(i[0][3],e)}var n}function s(e){u("next",e)}function c(e){u("throw",e)}function f(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}function y(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){e[r]&&(t[r]=function(t){return(n=!n)?{value:m(e[r](t)),done:"return"===r}:o?o(t):t})}}function b(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator];return t?t.call(e):d(e)}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(1),i=n(0),a=n(25);if(t.Symbol=i.default.Symbol,!o.default("es6-symbol")){var u=function(e){if(!v(e))throw new TypeError(e+" is not a symbol");return e},s=Object.defineProperties,c=Object.defineProperty,f=Object.create,l=Object.prototype,p={},d=(r=f(null),function(e){for(var t,n=0;r[String(e)+(n||"")];)++n;return e+=String(n||""),r[e]=!0,t="@@"+e,Object.getOwnPropertyDescriptor(l,t)||c(l,t,{set:function(e){c(this,t,a.getValueDescriptor(e))}}),t}),h=function e(t){if(this instanceof h)throw new TypeError("TypeError: Symbol is not a constructor");return e(t)};t.Symbol=i.default.Symbol=function e(t){if(this instanceof e)throw new TypeError("TypeError: Symbol is not a constructor");var n=Object.create(h.prototype);return t=void 0===t?"":String(t),s(n,{__description__:a.getValueDescriptor(t),__name__:a.getValueDescriptor(d(t))})},c(t.Symbol,"for",a.getValueDescriptor(function(e){return p[e]?p[e]:p[e]=t.Symbol(String(e))})),s(t.Symbol,{keyFor:a.getValueDescriptor(function(e){var t;for(t in u(e),p)if(p[t]===e)return t}),hasInstance:a.getValueDescriptor(t.Symbol.for("hasInstance"),!1,!1),isConcatSpreadable:a.getValueDescriptor(t.Symbol.for("isConcatSpreadable"),!1,!1),iterator:a.getValueDescriptor(t.Symbol.for("iterator"),!1,!1),match:a.getValueDescriptor(t.Symbol.for("match"),!1,!1),observable:a.getValueDescriptor(t.Symbol.for("observable"),!1,!1),replace:a.getValueDescriptor(t.Symbol.for("replace"),!1,!1),search:a.getValueDescriptor(t.Symbol.for("search"),!1,!1),species:a.getValueDescriptor(t.Symbol.for("species"),!1,!1),split:a.getValueDescriptor(t.Symbol.for("split"),!1,!1),toPrimitive:a.getValueDescriptor(t.Symbol.for("toPrimitive"),!1,!1),toStringTag:a.getValueDescriptor(t.Symbol.for("toStringTag"),!1,!1),unscopables:a.getValueDescriptor(t.Symbol.for("unscopables"),!1,!1)}),s(h.prototype,{constructor:a.getValueDescriptor(t.Symbol),toString:a.getValueDescriptor(function(){return this.__name__},!1,!1)}),s(t.Symbol.prototype,{toString:a.getValueDescriptor(function(){return"Symbol ("+u(this).__description__+")"}),valueOf:a.getValueDescriptor(function(){return u(this)})}),c(t.Symbol.prototype,t.Symbol.toPrimitive,a.getValueDescriptor(function(){return u(this)})),c(t.Symbol.prototype,t.Symbol.toStringTag,a.getValueDescriptor("Symbol",!1,!1,!0)),c(h.prototype,t.Symbol.toPrimitive,a.getValueDescriptor(t.Symbol.prototype[t.Symbol.toPrimitive],!1,!1,!0)),c(h.prototype,t.Symbol.toStringTag,a.getValueDescriptor(t.Symbol.prototype[t.Symbol.toStringTag],!1,!1,!0))}function v(e){return e&&("symbol"==typeof e||"Symbol"===e["@@toStringTag"])||!1}t.isSymbol=v,["hasInstance","isConcatSpreadable","iterator","species","replace","search","split","match","toPrimitive","toStringTag","unscopables","observable"].forEach(function(e){t.Symbol[e]||Object.defineProperty(t.Symbol,e,a.getValueDescriptor(t.Symbol.for(e),!1,!1))}),t.default=t.Symbol},function(e,t){ /*! * Chai - flag utility * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com> * MIT Licensed */ e.exports=function(e,t,n){var r=e.__flags||(e.__flags=Object.create(null));if(3!==arguments.length)return r[t];r[t]=n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(3);var r=n(58),o={done:!0,value:void 0},i=function(){function e(e){this._nextIndex=-1,a(e)?this._nativeIterator=e[Symbol.iterator]():this._list=e}return e.prototype.next=function(){return this._nativeIterator?this._nativeIterator.next():this._list&&++this._nextIndex<this._list.length?{done:!1,value:this._list[this._nextIndex]}:o},e.prototype[Symbol.iterator]=function(){return this},e}();function a(e){return e&&"function"==typeof e[Symbol.iterator]}function u(e){return e&&"number"==typeof e.length}function s(e){return a(e)?e[Symbol.iterator]():u(e)?new i(e):void 0}t.ShimIterator=i,t.isIterable=a,t.isArrayLike=u,t.get=s,t.forOf=function(e,t,n){var o=!1;function i(){o=!0}if(u(e)&&"string"==typeof e)for(var a=e.length,c=0;c<a;++c){var f=e[c];if(c+1<a){var l=f.charCodeAt(0);l>=r.HIGH_SURROGATE_MIN&&l<=r.HIGH_SURROGATE_MAX&&(f+=e[++c])}if(t.call(n,f,e,i),o)return}else{var p=s(e);if(p)for(var d=p.next();!d.done;){if(t.call(n,d.value,e,i),o)return;d=p.next()}}}},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",function(){return o}),n.d(t,"__assign",function(){return i}),n.d(t,"__rest",function(){return a}),n.d(t,"__decorate",function(){return u}),n.d(t,"__param",function(){return s}),n.d(t,"__metadata",function(){return c}),n.d(t,"__awaiter",function(){return f}),n.d(t,"__generator",function(){return l}),n.d(t,"__exportStar",function(){return p}),n.d(t,"__values",function(){return d}),n.d(t,"__read",function(){return h}),n.d(t,"__spread",function(){return v}),n.d(t,"__await",function(){return m}),n.d(t,"__asyncGenerator",function(){return g}),n.d(t,"__asyncDelegator",function(){return y}),n.d(t,"__asyncValues",function(){return b}),n.d(t,"__makeTemplateObject",function(){return w}); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n}function u(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(o=e[u])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function s(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function f(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(a,u)}s((r=r.apply(e,t||[])).next())})}function l(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=r[2&i[0]?"return":i[0]?"throw":"next"])&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[0,o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function p(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}function d(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function h(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(h(arguments[t]));return e}function m(e){return this instanceof m?(this.v=e,this):new m(e)}function g(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise(function(n,r){i.push([e,t,n,r])>1||u(e,t)})})}function u(e,t){try{(n=o[e](t)).value instanceof m?Promise.resolve(n.value.v).then(s,c):f(i[0][2],n)}catch(e){f(i[0][3],e)}var n}function s(e){u("next",e)}function c(e){u("throw",e)}function f(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}function y(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){e[r]&&(t[r]=function(t){return(n=!n)?{value:m(e[r](t)),done:"return"===r}:o?o(t):t})}}function b(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator];return t?t.call(e):d(e)}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=n(15),i=n(15);t.assign=i.assign;var a=Array.prototype.slice,u=Object.prototype.hasOwnProperty;function s(e){return"[object Object]"===Object.prototype.toString.call(e)}function c(e,t){return e.map(function(e){return Array.isArray(e)?c(e,t):s(e)?f({deep:!0,inherited:t,sources:[e],target:{}}):e})}function f(e){for(var t=e.deep,n=e.inherited,o=e.target,i=e.copied||[],a=r.__spread(i),l=0;l<e.sources.length;l++){var p=e.sources[l];if(null!==p&&void 0!==p)for(var d in p)if(n||u.call(p,d)){var h=p[d];if(-1!==a.indexOf(h))continue;if(t)if(Array.isArray(h))h=c(h,n);else if(s(h)){var v=o[d]||{};i.push(p),h=f({deep:!0,inherited:n,sources:[h],target:v,copied:i})}o[d]=h}}return o}function l(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return f({deep:!0,inherited:!0,sources:t,target:e})}function p(e){var t=!1;return{destroy:function(){t||(t=!0,e())}}}t.create=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!t.length)throw new RangeError("lang.create requires at least one mixin object.");var r=t.slice();return r.unshift(Object.create(e)),o.assign.apply(null,r)},t.deepAssign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return f({deep:!0,inherited:!1,sources:t,target:e})},t.deepMixin=l,t.duplicate=function(e){return l(Object.create(Object.getPrototypeOf(e)),e)},t.isIdentical=function(e,t){return e===t||e!=e&&t!=t},t.lateBind=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return n.length?function(){var r=arguments.length?n.concat(a.call(arguments)):n;return e[t].apply(e,r)}:function(){return e[t].apply(e,arguments)}},t.mixin=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return f({deep:!1,inherited:!0,sources:t,target:e})},t.partial=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return function(){var n=arguments.length?t.concat(a.call(arguments)):t;return e.apply(this,n)}},t.createHandle=p,t.createCompositeHandle=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return p(function(){for(var t=0;t<e.length;t++)e[t].destroy()})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),o=n(5),i=n(57);function a(e){return Boolean(e&&"function"==typeof e.cancel&&Array.isArray(e.children)&&u(e))}function u(e){return e&&"function"==typeof e.then}t.isTask=a,t.isThenable=u;var s=function(e){function t(t,n){var r=this,o=function(){},i=function(){};(r=e.call(this,function(e,t){o=e,i=t})||this)._state=1,r.children=[],r.canceler=function(){n&&n(),r._cancel()};try{t(function(e){3!==r._state&&(r._state=0,o(e))},function(e){3!==r._state&&(r._state=2,i(e))})}catch(e){r._state=2,i(e)}return r}return r.__extends(t,e),t.race=function(e){return new this(function(t,n){Promise.race(i.unwrapPromises(e)).then(t,n)})},t.reject=function(e){return new this(function(t,n){return n(e)})},t.resolve=function(e){return new this(function(t,n){return t(e)})},t.all=function(n){var i=this;return new t(function(t,r){e.all.call(i,n).then(t,r)},function(){if(o.isArrayLike(n))for(var e=0;e<n.length;e++){a(u=n[e])&&u.cancel()}else if(o.isIterable(n))try{for(var t=r.__values(n),i=t.next();!i.done;i=t.next()){var u;a(u=i.value)&&u.cancel()}}catch(e){s={error:e}}finally{try{i&&!i.done&&(c=t.return)&&c.call(t)}finally{if(s)throw s.error}}else Object.keys(n).forEach(function(e){var t=n[e];a(t)&&t.cancel()});var s,c})},Object.defineProperty(t.prototype,"state",{get:function(){return this._state},enumerable:!0,configurable:!0}),t.prototype._cancel=function(e){var t=this;this._state=3;var n=function(){try{return t._finally&&t._finally()}catch(e){}};this._finally&&(e=u(e)?e.then(n,n):n()),this.children.forEach(function(t){t._cancel(e)})},t.prototype.cancel=function(){1===this._state&&this.canceler()},t.prototype.catch=function(e){return this.then(void 0,e)},t.prototype.finally=function(e){if(3===this._state)return e(),this;var n=this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){throw n})});return n._finally=e,n},t.prototype.then=function(t,n){var r=this,o=e.prototype.then.call(this,function(e){if(3!==o._state)return t?t(e):e},function(e){if(3!==o._state){if(n)return n(e);throw e}});return o.canceler=function(){1===r._state?r.cancel():o._cancel()},this.children.push(o),o},t}(i.default);t.default=s},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",function(){return o}),n.d(t,"__assign",function(){return i}),n.d(t,"__rest",function(){return a}),n.d(t,"__decorate",function(){return u}),n.d(t,"__param",function(){return s}),n.d(t,"__metadata",function(){return c}),n.d(t,"__awaiter",function(){return f}),n.d(t,"__generator",function(){return l}),n.d(t,"__exportStar",function(){return p}),n.d(t,"__values",function(){return d}),n.d(t,"__read",function(){return h}),n.d(t,"__spread",function(){return v}),n.d(t,"__await",function(){return m}),n.d(t,"__asyncGenerator",function(){return g}),n.d(t,"__asyncDelegator",function(){return y}),n.d(t,"__asyncValues",function(){return b}),n.d(t,"__makeTemplateObject",function(){return w}),n.d(t,"__importStar",function(){return _}),n.d(t,"__importDefault",function(){return A}); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT. See the Apache Version 2.0 License for specific language governing permissions and limitations under the License. ***************************************************************************** */ var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n}function u(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(o=e[u])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}function s(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function f(e,t,n,r){return new(n||(n=Promise))(function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(a,u)}s((r=r.apply(e,t||[])).next())})}function l(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=r[2&i[0]?"return":i[0]?"throw":"next"])&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[0,o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function p(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}function d(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function h(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(e){o={error:e}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(h(arguments[t]));return e}function m(e){return this instanceof m?(this.v=e,this):new m(e)}function g(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise(function(n,r){i.push([e,t,n,r])>1||u(e,t)})})}function u(e,t){try{(n=o[e](t)).value instanceof m?Promise.resolve(n.value.v).then(s,c):f(i[0][2],n)}catch(e){f(i[0][3],e)}var n}function s(e){u("next",e)}function c(e){u("throw",e)}function f(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}function y(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){e[r]&&(t[r]=function(t){return(n=!n)?{value:m(e[r](t)),done:"return"===r}:o?o(t):t})}}function b(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator];return t?t.call(e):d(e)}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function _(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function A(e){return e&&e.__esModule?e:{default:e}}},function(e,t){ /*! * Chai - transferFlags utility * Copyright(c) 2012-2014 Jake Luer <jake@alogicalparadox.com> * MIT Licensed */ e.exports=function(e,t,n){var r=e.__flags||(e.__flags=Object.create(null));for(var o in t.__flags||(t.__flags=Object.create(null)),n=3!==arguments.length||n,r)(n||"object"!==o&&"ssfi"!==o&&"lockSsfi"!==o&&"message"!=o)&&(t.__flags[o]=r[o])}},function(e,t){e.exports={includeStack:!1,showDiff:!0,truncateThreshold:40,useProxy:!0,proxyExcludedKeys:["then","inspect","toJSON"]}},function(e,t,n){ /*! * chai * Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com> * MIT Licensed */ var r=[]; /*! * Chai version */t.version="4.1.2", /*! * Assertion Error */ t.AssertionError=n(42); /*! * Utils for plugins (not exported) */ var o=n(98);t.use=function(e){return~r.indexOf(e)||(e(t,o),r.push(e)),t}, /*! * Utility Functions */ t.util=o; /*! * Configuration */ var i=n(12);t.config=i; /*! * Primary `Assertion` prototype */ var a=n(81);t.use(a); /*! * Core Assertions */ var u=n(80);t.use(u); /*! * Expect interface */ var s=n(79);t.use(s); /*! * Should interface */ var c=n(78);t.use(c); /*! * Assert interface */ var f=n(77);t.use(f)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(8),o=n(19);function i(e){var t="+"===e[e.length-1];return{name:t?e.slice(0,e.length-1):e,addToExisting:t}}function a(e){return JSON.parse(function(e){var t="default",n=0,r=e.split("");for(;n<r.length;)switch(t){case"block-comment":"*"===r[n]&&"/"===r[n+1]?(r[n]=" ",r[n+1]=" ",t="default",n+=2):"\n"!==r[n]?(r[n]=" ",n+=1):n+=1;break;case"line-comment":"\n"===r[n]?t="default":r[n]=" ",n+=1;break;case"string":'"'===r[n]?(t="default",n+=1):"\\"===r[n]&&"\\"===r[n+1]?n+=2:"\\"===r[n]&&'"'===r[n+1]?n+=2:n+=1;break;default:'"'===r[n]?(t="string",n+=1):"/"===r[n]&&"*"===r[n+1]?(r[n]=" ",r[n+1]=" ",t="block-comment",n+=2):"/"===r[n]&&"/"===r[n+1]?(r[n]=" ",r[n+1]=" ",t="line-comment",n+=2):n+=1}return r.join("")}(e))}function u(e,t,n,r){switch(n){case"boolean":if("boolean"==typeof t)return t;if("true"===t)return!0;if("false"===t)return!1;throw new Error('Non-boolean value "'+t+'" for '+e);case"number":var o=Number(t);if(!isNaN(o))return o;throw new Error('Non-numeric value "'+t+'" for '+e);case"regexp":if("string"==typeof t)return new RegExp(t);if(t instanceof RegExp)return t;throw new Error('Non-regexp value "'+t+'" for '+e);case"object":if("string"==typeof t)try{t=t?JSON.parse(t):{}}catch(n){if(!r)throw new Error('Non-object value "'+t+'" for '+e);(i={})[r]=t,t=i}if("[object Object]"===Object.prototype.toString.call(t)){if(r&&!t[r])throw new Error('Invalid value "'+JSON.stringify(t)+'" for '+e+": missing '"+r+"' property");return t}throw new Error('Non-object value "'+t+'" for '+e);case"object[]":return t||(t=[]),Array.isArray(t)||(t=[t]),t.map(function(t){return u(e,t,"object",r)});case"string":if("string"==typeof t)return t;throw new Error('Non-string value "'+t+'" for '+e);case"string[]":if(t||(t=[]),"string"==typeof t&&(t=[t]),Array.isArray(t)&&t.every(function(e){return"string"==typeof e}))return t;throw new Error('Non-string[] value "'+t+'" for '+e);default:if("function"==typeof n)return n(t);throw new Error("Parser must be a valid type name")}var i}function s(e,t,n,r){var o=i(e),a=o.name,s=o.addToExisting,f=r?function(e,t){r.emit(e,t)}:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]};if("loader"===a)c(n,a,u(a,t,"object","script"));else if("bail"===a||"baseline"===a||"benchmark"===a||"debug"===a||"filterErrorStack"===a||"showConfig"===a)c(n,a,u(a,t,"boolean"));else if("basePath"===a||"coverageVariable"===a||"description"===a||"internPath"===a||"name"===a||"sessionId"===a)c(n,a,u(a,t,"string"));else if("defaultTimeout"===a)c(n,a,u(a,t,"number"));else if("grep"===a)c(n,a,u(a,t,"regexp"));else if("reporters"===a)c(n,a,u(a,t,"object[]","name"),s);else if("plugins"===a||"requires"===a||"require"===a||"scripts"===a){var l=!1,p=a;"scripts"===a?(f("deprecated",{original:"scripts",replacement:"plugins"}),p="plugins"):"require"===a?(f("deprecated",{original:"require",replacement:"plugins"}),p="plugins"):"requires"===a&&(f("deprecated",{original:"require",replacement:"plugins",message:"Set `useLoader: true`"}),p="plugins",l=!0);var d=u(p,t,"object[]","script");l&&d.forEach(function(e){e.useLoader=!0}),c(n,p,d,s)}else if("suites"===a)c(n,a,u(a,t,"string[]"),s);else if("node"===a||"browser"===a){var h=n[a]||{};n[a]||(n[a]=h);var v=a,m=u(a,t,"object");m&&Object.keys(m).forEach(function(e){var t=e,n=m[t],r=i(t),o=r.name,a=r.addToExisting;switch(o){case"loader":n=u(o,n,"object","script"),c(h,o,n,!1);break;case"reporters":n=u("reporters",n,"object[]","name"),c(h,o,n,a);break;case"plugins":case"require":case"requires":case"scripts":var s=!1;"scripts"===o?(f("deprecated",{original:"scripts",replacement:"plugins"}),o="plugins"):"require"===o?(f("deprecated",{original:"require",replacement:"plugins"}),o="plugins"):"requires"===o&&(f("deprecated",{original:"requires",replacement:"plugins",message:"Set `useLoader: true`"}),o="plugins",s=!0),n=u(o,n,"object[]","script"),s&&n.forEach(function(e){e.useLoader=!0}),c(h,o,n,a);break;case"suites":n=u(o,n,"string[]"),c(h,o,n,a);break;default:throw new Error("Invalid property "+t+" in "+v+" config")}})}else if("functionalBaseUrl"===a||"serverUrl"===a)c(n,a,u(a,t,"string"));else if("proxy"===a)c(n,a,null==t?void 0:u(a,t,"string"));else if("capabilities"===a||"instrumenterOptions"===a||"tunnelOptions"===a)c(n,a,u(a,t,"object"),s);else if("environments"===a){var g=t;g?Array.isArray(g)||(g=[g]):g=[],g=g.map(function(e){return"object"==typeof e&&null==e.browserName&&(e.browserName=e.browser),e}),c(n,a,u(a,g,"object[]","browserName"),s)}else if("excludeInstrumentation"===a)f("deprecated",{original:"excludeInstrumentation",replacement:"coverage"});else if("tunnel"===a)c(n,a,u(a,t,"string"));else if("functionalCoverage"===a||"leaveRemoteOpen"===a||"serveOnly"===a||"runInSync"===a)c(n,a,u(a,t,"boolean"));else if("coverage"===a){d=void 0;try{d=u(a,t,"boolean")}catch(e){d=u(a,t,"string[]")}if("boolean"==typeof d&&!1!==d)throw new Error("Non-false boolean for 'coverage'");c(n,a,d)}else if("functionalSuites"===a)c(n,a,u(a,t,"string[]"),s);else if("functionalTimeouts"===a){n.functionalTimeouts||(n.functionalTimeouts={});var y=u(a,t,"object");y?Object.keys(y).forEach(function(e){var t=e;"connectTimeout"===t?(f("deprecated",{original:"functionalTimeouts.connectTimeout",replacement:"connectTimeout"}),c(n,t,u(t,y[t],"number"))):n.functionalTimeouts[t]=u("functionalTimeouts."+t,y[t],"number")}):c(n,a,{})}else"connectTimeout"===a||"heartbeatInterval"===a||"maxConcurrency"===a||"serverPort"===a||"socketPort"===a?c(n,a,u(a,t,"number")):(f("log",'Config has unknown option "'+a+'"'),c(n,a,t))}function c(e,t,n,o){if(void 0===o&&(o=!1),o){var i=e[t];if(null==i)e[t]=n;else if(Array.isArray(i))i.push.apply(i,n);else{if("object"!=typeof e[t])throw new Error("Only array or object options may be added");e[t]=r.deepMixin({},e[t],n)}}else e[t]=n}function f(e,t){void 0===t&&(t="/");var n=e.lastIndexOf(l);return 0===n?{configFile:"",childConfig:e.slice(1)}:-1===n||e[n-1]===t?{configFile:e}:{configFile:e.slice(0,n),childConfig:e.slice(n+1)}}t.evalProperty=i,t.getBasePath=function(e,t,n,r){r=r||o.getPathSep(e,t);var i,a=e.replace(/\\/g,"/").split("/");return i="/"===e[0]&&2===a.length?"/":a.slice(0,-1).join("/"),(t?n(t=o.normalize(t))?t:o.join(i,t):i).split("/").join(r)},t.getConfigDescription=function(e,t){void 0===t&&(t="");var n="";if(e.description&&(n+=""+t+e.description+"\n\n"),e.configs){n+=t+"Configs:\n";var r=Object.keys(e.configs).reduce(function(e,t){return Math.max(e,t.length)},0);n+=Object.keys(e.configs).map(function(n){for(var o=e.configs[n];n.length<r;)n+=" ";var i=" "+n;return o.description&&(i+=" ("+o.description+")"),""+t+i}).join("\n")}return n},t.isTask=function(e){if(!e||"object"!=typeof e)return!1;for(var t=0,n=["then","catch","finally","cancel"];t<n.length;t++){var r=n[t];if(!(r in e)||"function"!=typeof e[r])return!1}return!0},t.loadConfig=function(e,t,n,o){return function e(t,n,o,i){return n(t).then(function(r){var o;try{o=a(r)}catch(e){throw new Error("Invalid JSON in "+t)}if(o.extends){var i=t.split("/"),u=f(o.extends),c=u.configFile,l=u.childConfig,p=i.slice(0,i.length-1).concat(c).join("/");return e(p,n,void 0,l).then(function(e){return Object.keys(o).filter(function(e){return"configs"!==e}).forEach(function(t){s(t,o[t],e)}),o.configs&&(null==e.configs&&(e.configs={}),Object.keys(o.configs).forEach(function(t){e.configs[t]=o.configs[t]})),e})}var d={};return Object.keys(o).forEach(function(e){s(e,o[e],d)}),d}).then(function(e){if(o&&(o.showConfigs||o.help))return e;if(i){var t=function(n){var o=Array.isArray(n)?n:[n];o.forEach(function(n){var o=e.configs[n];if(!o)throw new Error('Unknown child config "'+n+'"');o.extends&&t(o.extends),Object.keys(o).filter(function(e){return"node"!==e&&"browser"!==e}).forEach(function(t){s(t,o[t],e)}),["node","browser"].forEach(function(t){if(o[t])if(e[t]){var n={};s(t,o[t],n),r.mixin(e[t],n[t])}else s(t,o[t],e)})})};t(i)}return e}).then(function(e){return o&&(["plugins","reporters","suites"].filter(function(e){return e in o}).forEach(function(t){["node","browser"].filter(function(t){return e[t]}).forEach(function(n){delete e[n][t]})}),Object.keys(o).forEach(function(t){s(t,o[t],e)})),e})}(e,t,n,o).then(function(e){return delete e.config,delete e.extends,n&&(n.showConfigs||n.help)||delete e.configs,e})},t.parseArgs=function(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n],i=o,a=void 0,u=t,s=o.indexOf("=");if(-1!==s&&(i=o.slice(0,s),a=o.slice(s+1)),-1!==i.indexOf(".")){var c=i.split("."),f=c.slice(0,c.length-1);i=c[c.length-1];for(var l=0,p=f;l<p.length;l++){var d=p[l];u[d]||(u[d]={}),u=u[d]}}void 0===a?u[i]=!0:i in u?Array.isArray(u[i])?u[i].push(a):u[i]=[u[i],a]:u[i]=a}return t},t.parseJson=a,t.parseValue=u,t.prefix=function(e,t){return e.split("\n").map(function(e){return t+e}).join("\n")},t.processOption=s,t.pullFromArray=function(e,t){for(var n=[],r=0;(r=e.indexOf(t,r))>-1;)n.push(e.splice(r,1)[0]);return n},t.setOption=c,t.splitConfigPath=f,t.stringify=function(e,t){return JSON.stringify(e,p,t)};var l="@";function p(e,t){return t?t instanceof RegExp?t.source:"function"==typeof t?t.toString():t:t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),o=n(1),i=n(3);if(o.default("es6-object")){var a=r.default.Object;t.assign=a.assign,t.getOwnPropertyDescriptor=a.getOwnPropertyDescriptor,t.getOwnPropertyNames=a.getOwnPropertyNames,t.getOwnPropertySymbols=a.getOwnPropertySymbols,t.is=a.is,t.keys=a.keys}else t.keys=function(e){return Object.keys(e).filter(function(e){return!Boolean(e.match(/^@@.+/))})},t.assign=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];if(null==e)throw new TypeError("Cannot convert undefined or null to object");var o=Object(e);return n.forEach(function(e){e&&t.keys(e).forEach(function(t){o[t]=e[t]})}),o},t.getOwnPropertyDescriptor=function(e,t){return i.isSymbol(t),Object.getOwnPropertyDescriptor(e,t)},t.getOwnPropertyNames=function(e){return Object.getOwnPropertyNames(e).filter(function(e){return!Boolean(e.match(/^@@.+/))})},t.getOwnPropertySymbols=function(e){return Object.getOwnPropertyNames(e).filter(function(e){return Boolean(e.match(/^@@.+/))}).map(function(e){return Symbol.for(e.substring(2))})},t.is=function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};if(o.default("es2017-object")){a=r.default.Object;t.getOwnPropertyDescriptors=a.getOwnPropertyDescriptors,t.entries=a.entries,t.values=a.values}else t.getOwnPropertyDescriptors=function(e){return t.getOwnPropertyNames(e).reduce(function(n,r){return n[r]=t.getOwnPropertyDescriptor(e,r),n},{})},t.entries=function(e){return t.keys(e).map(function(t){return[t,e[t]]})},t.values=function(e){return t.keys(e).map(function(t){return e[t]})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(6),o=n(0),i=n(56);n(3);var a,u=n(1);t.ShimPromise=o.default.Promise,t.isThenable=function(e){return e&&"function"==typeof e.then},u.default("es6-promise")||(o.default.Promise=t.ShimPromise=((a=function(){function e(n){var r=this;this.state=1,this[Symbol.toStringTag]="Promise";var o=!1,a=[],u=function(e){a&&a.push(e)},s=function(e,t){1===r.state&&(r.state=e,r.resolvedValue=t,u=i.queueMicroTask,a&&a.length>0&&i.queueMicroTask(function(){if(a){for(var e=a.length,t=0;t<e;++t)a[t].call(null);a=null}}))},c=function(e,n){1!==r.state||o||(t.isThenable(n)?(n.then(s.bind(null,0),s.bind(null,2)),o=!0):s(e,n))};this.then=function(t,n){return new e(function(e,o){u(function(){var i=2===r.state?n:t;if("function"==typeof i)try{e(i(r.resolvedValue))}catch(e){o(e)}else 2===r.state?o(r.resolvedValue):e(r.resolvedValue)})})};try{n(c.bind(null,0),c.bind(null,2))}catch(e){s(2,e)}}return e.all=function(n){return new this(function(o,i){var a=[],u=0,s=0,c=!0;function f(e,t){a[e]=t,++u,l()}function l(){c||u<s||o(a)}var p,d,h,v,m=0;try{for(var g=r.__values(n),y=g.next();!y.done;y=g.next()){var b=y.value;p=m,d=b,++s,t.isThenable(d)?d.then(f.bind(null,p),i):e.resolve(d).then(f.bind(null,p)),m++}}catch(e){h={error:e}}finally{try{y&&!y.done&&(v=g.return)&&v.call(g)}finally{if(h)throw h.error}}c=!1,l()})},e.race=function(t){return new this(function(n,o){try{for(var i=r.__values(t),a=i.next();!a.done;a=i.next()){var u=a.value;u instanceof e?u.then(n,o):e.resolve(u).then(n)}}catch(e){s={error:e}}finally{try{a&&!a.done&&(c=i.return)&&c.call(i)}finally{if(s)throw s.error}}var s,c})},e.reject=function(e){return new this(function(t,n){n(e)})},e.resolve=function(e){return new this(function(t){t(e)})},e.prototype.catch=function(e){return this.then(void 0,e)},e}())[Symbol.species]=t.ShimPromise,a)),t.default=t.ShimPromise},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var s,c=[],f=!1,l=-1;function p(){f&&s&&(f=!1,s.length?c=s.concat(c):l=-1,c.length&&d())}function d(){if(!f){var e=u(p);f=!0;for(var t=c.length;t;){for(s=c,c=[];++l<t;)s&&s[l].run();l=-1,t=c.length}s=null,f=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function v(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||f||u(d)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(9),o=n(8),i=n(36),a=n(14),u=function(){function e(e){var t=this;if(this._hasPassed=!1,this._isAsync=!1,this._usesRemote=!1,!e.name||!e.test)throw new Error("A Test requires a name and a test function");["timeElapsed","hasPassed"].forEach(function(n){var r=n;null!=e[r]&&(t["_"+r]=e[r]),delete e[r]}),o.mixin(this,e)}return Object.defineProperty(e.prototype,"executor",{get:function(){return this.parent&&this.parent.executor},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasPassed",{get:function(){return this._hasPassed},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){var e=[],t=this;do{null!=t.name&&e.unshift(t.name)}while(t=t.parent);return e.join(" - ")},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isAsync",{get:function(){return this._isAsync},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentId",{get:function(){return this.parent.id},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"remote",{get:function(){return this._usesRemote=!0,this.parent.remote},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"sessionId",{get:function(){return this.parent.sessionId},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"timeElapsed",{get:function(){return this._timeElapsed},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"timeout",{get:function(){return null!=this._timeout?this._timeout:this.parent&&null!=this.parent.timeout?this.parent.timeout:3e4},set:function(e){this._timeout=e},enumerable:!0,configurable:!0}),e.prototype.async=function(e,t){this._isAsync=!0,null!=e&&(this.timeout=e);var n=t||1,r=new i.default,o=r.resolve;return r.resolve=function(){if(0===--n)o.apply(this,arguments);else if(n<0)throw new Error("resolve called too many times")},this.async=function(){return r},r},e.prototype.restartTimeout=function(e){var t=this;null!=e&&(this.timeout=e),this._runTask&&(this._timer&&clearTimeout(this._timer),this._timer=setTimeout(function(){if(t._timer=void 0,t._runTask){var e=new Error("Timeout reached on "+t.id+"#");e.name="TimeoutError",t.error=e,t._runTask.cancel()}},this.timeout))},e.prototype.run=function(){var e,n=this;return this._runTask&&1===this._runTask.state&&(this._runTask.cancel(),this._runTask=void 0),this._timer&&(clearTimeout(this._timer),this._timer=void 0),this._usesRemote=!1,this._hasPassed=!1,this._isAsync=!1,this._timeElapsed=0,this._runTask=void 0,this.async=Object.getPrototypeOf(this).async,this.error=void 0,this.skipped=void 0,this.executor.emit("testStart",this).then(function(){e=Date.now()}).then(function(){var e=n.test(n);if(n.isAsync&&(e=r.isThenable(e)?r.default.race([n.async().promise,e]):n.async().promise),r.isThenable(e))return n._isAsync=!0,new r.default(function(o,i){n._runTask=new r.default(function(o,i){if(r.isThenable(e)&&e.then(function(){o()},i),a.isTask(e)){var u=e;u.finally(function(){3===u.state&&(n.skipped="Canceled",i(t.SKIP))}).catch(function(e){})}},function(){a.isTask(e)&&e.cancel(),n.error&&i(n.error)}).then(function(){o()},i),n.restartTimeout()})}).finally(function(){n._runTask&&1===n._runTask.state&&n._runTask.cancel(),n._runTask=void 0,n._timeElapsed=Date.now()-e,n._timer&&(clearTimeout(n._timer),n._timer=void 0)}).then(function(){if(n._usesRemote&&!n.isAsync)throw new Error("Remote used in synchronous test! Tests using this.remote must return a