axe-core
Version:
Accessibility engine for automated Web UI testing
12 lines • 553 kB
JavaScript
/*! axe v4.10.3
* Copyright (c) 2015 - 2025 Deque Systems, Inc.
*
* Your use of this Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This entire copyright notice must appear in every copy of this file you
* distribute or in any file that contains substantial portions of this source
* code.
*/
!function i(window){var q=window,document=window.document;function te(e){return(te="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)}var axe=axe||{};function _(e){this.name="SupportError",this.cause=e.cause,this.message="`".concat(e.cause,"` - feature unsupported in your environment."),e.ruleId&&(this.ruleId=e.ruleId,this.message+=" Skipping ".concat(this.ruleId," rule.")),this.stack=(new Error).stack}axe.version="4.10.3","function"==typeof define&&define.amd&&define("axe-core",[],function(){return axe}),"object"===("undefined"==typeof module?"undefined":te(module))&&module.exports&&"function"==typeof i.toString&&(axe.source="("+i.toString()+')(typeof window === "object" ? window : this);',module.exports=axe),"function"==typeof window.getComputedStyle&&(window.axe=axe),(_.prototype=Object.create(Error.prototype)).constructor=_;var M=["node"],P=["relatedNodes"],I=["node"],B=["variant"],j=["matches"],L=["chromium"],z=["noImplicit"],V=["noPresentational"],$=["precision","format","inGamut"],H=["space"],U=["algorithm"],G=["method"],W=["maxDeltaE","deltaEMethod","steps","maxSteps"],Y=["node"],K=["environmentData"],X=["environmentData"],Z=["environmentData"],J=["environmentData"],Q=["environmentData"];function ee(e){return he(e)||fe(e)||we(e)||me()}function ne(e,t,n){t=ae(t);var r=e,t=re()?Reflect.construct(t,n||[],ae(e).constructor):t.apply(e,n);if(t&&("object"==te(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==(t=r))return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}function re(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(re=function(){return!!e})()}function ae(e){return(ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function oe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ie(e,t)}function ie(e,t){return(ie=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function le(e,t,n){se(e,t),t.set(e,n)}function ue(e,t){se(e,t),t.add(e)}function se(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function ce(e,t){return e.get(pe(e,t))}function de(e,t,n){e.set(pe(e,t),n)}function pe(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function b(e,t){if(null==e)return{};var n,r=((e,t)=>{if(null==e)return{};var n,r={};for(n in e)!{}.hasOwnProperty.call(e,n)||t.includes(n)||(r[n]=e[n]);return r})(e,t);if(Object.getOwnPropertySymbols)for(var a=Object.getOwnPropertySymbols(e),o=0;o<a.length;o++)n=a[o],t.includes(n)||{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n]);return r}function w(e){return(e=>{if(Array.isArray(e))return De(e)})(e)||fe(e)||we(e)||(()=>{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 fe(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n,r=arguments[t];for(n in r)!{}.hasOwnProperty.call(r,n)||(e[n]=r[n])}return e}).apply(null,arguments)}function D(e,t){return he(e)||((e,t)=>{var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,o,i,l=[],u=!0,s=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(l.push(r.value),l.length!==t);u=!0);}catch(e){s=!0,a=e}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(s)throw a}}return l}})(e,t)||we(e,t)||me()}function me(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function he(e){if(Array.isArray(e))return e}function ge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function be(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,ye(r.key),r)}}function ve(e,t,n){return t&&be(e.prototype,t),n&&be(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ye(e){e=((e,t)=>{if("object"!=te(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0===n)return("string"===t?String:Number)(e);if(n=n.call(e,t||"default"),"object"==te(n))throw new TypeError("@@toPrimitive must return a primitive value.");return n})(e,"string");return"symbol"==te(e)?e:e+""}function x(e,t){var n,r,a,o,i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(i)return a=!(r=!0),{s:function(){i=i.call(e)},n:function(){var e=i.next();return r=e.done,e},e:function(e){a=!0,n=e},f:function(){try{r||null==i.return||i.return()}finally{if(a)throw n}}};if(Array.isArray(e)||(i=we(e))||t&&e&&"number"==typeof e.length)return i&&(e=i),o=0,{s:t=function(){},n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function we(e,t){var n;if(e)return"string"==typeof e?De(e,t):"Map"===(n="Object"===(n={}.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?De(e,t):void 0}function De(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function te(e){return(te="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)}var xe=void 0,Ee=void 0,Fe=void 0,Ae=void 0,Ce=void 0,ke=void 0,Ne=void 0,Te=void 0,Re=void 0,Se=void 0,Oe=void 0;function e(e,t){return function(){return t||e((t={exports:{}}).exports,t),t.exports}}function _e(e,t){for(var n in t)je(e,n,{get:t[n],enumerable:!0})}function Me(t,n,r){if(n&&"object"===te(n)||"function"==typeof n){var a,o=x(ze(n));try{for(o.s();!(a=o.n()).done;)(()=>{var e=a.value;qe.call(t,e)||"default"===e||je(t,e,{get:function(){return n[e]},enumerable:!(r=Ve(n,e))||r.enumerable})})()}catch(e){o.e(e)}finally{o.f()}}return t}function Pe(e){return Me((t=je(null!=e?Be(Le(e)):{},"default",e&&e.__esModule&&"default"in e?{get:function(){return e.default},enumerable:!0}:{value:e,enumerable:!0}),je(t,"__esModule",{value:!0})),e);var t}function Ie(e,t,n){e=e,t="symbol"!==te(t)?t+"":t,n=n,t in e?je(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n}var Be=Object.create,je=Object.defineProperty,Le=Object.getPrototypeOf,qe=Object.prototype.hasOwnProperty,ze=Object.getOwnPropertyNames,Ve=Object.getOwnPropertyDescriptor,$e=e(function(e,t){t.exports=function(){}}),He=e(function(e,t){var n=$e()();t.exports=function(e){return e!==n&&null!==e}}),Ue=e(function(e,t){var o=He(),n=Array.prototype.forEach,r=Object.create;t.exports=function(e){var a=r(null);return n.call(arguments,function(e){if(o(e)){var t,n=Object(e),r=a;for(t in n)r[t]=n[t]}}),a}}),Ge=e(function(e,t){t.exports=function(){var e=Math.sign;return"function"==typeof e&&1===e(10)&&-1===e(-20)}}),We=e(function(e,t){t.exports=function(e){return e=Number(e),isNaN(e)||0===e?e:0<e?1:-1}}),Ye=e(function(e,t){t.exports=Ge()()?Math.sign:We()}),Ke=e(function(e,t){var n=Ye(),r=Math.abs,a=Math.floor;t.exports=function(e){return isNaN(e)?0:0!==(e=Number(e))&&isFinite(e)?n(e)*a(r(e)):e}}),Xe=e(function(e,t){var n=Ke(),r=Math.max;t.exports=function(e){return r(0,n(e))}}),Ze=e(function(e,t){var r=Xe();t.exports=function(e,t,n){return isNaN(e)?0<=t?n&&t?t-1:t:1:!1!==e&&r(e)}}),Je=e(function(e,t){t.exports=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e}}),Qe=e(function(e,t){var n=He();t.exports=function(e){if(n(e))return e;throw new TypeError("Cannot use null or undefined")}}),et=e(function(e,t){var l=Je(),u=Qe(),s=Function.prototype.bind,c=Function.prototype.call,d=Object.keys,p=Object.prototype.propertyIsEnumerable;t.exports=function(o,i){return function(n,r){var e,a=arguments[2],t=arguments[3];return n=Object(u(n)),l(r),e=d(n),t&&e.sort("function"==typeof t?s.call(t,n):void 0),"function"!=typeof o&&(o=e[o]),c.call(o,e,function(e,t){return p.call(n,e)?c.call(r,a,n[e],e,n,t):i})}}}),tt=e(function(e,t){t.exports=et()("forEach")}),nt=e(function(){}),rt=e(function(e,t){t.exports=function(){var e=Object.assign;return"function"==typeof e&&(e(e={foo:"raz"},{bar:"dwa"},{trzy:"trzy"}),e.foo+e.bar+e.trzy==="razdwatrzy")}}),at=e(function(e,t){t.exports=function(){try{return Object.keys("primitive"),!0}catch(e){return!1}}}),ot=e(function(e,t){var n=He(),r=Object.keys;t.exports=function(e){return r(n(e)?Object(e):e)}}),it=e(function(e,t){t.exports=at()()?Object.keys:ot()}),lt=e(function(e,t){var i=it(),l=Qe(),u=Math.max;t.exports=function(t,n){var r,e,a,o=u(arguments.length,2);for(t=Object(l(t)),a=function(e){try{t[e]=n[e]}catch(e){r=r||e}},e=1;e<o;++e)i(n=arguments[e]).forEach(a);if(void 0!==r)throw r;return t}}),ut=e(function(e,t){t.exports=rt()()?Object.assign:lt()}),st=e(function(e,t){var n=He(),r={function:!0,object:!0};t.exports=function(e){return n(e)&&r[te(e)]||!1}}),ct=e(function(e,r){var a=ut(),o=st(),i=He(),l=Error.captureStackTrace;r.exports=function(e){var e=new Error(e),t=arguments[1],n=arguments[2];return i(n)||o(t)&&(n=t,t=null),i(n)&&a(e,n),i(t)&&(e.code=t),l&&l(e,r.exports),e}}),dt=e(function(e,t){var a=Qe(),o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols;t.exports=function(t,n){var r,e=Object(a(n));if(t=Object(a(t)),l(e).forEach(function(e){try{o(t,e,i(n,e))}catch(e){r=e}}),"function"==typeof u&&u(e).forEach(function(e){try{o(t,e,i(n,e))}catch(e){r=e}}),void 0!==r)throw r;return t}}),pt=e(function(e,t){function n(e,t){return t}var r,a,o,i,l,u=Xe();try{Object.defineProperty(n,"length",{configurable:!0,writable:!1,enumerable:!1,value:1})}catch(e){}1===n.length?(r={configurable:!0,writable:!1,enumerable:!1},a=Object.defineProperty,t.exports=function(e,t){return t=u(t),e.length===t?e:(r.value=t,a(e,"length",r))}):(i=dt(),l=[],o=function(e){var t,n=0;if(l[e])return l[e];for(t=[];e--;)t.push("a"+(++n).toString(36));return new Function("fn","return function ("+t.join(", ")+") { return fn.apply(this, arguments); };")},t.exports=function(e,t){if(t=u(t),e.length===t)return e;t=o(t)(e);try{i(t,e)}catch(e){}return t})}),ft=e(function(e,t){t.exports=function(e){return null!=e}}),mt=e(function(e,t){var n=ft(),r={object:!0,function:!0,undefined:!0};t.exports=function(e){return!!n(e)&&hasOwnProperty.call(r,te(e))}}),ht=e(function(e,t){var n=mt();t.exports=function(e){if(!n(e))return!1;try{return e.constructor?e.constructor.prototype===e:!1}catch(e){return!1}}}),gt=e(function(e,t){var n=ht();t.exports=function(e){if("function"!=typeof e)return!1;if(!hasOwnProperty.call(e,"length"))return!1;try{if("number"!=typeof e.length)return!1;if("function"!=typeof e.call)return!1;if("function"!=typeof e.apply)return!1}catch(e){return!1}return!n(e)}}),bt=e(function(e,t){var n=gt(),r=/^\s*class[\s{/}]/,a=Function.prototype.toString;t.exports=function(e){return!!n(e)&&!r.test(a.call(e))}}),vt=e(function(e,t){var n="razdwatrzy";t.exports=function(){return"function"==typeof n.contains&&!0===n.contains("dwa")&&!1===n.contains("foo")}}),yt=e(function(e,t){var n=String.prototype.indexOf;t.exports=function(e){return-1<n.call(this,e,arguments[1])}}),wt=e(function(e,t){t.exports=vt()()?String.prototype.contains:yt()}),Dt=e(function(e,t){var i=ft(),o=bt(),l=ut(),u=Ue(),s=wt();(t.exports=function(e,t){var n,r,a,o;return arguments.length<2||"string"!=typeof e?(o=t,t=e,e=null):o=arguments[2],i(e)?(n=s.call(e,"c"),r=s.call(e,"e"),a=s.call(e,"w")):r=!(n=a=!0),e={value:t,configurable:n,enumerable:r,writable:a},o?l(u(o),e):e}).gs=function(e,t,n){var r,a;return"string"!=typeof e?(a=n,n=t,t=e,e=null):a=arguments[3],i(t)?o(t)?i(n)?o(n)||(a=n,n=void 0):n=void 0:(a=t,t=n=void 0):t=void 0,e=i(e)?(r=s.call(e,"c"),s.call(e,"e")):!(r=!0),t={get:t,set:n,configurable:r,enumerable:e},a?l(u(a),t):t}}),xt=e(function(e,t){var n=Dt(),i=Je(),l=Function.prototype.apply,u=Function.prototype.call,r=Object.create,a=Object.defineProperty,o=Object.defineProperties,s=Object.prototype.hasOwnProperty,c={configurable:!0,enumerable:!1,writable:!0},d=function(e,t){var n;return i(t),s.call(this,"__ee__")?n=this.__ee__:(n=c.value=r(null),a(this,"__ee__",c),c.value=null),n[e]?"object"===te(n[e])?n[e].push(t):n[e]=[n[e],t]:n[e]=t,this},p=function(e,t){var n,r;return i(t),r=this,d.call(this,e,n=function(){f.call(r,e,n),l.call(t,this,arguments)}),n.__eeOnceListener__=t,this},f=function(e,t){var n,r,a,o;if(i(t),s.call(this,"__ee__")&&(n=this.__ee__)[e])if("object"===te(r=n[e]))for(o=0;a=r[o];++o)a!==t&&a.__eeOnceListener__!==t||(2===r.length?n[e]=r[o?0:1]:r.splice(o,1));else r!==t&&r.__eeOnceListener__!==t||delete n[e];return this},m=function(e){var t,n,r,a,o;if(s.call(this,"__ee__")&&(a=this.__ee__[e]))if("object"===te(a)){for(n=arguments.length,o=new Array(n-1),t=1;t<n;++t)o[t-1]=arguments[t];for(a=a.slice(),t=0;r=a[t];++t)l.call(r,this,o)}else switch(arguments.length){case 1:u.call(a,this);break;case 2:u.call(a,this,arguments[1]);break;case 3:u.call(a,this,arguments[1],arguments[2]);break;default:for(n=arguments.length,o=new Array(n-1),t=1;t<n;++t)o[t-1]=arguments[t];l.call(a,this,o)}},h={on:d,once:p,off:f,emit:m},g={on:n(d),once:n(p),off:n(f),emit:n(m)},b=o({},g);t.exports=e=function(e){return null==e?r(b):o(Object(e),g)},e.methods=h}),Et=e(function(e,t){t.exports=function(){var e,t=Array.from;return"function"==typeof t&&(e=t(t=["raz","dwa"]),Boolean(e&&e!==t&&"dwa"===e[1]))}}),Ft=e(function(e,t){t.exports=function(){return"object"===("undefined"==typeof globalThis?"undefined":te(globalThis))&&!!globalThis&&globalThis.Array===Array}}),At=e(function(e,t){function n(){if("object"===("undefined"==typeof self?"undefined":te(self))&&self)return self;if("object"===(void 0===window?"undefined":te(window))&&window)return window;throw new Error("Unable to resolve global `this`")}t.exports=function(){if(this)return this;try{Object.defineProperty(Object.prototype,"__global__",{get:function(){return this},configurable:!0})}catch(e){return n()}try{return __global__?__global__:n()}finally{delete Object.prototype.__global__}}()}),Ct=e(function(e,t){t.exports=Ft()()?globalThis:At()}),kt=e(function(e,t){var n=Ct(),r={object:!0,symbol:!0};t.exports=function(){var e,t=n.Symbol;if("function"!=typeof t)return!1;e=t("test symbol");try{String(e)}catch(e){return!1}return!!r[te(t.iterator)]&&!!r[te(t.toPrimitive)]&&!!r[te(t.toStringTag)]}}),Nt=e(function(e,t){t.exports=function(e){return!!e&&("symbol"===te(e)||!!e.constructor&&"Symbol"===e.constructor.name&&"Symbol"===e[e.constructor.toStringTag])}}),Tt=e(function(e,t){var n=Nt();t.exports=function(e){if(n(e))return e;throw new TypeError(e+" is not a symbol")}}),Rt=e(function(e,t){var a=Dt(),n=Object.create,o=Object.defineProperty,i=Object.prototype,l=n(null);t.exports=function(e){for(var t,n,r=0;l[e+(r||"")];)++r;return l[e+=r||""]=!0,o(i,t="@@"+e,a.gs(null,function(e){n||(n=!0,o(this,t,a(e)),n=!1)})),t}}),St=e(function(e,t){var n=Dt(),r=Ct().Symbol;t.exports=function(e){return Object.defineProperties(e,{hasInstance:n("",r&&r.hasInstance||e("hasInstance")),isConcatSpreadable:n("",r&&r.isConcatSpreadable||e("isConcatSpreadable")),iterator:n("",r&&r.iterator||e("iterator")),match:n("",r&&r.match||e("match")),replace:n("",r&&r.replace||e("replace")),search:n("",r&&r.search||e("search")),species:n("",r&&r.species||e("species")),split:n("",r&&r.split||e("split")),toPrimitive:n("",r&&r.toPrimitive||e("toPrimitive")),toStringTag:n("",r&&r.toStringTag||e("toStringTag")),unscopables:n("",r&&r.unscopables||e("unscopables"))})}}),Ot=e(function(e,t){var n=Dt(),r=Tt(),a=Object.create(null);t.exports=function(t){return Object.defineProperties(t,{for:n(function(e){return a[e]||(a[e]=t(String(e)))}),keyFor:n(function(e){for(var t in r(e),a)if(a[t]===e)return t})})}}),_t=e(function(e,t){var n,r,a,o=Dt(),i=Tt(),l=Ct().Symbol,u=Rt(),s=St(),c=Ot(),d=Object.create,p=Object.defineProperties,f=Object.defineProperty;if("function"==typeof l)try{String(l()),a=!0}catch(e){}else l=null;r=function(e){if(this instanceof r)throw new TypeError("Symbol is not a constructor");return n(e)},t.exports=n=function e(t){var n;if(this instanceof e)throw new TypeError("Symbol is not a constructor");return a?l(t):(n=d(r.prototype),t=void 0===t?"":String(t),p(n,{__description__:o("",t),__name__:o("",u(t))}))},s(n),c(n),p(r.prototype,{constructor:o(n),toString:o("",function(){return this.__name__})}),p(n.prototype,{toString:o(function(){return"Symbol ("+i(this).__description__+")"}),valueOf:o(function(){return i(this)})}),f(n.prototype,n.toPrimitive,o("",function(){var e=i(this);return"symbol"===te(e)?e:e.toString()})),f(n.prototype,n.toStringTag,o("c","Symbol")),f(r.prototype,n.toStringTag,o("c",n.prototype[n.toStringTag])),f(r.prototype,n.toPrimitive,o("c",n.prototype[n.toPrimitive]))}),Mt=e(function(e,t){t.exports=kt()()?Ct().Symbol:_t()}),Pt=e(function(e,t){var n=Object.prototype.toString,r=n.call(function(){return arguments}());t.exports=function(e){return n.call(e)===r}}),It=e(function(e,t){var n=Object.prototype.toString,r=RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/);t.exports=function(e){return"function"==typeof e&&r(n.call(e))}}),Bt=e(function(e,t){var n=Object.prototype.toString,r=n.call("");t.exports=function(e){return"string"==typeof e||e&&"object"===te(e)&&(e instanceof String||n.call(e)===r)||!1}}),jt=e(function(e,t){var f=Mt().iterator,m=Pt(),h=It(),g=Xe(),b=Je(),v=Qe(),y=He(),w=Bt(),D=Array.isArray,x=Function.prototype.call,E={configurable:!0,enumerable:!0,writable:!0,value:null},F=Object.defineProperty;t.exports=function(e){var t,n,r,a,o,i,l,u,s,c,d=arguments[1],p=arguments[2];if(e=Object(v(e)),y(d)&&b(d),this&&this!==Array&&h(this))t=this;else{if(!d){if(m(e))return 1!==(o=e.length)?Array.apply(null,e):((a=new Array(1))[0]=e[0],a);if(D(e)){for(a=new Array(o=e.length),n=0;n<o;++n)a[n]=e[n];return a}}a=[]}if(!D(e))if(void 0!==(s=e[f])){for(l=b(s).call(e),t&&(a=new t),u=l.next(),n=0;!u.done;)c=d?x.call(d,p,u.value,n):u.value,t?(E.value=c,F(a,n,E)):a[n]=c,u=l.next(),++n;o=n}else if(w(e)){for(o=e.length,t&&(a=new t),r=n=0;n<o;++n)c=e[n],n+1<o&&55296<=(i=c.charCodeAt(0))&&i<=56319&&(c+=e[++n]),c=d?x.call(d,p,c,r):c,t?(E.value=c,F(a,r,E)):a[r]=c,++r;o=r}if(void 0===o)for(o=g(e.length),t&&(a=new t(o)),n=0;n<o;++n)c=d?x.call(d,p,e[n],n):e[n],t?(E.value=c,F(a,n,E)):a[n]=c;return t&&(E.value=null,a.length=o),a}}),Lt=e(function(e,t){t.exports=Et()()?Array.from:jt()}),qt=e(function(e,t){var n=Lt(),r=Array.isArray;t.exports=function(e){return r(e)?e:n(e)}}),zt=e(function(e,t){var n=qt(),r=He(),a=Je(),o=Array.prototype.slice,i=function(n){return this.map(function(e,t){return e?e(n[t]):n[t]}).concat(o.call(n,this.length))};t.exports=function(e){return(e=n(e)).forEach(function(e){r(e)&&a(e)}),i.bind(e)}}),Vt=e(function(e,t){var n=Je();t.exports=function(e){var t;return"function"==typeof e?{set:e,get:e}:(t={get:n(e.get)},void 0!==e.set?(t.set=n(e.set),e.delete&&(t.delete=n(e.delete)),e.clear&&(t.clear=n(e.clear))):t.set=t.get,t)}}),$t=e(function(e,t){var g=ct(),b=pt(),v=Dt(),n=xt().methods,y=zt(),w=Vt(),D=Function.prototype.apply,x=Function.prototype.call,E=Object.create,F=Object.defineProperties,A=n.on,C=n.emit;t.exports=function(a,t,e){var o,i,l,n,r,u,s,c,d,p,f,m=E(null),h=!1!==t?t:isNaN(a.length)?1:a.length;return e.normalizer&&(p=w(e.normalizer),i=p.get,l=p.set,n=p.delete,r=p.clear),null!=e.resolvers&&(f=y(e.resolvers)),p=i?b(function(e){var t,n,r=arguments;if(f&&(r=f(r)),null!==(t=i(r))&&hasOwnProperty.call(m,t))return s&&o.emit("get",t,r,this),m[t];if(n=1===r.length?x.call(a,this,r[0]):D.call(a,this,r),null===t){if(null!==(t=i(r)))throw g("Circular invocation","CIRCULAR_INVOCATION");t=l(r)}else if(hasOwnProperty.call(m,t))throw g("Circular invocation","CIRCULAR_INVOCATION");return m[t]=n,c&&o.emit("set",t,null,n),n},h):0===t?function(){var e;if(hasOwnProperty.call(m,"data"))return s&&o.emit("get","data",arguments,this),m.data;if(e=arguments.length?D.call(a,this,arguments):x.call(a,this),hasOwnProperty.call(m,"data"))throw g("Circular invocation","CIRCULAR_INVOCATION");return m.data=e,c&&o.emit("set","data",null,e),e}:function(e){var t,n=arguments;if(f&&(n=f(arguments)),t=String(n[0]),hasOwnProperty.call(m,t))return s&&o.emit("get",t,n,this),m[t];if(n=1===n.length?x.call(a,this,n[0]):D.call(a,this,n),hasOwnProperty.call(m,t))throw g("Circular invocation","CIRCULAR_INVOCATION");return m[t]=n,c&&o.emit("set",t,null,n),n},o={original:a,memoized:p,profileName:e.profileName,get:function(e){return f&&(e=f(e)),i?i(e):String(e[0])},has:function(e){return hasOwnProperty.call(m,e)},delete:function(e){var t;hasOwnProperty.call(m,e)&&(n&&n(e),t=m[e],delete m[e],d)&&o.emit("delete",e,t)},clear:function(){var e=m;r&&r(),m=E(null),o.emit("clear",e)},on:function(e,t){return"get"===e?s=!0:"set"===e?c=!0:"delete"===e&&(d=!0),A.call(this,e,t)},emit:C,updateEnv:function(){a=o.original}},e=i?b(function(e){var t=arguments;f&&(t=f(t)),null!==(t=i(t))&&o.delete(t)},h):0===t?function(){return o.delete("data")}:function(e){return f&&(e=f(arguments)[0]),o.delete(e)},h=b(function(){var e=arguments;return 0===t?m.data:(f&&(e=f(e)),e=i?i(e):String(e[0]),m[e])}),u=b(function(){var e=arguments;return 0===t?o.has("data"):(f&&(e=f(e)),null!==(e=i?i(e):String(e[0]))&&o.has(e))}),F(p,{__memoized__:v(!0),delete:v(e),clear:v(o.clear),_get:v(h),_has:v(u)}),o}}),Ht=e(function(e,t){var o=Je(),i=tt(),l=nt(),u=$t(),s=Ze();t.exports=function e(t){var n,r,a;if(o(t),(n=Object(arguments[1])).async&&n.promise)throw new Error("Options 'async' and 'promise' cannot be used together");return hasOwnProperty.call(t,"__memoized__")&&!n.force?t:(r=s(n.length,t.length,n.async&&l.async),a=u(t,r,n),i(l,function(e,t){n[t]&&e(n[t],a,n)}),e.__profiler__&&e.__profiler__(a),a.updateEnv(),a.memoized)}}),Ut=e(function(e,t){t.exports=function(e){var t,n,r=e.length;if(!r)return"";for(t=String(e[n=0]);--r;)t+=""+e[++n];return t}}),Gt=e(function(e,t){t.exports=function(a){return a?function(e){for(var t=String(e[0]),n=0,r=a;--r;)t+=""+e[++n];return t}:function(){return""}}}),Wt=e(function(e,t){t.exports=function(){var e=Number.isNaN;return"function"==typeof e&&!e({})&&e(NaN)&&!e(34)}}),Yt=e(function(e,t){t.exports=function(e){return e!=e}}),Kt=e(function(e,t){t.exports=Wt()()?Number.isNaN:Yt()}),Xt=e(function(e,t){var a=Kt(),o=Xe(),i=Qe(),l=Array.prototype.indexOf,u=Object.prototype.hasOwnProperty,s=Math.abs,c=Math.floor;t.exports=function(e){var t,n,r;if(!a(e))return l.apply(this,arguments);for(n=o(i(this).length),e=arguments[1],t=e=isNaN(e)?0:0<=e?c(e):o(this.length)-c(s(e));t<n;++t)if(u.call(this,t)&&(r=this[t],a(r)))return t;return-1}}),Zt=e(function(e,t){var s=Xt(),n=Object.create;t.exports=function(){var o=0,l=[],u=n(null);return{get:function(e){var t,n=0,r=l,a=e.length;if(0===a)return r[a]||null;if(r=r[a]){for(;n<a-1;){if(-1===(t=s.call(r[0],e[n])))return null;r=r[1][t],++n}return-1===(t=s.call(r[0],e[n]))?null:r[1][t]||null}return null},set:function(e){var t,n=0,r=l,a=e.length;if(0===a)r[a]=++o;else{for(r[a]||(r[a]=[[],[]]),r=r[a];n<a-1;)-1===(t=s.call(r[0],e[n]))&&(t=r[0].push(e[n])-1,r[1].push([[],[]])),r=r[1][t],++n;-1===(t=s.call(r[0],e[n]))&&(t=r[0].push(e[n])-1),r[1][t]=++o}return u[o]=e,o},delete:function(e){var t,n=0,r=l,a=u[e],o=a.length,i=[];if(0===o)delete r[o];else if(r=r[o]){for(;n<o-1;){if(-1===(t=s.call(r[0],a[n])))return;i.push(r,t),r=r[1][t],++n}if(-1===(t=s.call(r[0],a[n])))return;for(e=r[1][t],r[0].splice(t,1),r[1].splice(t,1);!r[0].length&&i.length;)t=i.pop(),(r=i.pop())[0].splice(t,1),r[1].splice(t,1)}delete u[e]},clear:function(){l=[],u=n(null)}}}}),Jt=e(function(e,t){var a=Xt();t.exports=function(){var t=0,n=[],r=[];return{get:function(e){e=a.call(n,e[0]);return-1===e?null:r[e]},set:function(e){return n.push(e[0]),r.push(++t),t},delete:function(e){e=a.call(r,e);-1!==e&&(n.splice(e,1),r.splice(e,1))},clear:function(){n=[],r=[]}}}}),Qt=e(function(e,t){var s=Xt(),n=Object.create;t.exports=function(i){var a=0,l=[[],[]],u=n(null);return{get:function(e){for(var t,n=0,r=l;n<i-1;){if(-1===(t=s.call(r[0],e[n])))return null;r=r[1][t],++n}return-1!==(t=s.call(r[0],e[n]))&&r[1][t]||null},set:function(e){for(var t,n=0,r=l;n<i-1;)-1===(t=s.call(r[0],e[n]))&&(t=r[0].push(e[n])-1,r[1].push([[],[]])),r=r[1][t],++n;return-1===(t=s.call(r[0],e[n]))&&(t=r[0].push(e[n])-1),r[1][t]=++a,u[a]=e,a},delete:function(e){for(var t,n=0,r=l,a=[],o=u[e];n<i-1;){if(-1===(t=s.call(r[0],o[n])))return;a.push(r,t),r=r[1][t],++n}if(-1!==(t=s.call(r[0],o[n]))){for(e=r[1][t],r[0].splice(t,1),r[1].splice(t,1);!r[0].length&&a.length;)t=a.pop(),(r=a.pop())[0].splice(t,1),r[1].splice(t,1);delete u[e]}},clear:function(){l=[[],[]],u=n(null)}}}}),en=e(function(e,t){var n=Je(),r=tt(),l=Function.prototype.call;t.exports=function(e,a){var o={},i=arguments[2];return n(a),r(e,function(e,t,n,r){o[t]=l.call(a,i,e,t,n,r)}),o}}),tn=e(function(e,t){function o(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e}function n(e){var t,n,r=document.createTextNode(""),a=0;return new e(function(){var e;if(t)n&&(t=n.concat(t));else{if(!n)return;t=n}if(n=t,t=null,"function"==typeof n)e=n,n=null,e();else for(r.data=a=++a%2;n;)e=n.shift(),n.length||(n=null),e()}).observe(r,{characterData:!0}),function(e){o(e),t?"function"==typeof t?t=[t,e]:t.push(e):(t=e,r.data=a=++a%2)}}t.exports=(()=>{if("object"===("undefined"==typeof process?"undefined":te(process))&&process&&"function"==typeof process.nextTick)return process.nextTick;if("function"==typeof queueMicrotask)return function(e){queueMicrotask(o(e))};if("object"===(void 0===document?"undefined":te(document))&&document){if("function"==typeof MutationObserver)return n(MutationObserver);if("function"==typeof WebKitMutationObserver)return n(WebKitMutationObserver)}return"function"==typeof setImmediate?function(e){setImmediate(o(e))}:"function"==typeof setTimeout||"object"===("undefined"==typeof setTimeout?"undefined":te(setTimeout))?function(e){setTimeout(o(e),0)}:null})()}),nn=e(function(){var p=Lt(),t=en(),n=dt(),a=pt(),f=tn(),m=Array.prototype.slice,h=Function.prototype.apply,g=Object.create;nt().async=function(e,i){var l,u,s,c=g(null),d=g(null),o=i.memoized,r=i.original;i.memoized=a(function(e){var t=arguments,n=t[t.length-1];return"function"==typeof n&&(l=n,t=m.call(t,0,-1)),o.apply(u=this,s=t)},o);try{n(i.memoized,o)}catch(e){}i.on("get",function(t){var n,r,a;l&&(c[t]?("function"==typeof c[t]?c[t]=[c[t],l]:c[t].push(l),l=null):(n=l,r=u,a=s,l=u=s=null,f(function(){var e;hasOwnProperty.call(d,t)?(e=d[t],i.emit("getasync",t,a,r),h.call(n,e.context,e.args)):(l=n,u=r,s=a,o.apply(r,a))})))}),i.original=function(){var e,t,n,o;return l?(e=p(arguments),n=l,l=u=s=null,e.push(t=function e(t){var n,r,a=e.id;if(null==a)f(h.bind(e,this,arguments));else if(delete e.id,n=c[a],delete c[a],n)return r=p(arguments),i.has(a)&&(t?i.delete(a):(d[a]={context:this,args:r},i.emit("setasync",a,"function"==typeof n?1:n.length))),"function"==typeof n?o=h.call(n,this,r):n.forEach(function(e){o=h.call(e,this,r)},this),o}),o=h.call(r,this,e),t.cb=n,l=t,o):h.call(r,this,arguments)},i.on("set",function(e){l?(c[e]?"function"==typeof c[e]?c[e]=[c[e],l.cb]:c[e].push(l.cb):c[e]=l.cb,delete l.cb,l.id=e,l=null):i.delete(e)}),i.on("delete",function(e){var t;hasOwnProperty.call(c,e)||d[e]&&(t=d[e],delete d[e],i.emit("deleteasync",e,m.call(t.args,1)))}),i.on("clear",function(){var e=d;d=g(null),i.emit("clearasync",t(e,function(e){return m.call(e.args,1)}))})}}),rn=e(function(e,t){var n=Array.prototype.forEach,r=Object.create;t.exports=function(e){var t=r(null);return n.call(arguments,function(e){t[e]=!0}),t}}),an=e(function(e,t){t.exports=function(e){return"function"==typeof e}}),on=e(function(e,t){var n=an();t.exports=function(e){try{return e&&n(e.toString)?e.toString():String(e)}catch(e){throw new TypeError("Passed argument cannot be stringifed")}}}),ln=e(function(e,t){var n=Qe(),r=on();t.exports=function(e){return r(n(e))}}),un=e(function(e,t){var n=an();t.exports=function(e){try{return e&&n(e.toString)?e.toString():String(e)}catch(e){return"<Non-coercible to string value>"}}}),sn=e(function(e,t){var n=un(),r=/[\n\r\u2028\u2029]/g;t.exports=function(e){e=n(e);return e=(e=100<e.length?e.slice(0,99)+"…":e).replace(r,function(e){return JSON.stringify(e).slice(1,-1)})}}),cn=e(function(e,t){function n(e){return!!e&&("object"===te(e)||"function"==typeof e)&&"function"==typeof e.then}t.exports=n,t.exports.default=n}),dn=e(function(){var t=en(),e=rn(),n=ln(),r=sn(),f=cn(),m=tn(),a=Object.create,o=e("then","then:finally","done","done:finally");nt().promise=function(u,s){var c=a(null),d=a(null),p=a(null);if(!0===u)u=null;else if(u=n(u),!o[u])throw new TypeError("'"+r(u)+"' is not valid promise mode");s.on("set",function(n,e,t){var r=!1;if(f(t)){c[n]=1,p[n]=t;var a=function(e){var t=c[n];if(r)throw new Error("Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in 'done:finally' mode)\nConsider to rely on 'then' or 'done' mode instead.");t&&(delete c[n],d[n]=e,s.emit("setasync",n,t))},o=function(){r=!0,c[n]&&(delete c[n],delete p[n],s.delete(n))},i=u;if("then"===(i=i||"then")){var l=function(){m(o)};"function"==typeof(t=t.then(function(e){m(a.bind(this,e))},l)).finally&&t.finally(l)}else if("done"===i){if("function"!=typeof t.done)throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");t.done(a,o)}else if("done:finally"===i){if("function"!=typeof t.done)throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if("function"!=typeof t.finally)throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");t.done(a),t.finally(o)}}else d[n]=t,s.emit("setasync",n,1)}),s.on("get",function(e,t,n){var r,a;c[e]?++c[e]:(r=p[e],a=function(){s.emit("getasync",e,t,n)},f(r)?"function"==typeof r.done?r.done(a):r.then(function(){m(a)}):a())}),s.on("delete",function(e){var t;delete p[e],c[e]?delete c[e]:hasOwnProperty.call(d,e)&&(t=d[e],delete d[e],s.emit("deleteasync",e,[t]))}),s.on("clear",function(){var e=d;d=a(null),c=a(null),p=a(null),s.emit("clearasync",t(e,function(e){return[e]}))})}}),pn=e(function(){var a=Je(),o=tt(),i=nt(),l=Function.prototype.apply;i.dispose=function(n,e,t){var r;a(n),t.async&&i.async||t.promise&&i.promise?(e.on("deleteasync",r=function(e,t){l.call(n,null,t)}),e.on("clearasync",function(e){o(e,function(e,t){r(t,e)})})):(e.on("delete",r=function(e,t){n(t)}),e.on("clear",function(e){o(e,function(e,t){r(t,e)})}))}}),fn=e(function(e,t){t.exports=2147483647}),mn=e(function(e,t){var n=Xe(),r=fn();t.exports=function(e){if(e=n(e),r<e)throw new TypeError(e+" exceeds maximum possible timeout");return e}}),hn=e(function(){var l=Lt(),u=tt(),s=tn(),c=cn(),d=mn(),p=nt(),f=Function.prototype,m=Math.max,h=Math.min,g=Object.create;p.maxAge=function(t,a,o){var n,e,r,i;(t=d(t))&&(n=g(null),e=o.async&&p.async||o.promise&&p.promise?"async":"",a.on("set"+e,function(e){n[e]=setTimeout(function(){a.delete(e)},t),"function"==typeof n[e].unref&&n[e].unref(),i&&(i[e]&&"nextTick"!==i[e]&&clearTimeout(i[e]),i[e]=setTimeout(function(){delete i[e]},r),"function"==typeof i[e].unref)&&i[e].unref()}),a.on("delete"+e,function(e){clearTimeout(n[e]),delete n[e],i&&("nextTick"!==i[e]&&clearTimeout(i[e]),delete i[e])}),o.preFetch&&(r=!0===o.preFetch||isNaN(o.preFetch)?.333:m(h(Number(o.preFetch),1),0))&&(i={},r=(1-r)*t,a.on("get"+e,function(t,n,r){i[t]||(i[t]="nextTick",s(function(){var e;"nextTick"===i[t]&&(delete i[t],a.delete(t),o.async&&(n=l(n)).push(f),e=a.memoized.apply(r,n),o.promise)&&c(e)&&("function"==typeof e.done?e.done(f,f):e.then(f,f))}))})),a.on("clear"+e,function(){u(n,function(e){clearTimeout(e)}),n={},i&&(u(i,function(e){"nextTick"!==e&&clearTimeout(e)}),i={})}))}}),gn=e(function(e,t){var n=Xe(),c=Object.create,d=Object.prototype.hasOwnProperty;t.exports=function(r){var a,o=0,i=1,l=c(null),u=c(null),s=0;return r=n(r),{hit:function(e){var t=u[e],n=++s;if(l[n]=e,u[e]=n,!t)return++o<=r?void 0:(e=l[i],a(e),e);if(delete l[t],i===t)for(;!d.call(l,++i););},delete:a=function(e){var t=u[e];if(t&&(delete l[t],delete u[e],--o,i===t))if(o)for(;!d.call(l,++i););else s=0,i=1},clear:function(){o=0,i=1,l=c(null),u=c(null),s=0}}}}),bn=e(function(){var a=Xe(),o=gn(),i=nt();i.max=function(e,t,n){var r;(e=a(e))&&(r=o(e),e=n.async&&i.async||n.promise&&i.promise?"async":"",t.on("set"+e,n=function(e){void 0!==(e=r.hit(e))&&t.delete(e)}),t.on("get"+e,n),t.on("delete"+e,r.delete),t.on("clear"+e,r.clear))}}),vn=e(function(){var a=Dt(),o=nt(),i=Object.create,l=Object.defineProperties;o.refCounter=function(e,t,n){var r=i(null),n=n.async&&o.async||n.promise&&o.promise?"async":"";t.on("set"+n,function(e,t){r[e]=t||1}),t.on("get"+n,function(e){++r[e]}),t.on("delete"+n,function(e){delete r[e]}),t.on("clear"+n,function(){r={}}),l(t.memoized,{deleteRef:a(function(){var e=t.get(arguments);return null!==e&&r[e]?!--r[e]&&(t.delete(e),!0):null}),getRefCount:a(function(){var e=t.get(arguments);return null!==e&&r[e]||0})})}}),yn=e(function(e,t){var r=Ue(),a=Ze(),o=Ht();t.exports=function(e){var t,n=r(arguments[1]);return n.normalizer||0!==(t=n.length=a(n.length,e.length,n.async))&&(n.primitive?!1===t?n.normalizer=Ut():1<t&&(n.normalizer=Gt()(t)):n.normalizer=!1===t?Zt()():1===t?Jt()():Qt()(t)),n.async&&nn(),n.promise&&dn(),n.dispose&&pn(),n.maxAge&&hn(),n.max&&bn(),n.refCounter&&vn(),o(e,n)}}),wn=e(function(i){Object.defineProperty(i,"__esModule",{value:!0}),i.isIdentStart=function(e){return"a"<=e&&e<="z"||"A"<=e&&e<="Z"||"-"===e||"_"===e},i.isIdent=function(e){return"a"<=e&&e<="z"||"A"<=e&&e<="Z"||"0"<=e&&e<="9"||"-"===e||"_"===e},i.isHex=function(e){return"a"<=e&&e<="f"||"A"<=e&&e<="F"||"0"<=e&&e<="9"},i.escapeIdentifier=function(e){for(var t=e.length,n="",r=0;r<t;){var a=e.charAt(r);if(i.identSpecialChars[a])n+="\\"+a;else if("_"===a||"-"===a||"A"<=a&&a<="Z"||"a"<=a&&a<="z"||0!==r&&"0"<=a&&a<="9")n+=a;else{a=a.charCodeAt(0);if(55296==(63488&a)){var o=e.charCodeAt(r++);if(55296!=(64512&a)||56320!=(64512&o))throw Error("UCS-2(decode): illegal sequence");a=((1023&a)<<10)+(1023&o)+65536}n+="\\"+a.toString(16)+" "}r++}return n},i.escapeStr=function(e){for(var t,n=e.length,r="",a=0;a<n;){var o=e.charAt(a);'"'===o?o='\\"':"\\"===o?o="\\\\":void 0!==(t=i.strReplacementsRev[o])&&(o=t),r+=o,a++}return'"'+r+'"'},i.identSpecialChars={"!":!0,'"':!0,"#":!0,$:!0,"%":!0,"&":!0,"'":!0,"(":!0,")":!0,"*":!0,"+":!0,",":!0,".":!0,"/":!0,";":!0,"<":!0,"=":!0,">":!0,"?":!0,"@":!0,"[":!0,"\\":!0,"]":!0,"^":!0,"`":!0,"{":!0,"|":!0,"}":!0,"~":!0},i.strReplacementsRev={"\n":"\\n","\r":"\\r","\t":"\\t","\f":"\\f","\v":"\\v"},i.singleQuoteEscapeChars={n:"\n",r:"\r",t:"\t",f:"\f","\\":"\\","'":"'"},i.doubleQuotesEscapeChars={n:"\n",r:"\r",t:"\t",f:"\f","\\":"\\",'"':'"'}}),Dn=e(function(e){Object.defineProperty(e,"__esModule",{value:!0});var b=wn();e.parseCssSelector=function(o,i,l,u,a,s){var c=o.length,d="";function p(e,t){var n="";for(i++,d=o.charAt(i);i<c;){if(d===e)return i++,n;if("\\"===d){i++;var r;if((d=o.charAt(i))===e)n+=e;else if(void 0!==(r=t[d]))n+=r;else{if(b.isHex(d)){var a=d;for(i++,d=o.charAt(i);b.isHex(d);)a+=d,i++,d=o.charAt(i);" "===d&&(i++,d=o.charAt(i)),n+=String.fromCharCode(parseInt(a,16));continue}n+=d}}else n+=d;i++,d=o.charAt(i)}return n}function f(){var e="";for(d=o.charAt(i);i<c;){if(!b.isIdent(d)){if("\\"!==d)return e;if(c<=++i)throw Error("Expected symbol but end of file reached.");if(d=o.charAt(i),!b.identSpecialChars[d]&&b.isHex(d)){var t=d;for(i++,d=o.charAt(i);b.isHex(d);)t+=d,i++,d=o.charAt(i);" "===d&&(i++,d=o.charAt(i)),e+=String.fromCharCode(parseInt(t,16));continue}}e+=d,i++,d=o.charAt(i)}return e}function m(){d=o.charAt(i);for(;" "===d||"\t"===d||"\n"===d||"\r"===d||"\f"===d;)i++,d=o.charAt(i)}function h(){var e=n();if(!e)return null;var t=e;for(d=o.charAt(i);","===d;){if(i++,m(),"selectors"!==t.type&&(t={type:"selectors",selectors:[e]}),!(e=n()))throw Error('Rule expected after ",".');t.selectors.push(e)}return t}function n(){m();var e={type:"ruleSet"},t=g();if(!t)return null;for(var n=e;t&&(t.type="rule",n.rule=t,n=t,m(),d=o.charAt(i),!(c<=i||","===d||")"===d));)if(a[d]){var r=d;if(i++,m(),!(t=g()))throw Error('Rule expected after "'+r+'".');t.nestingOperator=r}else(t=g())&&(t.nestingOperator=null);return e}function g(){for(var e=null;i<c;)if("*"===(d=o.charAt(i)))i++,(e=e||{}).tagName="*";else if(b.isIdentStart(d)||"\\"===d)(e=e||{}).tagName=f();else if("."===d)i++,((e=e||{}).classNames=e.classNames||[]).push(f());else if("#"===d)i++,(e=e||{}).id=f();else if("["===d){i++,m();var t={name:f()};if(m(),"]"===d)i++;else{var n="";if(u[d]&&(n=d,i++,d=o.charAt(i)),c<=i)throw Error('Expected "=" but end of file reached.');if("="!==d)throw Error('Expected "=" but "'+d+'" found.');t.operator=n+"=",i++,m();var r="";if(t.valueType="string",'"'===d)r=p('"',b.doubleQuotesEscapeChars);else if("'"===d)r=p("'",b.singleQuoteEscapeChars);else if(s&&"$"===d)i++,r=f(),t.valueType="substitute";else{for(;i<c&&"]"!==d;)r+=d,i++,d=o.charAt(i);r=r.trim()}if(m(),c<=i)throw Error('Expected "]" but end of file reached.');if("]"!==d)throw Error('Expected "]" but "'+d+'" found.');i++,t.value=r}((e=e||{}).attrs=e.attrs||[]).push(t)}else{if(":"!==d)break;i++;n=f(),t={name:n};if("("===d){i++;var a="";if(m(),"selector"===l[n])t.valueType="selector",a=h();else{if(t.valueType=l[n]||"string",'"'===d)a=p('"',b.doubleQuotesEscapeChars);else if("'"===d)a=p("'",b.singleQuoteEscapeChars);else if(s&&"$"===d)i++,a=f(),t.valueType="substitute";else{for(;i<c&&")"!==d;)a+=d,i++,d=o.charAt(i);a=a.trim()}m()}if(c<=i)throw Error('Expected ")" but end of file reached.');if(")"!==d)throw Error('Expected ")" but "'+d+'" found.');i++,t.value=a}((e=e||{}).pseudos=e.pseudos||[]).push(t)}return e}var e=h();if(i<c)throw Error('Rule expected but "'+o.charAt(i)+'" found.');return e}}),xn=e(function(e){Object.defineProperty(e,"__esModule",{value:!0});var o=wn();e.renderEntity=function t(e){var n="";switch(e.type){case"ruleSet":for(var r=e.rule,a=[];r;)r.nestingOperator&&a.push(r.nestingOperator),a.push(t(r)),r=r.rule;n=a.join(" ");break;case"selectors":n=e.selectors.map(t).join(", ");break;case"rule":e.tagName&&(n="*"===e.tagName?"*":o.escapeIdentifier(e.tagName)),e.id&&(n+="#"+o.escapeIdentifier(e.id)),e.classNames&&(n+=e.classNames.map(function(e){return"."+o.escapeIdentifier(e)}).join("")),e.attrs&&(n+=e.attrs.map(function(e){return"operator"in e?"substitute"===e.valueType?"["+o.escapeIdentifier(e.name)+e.operator+"$"+e.value+"]":"["+o.escapeIdentifier(e.name)+e.operator+o.escapeStr(e.value)+"]":"["+o.escapeIdentifier(e.name)+"]"}).join("")),e.pseudos&&(n+=e.pseudos.map(function(e){return e.valueType?"selector"===e.valueType?":"+o.escapeIdentifier(e.name)+"("+t(e.value)+")":"substitute"===e.valueType?":"+o.escapeIdentifier(e.name)+"($"+e.value+")":"numeric"===e.valueType?":"+o.escapeIdentifier(e.name)+"("+e.value+")":":"+o.escapeIdentifier(e.name)+"("+o.escapeIdentifier(e.value)+")":":"+o.escapeIdentifier(e.name)}).join(""));break;default:throw Error('Unknown entity type: "'+e.type+'".')}return n}}),En=e(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Dn(),n=xn();function r(){this.pseudos={},this.attrEqualityMods={},this.ruleNestingOperators={},this.substitutesEnabled=!1}r.prototype.registerSelectorPseudos=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++)this.pseudos[r[n]]="selector";return this},r.prototype.unregisterSelectorPseudos=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++)delete this.pseudos[r[n]];return this},r.prototype.registerNumericPseudos=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++)this.pseudos[r[n]]="numeric";return this},r.prototype.unregisterNumericPseudos=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++)delete this.pseudos[r[n]];return this},r.prototype.registerNestingOperators=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++)this.ruleNestingOperators[r[n]]=!0;return this},r.prototype.unregisterNestingOperators=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++)delete this.ruleNestingOperators[r[n]];return this},r.prototype.registerAttrEqualityMods=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++)this.attrEqualityMods[r[n]]=!0;return this},r.prototype.unregisterAttrEqualityMods=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,r=e;n<r.length;n++)delete this.attrEqualityMods[r[n]];return this},r.prototype.enableSubstitutes=function(){return this.substitutesEnabled=!0,this},r.prototype.disableSubstitutes=function(){return this.substitutesEnabled=!1,this},r.prototype.parse=function(e){return t.parseCssSelector(e,0,this.pseudos,this.attrEqualityMods,this.ruleNestingOperators,this.substitutesEnabled)},r.prototype.render=function(e){return n.renderEntity(e).trim()},e.CssSelectorParser=r}),Fn=e(function(e,t){var n;n=function(){function u(e){return"function"==typeof e}var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},r=0,t=void 0,a=void 0,i=function(e,t){d[r]=e,d[r+1]=t,2===(r+=2)&&(a?a(p):I())};var e=void 0!==window?window:void 0,o=e||{},o=o.MutationObserver||o.WebKitMutationObserver,l="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),s="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function c(){var e=setTimeout;return function(){return e(p,1)}}var d=new Array(1e3);function p(){for(var e=0;e<r;e+=2)(0,d[e])(d[e+1]),d[e]=void 0,d[e+1]=void 0;r=0}function f(){try{var e=Function("return this")().require("vertx");return void 0!==(t=e.runOnLoop||e.runOnContext)?function(){t(p)}:c()}catch(e){return c()}}var m,h,g,I=void 0;function b(e,t){var n,r=this,a=new this.constructor(w),o=(void 0===a[y]&&O(a),r._state);return o?(n=arguments[o-1],i(function(){return R(o,a,n,r._result)})):N(r,a,e,t),a}function v(e){var t;return e&&"object"===te(e)&&e.constructor===this?e:(A(t=new this(w),e),t)}var I=l?function(){return process.nextTick(p)}:o?(h=0,l=new o(p),g=document.createTextNode(""),l.observe(g,{characterData:!0}),function(){g.data=h=++h%2}):s?((m=new MessageChannel).port1.onmessage=p,function(){return m.port2.postMessage(0)}):(void 0===e?f:c)(),y=Math.random().toString(36).substring(2);function w(){}var D=void 0,x=1,E=2;function B(e,r,a){i(function(t){var n=!1,e=((e,t,n,r)=>{try{e.call(t,n,r)}catch(e){return e}})(a,r,function(e){n||(n=!0,(r!==e?A:C)(t,e))},function(e){n||(n=!0,k(t,e))},t._label);!n&&e&&(n=!0,k(t,e))},e)}function F(e,t,n){var r,a;t.constructor===e.constructor&&n===b&&t.constructor.resolve===v?(r=e,(a=t)._state===x?C(r,a._result):a._state===E?k(r,a._result):N(a,void 0,function(e){return A(r,e)},function(e){return k(r,e)})):void 0!==n&&u(n)?B(e,t,n):C(e,t)}function A(t,e){if(t===e)k(t,new TypeError("You cannot resolve a promise with itself"));else if(r=te(n=e),null===n||"object"!==r&&"function"!==r)C(t,e);else{n=void 0;try{n=e.then}catch(e){return void k(t,e)}F(t,e,n)}var n,r}function j(e){e._onerror&&e._onerror(e._result),T(e)}function C(e,t){e._state===D&&(e._result=t,e._state=x,0!==e._subscribers.length)&&i(T,e)}function k(e,t){e._state===D&&(e._state=E,e._result=t,i(j,e))}function N(e,t,n,r){var a=e._subscribers,o=a.length;e._onerror=null,a[o]=t,a[o+x]=n,a[o+E]=r,0===o&&e._state&&i(T,e)}function T(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var r,a=void 0,o=e._result,i=0;i<t.length;i+=3)r=t[i],a=t[i+n],r?R(n,r,a,o):a(o);e._subscribers.length=0}}function R(e,t,n,r){var a=u(n),o=void 0,i=void 0,l=!0;if(a){try{o=n(r)}catch(e){l=!1,i=e}if(t===o)return void k(t,new TypeError("A promises callback cannot return that same promise."))}else o=r;t._state===D&&(a&&l?A(t,o):!1===l?k(t,i):e===x?C(t,o):e===E&&k(t,o))}var S=0;function O(e){e[y]=S++,e._state=void 0,e._result=void 0,e._subscribers=[]}_.prototype._enumerate=function(e){for(var t=0;this._state===D&&t<e.length;t++)this._eachEntry(e[t],t)},_.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,r=n.resolve;if(r===v){var a,o=void 0,i=void 0,l=!1;try{o=t.then}catch(e){l=!0,i=e}o===b&&t._state!==D?this._settledAt(t._state,e,t._result):"function"!=typeof o?(this._remaining--,this._result[e]=t):n===M?(a=new n(w),l?k(a,i):F(a,t,o),this._willSettleAt(a,e)):this._willSettleAt(new n(function(e){return e(t)}),e)}else this._willSettleAt(r(t),e)},_.prototype._settledAt=function(e,t,n){var r=this.promise;r._state===D&&(this._remaining--,e===E?k(r,n):this._result[t]=n),0===this._remaining&&C(r,this._result)},_.prototype._willSettleAt=function(e,t){var n=this;N(e,void 0,function(e){return n._settledAt(x,t,e)},function(e){return n._settledAt(E,t,e)})};var L=_;function _(e,t){this._instanceConstructor=e,this.promise=new e(w),this.promise[y]||O(this.promise),n(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0!==this.length&&(this.length=this.length||0,this._enumerate(t),0!==this._remaining)||C(this.promise,this._result)):k(this.promise,new Error("Array Methods must be provided an Array"))}P.prototype.catch=function(e){return this.then(null,e)},P.prototype.finally=function(t){var n=this.constructor;return u(t)?this.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){throw e})}):this.then(t,t)};var M=P;function P(e){if(this[y]=S++,this._result=this._state=void 0,this._subscribers=[],w!==e){if("function"!=typeof e)throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof P))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");var t=this;try{e(function(e){A(t,e)},function(e){k(t,e)})}catch(e){k(t,e)}}}return M.prototype.then=b,M.all=function(e){return new L(this,e).promise},M.race=function(a){var o=this;return n(a)?new o(function(e,t){for(var n=a.length,r=0;r<n;r++)o.resolve(a[r]).then(e,t)}):new o(function(e,t){return t(new TypeError("You must pass an array to race."))})},M.resolve=v,M.reject=function(e){var t=new this(w);return k(t,e),t},M._setScheduler=function(e){a=e},M._setAsap=function(e){i=e},M._asap=i,M.polyfill=function(){var e=void 0;if(void 0!==q)e=q;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var n=null;try{n=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===n&&!t.cast)return}e.Promise=M},M.Promise=M},"object"===te(e=e)&&void 0!==t?t.exports=n():"function"==typeof define&&define.amd?define(n):e.ES6Promise=n()}),t=e(function(l){var t,n,r=1e5,p=(t=Object.prototype.toString,n=Object.prototype.hasOwnProperty,{Class:function(e){return t.call(e).replace(/^\[object *|\]$/g,"")},HasProperty:function(e,t){return t in e},HasOwnProperty:function(e,t){return n.call(e,t)},IsCallable:function(e){return"function"==typeof e},ToInt32:function(e){return e>>0},ToUint32:function(e){return e>>>0}}),f=Math.LN2,m=Math.abs,h=Math.floor,g=Math.log,b=Math.min,v=Math.pow,I=Math.round;function a(e,t,n){return e<t?t:n<e?n:e}var o,e,i,u,s,c,d,y,w,D,x,E=Object.getOwnPropertyNames||function(e){if(e!==Object(e))throw new TypeError("Object.getOwnPropertyNames called on non-object");var t,n=[];for(t in e)p.HasOwnProperty(e,t)&&n.push(t);return n};function F(e){if(E&&o)for(var t=E(e),n=0;n<t.length;n+=1)o(e,t[n],{value:e[t[n]],writable:!1,enumerable:!1,configurable:!1})}function B(n){if(o){if(n.length>r)throw new RangeError("Array too large for polyfill");for(var e=0;e<n.length;e+=1)(t=>{o(n,t,{get:function(){return n._getter(t)},set:function(e){n._setter(t,e)},enumerable:!0,configurable:!1})})(e)}}function A(e,t){t=32-t;return e<<t>>t}function C(e,t){t=32-t;return e<<t>>>t}function j(e){return[255&e]}function L(e){return A(e[0],8)}function q(e){return[255&e]}function k(e){return C(e[0],8)}function z(e){return[(e=I(Number(e)))<0?0:255<e?255:255&e]}function V(e){return[e>>8&255,255&e]}function $(e){return A(e[0]<<8|e[1],16)}function H(e){return[e>>8&255,255&e]}function U(e){return C(e[0]<<8|e[1],16)}function G(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]}function W(e){ret