!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},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=173)}({0:function(e,t){e.exports=cockpit},1:function(e,t,n){"use strict";var r=n(4),i=n.n(r),o=n(5),s=n.n(o);window.QUnit=i.a,window.qunitTap=s.a,n(10),n(11),t.a=i.a},10:function(e,t,n){"use strict";var r=!1;QUnit.config.autostart=!1;var i=window.onerror;window.onerror=null,QUnit.begin((function(){window.onerror=function(e,t,n){var r=!1;return i&&(r=i(e,t,n)),QUnit.config.current&&QUnit.config.current.async&&QUnit.start(),r}})),QUnit.moduleStart((function(){r=!0})),QUnit.done((function(){window.setTimeout((function(){console.log("cockpittest-tap-done")}),0),window.onerror=null}));var o=/^((not )?ok [0-9]+ (- )?)(.*)$/;qunitTap(QUnit,(function(){if(1==arguments.length&&QUnit.config.current){var e=o.exec(arguments[0]);if(e)return void console.log(e[1]+QUnit.config.current.testName+": "+e[4])}console.log.apply(console,arguments)})),window.setTimeout((function(){r||(console.log("QUnit not started by test"),console.log("cockpittest-tap-error"))}),2e4),window.tests_included=!0},11:function(e,t,n){},173:function(e,t,n){"use strict";n.r(t);var r=n(0),i=n.n(r),o=n(1);o.a.test("cockpit object without jQuery",e=>{const t=e.async();e.expect(8),e.equal(typeof jQuery,"undefined","jQuery is not defined"),e.equal(typeof $,"undefined","$ is not defined"),e.equal(typeof i.a,"object","cockpit is defined"),e.notEqual(i.a.channel,void 0,"cockpit.channel is defined"),e.notEqual(i.a.spawn,void 0,"cockpit.spawn is defined");let n=!1;const r=i.a.channel({payload:"stream",spawn:["sh","-c","echo hello"]});r.onmessage=t=>{n=!0,e.equal(t.detail,"hello\n","channel message correct"),r.onmessage=null},r.onclose=r=>{e.equal(r.detail.command,"close","channel close data correct"),e.ok(n,"channel got message"),t()}}),o.a.start()},3:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},4:function(e,t,n){(function(e,r,i){var o;
/*!
 * QUnit 2.14.0
 * https://qunitjs.com/
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2021-01-12
 */!function(s){"use strict";var a="function"==typeof a?a:function(){var e=Object.create(null);this.get=function(t){return e[t]},this.set=function(t,n){return e[t]=n,this},this.clear=function(){e=Object.create(null)}};function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=u(s),c=l.default.window,f=l.default.self,d=l.default.console,p=l.default.setTimeout,h=l.default.clearTimeout,m=c&&c.document,g=c&&c.navigator,v=function(){var e="qunit-test-string";try{return l.default.sessionStorage.setItem(e,e),l.default.sessionStorage.removeItem(e),l.default.sessionStorage}catch(e){return}}();function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function k(e,t,n){return t&&w(e.prototype,t),n&&w(e,n),e}function x(e){return function(e){if(Array.isArray(e))return E(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||T(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function T(e,t){if(e){if("string"==typeof e)return E(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(e,t):void 0}}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var C={warn:d?(d.warn||d.log).bind(d):function(){}},q=Object.prototype.toString,N=Object.prototype.hasOwnProperty,j=Date.now||function(){return(new Date).getTime()},S=c&&void 0!==c.performance&&"function"==typeof c.performance.mark&&"function"==typeof c.performance.measure?c.performance:void 0;var I={now:S?S.now.bind(S):j,measure:S?function(e,t,n){try{S.measure(e,t,n)}catch(e){C.warn("performance.measure could not be executed because of ",e.message)}}:function(){},mark:S?S.mark.bind(S):function(){}};function M(e,t){for(var n=e.slice(),r=0;r<n.length;r++)for(var i=0;i<t.length;i++)if(n[r]===t[i]){n.splice(r,1),r--;break}return n}function _(e,t){return-1!==t.indexOf(e)}function O(e){var t=L("array",e)?[]:{};for(var n in e)if(N.call(e,n)){var r=e[n];t[n]=r===Object(r)?O(r):r}return t}function A(e,t,n){for(var r in t)N.call(t,r)&&(void 0===t[r]?delete e[r]:n&&void 0!==e[r]||(e[r]=t[r]));return e}function R(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=q.call(e).match(/^\[object\s(.*)\]$/),n=t&&t[1];switch(n){case"Number":return isNaN(e)?"nan":"number";case"String":case"Boolean":case"Array":case"Set":case"Map":case"Date":case"RegExp":case"Function":case"Symbol":return n.toLowerCase();default:return y(e)}}function L(e,t){return R(t)===e}function P(e,t){for(var n=e+""+t,r=0,i=0;i<n.length;i++)r=(r<<5)-r+n.charCodeAt(i),r|=0;var o=(4294967296+r).toString(16);return o.length<8&&(o="0000000"+o),o.slice(-8)}var F=function(){var e=[],t=Object.getPrototypeOf||function(e){return e.__proto__};function n(e,t){return"object"===y(e)&&(e=e.valueOf()),"object"===y(t)&&(t=t.valueOf()),e===t}function r(e){return"flags"in e?e.flags:e.toString().match(/[gimuy]*$/)[0]}function i(t,n){return t===n||(-1===["object","array","map","set"].indexOf(R(t))?s(t,n):(e.every((function(e){return e.a!==t||e.b!==n}))&&e.push({a:t,b:n}),!0))}var o={string:n,boolean:n,number:n,null:n,undefined:n,symbol:n,date:n,nan:function(){return!0},regexp:function(e,t){return e.source===t.source&&r(e)===r(t)},function:function(){return!1},array:function(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(!i(e[r],t[r]))return!1;return!0},set:function(t,n){if(t.size!==n.size)return!1;var r=!0;return t.forEach((function(t){if(r){var i=!1;n.forEach((function(n){if(!i){var r=e;a(n,t)&&(i=!0),e=r}})),i||(r=!1)}})),r},map:function(t,n){if(t.size!==n.size)return!1;var r=!0;return t.forEach((function(t,i){if(r){var o=!1;n.forEach((function(n,r){if(!o){var s=e;a([n,r],[t,i])&&(o=!0),e=s}})),o||(r=!1)}})),r},object:function(e,n){if(!1===function(e,n){var r=t(e),i=t(n);return e.constructor===n.constructor||(r&&null===r.constructor&&(r=null),i&&null===i.constructor&&(i=null),null===r&&i===Object.prototype||null===i&&r===Object.prototype)}(e,n))return!1;var r=[],o=[];for(var a in e)if(r.push(a),(e.constructor===Object||void 0===e.constructor||"function"!=typeof e[a]||"function"!=typeof n[a]||e[a].toString()!==n[a].toString())&&!i(e[a],n[a]))return!1;for(var u in n)o.push(u);return s(r.sort(),o.sort())}};function s(e,t){var n=R(e);return R(t)===n&&o[n](e,t)}function a(t,n){if(arguments.length<2)return!0;e=[{a:t,b:n}];for(var r=0;r<e.length;r++){var i=e[r];if(i.a!==i.b&&!s(i.a,i.b))return!1}return 2===arguments.length||a.apply(this,[].slice.call(arguments,1))}return function(){var t=a.apply(void 0,arguments);return e.length=0,t}}(),U={queue:[],blocking:!0,reorder:!0,altertitle:!0,collapse:!0,scrolltop:!0,maxDepth:5,requireExpects:!1,urlConfig:[],modules:[],currentModule:{name:"",tests:[],childModules:[],testsRun:0,testsIgnored:0,hooks:{before:[],beforeEach:[],afterEach:[],after:[]}},callbacks:{},storage:v},D=c&&c.QUnit&&c.QUnit.config;c&&c.QUnit&&!c.QUnit.version&&A(U,D),U.modules.push(U.currentModule);var Q=function(){function e(e){return'"'+e.toString().replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'}function t(e){return e+""}function n(e,t,n){var r=o.separator(),i=o.indent(1);return t.join&&(t=t.join(","+r+i)),t?[e,i+t,o.indent()+n].join(r):e+n}function r(e,t){if(o.maxDepth&&o.depth>o.maxDepth)return"[object Array]";this.up();for(var r=e.length,i=new Array(r);r--;)i[r]=this.parse(e[r],void 0,t);return this.down(),n("[",i,"]")}var i=/^function (\w+)/,o={parse:function(e,t,n){var r=(n=n||[]).indexOf(e);if(-1!==r)return"recursion(".concat(r-n.length,")");t=t||this.typeOf(e);var i=this.parsers[t],o=y(i);if("function"===o){n.push(e);var s=i.call(this,e,n);return n.pop(),s}return"string"===o?i:this.parsers.error},typeOf:function(e){return null===e?"null":void 0===e?"undefined":L("regexp",e)?"regexp":L("date",e)?"date":L("function",e)?"function":void 0!==e.setInterval&&void 0!==e.document&&void 0===e.nodeType?"window":9===e.nodeType?"document":e.nodeType?"node":function(e){return"[object Array]"===q.call(e)||"number"==typeof e.length&&void 0!==e.item&&(e.length?e.item(0)===e[0]:null===e.item(0)&&void 0===e[0])}(e)?"array":e.constructor===Error.prototype.constructor?"error":y(e)},separator:function(){return this.multiline?this.HTML?"<br />":"\n":this.HTML?"&#160;":" "},indent:function(e){if(!this.multiline)return"";var t=this.indentChar;return this.HTML&&(t=t.replace(/\t/g,"   ").replace(/ /g,"&#160;")),new Array(this.depth+(e||0)).join(t)},up:function(e){this.depth+=e||1},down:function(e){this.depth-=e||1},setParser:function(e,t){this.parsers[e]=t},quote:e,literal:t,join:n,depth:1,maxDepth:U.maxDepth,parsers:{window:"[Window]",document:"[Document]",error:function(e){return'Error("'+e.message+'")'},unknown:"[Unknown]",null:"null",undefined:"undefined",function:function(e){var t="function",r="name"in e?e.name:(i.exec(e)||[])[1];return r&&(t+=" "+r),n(t=[t+="(",o.parse(e,"functionArgs"),"){"].join(""),o.parse(e,"functionCode"),"}")},array:r,nodelist:r,arguments:r,object:function(e,t){var r=[];if(o.maxDepth&&o.depth>o.maxDepth)return"[object Object]";o.up();var i=[];for(var s in e)i.push(s);var a=["message","name"];for(var u in a){var l=a[u];l in e&&!_(l,i)&&i.push(l)}i.sort();for(var c=0;c<i.length;c++){var f=i[c],d=e[f];r.push(o.parse(f,"key")+": "+o.parse(d,void 0,t))}return o.down(),n("{",r,"}")},node:function(e){var t=o.HTML?"&lt;":"<",n=o.HTML?"&gt;":">",r=e.nodeName.toLowerCase(),i=t+r,s=e.attributes;if(s)for(var a=0,u=s.length;a<u;a++){var l=s[a].nodeValue;l&&"inherit"!==l&&(i+=" "+s[a].nodeName+"="+o.parse(l,"attribute"))}return i+=n,3!==e.nodeType&&4!==e.nodeType||(i+=e.nodeValue),i+t+"/"+r+n},functionArgs:function(e){var t=e.length;if(!t)return"";for(var n=new Array(t);t--;)n[t]=String.fromCharCode(97+t);return" "+n.join(", ")+" "},key:e,functionCode:"[code]",attribute:e,string:e,date:e,regexp:t,number:t,boolean:t,symbol:function(e){return e.toString()}},HTML:!1,indentChar:"  ",multiline:!0};return o}(),H=function(){function e(t,n){b(this,e),this.name=t,this.fullName=n?n.fullName.concat(t):[],this.tests=[],this.childSuites=[],n&&n.pushChildSuite(this)}return k(e,[{key:"start",value:function(e){if(e){this._startTime=I.now();var t=this.fullName.length;I.mark("qunit_suite_".concat(t,"_start"))}return{name:this.name,fullName:this.fullName.slice(),tests:this.tests.map((function(e){return e.start()})),childSuites:this.childSuites.map((function(e){return e.start()})),testCounts:{total:this.getTestCounts().total}}}},{key:"end",value:function(e){if(e){this._endTime=I.now();var t=this.fullName.length,n=this.fullName.join(" – ");I.mark("qunit_suite_".concat(t,"_end")),I.measure(0===t?"QUnit Test Run":"QUnit Test Suite: ".concat(n),"qunit_suite_".concat(t,"_start"),"qunit_suite_".concat(t,"_end"))}return{name:this.name,fullName:this.fullName.slice(),tests:this.tests.map((function(e){return e.end()})),childSuites:this.childSuites.map((function(e){return e.end()})),testCounts:this.getTestCounts(),runtime:this.getRuntime(),status:this.getStatus()}}},{key:"pushChildSuite",value:function(e){this.childSuites.push(e)}},{key:"pushTest",value:function(e){this.tests.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getTestCounts",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{passed:0,failed:0,skipped:0,todo:0,total:0};return e=this.tests.reduce((function(e,t){return t.valid&&(e[t.getStatus()]++,e.total++),e}),e),this.childSuites.reduce((function(e,t){return t.getTestCounts(e)}),e)}},{key:"getStatus",value:function(){var e=this.getTestCounts(),t=e.total,n=e.failed,r=e.skipped,i=e.todo;return n?"failed":r===t?"skipped":i===t?"todo":"passed"}}]),e}(),B=[];function $(e,t,n){var r=B.length?B.slice(-1)[0]:null,i=null!==r?[r.name,e].join(" > "):e,o=r?r.suiteReport:Ce,s=null!==r&&r.skip||n.skip,a=null!==r&&r.todo||n.todo,u={name:i,parentModule:r,tests:[],moduleId:P(i),testsRun:0,testsIgnored:0,childModules:[],suiteReport:new H(e,o),skip:s,todo:!s&&a,ignored:n.ignored||!1},l={};return r&&(r.childModules.push(u),A(l,r.testEnvironment)),A(l,t),u.testEnvironment=l,U.modules.push(u),u}function z(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};"function"===R(t)&&(n=t,t=void 0);var i=$(e,t,r),o=i.testEnvironment,s=i.hooks={};l(s,o,"before"),l(s,o,"beforeEach"),l(s,o,"afterEach"),l(s,o,"after");var a={before:c(i,"before"),beforeEach:c(i,"beforeEach"),afterEach:c(i,"afterEach"),after:c(i,"after")},u=U.currentModule;function l(e,t,n){var r=t[n];e[n]="function"==typeof r?[r]:[],delete t[n]}function c(e,t){return function(n){e.hooks[t].push(n)}}"function"===R(n)&&(B.push(i),U.currentModule=i,n.call(i.testEnvironment,a),B.pop(),i=i.parentModule||u),U.currentModule=i}var G=!1;function W(e,t,n){var r;z(e,t,n,{ignored:G&&(r=U.modules.map((function(e){return e.moduleId})),!B.some((function(e){return r.includes(e.moduleId)})))})}W.only=function(){G||(U.modules.length=0,U.queue.length=0),z.apply(void 0,arguments),G=!0},W.skip=function(e,t,n){G||z(e,t,n,{skip:!0})},W.todo=function(e,t,n){G||z(e,t,n,{todo:!0})};var V=Object.create(null),Y=["runStart","suiteStart","testStart","assertion","testEnd","suiteEnd","runEnd"];function J(e,t){if("string"!==R(e))throw new TypeError("eventName must be a string when emitting an event");for(var n=V[e],r=n?x(n):[],i=0;i<r.length;i++)r[i](t)}var K="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};function X(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return Z(null==t&&n.path)}},n.exports),n.exports}function Z(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var ee=X((function(e){!function(){var t=function(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==K)return K;throw new Error("unable to locate global object")}();if("function"!=typeof t.Promise){var n=setTimeout;s.prototype.catch=function(e){return this.then(null,e)},s.prototype.then=function(e,t){var n=new this.constructor(o);return a(this,new f(e,t,n)),n},s.prototype.finally=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))},s.all=function(e){return new s((function(t,n){if(!i(e))return n(new TypeError("Promise.all accepts an array"));var r=Array.prototype.slice.call(e);if(0===r.length)return t([]);var o=r.length;function s(e,i){try{if(i&&("object"===y(i)||"function"==typeof i)){var a=i.then;if("function"==typeof a)return void a.call(i,(function(t){s(e,t)}),n)}r[e]=i,0==--o&&t(r)}catch(e){n(e)}}for(var a=0;a<r.length;a++)s(a,r[a])}))},s.allSettled=function(e){return new this((function(t,n){if(!e||void 0===e.length)return n(new TypeError(y(e)+" "+e+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(e);if(0===r.length)return t([]);var i=r.length;function o(e,n){if(n&&("object"===y(n)||"function"==typeof n)){var s=n.then;if("function"==typeof s)return void s.call(n,(function(t){o(e,t)}),(function(n){r[e]={status:"rejected",reason:n},0==--i&&t(r)}))}r[e]={status:"fulfilled",value:n},0==--i&&t(r)}for(var s=0;s<r.length;s++)o(s,r[s])}))},s.resolve=function(e){return e&&"object"===y(e)&&e.constructor===s?e:new s((function(t){t(e)}))},s.reject=function(e){return new s((function(t,n){n(e)}))},s.race=function(e){return new s((function(t,n){if(!i(e))return n(new TypeError("Promise.race accepts an array"));for(var r=0,o=e.length;r<o;r++)s.resolve(e[r]).then(t,n)}))},s._immediateFn="function"==typeof r&&function(e){r(e)}||function(e){n(e,0)},s._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},e.exports=s}else e.exports=t.Promise;function i(e){return Boolean(e&&void 0!==e.length)}function o(){}function s(e){if(!(this instanceof s))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(e,this)}function a(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,s._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(e){return void l(t.promise,e)}u(t.promise,r)}else(1===e._state?u:l)(t.promise,e._value)}))):e._deferreds.push(t)}function u(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===y(t)||"function"==typeof t)){var n=t.then;if(t instanceof s)return e._state=3,e._value=t,void c(e);if("function"==typeof n)return void d((r=n,i=t,function(){r.apply(i,arguments)}),e)}e._state=1,e._value=t,c(e)}catch(t){l(e,t)}var r,i}function l(e,t){e._state=2,e._value=t,c(e)}function c(e){2===e._state&&0===e._deferreds.length&&s._immediateFn((function(){e._handled||s._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)a(e,e._deferreds[t]);e._deferreds=null}function f(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function d(e,t){var n=!1;try{e((function(e){n||(n=!0,u(t,e))}),(function(e){n||(n=!0,l(t,e))}))}catch(e){if(n)return;n=!0,l(t,e)}}}()}));function te(e,t){var n=U.callbacks[e];if("log"!==e)return n.reduce((function(e,n){return e.then((function(){return ee.resolve(n(t))}))}),ee.resolve([]));n.map((function(e){return e(t)}))}var ne=(ie(0)||"").replace(/(:\d+)+\)?/,"").replace(/.+\//,"");function re(e,t){if(t=void 0===t?4:t,e&&e.stack){var n=e.stack.split("\n");if(/^error$/i.test(n[0])&&n.shift(),ne){for(var r=[],i=t;i<n.length&&-1===n[i].indexOf(ne);i++)r.push(n[i]);if(r.length)return r.join("\n")}return n[t]}}function ie(e){var t=new Error;if(!t.stack)try{throw t}catch(e){t=e}return re(t,e)}var oe,se=0,ae=[];function ue(){var e;e=j(),U.depth=(U.depth||0)+1,function e(t){if(ae.length&&!U.blocking){var n=j()-t;if(!p||U.updateRate<=0||n<U.updateRate){var r=ae.shift();ee.resolve(r()).then((function(){ae.length?e(t):ue()}))}else p(ue)}}(e),U.depth--,ae.length||U.blocking||U.current||function(){if(!U.blocking&&!U.queue.length&&0===U.depth)return void function(){var e=U.storage;le.finished=!0;var t=j()-U.started,n=U.stats.all-U.stats.bad;if(0===U.stats.testCount){if(U.filter&&U.filter.length)throw new Error('No tests matched the filter "'.concat(U.filter,'".'));if(U.module&&U.module.length)throw new Error('No tests matched the module "'.concat(U.module,'".'));if(U.moduleId&&U.moduleId.length)throw new Error('No tests matched the moduleId "'.concat(U.moduleId,'".'));if(U.testId&&U.testId.length)throw new Error('No tests matched the testId "'.concat(U.testId,'".'));throw new Error("No tests were run.")}J("runEnd",Ce.end(!0)),te("done",{passed:n,failed:U.stats.bad,total:U.stats.all,runtime:t}).then((function(){if(e&&0===U.stats.bad)for(var t=e.length-1;t>=0;t--){var n=e.key(t);0===n.indexOf("qunit-test-")&&e.removeItem(n)}}))}();e=U.queue.shift()(),void ae.push.apply(ae,x(e)),se>0&&se--;var e;ue()}()}var le={finished:!1,add:function(e,t,n){if(t)U.queue.splice(se++,0,e);else if(n){oe||(oe=function(e){var t=parseInt(P(e),16)||-1;return function(){return t^=t<<13,t^=t>>>17,(t^=t<<5)<0&&(t+=4294967296),t/4294967296}}(n));var r=Math.floor(oe()*(U.queue.length-se+1));U.queue.splice(se+r,0,e)}else U.queue.push(e)},advance:ue,taskCount:function(){return ae.length}},ce=function(){function e(t,n,r){b(this,e),this.name=t,this.suiteName=n.name,this.fullName=n.fullName.concat(t),this.runtime=0,this.assertions=[],this.skipped=!!r.skip,this.todo=!!r.todo,this.valid=r.valid,this._startTime=0,this._endTime=0,n.pushTest(this)}return k(e,[{key:"start",value:function(e){return e&&(this._startTime=I.now(),I.mark("qunit_test_start")),{name:this.name,suiteName:this.suiteName,fullName:this.fullName.slice()}}},{key:"end",value:function(e){if(e&&(this._endTime=I.now(),I)){I.mark("qunit_test_end");var t=this.fullName.join(" – ");I.measure("QUnit Test: ".concat(t),"qunit_test_start","qunit_test_end")}return A(this.start(),{runtime:this.getRuntime(),status:this.getStatus(),errors:this.getFailedAssertions(),assertions:this.getAssertions()})}},{key:"pushAssertion",value:function(e){this.assertions.push(e)}},{key:"getRuntime",value:function(){return this._endTime-this._startTime}},{key:"getStatus",value:function(){return this.skipped?"skipped":(this.getFailedAssertions().length>0?this.todo:!this.todo)?this.todo?"todo":"passed":"failed"}},{key:"getFailedAssertions",value:function(){return this.assertions.filter((function(e){return!e.passed}))}},{key:"getAssertions",value:function(){return this.assertions.slice()}},{key:"slimAssertions",value:function(){this.assertions=this.assertions.map((function(e){return delete e.actual,delete e.expected,e}))}}]),e}();function fe(e){if(this.expected=null,this.assertions=[],this.semaphore=0,this.module=U.currentModule,this.steps=[],this.timeout=void 0,A(this,e),this.module.skip?(this.skip=!0,this.todo=!1):this.module.todo&&!this.skip&&(this.todo=!0),!this.skip&&"function"!=typeof this.callback){var t=this.todo?"QUnit.todo":"QUnit.test";throw new TypeError("You must provide a callback to ".concat(t,'("').concat(this.testName,'")'))}++fe.count,this.errorForStack=new Error,this.testReport=new ce(this.testName,this.module.suiteReport,{todo:this.todo,skip:this.skip,valid:this.valid()});for(var n=0,r=this.module.tests;n<r.length;n++)this.module.tests[n].name===this.testName&&(this.testName+=" ");this.testId=P(this.module.name,this.testName),this.module.tests.push({name:this.testName,testId:this.testId,skip:!!this.skip}),this.skip?(this.callback=function(){},this.async=!1,this.expected=0):this.assert=new xe(this)}function de(){if(!U.current)throw new Error("pushFailure() assertion outside test context, in "+ie(2));var e=U.current;return e.pushFailure.apply(e,arguments)}function pe(){if(U.pollution=[],U.noglobals)for(var e in l.default)if(N.call(l.default,e)){if(/^qunit-test-output/.test(e))continue;U.pollution.push(e)}}fe.count=0,fe.prototype={get stack(){return re(this.errorForStack,2)},before:function(){var e=this,t=this.module;return function(e){for(var t=e,n=[];t&&0===t.testsRun;)n.push(t),t=t.parentModule;return n.reverse()}(t).reduce((function(e,t){return e.then((function(){return t.stats={all:0,bad:0,started:j()},J("suiteStart",t.suiteReport.start(!0)),te("moduleStart",{name:t.name,tests:t.tests})}))}),ee.resolve([])).then((function(){return U.current=e,e.testEnvironment=A({},t.testEnvironment),e.started=j(),J("testStart",e.testReport.start(!0)),te("testStart",{name:e.testName,module:t.name,testId:e.testId,previousFailure:e.previousFailure}).then((function(){U.pollution||pe()}))}))},run:function(){if(U.current=this,this.callbackStarted=j(),U.notrycatch)e(this);else try{e(this)}catch(e){this.pushFailure("Died on test #"+(this.assertions.length+1)+" "+this.stack+": "+(e.message||e),re(e,0)),pe(),U.blocking&&ve(this)}function e(e){var t=e.callback.call(e.testEnvironment,e.assert);e.resolvePromise(t),0===e.timeout&&0!==e.semaphore&&de("Test did not finish synchronously even though assert.timeout( 0 ) was used.",ie(2))}},after:function(){!function(){var e=U.pollution;pe();var t=M(U.pollution,e);t.length>0&&de("Introduced global variable(s): "+t.join(", "));var n=M(e,U.pollution);n.length>0&&de("Deleted global variable(s): "+n.join(", "))}()},queueHook:function(e,t,n){var r=this,i=function(){var n=e.call(r.testEnvironment,r.assert);r.resolvePromise(n,t)};return function(){if("before"===t){if(0!==n.testsRun)return;r.preserveEnvironment=!0}if("after"!==t||function(e){return e.testsRun===be(e).filter((function(e){return!e.skip})).length-1}(n)||!(U.queue.length>0||le.taskCount()>2))if(U.current=r,U.notrycatch)i();else try{i()}catch(e){r.pushFailure(t+" failed on "+r.testName+": "+(e.message||e),re(e,0))}}},hooks:function(e){var t=[];return this.skip||function n(r,i){if(i.parentModule&&n(r,i.parentModule),i.hooks[e].length)for(var o=0;o<i.hooks[e].length;o++)t.push(r.queueHook(i.hooks[e][o],e,i))}(this,this.module),t},finish:function(){if(U.current=this,this.callback=void 0,this.steps.length){var e=this.steps.join(", ");this.pushFailure("Expected assert.verifySteps() to be called before end of test "+"after using assert.step(). Unverified steps: ".concat(e),this.stack)}U.requireExpects&&null===this.expected?this.pushFailure("Expected number of assertions to be defined, but expect() was not called.",this.stack):null!==this.expected&&this.expected!==this.assertions.length?this.pushFailure("Expected "+this.expected+" assertions, but "+this.assertions.length+" were run",this.stack):null!==this.expected||this.assertions.length||this.pushFailure("Expected at least one assertion, but none were run - call expect(0) to accept zero assertions.",this.stack);var t=this.module,n=t.name,r=this.testName,i=!!this.skip,o=!!this.todo,s=0,a=U.storage;this.runtime=j()-this.started,U.stats.all+=this.assertions.length,U.stats.testCount+=1,t.stats.all+=this.assertions.length;for(var u=0;u<this.assertions.length;u++)this.assertions[u].result||(s++,U.stats.bad++,t.stats.bad++);i?ke(t):function(e){e.testsRun++;for(;e=e.parentModule;)e.testsRun++}(t),a&&(s?a.setItem("qunit-test-"+n+"-"+r,s):a.removeItem("qunit-test-"+n+"-"+r)),J("testEnd",this.testReport.end(!0)),this.testReport.slimAssertions();var l=this;return te("testDone",{name:r,module:n,skipped:i,todo:o,failed:s,passed:this.assertions.length-s,total:this.assertions.length,runtime:i?0:this.runtime,assertions:this.assertions,testId:this.testId,get source(){return l.stack}}).then((function(){if(we(t)){for(var e=[t],n=t.parentModule;n&&we(n);)e.push(n),n=n.parentModule;return e.reduce((function(e,t){return e.then((function(){return function(e){return e.hooks={},J("suiteEnd",e.suiteReport.end(!0)),te("moduleDone",{name:e.name,tests:e.tests,failed:e.stats.bad,passed:e.stats.all-e.stats.bad,total:e.stats.all,runtime:j()-e.stats.started})}(t)}))}),ee.resolve([]))}})).then((function(){U.current=void 0}))},preserveTestEnvironment:function(){this.preserveEnvironment&&(this.module.testEnvironment=this.testEnvironment,this.testEnvironment=A({},this.module.testEnvironment))},queue:function(){var e=this;if(this.valid()){var t=U.storage&&+U.storage.getItem("qunit-test-"+this.module.name+"-"+this.testName),n=U.reorder&&!!t;this.previousFailure=!!t,le.add((function(){return[function(){return e.before()}].concat(x(e.hooks("before")),[function(){e.preserveTestEnvironment()}],x(e.hooks("beforeEach")),[function(){e.run()}],x(e.hooks("afterEach").reverse()),x(e.hooks("after").reverse()),[function(){e.after()},function(){return e.finish()}])}),n,U.seed),le.finished&&le.advance()}else ke(this.module)},pushResult:function(e){if(this!==U.current){var t=e&&e.message||"",n=this&&this.testName||"";throw new Error("Assertion occurred after test finished.\n> Test: "+n+"\n> Message: "+t+"\n")}var r={module:this.module.name,name:this.testName,result:e.result,message:e.message,actual:e.actual,testId:this.testId,negative:e.negative||!1,runtime:j()-this.started,todo:!!this.todo};if(N.call(e,"expected")&&(r.expected=e.expected),!e.result){var i=e.source||ie();i&&(r.source=i)}this.logAssertion(r),this.assertions.push({result:!!e.result,message:e.message})},pushFailure:function(e,t,n){if(!(this instanceof fe))throw new Error("pushFailure() assertion outside test context, was "+ie(2));this.pushResult({result:!1,message:e||"error",actual:n||null,source:t})},logAssertion:function(e){te("log",e);var t={passed:e.result,actual:e.actual,expected:e.expected,message:e.message,stack:e.source,todo:e.todo};this.testReport.pushAssertion(t),J("assertion",t)},resolvePromise:function(e,t){if(null!=e){var n=this,r=e.then;if("function"===R(r)){var i=ge(n);U.notrycatch?r.call(e,(function(){i()})):r.call(e,(function(){i()}),(function(e){var r="Promise rejected "+(t?t.replace(/Each$/,""):"during")+' "'+n.testName+'": '+(e&&e.message||e);n.pushFailure(r,re(e,0)),pe(),ve(n)}))}}},valid:function(){var e=U.filter,t=/^(!?)\/([\w\W]*)\/(i?$)/.exec(e),n=U.module&&U.module.toLowerCase(),r=this.module.name+": "+this.testName;return!(!this.callback||!this.callback.validTest)||!(U.moduleId&&U.moduleId.length>0&&!function e(t){return _(t.moduleId,U.moduleId)||t.parentModule&&e(t.parentModule)}(this.module))&&(!(U.testId&&U.testId.length>0&&!_(this.testId,U.testId))&&(!(n&&!function e(t){return(t.name?t.name.toLowerCase():null)===n||!!t.parentModule&&e(t.parentModule)}(this.module))&&(!e||(t?this.regexFilter(!!t[1],t[2],t[3],r):this.stringFilter(e,r)))))},regexFilter:function(e,t,n,r){return new RegExp(t,n).test(r)!==e},stringFilter:function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n="!"!==e.charAt(0);return n||(e=e.slice(1)),-1!==t.indexOf(e)?n:!n}};var he=!1;function me(e,t){he||U.currentModule.ignored||new fe({testName:e,callback:t}).queue()}function ge(e){var t,n=!1;(e.semaphore+=1,U.blocking=!0,p)&&("number"==typeof e.timeout?t=e.timeout:"number"==typeof U.testTimeout&&(t=U.testTimeout),"number"==typeof t&&t>0&&(U.timeoutHandler=function(t){return function(){U.timeout=null,de("Test took longer than ".concat(t,"ms; test timed out."),ie(2)),n=!0,ve(e)}},h(U.timeout),U.timeout=p(U.timeoutHandler(t),t)));return function(){n||(n=!0,e.semaphore-=1,ye(e))}}function ve(e){e.semaphore=0,ye(e)}function ye(e){return isNaN(e.semaphore)?(e.semaphore=0,void de("Invalid value on test.semaphore",ie(2))):e.semaphore>0?void 0:e.semaphore<0?(e.semaphore=0,void de("Tried to restart test while already started (test's semaphore was 0 already)",ie(2))):void(p?(h(U.timeout),U.timeout=p((function(){e.semaphore>0||(h(U.timeout),U.timeout=null,Ie())}))):Ie())}function be(e){for(var t=[].concat(e.tests),n=x(e.childModules);n.length;){var r=n.shift();t.push.apply(t,r.tests),n.push.apply(n,x(r.childModules))}return t}function we(e){return e.testsRun+e.testsIgnored===be(e).length}function ke(e){for(e.testsIgnored++;e=e.parentModule;)e.testsIgnored++}A(me,{todo:function(e,t){he||U.currentModule.ignored||new fe({testName:e,callback:t,todo:!0}).queue()},skip:function(e){he||U.currentModule.ignored||new fe({testName:e,skip:!0}).queue()},only:function(e,t){U.currentModule.ignored||(he||(U.queue.length=0,he=!0),new fe({testName:e,callback:t}).queue())}});var xe=function(){function e(t){b(this,e),this.test=t}return k(e,[{key:"timeout",value:function(e){if("number"!=typeof e)throw new Error("You must pass a number as the duration to assert.timeout");var t;this.test.timeout=e,U.timeout&&(h(U.timeout),U.timeout=null,U.timeoutHandler&&this.test.timeout>0&&(t=this.test.timeout,h(U.timeout),U.timeout=p(U.timeoutHandler(t),t)))}},{key:"step",value:function(e){var t=e,n=!!e;this.test.steps.push(e),"undefined"===R(e)||""===e?t="You must provide a message to assert.step":"string"!==R(e)&&(t="You must provide a string value to assert.step",n=!1),this.pushResult({result:n,message:t})}},{key:"verifySteps",value:function(e,t){var n=this.test.steps.slice();this.deepEqual(n,e,t),this.test.steps.length=0}},{key:"expect",value:function(e){if(1!==arguments.length)return this.test.expected;this.test.expected=e}},{key:"async",value:function(e){var t=this.test,n=!1,r=e;void 0===r&&(r=1);var i=ge(t);return function(){if(U.current!==t)throw Error("assert.async callback called after test finished.");n?t.pushFailure("Too many calls to the `assert.async` callback",ie(2)):(r-=1)>0||(n=!0,i())}}},{key:"push",value:function(t,n,r,i,o){return C.warn("assert.push is deprecated and will be removed in QUnit 3.0. Please use assert.pushResult instead (https://api.qunitjs.com/assert/pushResult)."),(this instanceof e?this:U.current.assert).pushResult({result:t,actual:n,expected:r,message:i,negative:o})}},{key:"pushResult",value:function(t){var n=this,r=n instanceof e&&n.test||U.current;if(!r)throw new Error("assertion outside test context, in "+ie(2));return n instanceof e||(n=r.assert),n.test.pushResult(t)}},{key:"ok",value:function(e,t){t||(t=e?"okay":"failed, expected argument to be truthy, was: ".concat(Q.parse(e))),this.pushResult({result:!!e,actual:e,expected:!0,message:t})}},{key:"notOk",value:function(e,t){t||(t=e?"failed, expected argument to be falsy, was: ".concat(Q.parse(e)):"okay"),this.pushResult({result:!e,actual:e,expected:!1,message:t})}},{key:"true",value:function(e,t){this.pushResult({result:!0===e,actual:e,expected:!0,message:t})}},{key:"false",value:function(e,t){this.pushResult({result:!1===e,actual:e,expected:!1,message:t})}},{key:"equal",value:function(e,t,n){var r=t==e;this.pushResult({result:r,actual:e,expected:t,message:n})}},{key:"notEqual",value:function(e,t,n){var r=t!=e;this.pushResult({result:r,actual:e,expected:t,message:n,negative:!0})}},{key:"propEqual",value:function(e,t,n){e=O(e),t=O(t),this.pushResult({result:F(e,t),actual:e,expected:t,message:n})}},{key:"notPropEqual",value:function(e,t,n){e=O(e),t=O(t),this.pushResult({result:!F(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"deepEqual",value:function(e,t,n){this.pushResult({result:F(e,t),actual:e,expected:t,message:n})}},{key:"notDeepEqual",value:function(e,t,n){this.pushResult({result:!F(e,t),actual:e,expected:t,message:n,negative:!0})}},{key:"strictEqual",value:function(e,t,n){this.pushResult({result:t===e,actual:e,expected:t,message:n})}},{key:"notStrictEqual",value:function(e,t,n){this.pushResult({result:t!==e,actual:e,expected:t,message:n,negative:!0})}},{key:"throws",value:function(t,n,r){var i,o=!1,s=this instanceof e&&this.test||U.current;if("string"===R(n)){if(null!=r)throw new Error("throws/raises does not accept a string value for the expected argument.\nUse a non-string object value (e.g. regExp) instead if it's necessary.");r=n,n=null}s.ignoreGlobalErrors=!0;try{t.call(s.testEnvironment)}catch(e){i=e}if(s.ignoreGlobalErrors=!1,i){var a=R(n);n?"regexp"===a?(o=n.test(Te(i)),n=String(n)):"function"===a&&void 0!==n.prototype&&i instanceof n?o=!0:"object"===a?(o=i instanceof n.constructor&&i.name===n.name&&i.message===n.message,n=Te(n)):"function"===a&&!0===n.call({},i)&&(n=null,o=!0):o=!0}s.assert.pushResult({result:o,actual:i&&Te(i),expected:n,message:r})}},{key:"rejects",value:function(t,n,r){var i=!1,o=this instanceof e&&this.test||U.current;if("string"===R(n)){if(void 0!==r)return r="assert.rejects does not accept a string value for the expected argument.\nUse a non-string object value (e.g. validator function) instead if necessary.",void o.assert.pushResult({result:!1,message:r});r=n,n=void 0}var s=t&&t.then;if("function"===R(s)){var a=this.async();return s.call(t,(function(){var e='The promise returned by the `assert.rejects` callback in "'+o.testName+'" did not reject.';o.assert.pushResult({result:!1,message:e,actual:t}),a()}),(function(e){var t=R(n);void 0===n?i=!0:"regexp"===t?(i=n.test(Te(e)),n=String(n)):"function"===t&&e instanceof n?i=!0:"object"===t?(i=e instanceof n.constructor&&e.name===n.name&&e.message===n.message,n=Te(n)):"function"===t?(i=!0===n.call({},e),n=null):(i=!1,r='invalid expected value provided to `assert.rejects` callback in "'+o.testName+'": '+t+"."),o.assert.pushResult({result:i,actual:e&&Te(e),expected:n,message:r}),a()}))}var u='The value provided to `assert.rejects` in "'+o.testName+'" was not a promise.';o.assert.pushResult({result:!1,message:u,actual:t})}}]),e}();function Te(e){var t=e.toString();if("[object"===t.slice(0,7)){var n=e.name?String(e.name):"Error";return e.message?"".concat(n,": ").concat(e.message):n}return t}xe.prototype.raises=xe.prototype.throws;var Ee={},Ce=new H;U.currentModule.suiteReport=Ce;var qe=!1,Ne=!1;function je(){Ne=!0,p?p((function(){Ie()})):Ie()}function Se(){U.blocking=!1,le.advance()}function Ie(){if(U.started)Se();else{U.started=j(),""===U.modules[0].name&&0===U.modules[0].tests.length&&U.modules.shift();for(var e=U.modules.length,t=[],n=0;n<e;n++)t.push({name:U.modules[n].name,tests:U.modules[n].tests});J("runStart",Ce.start(!0)),te("begin",{totalTests:fe.count,modules:t}).then(Se)}}Ee.isLocal=c&&c.location&&"file:"===c.location.protocol,Ee.version="2.14.0",A(Ee,{config:U,dump:Q,equiv:F,is:L,objectType:R,on:function(e,t){if("string"!==R(e))throw new TypeError("eventName must be a string when registering a listener");if(!_(e,Y)){var n=Y.join(", ");throw new Error('"'.concat(e,'" is not a valid event; must be one of: ').concat(n,"."))}if("function"!==R(t))throw new TypeError("callback must be a function when registering a listener");V[e]||(V[e]=[]),_(t,V[e])||V[e].push(t)},onError:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];if(U.current){if(U.current.ignoreGlobalErrors)return!0;de.apply(void 0,[e.message,e.stacktrace||e.fileName+":"+e.lineNumber].concat(n))}else me("global failure",A((function(){de.apply(void 0,[e.message,e.stacktrace||e.fileName+":"+e.lineNumber].concat(n))}),{validTest:!0}));return!1},onUnhandledRejection:function(e){var t={result:!1,message:e.message||"error",actual:e,source:e.stack||ie(3)},n=U.current;n?n.assert.pushResult(t):me("global failure",A((function(e){e.pushResult(t)}),{validTest:!0}))},pushFailure:de,assert:xe.prototype,module:W,test:me,todo:me.todo,skip:me.skip,only:me.only,start:function(e){if(U.current)throw new Error("QUnit.start cannot be called inside a test context.");var t=qe;if(qe=!0,Ne)throw new Error("Called start() while test already started running");if(t||e>1)throw new Error("Called start() outside of a test context too many times");if(U.autostart)throw new Error("Called start() outside of a test context when QUnit.config.autostart was true");if(!U.pageLoaded)return U.autostart=!0,void(m||Ee.load());je()},extend:function(){C.warn("QUnit.extend is deprecated and will be removed in QUnit 3.0. Please use Object.assign instead.");for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return A.apply(this,t)},load:function(){U.pageLoaded=!0,A(U,{stats:{all:0,bad:0,testCount:0},started:0,updateRate:1e3,autostart:!0,filter:""},!0),Ne||(U.blocking=!1,U.autostart&&je())},stack:function(e){return ie(e=(e||0)+2)}}),function(e){var t=["begin","done","log","testStart","testDone","moduleStart","moduleDone"];function n(e){return function(t){if("function"!==R(t))throw new Error("QUnit logging methods require a callback function as their first parameters.");U.callbacks[e].push(t)}}for(var r=0,i=t.length;r<i;r++){var o=t[r];"undefined"===R(U.callbacks[o])&&(U.callbacks[o]=[]),e[o]=n(o)}}(Ee),function(e){var r=!1;if(c&&m){if(c.QUnit&&c.QUnit.version)throw new Error("QUnit has already been defined.");c.QUnit=e,r=!0}i&&i.exports&&(i.exports=e,i.exports.QUnit=e,r=!0),t&&(t.QUnit=e,r=!0),void 0===(o=function(){return e}.call(t,n,t,i))||(i.exports=o),e.config.autostart=!1,r=!0,f&&f.WorkerGlobalScope&&f instanceof f.WorkerGlobalScope&&(f.QUnit=e,r=!0),r||(l.default.QUnit=e)}(Ee),function(){if(c&&m){var e=Ee.config,t=Object.prototype.hasOwnProperty;Ee.begin((function(){if(!t.call(e,"fixture")){var n=m.getElementById("qunit-fixture");n&&(e.fixture=n.cloneNode(!0))}})),Ee.testStart((function(){if(null!=e.fixture){var t=m.getElementById("qunit-fixture");if("string"===y(e.fixture)){var n=m.createElement("div");n.setAttribute("id","qunit-fixture"),n.innerHTML=e.fixture,t.parentNode.replaceChild(n,t)}else{var r=e.fixture.cloneNode(!0);t.parentNode.replaceChild(r,t)}}}))}}(),function(){var e=void 0!==c&&c.location;if(e){var t=function(){var t,r,i,o,s=Object.create(null),a=e.search.slice(1).split("&"),u=a.length;for(t=0;t<u;t++)a[t]&&(r=a[t].split("="),i=n(r[0]),o=1===r.length||n(r.slice(1).join("=")),s[i]=i in s?[].concat(s[i],o):o);return s}();Ee.urlParams=t,Ee.config.moduleId=[].concat(t.moduleId||[]),Ee.config.testId=[].concat(t.testId||[]),Ee.config.module=t.module,Ee.config.filter=t.filter,!0===t.seed?Ee.config.seed=Math.random().toString(36).slice(2):t.seed&&(Ee.config.seed=t.seed),Ee.config.urlConfig.push({id:"hidepassed",label:"Hide passed tests",tooltip:"Only show tests and assertions that fail. Stored as query-strings."},{id:"noglobals",label:"Check for Globals",tooltip:"Enabling this will test if any test introduces new properties on the global object (`window` in Browsers). Stored as query-strings."},{id:"notrycatch",label:"No try-catch",tooltip:"Enabling this will run tests outside of a try-catch block. Makes debugging exceptions in IE reasonable. Stored as query-strings."}),Ee.begin((function(){var e,n,r=Ee.config.urlConfig;for(e=0;e<r.length;e++)"string"!=typeof(n=Ee.config.urlConfig[e])&&(n=n.id),void 0===Ee.config[n]&&(Ee.config[n]=t[n])}))}function n(e){return decodeURIComponent(e.replace(/\+/g,"%20"))}}();var Me=X((function(e){var t,n;t=K,n=function(){var e=void 0!==Z&&"undefined"==typeof window,t=new a,n=new a,i=[];i.total=0;var o=[],s=[];function u(){t.clear(),n.clear(),o=[],s=[]}function l(e){for(var t=-9007199254740991,n=e.length-1;n>=0;--n){var r=e[n];if(null!==r){var i=r.score;i>t&&(t=i)}}return-9007199254740991===t?null:t}function c(e,t){var n=e[t];if(void 0!==n)return n;var r=t;Array.isArray(t)||(r=t.split("."));for(var i=r.length,o=-1;e&&++o<i;)e=e[r[o]];return e}function f(e){return"object"==typeof e}var d=function(){var e=[],t=0,n={};function r(){for(var n=0,r=e[n],i=1;i<t;){var o=i+1;n=i,o<t&&e[o].score<e[i].score&&(n=o),e[n-1>>1]=e[n],i=1+(n<<1)}for(var s=n-1>>1;n>0&&r.score<e[s].score;s=(n=s)-1>>1)e[n]=e[s];e[n]=r}return n.add=function(n){var r=t;e[t++]=n;for(var i=r-1>>1;r>0&&n.score<e[i].score;i=(r=i)-1>>1)e[r]=e[i];e[r]=n},n.poll=function(){if(0!==t){var n=e[0];return e[0]=e[--t],r(),n}},n.peek=function(n){if(0!==t)return e[0]},n.replaceTop=function(t){e[0]=t,r()},n},p=d();return function a(h){var m={single:function(e,t,n){return e?(f(e)||(e=m.getPreparedSearch(e)),t?(f(t)||(t=m.getPrepared(t)),((n&&void 0!==n.allowTypo?n.allowTypo:!h||void 0===h.allowTypo||h.allowTypo)?m.algorithm:m.algorithmNoTypo)(e,t,e[0])):null):null},go:function(e,t,n){if(!e)return i;var r=(e=m.prepareSearch(e))[0],o=n&&n.threshold||h&&h.threshold||-9007199254740991,s=n&&n.limit||h&&h.limit||9007199254740991,a=(n&&void 0!==n.allowTypo?n.allowTypo:!h||void 0===h.allowTypo||h.allowTypo)?m.algorithm:m.algorithmNoTypo,u=0,d=0,g=t.length;if(n&&n.keys)for(var v=n.scoreFn||l,y=n.keys,b=y.length,w=g-1;w>=0;--w){for(var k=t[w],x=new Array(b),T=b-1;T>=0;--T)(q=c(k,C=y[T]))?(f(q)||(q=m.getPrepared(q)),x[T]=a(e,q,r)):x[T]=null;x.obj=k;var E=v(x);null!==E&&(E<o||(x.score=E,u<s?(p.add(x),++u):(++d,E>p.peek().score&&p.replaceTop(x))))}else if(n&&n.key){var C=n.key;for(w=g-1;w>=0;--w)(q=c(k=t[w],C))&&(f(q)||(q=m.getPrepared(q)),null!==(N=a(e,q,r))&&(N.score<o||(N={target:N.target,_targetLowerCodes:null,_nextBeginningIndexes:null,score:N.score,indexes:N.indexes,obj:k},u<s?(p.add(N),++u):(++d,N.score>p.peek().score&&p.replaceTop(N)))))}else for(w=g-1;w>=0;--w){var q,N;(q=t[w])&&(f(q)||(q=m.getPrepared(q)),null!==(N=a(e,q,r))&&(N.score<o||(u<s?(p.add(N),++u):(++d,N.score>p.peek().score&&p.replaceTop(N)))))}if(0===u)return i;var j=new Array(u);for(w=u-1;w>=0;--w)j[w]=p.poll();return j.total=u+d,j},goAsync:function(t,n,o){var s=!1,a=new Promise((function(a,u){if(!t)return a(i);var p=(t=m.prepareSearch(t))[0],g=d(),v=n.length-1,y=o&&o.threshold||h&&h.threshold||-9007199254740991,b=o&&o.limit||h&&h.limit||9007199254740991,w=(o&&void 0!==o.allowTypo?o.allowTypo:!h||void 0===h.allowTypo||h.allowTypo)?m.algorithm:m.algorithmNoTypo,k=0,x=0;function T(){if(s)return u("canceled");var d=Date.now();if(o&&o.keys)for(var h=o.scoreFn||l,E=o.keys,C=E.length;v>=0;--v){for(var q=n[v],N=new Array(C),j=C-1;j>=0;--j)(M=c(q,I=E[j]))?(f(M)||(M=m.getPrepared(M)),N[j]=w(t,M,p)):N[j]=null;N.obj=q;var S=h(N);if(null!==S&&!(S<y)&&(N.score=S,k<b?(g.add(N),++k):(++x,S>g.peek().score&&g.replaceTop(N)),v%1e3==0&&Date.now()-d>=10))return void(e?r(T):setTimeout(T))}else if(o&&o.key){for(var I=o.key;v>=0;--v)if((M=c(q=n[v],I))&&(f(M)||(M=m.getPrepared(M)),null!==(_=w(t,M,p))&&!(_.score<y)&&(_={target:_.target,_targetLowerCodes:null,_nextBeginningIndexes:null,score:_.score,indexes:_.indexes,obj:q},k<b?(g.add(_),++k):(++x,_.score>g.peek().score&&g.replaceTop(_)),v%1e3==0&&Date.now()-d>=10)))return void(e?r(T):setTimeout(T))}else for(;v>=0;--v){var M,_;if((M=n[v])&&(f(M)||(M=m.getPrepared(M)),null!==(_=w(t,M,p))&&!(_.score<y)&&(k<b?(g.add(_),++k):(++x,_.score>g.peek().score&&g.replaceTop(_)),v%1e3==0&&Date.now()-d>=10)))return void(e?r(T):setTimeout(T))}if(0===k)return a(i);for(var O=new Array(k),A=k-1;A>=0;--A)O[A]=g.poll();O.total=k+x,a(O)}e?r(T):T()}));return a.cancel=function(){s=!0},a},highlight:function(e,t,n){if(null===e)return null;void 0===t&&(t="<b>"),void 0===n&&(n="</b>");for(var r="",i=0,o=!1,s=e.target,a=s.length,u=e.indexes,l=0;l<a;++l){var c=s[l];if(u[i]===l){if(o||(o=!0,r+=t),++i===u.length){r+=c+n+s.substr(l+1);break}}else o&&(o=!1,r+=n);r+=c}return r},prepare:function(e){if(e)return{target:e,_targetLowerCodes:m.prepareLowerCodes(e),_nextBeginningIndexes:null,score:null,indexes:null,obj:null}},prepareSlow:function(e){if(e)return{target:e,_targetLowerCodes:m.prepareLowerCodes(e),_nextBeginningIndexes:m.prepareNextBeginningIndexes(e),score:null,indexes:null,obj:null}},prepareSearch:function(e){if(e)return m.prepareLowerCodes(e)},getPrepared:function(e){if(e.length>999)return m.prepare(e);var n=t.get(e);return void 0!==n||(n=m.prepare(e),t.set(e,n)),n},getPreparedSearch:function(e){if(e.length>999)return m.prepareSearch(e);var t=n.get(e);return void 0!==t||(t=m.prepareSearch(e),n.set(e,t)),t},algorithm:function(e,t,n){for(var r=t._targetLowerCodes,i=e.length,a=r.length,u=0,l=0,c=0,f=0;;){if(n===r[l]){if(o[f++]=l,++u===i)break;n=e[0===c?u:c===u?u+1:c===u-1?u-1:u]}if(++l>=a)for(;;){if(u<=1)return null;if(0===c){if(n===e[--u])continue;c=u}else{if(1===c)return null;if((n=e[1+(u=--c)])===e[u])continue}l=o[(f=u)-1]+1;break}}u=0;var d=0,p=!1,h=0,g=t._nextBeginningIndexes;null===g&&(g=t._nextBeginningIndexes=m.prepareNextBeginningIndexes(t.target));var v=l=0===o[0]?0:g[o[0]-1];if(l!==a)for(;;)if(l>=a){if(u<=0){if(++d>i-2)break;if(e[d]===e[d+1])continue;l=v;continue}--u,l=g[s[--h]]}else if(e[0===d?u:d===u?u+1:d===u-1?u-1:u]===r[l]){if(s[h++]=l,++u===i){p=!0;break}++l}else l=g[l];if(p)var y=s,b=h;else y=o,b=f;for(var w=0,k=-1,x=0;x<i;++x)k!==(l=y[x])-1&&(w-=l),k=l;for(p?0!==d&&(w+=-20):(w*=1e3,0!==c&&(w+=-20)),w-=a-i,t.score=w,t.indexes=new Array(b),x=b-1;x>=0;--x)t.indexes[x]=y[x];return t},algorithmNoTypo:function(e,t,n){for(var r=t._targetLowerCodes,i=e.length,a=r.length,u=0,l=0,c=0;;){if(n===r[l]){if(o[c++]=l,++u===i)break;n=e[u]}if(++l>=a)return null}u=0;var f=!1,d=0,p=t._nextBeginningIndexes;if(null===p&&(p=t._nextBeginningIndexes=m.prepareNextBeginningIndexes(t.target)),(l=0===o[0]?0:p[o[0]-1])!==a)for(;;)if(l>=a){if(u<=0)break;--u,l=p[s[--d]]}else if(e[u]===r[l]){if(s[d++]=l,++u===i){f=!0;break}++l}else l=p[l];if(f)var h=s,g=d;else h=o,g=c;for(var v=0,y=-1,b=0;b<i;++b)y!==(l=h[b])-1&&(v-=l),y=l;for(f||(v*=1e3),v-=a-i,t.score=v,t.indexes=new Array(g),b=g-1;b>=0;--b)t.indexes[b]=h[b];return t},prepareLowerCodes:function(e){for(var t=e.length,n=[],r=e.toLowerCase(),i=0;i<t;++i)n[i]=r.charCodeAt(i);return n},prepareBeginningIndexes:function(e){for(var t=e.length,n=[],r=0,i=!1,o=!1,s=0;s<t;++s){var a=e.charCodeAt(s),u=a>=65&&a<=90,l=u||a>=97&&a<=122||a>=48&&a<=57,c=u&&!i||!o||!l;i=u,o=l,c&&(n[r++]=s)}return n},prepareNextBeginningIndexes:function(e){for(var t=e.length,n=m.prepareBeginningIndexes(e),r=[],i=n[0],o=0,s=0;s<t;++s)i>s?r[s]=i:(i=n[++o],r[s]=void 0===i?t:i);return r},cleanup:u,new:a};return m}()},e.exports?e.exports=n():t.fuzzysort=n()})),_e={passedTests:0,failedTests:0,skippedTests:0,todoTests:0};function Oe(e){return e?(e+="").replace(/['"<>&]/g,(function(e){switch(e){case"'":return"&#039;";case'"':return"&quot;";case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;"}})):""}!function(){if(c&&m){var e=Ee.config,t=[],n=!1,r=Object.prototype.hasOwnProperty,i=E({filter:void 0,module:void 0,moduleId:void 0,testId:void 0});Ee.begin((function(){_()})),Ee.done((function(t){var n,r,i,o=b("qunit-banner"),s=b("qunit-tests"),a=b("qunit-abort-tests-button"),u=[_e.passedTests+_e.skippedTests+_e.todoTests+_e.failedTests," tests completed in ",t.runtime," milliseconds, with ",_e.failedTests," failed, ",_e.skippedTests," skipped, and ",_e.todoTests," todo.<br />","<span class='passed'>",t.passed,"</span> assertions of <span class='total'>",t.total,"</span> passed, <span class='failed'>",t.failed,"</span> failed."].join("");if(a&&a.disabled){u="Tests aborted after "+t.runtime+" milliseconds.";for(var l=0;l<s.children.length;l++)""!==(n=s.children[l]).className&&"running"!==n.className||(n.className="aborted",i=n.getElementsByTagName("ol")[0],(r=m.createElement("li")).className="fail",r.innerHTML="Test aborted.",i.appendChild(r))}!o||a&&!1!==a.disabled||(o.className=_e.failedTests?"qunit-fail":"qunit-pass"),a&&a.parentNode.removeChild(a),s&&(b("qunit-testresult-display").innerHTML=u),e.altertitle&&m.title&&(m.title=[_e.failedTests?"✖":"✔",m.title.replace(/^[\u2714\u2716] /i,"")].join(" ")),e.scrolltop&&c.scrollTo&&c.scrollTo(0,0)})),Ee.testStart((function(t){var n,r,i,o,s,a,u,l,c,f;i=t.name,o=t.testId,s=t.module,(f=b("qunit-tests"))&&((a=m.createElement("strong")).innerHTML=O(i,s),(u=m.createElement("a")).innerHTML="Rerun",u.href=E({testId:o}),(l=m.createElement("li")).appendChild(a),l.appendChild(u),l.id="qunit-test-output-"+o,(c=m.createElement("ol")).className="qunit-assert-list",l.appendChild(c),f.appendChild(l)),(n=b("qunit-testresult-display"))&&(h(n,"running"),r=Ee.config.reorder&&t.previousFailure,n.innerHTML=[r?"Rerunning previously failed test: <br />":"Running: <br />",O(t.name,t.module),R(j()-e.started,_e,fe.count)].join(""))})),Ee.log((function(e){var t,n,i,o,s,a,u=!1,l=b("qunit-test-output-"+e.testId);l&&(i="<span class='test-message'>"+(i=Oe(e.message)||(e.result?"okay":"failed"))+"</span>",i+="<span class='runtime'>@ "+e.runtime+" ms</span>",!e.result&&r.call(e,"expected")?(o=e.negative?"NOT "+Ee.dump.parse(e.expected):Ee.dump.parse(e.expected),s=Ee.dump.parse(e.actual),i+="<table><tr class='test-expected'><th>Expected: </th><td><pre>"+Oe(o)+"</pre></td></tr>",s!==o?(i+="<tr class='test-actual'><th>Result: </th><td><pre>"+Oe(s)+"</pre></td></tr>","number"==typeof e.actual&&"number"==typeof e.expected?isNaN(e.actual)||isNaN(e.expected)||(u=!0,a=((a=e.actual-e.expected)>0?"+":"")+a):"boolean"!=typeof e.actual&&"boolean"!=typeof e.expected&&(u=L(a=Ee.diff(o,s)).length!==L(o).length+L(s).length),u&&(i+="<tr class='test-diff'><th>Diff: </th><td><pre>"+a+"</pre></td></tr>")):-1!==o.indexOf("[object Array]")||-1!==o.indexOf("[object Object]")?i+="<tr class='test-message'><th>Message: </th><td>Diff suppressed as the depth of object is more than current max depth ("+Ee.config.maxDepth+").<p>Hint: Use <code>QUnit.dump.maxDepth</code> to  run with a higher max depth or <a href='"+Oe(E({maxDepth:-1}))+"'>Rerun</a> without max depth.</p></td></tr>":i+="<tr class='test-message'><th>Message: </th><td>Diff suppressed as the expected and actual results have an equivalent serialization</td></tr>",e.source&&(i+="<tr class='test-source'><th>Source: </th><td><pre>"+Oe(e.source)+"</pre></td></tr>"),i+="</table>"):!e.result&&e.source&&(i+="<table><tr class='test-source'><th>Source: </th><td><pre>"+Oe(e.source)+"</pre></td></tr></table>"),t=l.getElementsByTagName("ol")[0],(n=m.createElement("li")).className=e.result?"pass":"fail",n.innerHTML=i,t.appendChild(n))})),Ee.testDone((function(r){var i,o,s,a,l,c,f,d,p,g,w=b("qunit-tests");if(w){y(s=b("qunit-test-output-"+r.testId),"running"),l=r.failed>0?"failed":r.todo?"todo":r.skipped?"skipped":"passed",a=s.getElementsByTagName("ol")[0],c=r.passed,f=r.failed;var k=r.failed>0?r.todo:!r.todo;if(k?h(a,"qunit-collapsed"):e.collapse&&(n?h(a,"qunit-collapsed"):n=!0),d=f?"<b class='failed'>"+f+"</b>, <b class='passed'>"+c+"</b>, ":"",(i=s.firstChild).innerHTML+=" <b class='counts'>("+d+r.assertions.length+")</b>",r.skipped)_e.skippedTests++,s.className="skipped",(p=m.createElement("em")).className="qunit-skipped-label",p.innerHTML="skipped",s.insertBefore(p,i);else{if(u(i,"click",(function(){v(a,"qunit-collapsed")})),s.className=k?"pass":"fail",r.todo){var x=m.createElement("em");x.className="qunit-todo-label",x.innerHTML="todo",s.className+=" todo",s.insertBefore(x,i)}(o=m.createElement("span")).className="runtime",o.innerHTML=r.runtime+" ms",s.insertBefore(o,a),k?r.todo?_e.todoTests++:_e.passedTests++:_e.failedTests++}r.source&&((g=m.createElement("p")).innerHTML="<strong>Source: </strong>"+Oe(r.source),h(g,"qunit-source"),k&&h(g,"qunit-collapsed"),u(i,"click",(function(){v(g,"qunit-collapsed")})),s.appendChild(g)),e.hidepassed&&("passed"===l||r.skipped)&&(t.push(s),w.removeChild(s))}}));var o,s=(o=c.phantom)&&o.version&&o.version.major>0;s&&d.warn("Support for PhantomJS is deprecated and will be removed in QUnit 3.0."),s||"complete"!==m.readyState?u(c,"load",Ee.load):Ee.load();var a=c.onerror;c.onerror=function(e,t,n,r,i){var o=!1;if(a){for(var s=arguments.length,u=new Array(s>5?s-5:0),l=5;l<s;l++)u[l-5]=arguments[l];o=a.call.apply(a,[this,e,t,n,r,i].concat(u))}if(!0!==o){var c={message:e,fileName:t,lineNumber:n};i&&i.stack&&(c.stacktrace=re(i,0)),o=Ee.onError(c)}return o},c.addEventListener("unhandledrejection",(function(e){Ee.onUnhandledRejection(e.reason)}))}function u(e,t,n){e.addEventListener(t,n,!1)}function l(e,t,n){e.removeEventListener(t,n,!1)}function f(e,t,n){for(var r=e.length;r--;)u(e[r],t,n)}function p(e,t){return(" "+e.className+" ").indexOf(" "+t+" ")>=0}function h(e,t){p(e,t)||(e.className+=(e.className?" ":"")+t)}function v(e,t,n){n||void 0===n&&!p(e,t)?h(e,t):y(e,t)}function y(e,t){for(var n=" "+e.className+" ";n.indexOf(" "+t+" ")>=0;)n=n.replace(" "+t+" "," ");e.className="function"==typeof n.trim?n.trim():n.replace(/^\s+|\s+$/g,"")}function b(e){return m.getElementById&&m.getElementById(e)}function w(){var e=b("qunit-abort-tests-button");return e&&(e.disabled=!0,e.innerHTML="Aborting..."),Ee.config.queue.length=0,!1}function k(e){return C(),e&&e.preventDefault&&e.preventDefault(),!1}function x(){var n,r,i,o={};if(r="selectedIndex"in this?this.options[this.selectedIndex].value||void 0:this.checked?this.defaultValue||!0:void 0,o[this.name]=r,n=E(o),"hidepassed"===this.name&&"replaceState"in c.history){if(Ee.urlParams[this.name]=r,e[this.name]=r||!1,i=b("qunit-tests")){var s=i.children.length,a=i.children;if(this.checked){for(var u=0;u<s;u++){var l=a[u],f=l?l.className:"",d=f.indexOf("pass")>-1,p=f.indexOf("skipped")>-1;(d||p)&&t.push(l)}var h,m=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=T(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}(t);try{for(m.s();!(h=m.n()).done;){var g=h.value;i.removeChild(g)}}catch(e){m.e(e)}finally{m.f()}}else for(;null!=(l=t.pop());)i.appendChild(l)}c.history.replaceState(null,"",n)}else c.location=n}function E(e){var t,n,i,o="?",s=c.location;for(t in e=A(A({},Ee.urlParams),e))if(r.call(e,t)&&void 0!==e[t])for(n=[].concat(e[t]),i=0;i<n.length;i++)o+=encodeURIComponent(t),!0!==n[i]&&(o+="="+encodeURIComponent(n[i])),o+="&";return s.protocol+"//"+s.host+s.pathname+o.slice(0,-1)}function C(){var e,t=[],n=b("qunit-modulefilter-dropdown-list").getElementsByTagName("input"),r=b("qunit-filter-input").value;for(e=0;e<n.length;e++)n[e].checked&&t.push(n[e].value);c.location=E({filter:""===r?void 0:r,moduleId:0===t.length?void 0:t,module:void 0,testId:void 0})}function q(){var t=m.createElement("span");return t.innerHTML=function(){var t,n,i,o,s,a=!1,u=e.urlConfig,l="";for(t=0;t<u.length;t++)if("string"==typeof(i=e.urlConfig[t])&&(i={id:i,label:i}),o=Oe(i.id),s=Oe(i.tooltip),i.value&&"string"!=typeof i.value){if(l+="<label for='qunit-urlconfig-"+o+"' title='"+s+"'>"+i.label+": </label><select id='qunit-urlconfig-"+o+"' name='"+o+"' title='"+s+"'><option></option>",Ee.is("array",i.value))for(n=0;n<i.value.length;n++)l+="<option value='"+(o=Oe(i.value[n]))+"'"+(e[i.id]===i.value[n]?(a=!0)&&" selected='selected'":"")+">"+o+"</option>";else for(n in i.value)r.call(i.value,n)&&(l+="<option value='"+Oe(n)+"'"+(e[i.id]===n?(a=!0)&&" selected='selected'":"")+">"+Oe(i.value[n])+"</option>");e[i.id]&&!a&&(l+="<option value='"+(o=Oe(e[i.id]))+"' selected='selected' disabled='disabled'>"+o+"</option>"),l+="</select>"}else l+="<label for='qunit-urlconfig-"+o+"' title='"+s+"'><input id='qunit-urlconfig-"+o+"' name='"+o+"' type='checkbox'"+(i.value?" value='"+Oe(i.value)+"'":"")+(e[i.id]?" checked='checked'":"")+" title='"+s+"' />"+Oe(i.label)+"</label>";return l}(),h(t,"qunit-url-config"),f(t.getElementsByTagName("input"),"change",x),f(t.getElementsByTagName("select"),"change",x),t}function N(t){var n,r,i="";for(n=0;n<t.length;n++)""!==t[n].name&&(i+="<li><label class='clickable"+((r=e.moduleId.indexOf(t[n].moduleId)>-1)?" checked":"")+"'><input type='checkbox' value='"+t[n].moduleId+"'"+(r?" checked='checked'":"")+" />"+Oe(t[n].name)+"</label></li>");return i}function S(){var t,n,r,i=m.createElement("form"),o=m.createElement("label"),s=m.createElement("input"),a=m.createElement("div"),f=m.createElement("span"),d=m.createElement("button"),p=m.createElement("button"),h=m.createElement("label"),g=m.createElement("input"),b=m.createElement("ul"),w=!1;function x(){function e(t){var n=i.contains(t.target);27!==t.keyCode&&n||(27===t.keyCode&&n&&s.focus(),a.style.display="none",l(m,"click",e),l(m,"keydown",e),s.value="",T())}"none"===a.style.display&&(a.style.display="block",u(m,"click",e),u(m,"keydown",e))}function T(){c.clearTimeout(r),r=c.setTimeout((function(){var t=function(t){return""===t?e.modules:Me.go(t,e.modules,{key:"namePrepared",threshold:-1e4}).map((function(e){return e.obj}))}(s.value.toLowerCase());b.innerHTML=N(t)}),200)}function E(e){var r,i,o=e&&e.target||g,a=b.getElementsByTagName("input"),u=[];for(v(o.parentNode,"checked",o.checked),w=!1,o.checked&&o!==g&&(g.checked=!1,y(g.parentNode,"checked")),r=0;r<a.length;r++)i=a[r],e?o===g&&o.checked&&(i.checked=!1,y(i.parentNode,"checked")):v(i.parentNode,"checked",i.checked),w=w||i.checked!==i.defaultChecked,i.checked&&u.push(i.parentNode.textContent);t.style.display=n.style.display=w?"":"none",s.placeholder=u.join(", ")||g.parentNode.textContent,s.title="Type to filter list. Current selection:\n"+(u.join("\n")||g.parentNode.textContent)}return s.id="qunit-modulefilter-search",s.autocomplete="off",u(s,"input",T),u(s,"input",x),u(s,"focus",x),u(s,"click",x),e.modules.forEach((function(e){return e.namePrepared=Me.prepare(e.name)})),o.id="qunit-modulefilter-search-container",o.innerHTML="Module: ",o.appendChild(s),d.textContent="Apply",d.style.display="none",p.textContent="Reset",p.type="reset",p.style.display="none",g.type="checkbox",g.checked=0===e.moduleId.length,h.className="clickable",e.moduleId.length&&(h.className="checked"),h.appendChild(g),h.appendChild(m.createTextNode("All modules")),f.id="qunit-modulefilter-actions",f.appendChild(d),f.appendChild(p),f.appendChild(h),t=f.firstChild,n=t.nextSibling,u(t,"click",C),b.id="qunit-modulefilter-dropdown-list",b.innerHTML=N(e.modules),a.id="qunit-modulefilter-dropdown",a.style.display="none",a.appendChild(f),a.appendChild(b),u(a,"change",E),E(),i.id="qunit-modulefilter",i.appendChild(o),i.appendChild(a),u(i,"submit",k),u(i,"reset",(function(){c.setTimeout(E)})),i}function I(){var t,n,r,i,o=m.createElement("span");return o.id="qunit-toolbar-filters",o.appendChild((t=m.createElement("form"),n=m.createElement("label"),r=m.createElement("input"),i=m.createElement("button"),h(t,"qunit-filter"),n.innerHTML="Filter: ",r.type="text",r.value=e.filter||"",r.name="filter",r.id="qunit-filter-input",i.innerHTML="Go",n.appendChild(r),t.appendChild(n),t.appendChild(m.createTextNode(" ")),t.appendChild(i),u(t,"submit",k),t)),o.appendChild(S()),o}function M(){var e,t,n=b("qunit-tests"),r=b("qunit-testresult");r&&r.parentNode.removeChild(r),n&&(n.innerHTML="",(r=m.createElement("p")).id="qunit-testresult",r.className="result",n.parentNode.insertBefore(r,n),r.innerHTML='<div id="qunit-testresult-display">Running...<br />&#160;</div><div id="qunit-testresult-controls"></div><div class="clearfix"></div>',e=b("qunit-testresult-controls")),e&&e.appendChild(((t=m.createElement("button")).id="qunit-abort-tests-button",t.innerHTML="Abort",u(t,"click",w),t))}function _(){var e,t,n,r,o,s=b("qunit");s&&(s.setAttribute("role","main"),s.innerHTML="<h1 id='qunit-header'>"+Oe(m.title)+"</h1><h2 id='qunit-banner'></h2><div id='qunit-testrunner-toolbar' role='navigation'></div>"+((!(e=Ee.config.testId)||e.length<=0?"":"<div id='qunit-filteredTest'>Rerunning selected tests: "+Oe(e.join(", "))+" <a id='qunit-clearFilter' href='"+Oe(i)+"'>Run all tests</a></div>")+"<h2 id='qunit-userAgent'></h2><ol id='qunit-tests'></ol>")),(t=b("qunit-header"))&&(t.innerHTML="<a href='"+Oe(i)+"'>"+t.innerHTML+"</a> "),(n=b("qunit-banner"))&&(n.className=""),M(),(r=b("qunit-userAgent"))&&(r.innerHTML="",r.appendChild(m.createTextNode("QUnit "+Ee.version+"; "+g.userAgent))),(o=b("qunit-testrunner-toolbar"))&&(o.appendChild(q()),o.appendChild(I()),o.appendChild(m.createElement("div")).className="clearfix")}function O(e,t){var n="";return t&&(n="<span class='module-name'>"+Oe(t)+"</span>: "),n+="<span class='test-name'>"+Oe(e)+"</span>"}function R(e,t,n){return["<br />",t.passedTests+t.skippedTests+t.todoTests+t.failedTests," / ",n," tests completed in ",e," milliseconds, with ",t.failedTests," failed, ",t.skippedTests," skipped, and ",t.todoTests," todo."].join("")}function L(e){return e.replace(/<\/?[^>]+(>|$)/g,"").replace(/&quot;/g,"").replace(/\s+/g,"")}}(),Ee.diff=function(){function e(){}var t=Object.prototype.hasOwnProperty;return e.prototype.DiffMain=function(e,t,n){var r,i,o,s,a,u;if(r=(new Date).getTime()+1e3,null===e||null===t)throw new Error("Null input. (DiffMain)");return e===t?e?[[0,e]]:[]:(void 0===n&&(n=!0),i=n,o=this.diffCommonPrefix(e,t),s=e.substring(0,o),e=e.substring(o),t=t.substring(o),o=this.diffCommonSuffix(e,t),a=e.substring(e.length-o),e=e.substring(0,e.length-o),t=t.substring(0,t.length-o),u=this.diffCompute(e,t,i,r),s&&u.unshift([0,s]),a&&u.push([0,a]),this.diffCleanupMerge(u),u)},e.prototype.diffCleanupEfficiency=function(e){var t,n,r,i,o,s,a,u,l;for(t=!1,n=[],r=0,i=null,o=0,s=!1,a=!1,u=!1,l=!1;o<e.length;)0===e[o][0]?(e[o][1].length<4&&(u||l)?(n[r++]=o,s=u,a=l,i=e[o][1]):(r=0,i=null),u=l=!1):(-1===e[o][0]?l=!0:u=!0,i&&(s&&a&&u&&l||i.length<2&&s+a+u+l===3)&&(e.splice(n[r-1],0,[-1,i]),e[n[r-1]+1][0]=1,r--,i=null,s&&a?(u=l=!0,r=0):(o=--r>0?n[r-1]:-1,u=l=!1),t=!0)),o++;t&&this.diffCleanupMerge(e)},e.prototype.diffPrettyHtml=function(e){var t,n,r,i=[];for(r=0;r<e.length;r++)switch(t=e[r][0],n=e[r][1],t){case 1:i[r]="<ins>"+Oe(n)+"</ins>";break;case-1:i[r]="<del>"+Oe(n)+"</del>";break;case 0:i[r]="<span>"+Oe(n)+"</span>"}return i.join("")},e.prototype.diffCommonPrefix=function(e,t){var n,r,i,o;if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(i=0,n=r=Math.min(e.length,t.length),o=0;i<n;)e.substring(o,n)===t.substring(o,n)?o=i=n:r=n,n=Math.floor((r-i)/2+i);return n},e.prototype.diffCommonSuffix=function(e,t){var n,r,i,o;if(!e||!t||e.charAt(e.length-1)!==t.charAt(t.length-1))return 0;for(i=0,n=r=Math.min(e.length,t.length),o=0;i<n;)e.substring(e.length-n,e.length-o)===t.substring(t.length-n,t.length-o)?o=i=n:r=n,n=Math.floor((r-i)/2+i);return n},e.prototype.diffCompute=function(e,t,n,r){var i,o,s,a,u,l,c,f,d,p,h,m;return e?t?(o=e.length>t.length?e:t,s=e.length>t.length?t:e,-1!==(a=o.indexOf(s))?(i=[[1,o.substring(0,a)],[0,s],[1,o.substring(a+s.length)]],e.length>t.length&&(i[0][0]=i[2][0]=-1),i):1===s.length?[[-1,e],[1,t]]:(u=this.diffHalfMatch(e,t))?(l=u[0],f=u[1],c=u[2],d=u[3],p=u[4],h=this.DiffMain(l,c,n,r),m=this.DiffMain(f,d,n,r),h.concat([[0,p]],m)):n&&e.length>100&&t.length>100?this.diffLineMode(e,t,r):this.diffBisect(e,t,r)):[[-1,e]]:[[1,t]]},e.prototype.diffHalfMatch=function(e,t){var n,r,i,o,s,a,u,l,c,f;if(n=e.length>t.length?e:t,r=e.length>t.length?t:e,n.length<4||2*r.length<n.length)return null;function d(e,t,n){var r,o,s,a,u,l,c,f,d;for(r=e.substring(n,n+Math.floor(e.length/4)),o=-1,s="";-1!==(o=t.indexOf(r,o+1));)a=i.diffCommonPrefix(e.substring(n),t.substring(o)),u=i.diffCommonSuffix(e.substring(0,n),t.substring(0,o)),s.length<u+a&&(s=t.substring(o-u,o)+t.substring(o,o+a),l=e.substring(0,n-u),c=e.substring(n+a),f=t.substring(0,o-u),d=t.substring(o+a));return 2*s.length>=e.length?[l,c,f,d,s]:null}return i=this,l=d(n,r,Math.ceil(n.length/4)),c=d(n,r,Math.ceil(n.length/2)),l||c?(f=c?l&&l[4].length>c[4].length?l:c:l,e.length>t.length?(o=f[0],u=f[1],a=f[2],s=f[3]):(a=f[0],s=f[1],o=f[2],u=f[3]),[o,u,a,s,f[4]]):null},e.prototype.diffLineMode=function(e,t,n){var r,i,o,s,a,u,l,c,f;for(e=(r=this.diffLinesToChars(e,t)).chars1,t=r.chars2,o=r.lineArray,i=this.DiffMain(e,t,!1,n),this.diffCharsToLines(i,o),this.diffCleanupSemantic(i),i.push([0,""]),s=0,u=0,a=0,c="",l="";s<i.length;){switch(i[s][0]){case 1:a++,l+=i[s][1];break;case-1:u++,c+=i[s][1];break;case 0:if(u>=1&&a>=1){for(i.splice(s-u-a,u+a),s=s-u-a,f=(r=this.DiffMain(c,l,!1,n)).length-1;f>=0;f--)i.splice(s,0,r[f]);s+=r.length}a=0,u=0,c="",l=""}s++}return i.pop(),i},e.prototype.diffBisect=function(e,t,n){var r,i,o,s,a,u,l,c,f,d,p,h,m,g,v,y,b,w,k,x,T,E,C;for(r=e.length,i=t.length,s=o=Math.ceil((r+i)/2),a=2*o,u=new Array(a),l=new Array(a),c=0;c<a;c++)u[c]=-1,l[c]=-1;for(u[s+1]=0,l[s+1]=0,d=(f=r-i)%2!=0,p=0,h=0,m=0,g=0,T=0;T<o&&!((new Date).getTime()>n);T++){for(E=-T+p;E<=T-h;E+=2){for(y=s+E,k=(b=E===-T||E!==T&&u[y-1]<u[y+1]?u[y+1]:u[y-1]+1)-E;b<r&&k<i&&e.charAt(b)===t.charAt(k);)b++,k++;if(u[y]=b,b>r)h+=2;else if(k>i)p+=2;else if(d&&(v=s+f-E)>=0&&v<a&&-1!==l[v]&&b>=(w=r-l[v]))return this.diffBisectSplit(e,t,b,k,n)}for(C=-T+m;C<=T-g;C+=2){for(v=s+C,x=(w=C===-T||C!==T&&l[v-1]<l[v+1]?l[v+1]:l[v-1]+1)-C;w<r&&x<i&&e.charAt(r-w-1)===t.charAt(i-x-1);)w++,x++;if(l[v]=w,w>r)g+=2;else if(x>i)m+=2;else if(!d&&(y=s+f-C)>=0&&y<a&&-1!==u[y]&&(k=s+(b=u[y])-y,b>=(w=r-w)))return this.diffBisectSplit(e,t,b,k,n)}}return[[-1,e],[1,t]]},e.prototype.diffBisectSplit=function(e,t,n,r,i){var o,s,a,u,l,c;return o=e.substring(0,n),a=t.substring(0,r),s=e.substring(n),u=t.substring(r),l=this.DiffMain(o,a,!1,i),c=this.DiffMain(s,u,!1,i),l.concat(c)},e.prototype.diffCleanupSemantic=function(e){var t,n,r,i,o,s,a,u,l,c,f,d,p;for(t=!1,n=[],r=0,i=null,o=0,u=0,l=0,s=0,a=0;o<e.length;)0===e[o][0]?(n[r++]=o,u=s,l=a,s=0,a=0,i=e[o][1]):(1===e[o][0]?s+=e[o][1].length:a+=e[o][1].length,i&&i.length<=Math.max(u,l)&&i.length<=Math.max(s,a)&&(e.splice(n[r-1],0,[-1,i]),e[n[r-1]+1][0]=1,r--,o=--r>0?n[r-1]:-1,u=0,l=0,s=0,a=0,i=null,t=!0)),o++;for(t&&this.diffCleanupMerge(e),o=1;o<e.length;)-1===e[o-1][0]&&1===e[o][0]&&(c=e[o-1][1],f=e[o][1],(d=this.diffCommonOverlap(c,f))>=(p=this.diffCommonOverlap(f,c))?(d>=c.length/2||d>=f.length/2)&&(e.splice(o,0,[0,f.substring(0,d)]),e[o-1][1]=c.substring(0,c.length-d),e[o+1][1]=f.substring(d),o++):(p>=c.length/2||p>=f.length/2)&&(e.splice(o,0,[0,c.substring(0,p)]),e[o-1][0]=1,e[o-1][1]=f.substring(0,f.length-p),e[o+1][0]=-1,e[o+1][1]=c.substring(p),o++),o++),o++},e.prototype.diffCommonOverlap=function(e,t){var n,r,i,o,s,a,u;if(n=e.length,r=t.length,0===n||0===r)return 0;if(n>r?e=e.substring(n-r):n<r&&(t=t.substring(0,n)),i=Math.min(n,r),e===t)return i;for(o=0,s=1;;){if(a=e.substring(i-s),-1===(u=t.indexOf(a)))return o;s+=u,0!==u&&e.substring(i-s)!==t.substring(0,s)||(o=s,s++)}},e.prototype.diffLinesToChars=function(e,n){var r,i;function o(e){var n,o,s,a,u;for(n="",o=0,s=-1,a=r.length;s<e.length-1;)-1===(s=e.indexOf("\n",o))&&(s=e.length-1),u=e.substring(o,s+1),o=s+1,t.call(i,u)?n+=String.fromCharCode(i[u]):(n+=String.fromCharCode(a),i[u]=a,r[a++]=u);return n}return i={},(r=[])[0]="",{chars1:o(e),chars2:o(n),lineArray:r}},e.prototype.diffCharsToLines=function(e,t){var n,r,i,o;for(n=0;n<e.length;n++){for(r=e[n][1],i=[],o=0;o<r.length;o++)i[o]=t[r.charCodeAt(o)];e[n][1]=i.join("")}},e.prototype.diffCleanupMerge=function(e){var t,n,r,i,o,s,a,u;for(e.push([0,""]),t=0,n=0,r=0,o="",i="";t<e.length;)switch(e[t][0]){case 1:r++,i+=e[t][1],t++;break;case-1:n++,o+=e[t][1],t++;break;case 0:n+r>1?(0!==n&&0!==r&&(0!==(s=this.diffCommonPrefix(i,o))&&(t-n-r>0&&0===e[t-n-r-1][0]?e[t-n-r-1][1]+=i.substring(0,s):(e.splice(0,0,[0,i.substring(0,s)]),t++),i=i.substring(s),o=o.substring(s)),0!==(s=this.diffCommonSuffix(i,o))&&(e[t][1]=i.substring(i.length-s)+e[t][1],i=i.substring(0,i.length-s),o=o.substring(0,o.length-s))),0===n?e.splice(t-r,n+r,[1,i]):0===r?e.splice(t-n,n+r,[-1,o]):e.splice(t-n-r,n+r,[-1,o],[1,i]),t=t-n-r+(n?1:0)+(r?1:0)+1):0!==t&&0===e[t-1][0]?(e[t-1][1]+=e[t][1],e.splice(t,1)):t++,r=0,n=0,o="",i=""}for(""===e[e.length-1][1]&&e.pop(),a=!1,t=1;t<e.length-1;)0===e[t-1][0]&&0===e[t+1][0]&&((u=e[t][1]).substring(u.length-e[t-1][1].length)===e[t-1][1]?(e[t][1]=e[t-1][1]+e[t][1].substring(0,e[t][1].length-e[t-1][1].length),e[t+1][1]=e[t-1][1]+e[t+1][1],e.splice(t-1,1),a=!0):u.substring(0,e[t+1][1].length)===e[t+1][1]&&(e[t-1][1]+=e[t+1][1],e[t][1]=e[t][1].substring(e[t+1][1].length)+e[t+1][1],e.splice(t+1,1),a=!0)),t++;a&&this.diffCleanupMerge(e)},function(t,n){var r,i;return i=(r=new e).DiffMain(t,n),r.diffCleanupEfficiency(i),r.diffPrettyHtml(i)}}()}(function(){return this}())}).call(this,n(3),n(7).setImmediate,n(6)(e))},5:function(e,t,n){var r,i;!function(o,s){"use strict";void 0===(i="function"==typeof(r=function(){var e=Array.prototype.slice;function t(e,t){var n;for(n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1}function n(e){return void 0!==e&&void 0!==e.requireExpects&&e.requireExpects}function r(e){return!!e.result}function i(e){return!r(e)}function o(e){return e.replace(/(\r?\n)/g,"$&# ")}function s(e){return e.replace(/^\s+/,"")}function a(e){return e}function u(e,t,n,r){e.push(t+": "+r(n))}function l(e,t,n,r,i){e&&void 0!==r&&u(t,n,r,i)}function c(c,f,d){if(!c)throw new Error('should pass QUnit object reference. Please check QUnit\'s "require" path if you are using Node.js (or any CommonJS env).');if("function"!=typeof f)throw new Error("should pass print-like function");var p=c,h={},m=function(e,t){d&&"object"==typeof d&&void 0!==d[e]&&(f('# WARNING: Option "'+e+'" is deprecated and will be removed in future version.'),t(d[e]))},g=["moduleStart","testStart","log","testDone","done"],v={},y=void 0!==p.dump&&"function"==typeof p.dump.parse?function(e){return p.dump.parse(e)}:void 0!==p.jsDump&&"function"==typeof p.jsDump.parse?function(e){return p.jsDump.parse(e)}:a;function b(e){return h.config[e]}function w(e){if(r(e))return e.message;var t=[];return e.message&&t.push(e.message),b("showExpectationOnFailure")&&!function(e){return i(e)&&void 0===e.expected&&void 0===e.actual}(e)&&(u(t,"expected",e.expected,y),u(t,"got",e.actual,y)),l(b("showTestNameOnFailure"),t,"test",e.name,a),l(b("showModuleNameOnFailure"),t,"module",e.module,a),l(b("showSourceOnFailure"),t,"source",e.source,s),t.join(", ")}function k(e){h.puts(h.config.initialCount+".."+e)}function x(e){var n,r,i,o;-1!==t(g,e)&&(void 0!==(n=p.config[e])&&(r=n,i=v[e],-1===(o=t(r,i))||r.splice(o,1)))}function T(e){var t;for(t=0;t<e.length;t+=1)x(e[t])}return h.config=function(e,t){var n;for(n in t)t.hasOwnProperty(n)&&(void 0===t[n]?delete e[n]:e[n]=t[n]);return e}({initialCount:1,showModuleNameOnFailure:!0,showTestNameOnFailure:!0,showExpectationOnFailure:!0,showSourceOnFailure:!0},d),m("noPlan",(function(e){f('# Now QUnit-TAP works as with "noPlan: true" by default. If you want to delare plan explicitly, please use "QUnit.config.requireExpects" option instead.'),h.config.noPlan=e})),m("count",(function(e){h.config.initialCount=e+1})),m("showDetailsOnFailure",(function(e){h.config.showModuleNameOnFailure=e,h.config.showTestNameOnFailure=e,h.config.showExpectationOnFailure=e,h.config.showSourceOnFailure=e})),h.VERSION="1.5.1",h.puts=f,h.count=h.config.initialCount-1,h.expectedCount=h.config.initialCount-1,h.explain=y,h.note=function(e){h.puts(o("# "+e))},h.diag=function(e){return h.note(e),!1},h.moduleStart=function(e){var t="string"==typeof e?e:e.name;h.note("module: "+t)},h.testStart=function(e){var t="string"==typeof e?e:e.name;h.note("test: "+t)},h.log=function(e){var t="";h.count+=1,i(e)&&(t+="not "),t+="ok "+h.count,h.puts(function(e,t){return t?e+" - "+o(t):e}(t,w(e)))},h.testDone=function(){n(p.config)&&(h.expectedCount+=p.config.current.expected)},h.done=function(){(void 0===h.config.noPlan||h.config.noPlan)&&(n(p.config)?k(h.expectedCount):k(h.count))},h.unsubscribe=function(){void 0!==p.config&&T(0===arguments.length?g:e.apply(arguments))},function(){var t,n,r,i=function(t,n,r){var i=function(){n[r].apply(n,e.apply(arguments))};return(0,t[r])(i),i};for(n=0;n<g.length;n+=1)r=i(p,h,t=g[n]),v[t]=r}(),h}return c.qunitTap=function(){throw new Error('[BC BREAK] Since 1.4.0, QUnit-TAP exports single qunitTap function as module.exports. Therefore, require("qunit-tap") returns qunitTap function itself. Please fix your code if you are using Node.js (or any CommonJS env).')},c})?r.call(t,n,t,e):r)||(e.exports=i)}()},6:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},7:function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(8),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(3))},8:function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i,o,s,a,u=1,l={},c=!1,f=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick((function(){h(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){h(e.data)},r=function(e){o.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(i=f.documentElement,r=function(e){var t=f.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(h,0,e)}:(s="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(s)&&h(+t.data.slice(s.length))},e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a),r=function(t){e.postMessage(s+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var i={callback:e,args:t};return l[u]=i,r(u),u++},d.clearImmediate=p}function p(e){delete l[e]}function h(e){if(c)setTimeout(h,0,e);else{var t=l[e];if(t){c=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{p(e),c=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(3),n(9))},9:function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!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:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:s}catch(e){r=s}}();var u,l=[],c=!1,f=-1;function d(){c&&u&&(c=!1,u.length?l=u.concat(l):f=-1,l.length&&p())}function p(){if(!c){var e=a(d);c=!0;for(var t=l.length;t;){for(u=l,l=[];++f<t;)u&&u[f].run();f=-1,t=l.length}u=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===s||!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 m(){}i.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];l.push(new h(e,t)),1!==l.length||c||a(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}}});