@aquera/nile-elements 0.0.69 → 0.0.70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.nycrc +17 -0
- package/README.md +7 -0
- package/demo/variables.css +1 -1
- package/demo/variables_v2.css +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.iife.js +45 -15
- package/dist/nile-card/nile-card.cjs.js +1 -1
- package/dist/nile-card/nile-card.cjs.js.map +1 -1
- package/dist/nile-card/nile-card.css.cjs.js +1 -1
- package/dist/nile-card/nile-card.css.cjs.js.map +1 -1
- package/dist/nile-card/nile-card.css.esm.js +23 -4
- package/dist/nile-card/nile-card.esm.js +13 -5
- package/dist/nile-checkbox/nile-checkbox.cjs.js +1 -1
- package/dist/nile-checkbox/nile-checkbox.cjs.js.map +1 -1
- package/dist/nile-checkbox/nile-checkbox.esm.js +1 -1
- package/dist/nile-checkbox/nile-checkbox.test.cjs.js +4 -4
- package/dist/nile-checkbox/nile-checkbox.test.cjs.js.map +1 -1
- package/dist/nile-checkbox/nile-checkbox.test.esm.js +9 -4
- package/dist/nile-format-date/index.cjs.js +2 -0
- package/dist/nile-format-date/index.cjs.js.map +1 -0
- package/dist/nile-format-date/index.esm.js +1 -0
- package/dist/nile-format-date/nile-format-date.cjs.js +2 -0
- package/dist/nile-format-date/nile-format-date.cjs.js.map +1 -0
- package/dist/nile-format-date/nile-format-date.css.cjs.js +2 -0
- package/dist/nile-format-date/nile-format-date.css.cjs.js.map +1 -0
- package/dist/nile-format-date/nile-format-date.css.esm.js +5 -0
- package/dist/nile-format-date/nile-format-date.esm.js +5 -0
- package/dist/nile-input/nile-input.css.cjs.js +1 -1
- package/dist/nile-input/nile-input.css.cjs.js.map +1 -1
- package/dist/nile-input/nile-input.css.esm.js +0 -5
- package/dist/nile-tab-group/nile-tab-group.cjs.js +1 -1
- package/dist/nile-tab-group/nile-tab-group.cjs.js.map +1 -1
- package/dist/nile-tab-group/nile-tab-group.esm.js +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +1 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/nile-card/nile-card.css.js +23 -4
- package/dist/src/nile-card/nile-card.css.js.map +1 -1
- package/dist/src/nile-card/nile-card.js +12 -4
- package/dist/src/nile-card/nile-card.js.map +1 -1
- package/dist/src/nile-checkbox/nile-checkbox.d.ts +0 -2
- package/dist/src/nile-checkbox/nile-checkbox.js +0 -4
- package/dist/src/nile-checkbox/nile-checkbox.js.map +1 -1
- package/dist/src/nile-checkbox/nile-checkbox.test.js +34 -0
- package/dist/src/nile-checkbox/nile-checkbox.test.js.map +1 -1
- package/dist/src/nile-format-date/index.d.ts +1 -0
- package/dist/src/nile-format-date/index.js +2 -0
- package/dist/src/nile-format-date/index.js.map +1 -0
- package/dist/src/nile-format-date/nile-format-date.css.d.ts +12 -0
- package/dist/src/nile-format-date/nile-format-date.css.js +17 -0
- package/dist/src/nile-format-date/nile-format-date.css.js.map +1 -0
- package/dist/src/nile-format-date/nile-format-date.d.ts +59 -0
- package/dist/src/nile-format-date/nile-format-date.js +129 -0
- package/dist/src/nile-format-date/nile-format-date.js.map +1 -0
- package/dist/src/nile-input/nile-input.css.js +0 -5
- package/dist/src/nile-input/nile-input.css.js.map +1 -1
- package/dist/src/nile-tab-group/nile-tab-group.js +2 -2
- package/dist/src/nile-tab-group/nile-tab-group.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/index.ts +2 -1
- package/src/nile-card/nile-card.css.ts +23 -4
- package/src/nile-card/nile-card.ts +19 -8
- package/src/nile-checkbox/nile-checkbox.test.ts +43 -1
- package/src/nile-checkbox/nile-checkbox.ts +0 -5
- package/src/nile-format-date/index.ts +1 -0
- package/src/nile-format-date/nile-format-date.css.ts +19 -0
- package/src/nile-format-date/nile-format-date.ts +133 -0
- package/src/nile-input/nile-input.css.ts +0 -5
- package/src/nile-tab-group/nile-tab-group.ts +2 -2
- package/web-test-runner.config.mjs +13 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
System.register(["lit/static-html.js","lit","lit/directives/unsafe-html.js","lit/html.js","lit/directive-helpers.js","./nile-checkbox.cjs.js","tslib","../index-c7ad3b47.cjs.js","lit/decorators.js","./nile-checkbox.css.cjs.js","lit/directives/class-map.js","../internal/default-value.cjs.js","lit/directives/if-defined.js","lit/directives/live.js","../internal/watch.cjs.js","../internal/nile-element.cjs.js","../property-217fe924.cjs.js"],function(_export,_context){"use strict";var t,e,n,i,o,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,_templateObject10,_templateObject11,_templateObject12,r,s,c,u,f,h,d,b,v,m,g,E,O,S,A,D,T,M,P,L,R,_;function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){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 _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function _taggedTemplateLiteral(strings,raw){if(!raw){raw=strings.slice(0);}return Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}));}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function _wrapRegExp(){_wrapRegExp=function _wrapRegExp(e,r){return new BabelRegExp(e,void 0,r);};var e=RegExp.prototype,r=new WeakMap();function BabelRegExp(e,t,p){var o=RegExp(e,t);return r.set(o,p||r.get(e)),_setPrototypeOf(o,BabelRegExp.prototype);}function buildGroups(e,t){var p=r.get(t);return Object.keys(p).reduce(function(r,t){var o=p[t];if("number"==typeof o)r[t]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1<o.length;)i++;r[t]=e[o[i]];}return r;},Object.create(null));}return _inherits(BabelRegExp,RegExp),BabelRegExp.prototype.exec=function(r){var t=e.exec.call(this,r);if(t){t.groups=buildGroups(t,this);var p=t.indices;p&&(p.groups=buildGroups(p,this));}return t;},BabelRegExp.prototype[Symbol.replace]=function(t,p){if("string"==typeof p){var o=r.get(this);return e[Symbol.replace].call(this,t,p.replace(/\$<([^>]+)>/g,function(e,r){var t=o[r];return"$"+(Array.isArray(t)?t.join("$"):t);}));}if("function"==typeof p){var i=this;return e[Symbol.replace].call(this,t,function(){var e=arguments;return"object"!=_typeof(e[e.length-1])&&(e=[].slice.call(e)).push(buildGroups(e,i)),p.apply(this,e);});}return e[Symbol.replace].call(this,t,p);},_wrapRegExp.apply(this,arguments);}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread();}function _nonIterableSpread(){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 _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _iterableToArray(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter);}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function a(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');}function l(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=e.ignoreAttributes?e.ignoreAttributes.filter(function(t){return"string"==typeof t;}):[],i=e.ignoreAttributes?e.ignoreAttributes.filter(function(t){return"string"!=typeof t;}):[],o=[].concat(_toConsumableArray(e.ignoreTags||[]),u),r=e.ignoreChildren||[],a=e.stripEmptyAttributes||f,s=/(&|")/g,c=function c(t){return"&"===t?"&":""";};var l="",d=-1;var p=new Set(),w=new Set();function b(){return" ".repeat(d);}function v(t){return t instanceof Element?t.getAttribute("data-tag-name")||t.localName:t.nodeName.toLowerCase();}function m(t){var e=v(t);return!o.includes(e)&&!r.includes(e)&&!p.has(t);}function g(_ref){var t=_ref.name,e=_ref.value;return a.includes(t)&&""===e.trim();}function y(t,_ref2){var e=_ref2.name,n=_ref2.value;return g({name:e,value:n})?"":"class"===e?" class=\"".concat(function(t){return _toConsumableArray(t.classList.values()).sort().join(" ");}(t),"\""):" ".concat(e,"=\"").concat(n.replace(s,c),"\"");}var x=function x(t,e){return t.name.localeCompare(e.name);};function j(t){var e="";var o=Array.from(t.attributes).filter((r=function(t){return function(e){return!(!n.includes(e.name)&&!g(e)&&!i.find(function(n){if(!n.tags||!n.attributes)throw new Error("An object entry to ignoreAttributes should contain a 'tags' and an 'attributes' property.");return n.tags.includes(v(t))&&n.attributes.includes(e.name);}));};}(t),function(){return!r.apply(void 0,arguments);})).sort(x);var r;if(1===o.length)e=y(t,o[0]);else if(o.length>1){for(var _n=0;_n<o.length;_n+=1)e+="\n".concat(b()," ").concat(y(t,o[_n]));e+="\n".concat(b());}return e;}function E(t,e){var n;if("diff-container"!==v(t)&&!o.includes(v(t))&&!w.has(t))if(w.add(t),t instanceof Text)!function(t,e){var n="",i=t;for(;i&&i instanceof Text;)n+=i.nodeValue,i=e.nextSibling();i&&e.previousSibling(),n=n.trim(),""!==n&&(l+="".concat(b()).concat(n,"\n"));}(t,e);else{if(!(t instanceof Element))throw new Error("Unknown node type: ".concat(t));n=t,l+="".concat(b(),"<").concat(v(n)).concat(j(n),">\n");}}function k(t){var e;o.includes(v(t))||t instanceof Element&&("diff-container"===v(e=t)||h.includes(v(e))||(l+="".concat(b(),"</").concat(v(e),">\n")));}var O;if("string"==typeof t)O=document.createElement("diff-container"),O.innerHTML=t,d=-1;else{if(!(t instanceof Node))throw new Error("Cannot create diffable HTML from: ".concat(t));O=t,d=0;}var S=document.createTreeWalker(O,NodeFilter.SHOW_TEXT+NodeFilter.SHOW_ELEMENT,null,!1);for(;S.currentNode;){var _t=S.currentNode;if(E(_t,S),m(_t)&&S.firstChild())d+=1;else{k(_t);if(!S.nextSibling()){d-=1;var _t2=S.parentNode();if(!_t2)break;p.add(_t2);}}}return l;}function p(t){return null!=t&&"object"==_typeof(t);}function w(_x,_x2,_x3){return _w.apply(this,arguments);}function _w(){_w=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee17(t,e,n){var i,_t4,_o2,_e5;return _regeneratorRuntime().wrap(function _callee17$(_context18){while(1)switch(_context18.prev=_context18.next){case 0:if(!("string"!=typeof d)){_context18.next=2;break;}throw new Error("Unable to execute server commands in a browser not controlled by the test runner. Use the debug option from the watch menu to debug in a controlled browser.");case 2:_context18.prev=2;_context18.next=5;return _context["import"]("../../../../../../../../../__web-dev-server__web-socket.js");case 5:_t4=_context18.sent;i=_t4.sendMessageWaitForResponse;_context18.next=12;break;case 9:_context18.prev=9;_context18.t0=_context18["catch"](2);throw new Error("Could not setup web socket connection. Are you executing this test through Web Test Runner?");case 12:_context18.prev=12;_context18.next=15;return i({type:"wtr-command",sessionId:d,command:t,payload:e});case 15:_o2=_context18.sent;if(_o2.executed){_context18.next=18;break;}throw _e5=n?"Unknown command ".concat(t,". Add the ").concat(n," to your config."):"Unknown command ".concat(t,". Did you install a plugin to handle this command?"),new Error(_e5);case 18:return _context18.abrupt("return",_o2.result);case 21:_context18.prev=21;_context18.t1=_context18["catch"](12);throw new Error("Error while executing command ".concat(t).concat(e?" with payload ".concat(JSON.stringify(e)):"",": ").concat(_context18.t1.message));case 24:case"end":return _context18.stop();}},_callee17,null,[[2,9],[12,21]]);}));return _w.apply(this,arguments);}function y(){return _y.apply(this,arguments);}function _y(){_y=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee18(){var _ref20,_ref20$cache,t,e,n,i,_args18=arguments;return _regeneratorRuntime().wrap(function _callee18$(_context19){while(1)switch(_context19.prev=_context19.next){case 0:_ref20=_args18.length>0&&_args18[0]!==undefined?_args18[0]:{},_ref20$cache=_ref20.cache,t=_ref20$cache===void 0?!0:_ref20$cache;if(!(t&&v)){_context19.next=3;break;}return _context19.abrupt("return",v);case 3:_context19.next=5;return w("get-snapshots",void 0,"snapshotPlugin from @web/test-runner-commands");case 5:e=_context19.sent;if(!("string"!=typeof(e===null||e===void 0?void 0:e.content))){_context19.next=8;break;}throw new Error("Expected a result as string");case 8:n="".concat(g(e.content),"/* ").concat(Math.random()," */");_context19.next=11;return function(specifier){return new Promise(function(r){return r(_context["import"](specifier));});}("data:text/javascript;charset=utf-8,".concat(n));case 11:i=_context19.sent;if(!(!i||!p(i.snapshots))){_context19.next=14;break;}throw new Error("Expected snapshot result to be a module that exports an object.");case 14:return _context19.abrupt("return",(v=i.snapshots,v));case 15:case"end":return _context19.stop();}},_callee18);}));return _y.apply(this,arguments);}function x(t){var e=[];var n;for(n="hook"===t.type?t.ctx.currentTest:t;n&&n.parent;)n.title&&e.push(n.title),n=n.parent;return e.reverse();}function j(){for(var _len=arguments.length,t=new Array(_len),_key=0;_key<_len;_key++){t[_key]=arguments[_key];}switch(t.length){case 2:{var _e=t[0],_n2=t[1];return{message:_e,options:_n2};}case 1:{var _n3=t[0];return(e=_n3)&&null!==e&&"object"==_typeof(e)&&("ignoreAttributes"in e||"ignoreTags"in e||"ignoreChildren"in e||"stripEmptyAttributes"in e)?{options:_n3}:{message:_n3};}default:return{};}var e;}function k(_x4,_x5){return _k.apply(this,arguments);}function _k(){_k=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee20(t,e){return _regeneratorRuntime().wrap(function _callee20$(_context21){while(1)switch(_context21.prev=_context21.next){case 0:_context21.t0=E;if(_context21.t0){_context21.next=4;break;}_context21.next=4;return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee19(){return _regeneratorRuntime().wrap(function _callee19$(_context20){while(1)switch(_context20.prev=_context20.next){case 0:if(!window.axe){_context20.next=4;break;}E=window.axe;_context20.next=13;break;case 4:if(!("function"!=typeof require)){_context20.next=12;break;}_context20.next=7;return _context["import"]("../axe.min-1a358f34.cjs.js");case 7:if(window.axe){_context20.next=9;break;}throw new Error("Error importing axe-core/axe.min.js, are you using a bundler or build tool that doesnt handle es modules?");case 9:E=window.axe;_context20.next=13;break;case 12:E=require("axe-core/axe.min.js");case 13:case"end":return _context20.stop();}},_callee19);}))();case 4:return _context21.abrupt("return",new Promise(function(n,i){E.run(t,e,function(t,e){t?i(new Error(t)):n(e);});}));case 5:case"end":return _context21.stop();}},_callee20);}));return _k.apply(this,arguments);}function q(t,e){return new Promise(function(n){t.addEventListener(e,function i(o){n(o),t.removeEventListener(e,i);});});}function $(_x10){return _$.apply(this,arguments);}function _$(){_$=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee21(t){var e,n;return _regeneratorRuntime().wrap(function _callee21$(_context22){while(1)switch(_context22.prev=_context22.next){case 0:e=!1,n=t&&t.updateComplete;_context22.t0=M(n);if(!_context22.t0){_context22.next=6;break;}_context22.next=5;return n;case 5:e=!0;case 6:n=!(!t||!t.componentOnReady)&&t.componentOnReady();_context22.t1=M(n);if(!_context22.t1){_context22.next=12;break;}_context22.next=11;return n;case 11:e=!0;case 12:_context22.t2=e;if(_context22.t2){_context22.next=16;break;}_context22.next=16;return new Promise(function(t){requestAnimationFrame(function(){return t();});});case 16:window.ShadyDOM&&"function"==typeof window.ShadyDOM.flush&&window.ShadyDOM.flush();return _context22.abrupt("return",t);case 18:case"end":return _context22.stop();}},_callee21);}));return _$.apply(this,arguments);}function N(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:document.createElement("div");return document.body.appendChild(t),P.push(t),t;}function F(){P&&P.forEach(function(t){document.body.removeChild(t);}),P.length=0;}function C(t){return o(t)||t instanceof Node||"number"==typeof t||"boolean"==typeof t||"string"==typeof t;}function I(_x11){return _I.apply(this,arguments);}function _I(){_I=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee22(t){var e,n,_Array$from$filter3,_Array$from$filter4,_t5,_args22=arguments;return _regeneratorRuntime().wrap(function _callee22$(_context23){while(1)switch(_context23.prev=_context23.next){case 0:e=_args22.length>1&&_args22[1]!==undefined?_args22[1]:{};_context23.t0=function(t){var _e$render;var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=arguments.length>2?arguments[2]:undefined;var r=N(e.parentNode);if(((_e$render=e.render)!==null&&_e$render!==void 0?_e$render:i)(e.scopedElements?n(t,e.scopedElements):t,r),o(t))return r.firstElementChild;var _Array$from$filter=Array.from(r.childNodes).filter(_),_Array$from$filter2=_slicedToArray(_Array$from$filter,1),a=_Array$from$filter2[0];return a;};_context23.t1=t;_context23.t2=e;if(!e.scopedElements){_context23.next=10;break;}_context23.next=7;return _context["import"]("../scopedElementsWrapper-2fa3aa8b.cjs.js").then(function(t){return t.getScopedElementsTemplate;});case 7:_context23.t3=_context23.sent;_context23.next=11;break;case 10:_context23.t3=void 0;case 11:_context23.t4=_context23.t3;n=(0,_context23.t0)(_context23.t1,_context23.t2,_context23.t4);_context23.next=15;return $(n);case 15:if(!e.scopedElements){_context23.next=20;break;}_Array$from$filter3=Array.from(n.shadowRoot.childNodes).filter(_),_Array$from$filter4=_slicedToArray(_Array$from$filter3,1),_t5=_Array$from$filter4[0];_context23.next=19;return $(_t5);case 19:return _context23.abrupt("return",_t5);case 20:return _context23.abrupt("return",n);case 21:case"end":return _context23.stop();}},_callee22);}));return _I.apply(this,arguments);}function U(_x12){return _U.apply(this,arguments);}function _U(){_U=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee23(t){var i,o,_args23=arguments;return _regeneratorRuntime().wrap(function _callee23$(_context24){while(1)switch(_context24.prev=_context24.next){case 0:i=_args23.length>1&&_args23[1]!==undefined?_args23[1]:{};if(!i.scopedElements){_context24.next=3;break;}return _context24.abrupt("return",I(e(_templateObject12||(_templateObject12=_taggedTemplateLiteral(["",""])),n(t)),i));case 3:o=function(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=N(e.parentNode);return n.innerHTML=t,n.children[0];}(t,i);_context24.next=6;return $(o);case 6:return _context24.abrupt("return",o);case 7:case"end":return _context24.stop();}},_callee23);}));return _U.apply(this,arguments);}function W(_x13,_x14){return _W.apply(this,arguments);}function _W(){_W=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee24(t,e){var n;return _regeneratorRuntime().wrap(function _callee24$(_context25){while(1)switch(_context25.prev=_context25.next){case 0:if(!("string"==typeof t)){_context25.next=2;break;}return _context25.abrupt("return",U(t,e));case 2:if(!(e!==null&&e!==void 0&&e.render||(L(n=t)?_toConsumableArray(n).every(C):C(n)))){_context25.next=4;break;}return _context25.abrupt("return",I(t,e));case 4:throw new Error("Invalid template provided - string or lit-html TemplateResult is supported");case 5:case"end":return _context25.stop();}},_callee24);}));return _W.apply(this,arguments);}return{setters:[function(_litStaticHtmlJs){t=_litStaticHtmlJs.html;},function(_lit){e=_lit.html;},function(_litDirectivesUnsafeHtmlJs){n=_litDirectivesUnsafeHtmlJs.unsafeHTML;},function(_litHtmlJs){i=_litHtmlJs.render;},function(_litDirectiveHelpersJs){o=_litDirectiveHelpersJs.isTemplateResult;},function(_nileCheckboxCjsJs){},function(_tslib){},function(_index001CjsJs){},function(_litDecoratorsJs){},function(_nileCheckboxCssCjsJs){},function(_litDirectivesClassMapJs){},function(_internalDefaultValueCjsJs){},function(_litDirectivesIfDefinedJs){},function(_litDirectivesLiveJs){},function(_internalWatchCjsJs){},function(_internalNileElementCjsJs){},function(_property002CjsJs){}],execute:function execute(){r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};s=function t(e,n,i){function o(s,c){if(!n[s]){if(!e[s]){if(!c&&a)return a(s);if(r)return r(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u;}var f=n[s]={exports:{}};e[s][0].call(f.exports,function(t){return o(e[s][1][t]||t);},f,f.exports,t,e,n,i);}return n[s].exports;}for(var r=a,s=0;s<i.length;s++)o(i[s]);return o;}({1:[function(t,e,n){e.exports=t("./lib/chai");},{"./lib/chai":2}],2:[function(t,e,n){/*!
|
1
|
+
System.register(["lit/static-html.js","lit","lit/directives/unsafe-html.js","lit/html.js","lit/directive-helpers.js","./nile-checkbox.cjs.js","tslib","../index-c7ad3b47.cjs.js","lit/decorators.js","./nile-checkbox.css.cjs.js","lit/directives/class-map.js","../internal/default-value.cjs.js","lit/directives/if-defined.js","lit/directives/live.js","../internal/watch.cjs.js","../internal/nile-element.cjs.js","../property-217fe924.cjs.js"],function(_export,_context){"use strict";var t,e,n,i,o,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,_templateObject10,_templateObject11,_templateObject12,_templateObject13,_templateObject14,_templateObject15,_templateObject16,r,s,c,u,f,h,d,b,m,v,g,k,O,S,A,D,T,M,P,L,_,R;function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){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 _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function _taggedTemplateLiteral(strings,raw){if(!raw){raw=strings.slice(0);}return Object.freeze(Object.defineProperties(strings,{raw:{value:Object.freeze(raw)}}));}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function _wrapRegExp(){_wrapRegExp=function _wrapRegExp(e,r){return new BabelRegExp(e,void 0,r);};var e=RegExp.prototype,r=new WeakMap();function BabelRegExp(e,t,p){var o=RegExp(e,t);return r.set(o,p||r.get(e)),_setPrototypeOf(o,BabelRegExp.prototype);}function buildGroups(e,t){var p=r.get(t);return Object.keys(p).reduce(function(r,t){var o=p[t];if("number"==typeof o)r[t]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1<o.length;)i++;r[t]=e[o[i]];}return r;},Object.create(null));}return _inherits(BabelRegExp,RegExp),BabelRegExp.prototype.exec=function(r){var t=e.exec.call(this,r);if(t){t.groups=buildGroups(t,this);var p=t.indices;p&&(p.groups=buildGroups(p,this));}return t;},BabelRegExp.prototype[Symbol.replace]=function(t,p){if("string"==typeof p){var o=r.get(this);return e[Symbol.replace].call(this,t,p.replace(/\$<([^>]+)>/g,function(e,r){var t=o[r];return"$"+(Array.isArray(t)?t.join("$"):t);}));}if("function"==typeof p){var i=this;return e[Symbol.replace].call(this,t,function(){var e=arguments;return"object"!=_typeof(e[e.length-1])&&(e=[].slice.call(e)).push(buildGroups(e,i)),p.apply(this,e);});}return e[Symbol.replace].call(this,t,p);},_wrapRegExp.apply(this,arguments);}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread();}function _nonIterableSpread(){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 _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _iterableToArray(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter);}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function a(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');}function l(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=e.ignoreAttributes?e.ignoreAttributes.filter(function(t){return"string"==typeof t;}):[],i=e.ignoreAttributes?e.ignoreAttributes.filter(function(t){return"string"!=typeof t;}):[],o=[].concat(_toConsumableArray(e.ignoreTags||[]),u),r=e.ignoreChildren||[],a=e.stripEmptyAttributes||f,s=/(&|")/g,c=function c(t){return"&"===t?"&":""";};var l="",d=-1;var p=new Set(),w=new Set();function b(){return" ".repeat(d);}function m(t){return t instanceof Element?t.getAttribute("data-tag-name")||t.localName:t.nodeName.toLowerCase();}function v(t){var e=m(t);return!o.includes(e)&&!r.includes(e)&&!p.has(t);}function g(_ref){var t=_ref.name,e=_ref.value;return a.includes(t)&&""===e.trim();}function x(t,_ref2){var e=_ref2.name,n=_ref2.value;return g({name:e,value:n})?"":"class"===e?" class=\"".concat(function(t){return _toConsumableArray(t.classList.values()).sort().join(" ");}(t),"\""):" ".concat(e,"=\"").concat(n.replace(s,c),"\"");}var y=function y(t,e){return t.name.localeCompare(e.name);};function j(t){var e="";var o=Array.from(t.attributes).filter((r=function(t){return function(e){return!(!n.includes(e.name)&&!g(e)&&!i.find(function(n){if(!n.tags||!n.attributes)throw new Error("An object entry to ignoreAttributes should contain a 'tags' and an 'attributes' property.");return n.tags.includes(m(t))&&n.attributes.includes(e.name);}));};}(t),function(){return!r.apply(void 0,arguments);})).sort(y);var r;if(1===o.length)e=x(t,o[0]);else if(o.length>1){for(var _n=0;_n<o.length;_n+=1)e+="\n".concat(b()," ").concat(x(t,o[_n]));e+="\n".concat(b());}return e;}function k(t,e){var n;if("diff-container"!==m(t)&&!o.includes(m(t))&&!w.has(t))if(w.add(t),t instanceof Text)!function(t,e){var n="",i=t;for(;i&&i instanceof Text;)n+=i.nodeValue,i=e.nextSibling();i&&e.previousSibling(),n=n.trim(),""!==n&&(l+="".concat(b()).concat(n,"\n"));}(t,e);else{if(!(t instanceof Element))throw new Error("Unknown node type: ".concat(t));n=t,l+="".concat(b(),"<").concat(m(n)).concat(j(n),">\n");}}function E(t){var e;o.includes(m(t))||t instanceof Element&&("diff-container"===m(e=t)||h.includes(m(e))||(l+="".concat(b(),"</").concat(m(e),">\n")));}var O;if("string"==typeof t)O=document.createElement("diff-container"),O.innerHTML=t,d=-1;else{if(!(t instanceof Node))throw new Error("Cannot create diffable HTML from: ".concat(t));O=t,d=0;}var S=document.createTreeWalker(O,NodeFilter.SHOW_TEXT+NodeFilter.SHOW_ELEMENT,null,!1);for(;S.currentNode;){var _t=S.currentNode;if(k(_t,S),v(_t)&&S.firstChild())d+=1;else{E(_t);if(!S.nextSibling()){d-=1;var _t2=S.parentNode();if(!_t2)break;p.add(_t2);}}}return l;}function p(t){return null!=t&&"object"==_typeof(t);}function w(_x,_x2,_x3){return _w.apply(this,arguments);}function _w(){_w=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee21(t,e,n){var i,_t4,_o2,_e5;return _regeneratorRuntime().wrap(function _callee21$(_context22){while(1)switch(_context22.prev=_context22.next){case 0:if(!("string"!=typeof d)){_context22.next=2;break;}throw new Error("Unable to execute server commands in a browser not controlled by the test runner. Use the debug option from the watch menu to debug in a controlled browser.");case 2:_context22.prev=2;_context22.next=5;return _context["import"]("../../../../../../../../../__web-dev-server__web-socket.js");case 5:_t4=_context22.sent;i=_t4.sendMessageWaitForResponse;_context22.next=12;break;case 9:_context22.prev=9;_context22.t0=_context22["catch"](2);throw new Error("Could not setup web socket connection. Are you executing this test through Web Test Runner?");case 12:_context22.prev=12;_context22.next=15;return i({type:"wtr-command",sessionId:d,command:t,payload:e});case 15:_o2=_context22.sent;if(_o2.executed){_context22.next=18;break;}throw _e5=n?"Unknown command ".concat(t,". Add the ").concat(n," to your config."):"Unknown command ".concat(t,". Did you install a plugin to handle this command?"),new Error(_e5);case 18:return _context22.abrupt("return",_o2.result);case 21:_context22.prev=21;_context22.t1=_context22["catch"](12);throw new Error("Error while executing command ".concat(t).concat(e?" with payload ".concat(JSON.stringify(e)):"",": ").concat(_context22.t1.message));case 24:case"end":return _context22.stop();}},_callee21,null,[[2,9],[12,21]]);}));return _w.apply(this,arguments);}function x(){return _x4.apply(this,arguments);}function _x4(){_x4=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee22(){var _ref24,_ref24$cache,t,e,n,i,_args22=arguments;return _regeneratorRuntime().wrap(function _callee22$(_context23){while(1)switch(_context23.prev=_context23.next){case 0:_ref24=_args22.length>0&&_args22[0]!==undefined?_args22[0]:{},_ref24$cache=_ref24.cache,t=_ref24$cache===void 0?!0:_ref24$cache;if(!(t&&m)){_context23.next=3;break;}return _context23.abrupt("return",m);case 3:_context23.next=5;return w("get-snapshots",void 0,"snapshotPlugin from @web/test-runner-commands");case 5:e=_context23.sent;if(!("string"!=typeof(e===null||e===void 0?void 0:e.content))){_context23.next=8;break;}throw new Error("Expected a result as string");case 8:n="".concat(g(e.content),"/* ").concat(Math.random()," */");_context23.next=11;return function(specifier){return new Promise(function(r){return r(_context["import"](specifier));});}("data:text/javascript;charset=utf-8,".concat(n));case 11:i=_context23.sent;if(!(!i||!p(i.snapshots))){_context23.next=14;break;}throw new Error("Expected snapshot result to be a module that exports an object.");case 14:return _context23.abrupt("return",(m=i.snapshots,m));case 15:case"end":return _context23.stop();}},_callee22);}));return _x4.apply(this,arguments);}function y(t){var e=[];var n;for(n="hook"===t.type?t.ctx.currentTest:t;n&&n.parent;)n.title&&e.push(n.title),n=n.parent;return e.reverse();}function j(){for(var _len=arguments.length,t=new Array(_len),_key=0;_key<_len;_key++){t[_key]=arguments[_key];}switch(t.length){case 2:{var _e=t[0],_n2=t[1];return{message:_e,options:_n2};}case 1:{var _n3=t[0];return(e=_n3)&&null!==e&&"object"==_typeof(e)&&("ignoreAttributes"in e||"ignoreTags"in e||"ignoreChildren"in e||"stripEmptyAttributes"in e)?{options:_n3}:{message:_n3};}default:return{};}var e;}function E(_x5,_x6){return _E.apply(this,arguments);}function _E(){_E=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee24(t,e){return _regeneratorRuntime().wrap(function _callee24$(_context25){while(1)switch(_context25.prev=_context25.next){case 0:_context25.t0=k;if(_context25.t0){_context25.next=4;break;}_context25.next=4;return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee23(){return _regeneratorRuntime().wrap(function _callee23$(_context24){while(1)switch(_context24.prev=_context24.next){case 0:if(!window.axe){_context24.next=4;break;}k=window.axe;_context24.next=13;break;case 4:if(!("function"!=typeof require)){_context24.next=12;break;}_context24.next=7;return _context["import"]("../axe.min-1a358f34.cjs.js");case 7:if(window.axe){_context24.next=9;break;}throw new Error("Error importing axe-core/axe.min.js, are you using a bundler or build tool that doesnt handle es modules?");case 9:k=window.axe;_context24.next=13;break;case 12:k=require("axe-core/axe.min.js");case 13:case"end":return _context24.stop();}},_callee23);}))();case 4:return _context25.abrupt("return",new Promise(function(n,i){k.run(t,e,function(t,e){t?i(new Error(t)):n(e);});}));case 5:case"end":return _context25.stop();}},_callee24);}));return _E.apply(this,arguments);}function q(t,e){return new Promise(function(n){t.addEventListener(e,function i(o){n(o),t.removeEventListener(e,i);});});}function $(_x11){return _$.apply(this,arguments);}function _$(){_$=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee25(t){var e,n;return _regeneratorRuntime().wrap(function _callee25$(_context26){while(1)switch(_context26.prev=_context26.next){case 0:e=!1,n=t&&t.updateComplete;_context26.t0=M(n);if(!_context26.t0){_context26.next=6;break;}_context26.next=5;return n;case 5:e=!0;case 6:n=!(!t||!t.componentOnReady)&&t.componentOnReady();_context26.t1=M(n);if(!_context26.t1){_context26.next=12;break;}_context26.next=11;return n;case 11:e=!0;case 12:_context26.t2=e;if(_context26.t2){_context26.next=16;break;}_context26.next=16;return new Promise(function(t){requestAnimationFrame(function(){return t();});});case 16:window.ShadyDOM&&"function"==typeof window.ShadyDOM.flush&&window.ShadyDOM.flush();return _context26.abrupt("return",t);case 18:case"end":return _context26.stop();}},_callee25);}));return _$.apply(this,arguments);}function N(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:document.createElement("div");return document.body.appendChild(t),P.push(t),t;}function F(){P&&P.forEach(function(t){document.body.removeChild(t);}),P.length=0;}function C(t){return o(t)||t instanceof Node||"number"==typeof t||"boolean"==typeof t||"string"==typeof t;}function I(_x12){return _I.apply(this,arguments);}function _I(){_I=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee26(t){var e,n,_Array$from$filter3,_Array$from$filter4,_t5,_args26=arguments;return _regeneratorRuntime().wrap(function _callee26$(_context27){while(1)switch(_context27.prev=_context27.next){case 0:e=_args26.length>1&&_args26[1]!==undefined?_args26[1]:{};_context27.t0=function(t){var _e$render;var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=arguments.length>2?arguments[2]:undefined;var r=N(e.parentNode);if(((_e$render=e.render)!==null&&_e$render!==void 0?_e$render:i)(e.scopedElements?n(t,e.scopedElements):t,r),o(t))return r.firstElementChild;var _Array$from$filter=Array.from(r.childNodes).filter(R),_Array$from$filter2=_slicedToArray(_Array$from$filter,1),a=_Array$from$filter2[0];return a;};_context27.t1=t;_context27.t2=e;if(!e.scopedElements){_context27.next=10;break;}_context27.next=7;return _context["import"]("../scopedElementsWrapper-2fa3aa8b.cjs.js").then(function(t){return t.getScopedElementsTemplate;});case 7:_context27.t3=_context27.sent;_context27.next=11;break;case 10:_context27.t3=void 0;case 11:_context27.t4=_context27.t3;n=(0,_context27.t0)(_context27.t1,_context27.t2,_context27.t4);_context27.next=15;return $(n);case 15:if(!e.scopedElements){_context27.next=20;break;}_Array$from$filter3=Array.from(n.shadowRoot.childNodes).filter(R),_Array$from$filter4=_slicedToArray(_Array$from$filter3,1),_t5=_Array$from$filter4[0];_context27.next=19;return $(_t5);case 19:return _context27.abrupt("return",_t5);case 20:return _context27.abrupt("return",n);case 21:case"end":return _context27.stop();}},_callee26);}));return _I.apply(this,arguments);}function U(_x13){return _U.apply(this,arguments);}function _U(){_U=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee27(t){var i,o,_args27=arguments;return _regeneratorRuntime().wrap(function _callee27$(_context28){while(1)switch(_context28.prev=_context28.next){case 0:i=_args27.length>1&&_args27[1]!==undefined?_args27[1]:{};if(!i.scopedElements){_context28.next=3;break;}return _context28.abrupt("return",I(e(_templateObject16||(_templateObject16=_taggedTemplateLiteral(["",""])),n(t)),i));case 3:o=function(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=N(e.parentNode);return n.innerHTML=t,n.children[0];}(t,i);_context28.next=6;return $(o);case 6:return _context28.abrupt("return",o);case 7:case"end":return _context28.stop();}},_callee27);}));return _U.apply(this,arguments);}function W(_x14,_x15){return _W.apply(this,arguments);}function _W(){_W=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee28(t,e){var n;return _regeneratorRuntime().wrap(function _callee28$(_context29){while(1)switch(_context29.prev=_context29.next){case 0:if(!("string"==typeof t)){_context29.next=2;break;}return _context29.abrupt("return",U(t,e));case 2:if(!(e!==null&&e!==void 0&&e.render||(L(n=t)?_toConsumableArray(n).every(C):C(n)))){_context29.next=4;break;}return _context29.abrupt("return",I(t,e));case 4:throw new Error("Invalid template provided - string or lit-html TemplateResult is supported");case 5:case"end":return _context29.stop();}},_callee28);}));return _W.apply(this,arguments);}return{setters:[function(_litStaticHtmlJs){t=_litStaticHtmlJs.html;},function(_lit){e=_lit.html;},function(_litDirectivesUnsafeHtmlJs){n=_litDirectivesUnsafeHtmlJs.unsafeHTML;},function(_litHtmlJs){i=_litHtmlJs.render;},function(_litDirectiveHelpersJs){o=_litDirectiveHelpersJs.isTemplateResult;},function(_nileCheckboxCjsJs){},function(_tslib){},function(_index001CjsJs){},function(_litDecoratorsJs){},function(_nileCheckboxCssCjsJs){},function(_litDirectivesClassMapJs){},function(_internalDefaultValueCjsJs){},function(_litDirectivesIfDefinedJs){},function(_litDirectivesLiveJs){},function(_internalWatchCjsJs){},function(_internalNileElementCjsJs){},function(_property002CjsJs){}],execute:function execute(){r="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};s=function t(e,n,i){function o(s,c){if(!n[s]){if(!e[s]){if(!c&&a)return a(s);if(r)return r(s,!0);var u=new Error("Cannot find module '"+s+"'");throw u.code="MODULE_NOT_FOUND",u;}var f=n[s]={exports:{}};e[s][0].call(f.exports,function(t){return o(e[s][1][t]||t);},f,f.exports,t,e,n,i);}return n[s].exports;}for(var r=a,s=0;s<i.length;s++)o(i[s]);return o;}({1:[function(t,e,n){e.exports=t("./lib/chai");},{"./lib/chai":2}],2:[function(t,e,n){/*!
|
2
2
|
* chai
|
3
3
|
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
4
4
|
* MIT Licensed
|
@@ -78,7 +78,7 @@ System.register(["lit/static-html.js","lit","lit/directives/unsafe-html.js","lit
|
|
78
78
|
* http://chaijs.com
|
79
79
|
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
80
80
|
* MIT Licensed
|
81
|
-
*/e.exports=function(t,e){var n=t.Assertion,i=t.AssertionError,o=e.flag;function r(t,n){n&&o(this,"message",n),t=t.toLowerCase();var i=o(this,"object"),r=~["a","e","i","o","u"].indexOf(t.charAt(0))?"an ":"a ";this.assert(t===e.type(i).toLowerCase(),"expected #{this} to be "+r+t,"expected #{this} not to be "+r+t);}function a(t,n){return e.isNaN(t)&&e.isNaN(n)||t===n;}function s(){o(this,"contains",!0);}function c(t,r){r&&o(this,"message",r);var s=o(this,"object"),c=e.type(s).toLowerCase(),u=o(this,"message"),f=o(this,"negate"),h=o(this,"ssfi"),l=o(this,"deep"),d=l?"deep ":"";u=u?u+": ":"";var p=!1;switch(c){case"string":p=-1!==s.indexOf(t);break;case"weakset":if(l)throw new i(u+"unable to use .deep.include with WeakSet",void 0,h);p=s.has(t);break;case"map":var w=l?e.eql:a;s.forEach(function(e){p=p||w(e,t);});break;case"set":l?s.forEach(function(n){p=p||e.eql(n,t);}):p=s.has(t);break;case"array":p=l?s.some(function(n){return e.eql(n,t);}):-1!==s.indexOf(t);break;default:if(t!==Object(t))throw new i(u+"the given combination of arguments ("+c+" and "+e.type(t).toLowerCase()+") is invalid for this assertion. You can use an array, a map, an object, a set, a string, or a weakset instead of a "+e.type(t).toLowerCase(),void 0,h);var b=Object.keys(t),v=null,m=0;if(b.forEach(function(r){var a=new n(s);if(e.transferFlags(this,a,!0),o(a,"lockSsfi",!0),f&&1!==b.length)try{a.property(r,t[r]);}catch(t){if(!e.checkError.compatibleConstructor(t,i))throw t;null===v&&(v=t),m++;}else a.property(r,t[r]);},this),f&&b.length>1&&m===b.length)throw v;return;}this.assert(p,"expected #{this} to "+d+"include "+e.inspect(t),"expected #{this} to not "+d+"include "+e.inspect(t));}function u(){var t=o(this,"object");this.assert(null!=t,"expected #{this} to exist","expected #{this} to not exist");}function f(){var t=o(this,"object"),n=e.type(t);this.assert("Arguments"===n,"expected #{this} to be arguments but got "+n,"expected #{this} to not be arguments");}function h(t,e){e&&o(this,"message",e);var n=o(this,"object");if(o(this,"deep")){var i=o(this,"lockSsfi");o(this,"lockSsfi",!0),this.eql(t),o(this,"lockSsfi",i);}else this.assert(t===n,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",t,this._obj,!0);}function l(t,n){n&&o(this,"message",n),this.assert(e.eql(t,o(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",t,this._obj,!0);}function d(t,r){r&&o(this,"message",r);var a,s=o(this,"object"),c=o(this,"doLength"),u=o(this,"message"),f=u?u+": ":"",h=o(this,"ssfi"),l=e.type(s).toLowerCase(),d=e.type(t).toLowerCase(),p=!0;if(c&&"map"!==l&&"set"!==l&&new n(s,u,h,!0).to.have.property("length"),c||"date"!==l||"date"===d?"number"===d||!c&&"number"!==l?c||"date"===l||"number"===l?p=!1:a=f+"expected "+("string"===l?"'"+s+"'":s)+" to be a number or a date":a=f+"the argument to above must be a number":a=f+"the argument to above must be a date",p)throw new i(a,void 0,h);if(c){var w,b="length";"map"===l||"set"===l?(b="size",w=s.size):w=s.length,this.assert(w>t,"expected #{this} to have a "+b+" above #{exp} but got #{act}","expected #{this} to not have a "+b+" above #{exp}",t,w);}else this.assert(s>t,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",t);}function p(t,r){r&&o(this,"message",r);var a,s=o(this,"object"),c=o(this,"doLength"),u=o(this,"message"),f=u?u+": ":"",h=o(this,"ssfi"),l=e.type(s).toLowerCase(),d=e.type(t).toLowerCase(),p=!0;if(c&&"map"!==l&&"set"!==l&&new n(s,u,h,!0).to.have.property("length"),c||"date"!==l||"date"===d?"number"===d||!c&&"number"!==l?c||"date"===l||"number"===l?p=!1:a=f+"expected "+("string"===l?"'"+s+"'":s)+" to be a number or a date":a=f+"the argument to least must be a number":a=f+"the argument to least must be a date",p)throw new i(a,void 0,h);if(c){var w,b="length";"map"===l||"set"===l?(b="size",w=s.size):w=s.length,this.assert(w>=t,"expected #{this} to have a "+b+" at least #{exp} but got #{act}","expected #{this} to have a "+b+" below #{exp}",t,w);}else this.assert(s>=t,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",t);}function w(t,r){r&&o(this,"message",r);var a,s=o(this,"object"),c=o(this,"doLength"),u=o(this,"message"),f=u?u+": ":"",h=o(this,"ssfi"),l=e.type(s).toLowerCase(),d=e.type(t).toLowerCase(),p=!0;if(c&&"map"!==l&&"set"!==l&&new n(s,u,h,!0).to.have.property("length"),c||"date"!==l||"date"===d?"number"===d||!c&&"number"!==l?c||"date"===l||"number"===l?p=!1:a=f+"expected "+("string"===l?"'"+s+"'":s)+" to be a number or a date":a=f+"the argument to below must be a number":a=f+"the argument to below must be a date",p)throw new i(a,void 0,h);if(c){var w,b="length";"map"===l||"set"===l?(b="size",w=s.size):w=s.length,this.assert(w<t,"expected #{this} to have a "+b+" below #{exp} but got #{act}","expected #{this} to not have a "+b+" below #{exp}",t,w);}else this.assert(s<t,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",t);}function b(t,r){r&&o(this,"message",r);var a,s=o(this,"object"),c=o(this,"doLength"),u=o(this,"message"),f=u?u+": ":"",h=o(this,"ssfi"),l=e.type(s).toLowerCase(),d=e.type(t).toLowerCase(),p=!0;if(c&&"map"!==l&&"set"!==l&&new n(s,u,h,!0).to.have.property("length"),c||"date"!==l||"date"===d?"number"===d||!c&&"number"!==l?c||"date"===l||"number"===l?p=!1:a=f+"expected "+("string"===l?"'"+s+"'":s)+" to be a number or a date":a=f+"the argument to most must be a number":a=f+"the argument to most must be a date",p)throw new i(a,void 0,h);if(c){var w,b="length";"map"===l||"set"===l?(b="size",w=s.size):w=s.length,this.assert(w<=t,"expected #{this} to have a "+b+" at most #{exp} but got #{act}","expected #{this} to have a "+b+" above #{exp}",t,w);}else this.assert(s<=t,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",t);}function v(t,n){n&&o(this,"message",n);var r=o(this,"object"),a=o(this,"ssfi"),s=o(this,"message");try{var c=r instanceof t;}catch(n){if(n instanceof TypeError)throw new i((s=s?s+": ":"")+"The instanceof assertion needs a constructor but "+e.type(t)+" was given.",void 0,a);throw n;}var u=e.getName(t);null===u&&(u="an unnamed constructor"),this.assert(c,"expected #{this} to be an instance of "+u,"expected #{this} to not be an instance of "+u);}function m(t,n,r){r&&o(this,"message",r);var a=o(this,"nested"),s=o(this,"own"),c=o(this,"message"),u=o(this,"object"),f=o(this,"ssfi"),h=_typeof(t);if(c=c?c+": ":"",a){if("string"!==h)throw new i(c+"the argument to property must be a string when using nested syntax",void 0,f);}else if("string"!==h&&"number"!==h&&"symbol"!==h)throw new i(c+"the argument to property must be a string, number, or symbol",void 0,f);if(a&&s)throw new i(c+'The "nested" and "own" flags cannot be combined.',void 0,f);if(null==u)throw new i(c+"Target cannot be null or undefined.",void 0,f);var l,d=o(this,"deep"),p=o(this,"negate"),w=a?e.getPathInfo(u,t):null,b=a?w.value:u[t],v="";d&&(v+="deep "),s&&(v+="own "),a&&(v+="nested "),v+="property ",l=s?Object.prototype.hasOwnProperty.call(u,t):a?w.exists:e.hasProperty(u,t),p&&1!==arguments.length||this.assert(l,"expected #{this} to have "+v+e.inspect(t),"expected #{this} to not have "+v+e.inspect(t)),arguments.length>1&&this.assert(l&&(d?e.eql(n,b):n===b),"expected #{this} to have "+v+e.inspect(t)+" of #{exp}, but got #{act}","expected #{this} to not have "+v+e.inspect(t)+" of #{act}",n,b),o(this,"object",b);}function g(t,e,n){o(this,"own",!0),m.apply(this,arguments);}function y(t,n,i){"string"==typeof n&&(i=n,n=null),i&&o(this,"message",i);var r=o(this,"object"),a=Object.getOwnPropertyDescriptor(Object(r),t);a&&n?this.assert(e.eql(n,a),"expected the own property descriptor for "+e.inspect(t)+" on #{this} to match "+e.inspect(n)+", got "+e.inspect(a),"expected the own property descriptor for "+e.inspect(t)+" on #{this} to not match "+e.inspect(n),n,a,!0):this.assert(a,"expected #{this} to have an own property descriptor for "+e.inspect(t),"expected #{this} to not have an own property descriptor for "+e.inspect(t)),o(this,"object",a);}function x(){o(this,"doLength",!0);}function j(t,i){i&&o(this,"message",i);var r,a=o(this,"object"),s=e.type(a).toLowerCase(),c=o(this,"message"),u=o(this,"ssfi"),f="length";switch(s){case"map":case"set":f="size",r=a.size;break;default:new n(a,c,u,!0).to.have.property("length"),r=a.length;}this.assert(r==t,"expected #{this} to have a "+f+" of #{exp} but got #{act}","expected #{this} to not have a "+f+" of #{act}",t,r);}function E(t,e){e&&o(this,"message",e);var n=o(this,"object");this.assert(t.exec(n),"expected #{this} to match "+t,"expected #{this} not to match "+t);}function k(t){var n,r,a=o(this,"object"),s=e.type(a),c=e.type(t),u=o(this,"ssfi"),f=o(this,"deep"),h="",l=!0,d=o(this,"message"),p=(d=d?d+": ":"")+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if("Map"===s||"Set"===s)h=f?"deeply ":"",r=[],a.forEach(function(t,e){r.push(e);}),"Array"!==c&&(t=Array.prototype.slice.call(arguments));else{switch(r=e.getOwnEnumerableProperties(a),c){case"Array":if(arguments.length>1)throw new i(p,void 0,u);break;case"Object":if(arguments.length>1)throw new i(p,void 0,u);t=Object.keys(t);break;default:t=Array.prototype.slice.call(arguments);}t=t.map(function(t){return"symbol"==_typeof(t)?t:String(t);});}if(!t.length)throw new i(d+"keys required",void 0,u);var w=t.length,b=o(this,"any"),v=o(this,"all"),m=t;if(b||v||(v=!0),b&&(l=m.some(function(t){return r.some(function(n){return f?e.eql(t,n):t===n;});})),v&&(l=m.every(function(t){return r.some(function(n){return f?e.eql(t,n):t===n;});}),o(this,"contains")||(l=l&&t.length==r.length)),w>1){var g=(t=t.map(function(t){return e.inspect(t);})).pop();v&&(n=t.join(", ")+", and "+g),b&&(n=t.join(", ")+", or "+g);}else n=e.inspect(t[0]);n=(w>1?"keys ":"key ")+n,n=(o(this,"contains")?"contain ":"have ")+n,this.assert(l,"expected #{this} to "+h+n,"expected #{this} to not "+h+n,m.slice(0).sort(e.compareByInspect),r.sort(e.compareByInspect),!0);}function O(t,i,r){r&&o(this,"message",r);var a,s=o(this,"object"),c=o(this,"ssfi"),u=o(this,"message"),f=o(this,"negate")||!1;new n(s,u,c,!0).is.a("function"),(t instanceof RegExp||"string"==typeof t)&&(i=t,t=null);try{s();}catch(t){a=t;}var h=void 0===t&&void 0===i,l=Boolean(t&&i),d=!1,p=!1;if(h||!h&&!f){var w="an error";t instanceof Error?w="#{exp}":t&&(w=e.checkError.getConstructorName(t)),this.assert(a,"expected #{this} to throw "+w,"expected #{this} to not throw an error but #{act} was thrown",t&&t.toString(),a instanceof Error?a.toString():"string"==typeof a?a:a&&e.checkError.getConstructorName(a));}if(t&&a&&(t instanceof Error&&e.checkError.compatibleInstance(a,t)===f&&(l&&f?d=!0:this.assert(f,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a&&!f?" but #{act} was thrown":""),t.toString(),a.toString())),e.checkError.compatibleConstructor(a,t)===f&&(l&&f?d=!0:this.assert(f,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a?" but #{act} was thrown":""),t instanceof Error?t.toString():t&&e.checkError.getConstructorName(t),a instanceof Error?a.toString():a&&e.checkError.getConstructorName(a)))),a&&null!=i){var b="including";i instanceof RegExp&&(b="matching"),e.checkError.compatibleMessage(a,i)===f&&(l&&f?p=!0:this.assert(f,"expected #{this} to throw error "+b+" #{exp} but got #{act}","expected #{this} to throw error not "+b+" #{exp}",i,e.checkError.getMessage(a)));}d&&p&&this.assert(f,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a?" but #{act} was thrown":""),t instanceof Error?t.toString():t&&e.checkError.getConstructorName(t),a instanceof Error?a.toString():a&&e.checkError.getConstructorName(a)),o(this,"object",a);}function S(t,n){n&&o(this,"message",n);var i=o(this,"object"),r=o(this,"itself"),a="function"!=typeof i||r?i[t]:i.prototype[t];this.assert("function"==typeof a,"expected #{this} to respond to "+e.inspect(t),"expected #{this} to not respond to "+e.inspect(t));}function A(t,n){n&&o(this,"message",n);var i=t(o(this,"object"));this.assert(i,"expected #{this} to satisfy "+e.objDisplay(t),"expected #{this} to not satisfy"+e.objDisplay(t),!o(this,"negate"),i);}function D(t,e,r){r&&o(this,"message",r);var a=o(this,"object"),s=o(this,"message"),c=o(this,"ssfi");if(new n(a,s,c,!0).is.a("number"),"number"!=typeof t||"number"!=typeof e)throw new i((s=s?s+": ":"")+"the arguments to closeTo or approximately must be numbers"+(void 0===e?", and a delta is required":""),void 0,c);this.assert(Math.abs(a-t)<=e,"expected #{this} to be close to "+t+" +/- "+e,"expected #{this} not to be close to "+t+" +/- "+e);}function T(t,e,i){i&&o(this,"message",i);var r,a=o(this,"object"),s=o(this,"message"),c=o(this,"ssfi");new n(a,s,c,!0).is.a("function"),e?(new n(t,s,c,!0).to.have.property(e),r=t[e]):(new n(t,s,c,!0).is.a("function"),r=t()),a();var u=null==e?t():t[e],f=null==e?r:"."+e;o(this,"deltaMsgObj",f),o(this,"initialDeltaValue",r),o(this,"finalDeltaValue",u),o(this,"deltaBehavior","change"),o(this,"realDelta",u!==r),this.assert(r!==u,"expected "+f+" to change","expected "+f+" to not change");}function q(t,e,i){i&&o(this,"message",i);var r,a=o(this,"object"),s=o(this,"message"),c=o(this,"ssfi");new n(a,s,c,!0).is.a("function"),e?(new n(t,s,c,!0).to.have.property(e),r=t[e]):(new n(t,s,c,!0).is.a("function"),r=t()),new n(r,s,c,!0).is.a("number"),a();var u=null==e?t():t[e],f=null==e?r:"."+e;o(this,"deltaMsgObj",f),o(this,"initialDeltaValue",r),o(this,"finalDeltaValue",u),o(this,"deltaBehavior","increase"),o(this,"realDelta",u-r),this.assert(u-r>0,"expected "+f+" to increase","expected "+f+" to not increase");}function M(t,e,i){i&&o(this,"message",i);var r,a=o(this,"object"),s=o(this,"message"),c=o(this,"ssfi");new n(a,s,c,!0).is.a("function"),e?(new n(t,s,c,!0).to.have.property(e),r=t[e]):(new n(t,s,c,!0).is.a("function"),r=t()),new n(r,s,c,!0).is.a("number"),a();var u=null==e?t():t[e],f=null==e?r:"."+e;o(this,"deltaMsgObj",f),o(this,"initialDeltaValue",r),o(this,"finalDeltaValue",u),o(this,"deltaBehavior","decrease"),o(this,"realDelta",r-u),this.assert(u-r<0,"expected "+f+" to decrease","expected "+f+" to not decrease");}["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach(function(t){n.addProperty(t);}),n.addProperty("not",function(){o(this,"negate",!0);}),n.addProperty("deep",function(){o(this,"deep",!0);}),n.addProperty("nested",function(){o(this,"nested",!0);}),n.addProperty("own",function(){o(this,"own",!0);}),n.addProperty("ordered",function(){o(this,"ordered",!0);}),n.addProperty("any",function(){o(this,"any",!0),o(this,"all",!1);}),n.addProperty("all",function(){o(this,"all",!0),o(this,"any",!1);}),n.addChainableMethod("an",r),n.addChainableMethod("a",r),n.addChainableMethod("include",c,s),n.addChainableMethod("contain",c,s),n.addChainableMethod("contains",c,s),n.addChainableMethod("includes",c,s),n.addProperty("ok",function(){this.assert(o(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy");}),n.addProperty("true",function(){this.assert(!0===o(this,"object"),"expected #{this} to be true","expected #{this} to be false",!o(this,"negate"));}),n.addProperty("false",function(){this.assert(!1===o(this,"object"),"expected #{this} to be false","expected #{this} to be true",!!o(this,"negate"));}),n.addProperty("null",function(){this.assert(null===o(this,"object"),"expected #{this} to be null","expected #{this} not to be null");}),n.addProperty("undefined",function(){this.assert(void 0===o(this,"object"),"expected #{this} to be undefined","expected #{this} not to be undefined");}),n.addProperty("NaN",function(){this.assert(e.isNaN(o(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN");}),n.addProperty("exist",u),n.addProperty("exists",u),n.addProperty("empty",function(){var t,n=o(this,"object"),r=o(this,"ssfi"),a=o(this,"message");switch(a=a?a+": ":"",e.type(n).toLowerCase()){case"array":case"string":t=n.length;break;case"map":case"set":t=n.size;break;case"weakmap":case"weakset":throw new i(a+".empty was passed a weak collection",void 0,r);case"function":var s=a+".empty was passed a function "+e.getName(n);throw new i(s.trim(),void 0,r);default:if(n!==Object(n))throw new i(a+".empty was passed non-string primitive "+e.inspect(n),void 0,r);t=Object.keys(n).length;}this.assert(0===t,"expected #{this} to be empty","expected #{this} not to be empty");}),n.addProperty("arguments",f),n.addProperty("Arguments",f),n.addMethod("equal",h),n.addMethod("equals",h),n.addMethod("eq",h),n.addMethod("eql",l),n.addMethod("eqls",l),n.addMethod("above",d),n.addMethod("gt",d),n.addMethod("greaterThan",d),n.addMethod("least",p),n.addMethod("gte",p),n.addMethod("greaterThanOrEqual",p),n.addMethod("below",w),n.addMethod("lt",w),n.addMethod("lessThan",w),n.addMethod("most",b),n.addMethod("lte",b),n.addMethod("lessThanOrEqual",b),n.addMethod("within",function(t,r,a){a&&o(this,"message",a);var s,c=o(this,"object"),u=o(this,"doLength"),f=o(this,"message"),h=f?f+": ":"",l=o(this,"ssfi"),d=e.type(c).toLowerCase(),p=e.type(t).toLowerCase(),w=e.type(r).toLowerCase(),b=!0,v="date"===p&&"date"===w?t.toUTCString()+".."+r.toUTCString():t+".."+r;if(u&&"map"!==d&&"set"!==d&&new n(c,f,l,!0).to.have.property("length"),u||"date"!==d||"date"===p&&"date"===w?"number"===p&&"number"===w||!u&&"number"!==d?u||"date"===d||"number"===d?b=!1:s=h+"expected "+("string"===d?"'"+c+"'":c)+" to be a number or a date":s=h+"the arguments to within must be numbers":s=h+"the arguments to within must be dates",b)throw new i(s,void 0,l);if(u){var m,g="length";"map"===d||"set"===d?(g="size",m=c.size):m=c.length,this.assert(m>=t&&m<=r,"expected #{this} to have a "+g+" within "+v,"expected #{this} to not have a "+g+" within "+v);}else this.assert(c>=t&&c<=r,"expected #{this} to be within "+v,"expected #{this} to not be within "+v);}),n.addMethod("instanceof",v),n.addMethod("instanceOf",v),n.addMethod("property",m),n.addMethod("ownProperty",g),n.addMethod("haveOwnProperty",g),n.addMethod("ownPropertyDescriptor",y),n.addMethod("haveOwnPropertyDescriptor",y),n.addChainableMethod("length",j,x),n.addChainableMethod("lengthOf",j,x),n.addMethod("match",E),n.addMethod("matches",E),n.addMethod("string",function(t,i){i&&o(this,"message",i);var r=o(this,"object"),a=o(this,"message"),s=o(this,"ssfi");new n(r,a,s,!0).is.a("string"),this.assert(~r.indexOf(t),"expected #{this} to contain "+e.inspect(t),"expected #{this} to not contain "+e.inspect(t));}),n.addMethod("keys",k),n.addMethod("key",k),n.addMethod("throw",O),n.addMethod("throws",O),n.addMethod("Throw",O),n.addMethod("respondTo",S),n.addMethod("respondsTo",S),n.addProperty("itself",function(){o(this,"itself",!0);}),n.addMethod("satisfy",A),n.addMethod("satisfies",A),n.addMethod("closeTo",D),n.addMethod("approximately",D),n.addMethod("members",function(t,i){i&&o(this,"message",i);var r=o(this,"object"),a=o(this,"message"),s=o(this,"ssfi");new n(r,a,s,!0).to.be.an("array"),new n(t,a,s,!0).to.be.an("array");var c,u,f,h=o(this,"contains"),l=o(this,"ordered");h?(u="expected #{this} to be "+(c=l?"an ordered superset":"a superset")+" of #{exp}",f="expected #{this} to not be "+c+" of #{exp}"):(u="expected #{this} to have the same "+(c=l?"ordered members":"members")+" as #{exp}",f="expected #{this} to not have the same "+c+" as #{exp}");var d=o(this,"deep")?e.eql:void 0;this.assert(function(t,e,n,i,o){if(!i){if(t.length!==e.length)return!1;e=e.slice();}return t.every(function(t,r){if(o)return n?n(t,e[r]):t===e[r];if(!n){var a=e.indexOf(t);return-1!==a&&(i||e.splice(a,1),!0);}return e.some(function(o,r){return!!n(t,o)&&(i||e.splice(r,1),!0);});});}(t,r,d,h,l),u,f,t,r,!0);}),n.addMethod("oneOf",function(t,i){i&&o(this,"message",i);var r=o(this,"object"),a=o(this,"message"),s=o(this,"ssfi"),c=o(this,"contains"),u=o(this,"deep");new n(t,a,s,!0).to.be.an("array"),c?this.assert(t.some(function(t){return r.indexOf(t)>-1;}),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",t,r):u?this.assert(t.some(function(t){return e.eql(r,t);}),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",t,r):this.assert(t.indexOf(r)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",t,r);}),n.addMethod("change",T),n.addMethod("changes",T),n.addMethod("increase",q),n.addMethod("increases",q),n.addMethod("decrease",M),n.addMethod("decreases",M),n.addMethod("by",function(t,e){e&&o(this,"message",e);var n,i=o(this,"deltaMsgObj"),r=o(this,"initialDeltaValue"),a=o(this,"finalDeltaValue"),s=o(this,"deltaBehavior"),c=o(this,"realDelta");n="change"===s?Math.abs(a-r)===Math.abs(t):c===Math.abs(t),this.assert(n,"expected "+i+" to "+s+" by "+t,"expected "+i+" to not "+s+" by "+t);}),n.addProperty("extensible",function(){var t=o(this,"object"),e=t===Object(t)&&Object.isExtensible(t);this.assert(e,"expected #{this} to be extensible","expected #{this} to not be extensible");}),n.addProperty("sealed",function(){var t=o(this,"object"),e=t!==Object(t)||Object.isSealed(t);this.assert(e,"expected #{this} to be sealed","expected #{this} to not be sealed");}),n.addProperty("frozen",function(){var t=o(this,"object"),e=t!==Object(t)||Object.isFrozen(t);this.assert(e,"expected #{this} to be frozen","expected #{this} to not be frozen");}),n.addProperty("finite",function(t){var e=o(this,"object");this.assert("number"==typeof e&&isFinite(e),"expected #{this} to be a finite number","expected #{this} to not be a finite number");});};},{}],6:[function(t,e,n){/*!
|
81
|
+
*/e.exports=function(t,e){var n=t.Assertion,i=t.AssertionError,o=e.flag;function r(t,n){n&&o(this,"message",n),t=t.toLowerCase();var i=o(this,"object"),r=~["a","e","i","o","u"].indexOf(t.charAt(0))?"an ":"a ";this.assert(t===e.type(i).toLowerCase(),"expected #{this} to be "+r+t,"expected #{this} not to be "+r+t);}function a(t,n){return e.isNaN(t)&&e.isNaN(n)||t===n;}function s(){o(this,"contains",!0);}function c(t,r){r&&o(this,"message",r);var s=o(this,"object"),c=e.type(s).toLowerCase(),u=o(this,"message"),f=o(this,"negate"),h=o(this,"ssfi"),l=o(this,"deep"),d=l?"deep ":"";u=u?u+": ":"";var p=!1;switch(c){case"string":p=-1!==s.indexOf(t);break;case"weakset":if(l)throw new i(u+"unable to use .deep.include with WeakSet",void 0,h);p=s.has(t);break;case"map":var w=l?e.eql:a;s.forEach(function(e){p=p||w(e,t);});break;case"set":l?s.forEach(function(n){p=p||e.eql(n,t);}):p=s.has(t);break;case"array":p=l?s.some(function(n){return e.eql(n,t);}):-1!==s.indexOf(t);break;default:if(t!==Object(t))throw new i(u+"the given combination of arguments ("+c+" and "+e.type(t).toLowerCase()+") is invalid for this assertion. You can use an array, a map, an object, a set, a string, or a weakset instead of a "+e.type(t).toLowerCase(),void 0,h);var b=Object.keys(t),m=null,v=0;if(b.forEach(function(r){var a=new n(s);if(e.transferFlags(this,a,!0),o(a,"lockSsfi",!0),f&&1!==b.length)try{a.property(r,t[r]);}catch(t){if(!e.checkError.compatibleConstructor(t,i))throw t;null===m&&(m=t),v++;}else a.property(r,t[r]);},this),f&&b.length>1&&v===b.length)throw m;return;}this.assert(p,"expected #{this} to "+d+"include "+e.inspect(t),"expected #{this} to not "+d+"include "+e.inspect(t));}function u(){var t=o(this,"object");this.assert(null!=t,"expected #{this} to exist","expected #{this} to not exist");}function f(){var t=o(this,"object"),n=e.type(t);this.assert("Arguments"===n,"expected #{this} to be arguments but got "+n,"expected #{this} to not be arguments");}function h(t,e){e&&o(this,"message",e);var n=o(this,"object");if(o(this,"deep")){var i=o(this,"lockSsfi");o(this,"lockSsfi",!0),this.eql(t),o(this,"lockSsfi",i);}else this.assert(t===n,"expected #{this} to equal #{exp}","expected #{this} to not equal #{exp}",t,this._obj,!0);}function l(t,n){n&&o(this,"message",n),this.assert(e.eql(t,o(this,"object")),"expected #{this} to deeply equal #{exp}","expected #{this} to not deeply equal #{exp}",t,this._obj,!0);}function d(t,r){r&&o(this,"message",r);var a,s=o(this,"object"),c=o(this,"doLength"),u=o(this,"message"),f=u?u+": ":"",h=o(this,"ssfi"),l=e.type(s).toLowerCase(),d=e.type(t).toLowerCase(),p=!0;if(c&&"map"!==l&&"set"!==l&&new n(s,u,h,!0).to.have.property("length"),c||"date"!==l||"date"===d?"number"===d||!c&&"number"!==l?c||"date"===l||"number"===l?p=!1:a=f+"expected "+("string"===l?"'"+s+"'":s)+" to be a number or a date":a=f+"the argument to above must be a number":a=f+"the argument to above must be a date",p)throw new i(a,void 0,h);if(c){var w,b="length";"map"===l||"set"===l?(b="size",w=s.size):w=s.length,this.assert(w>t,"expected #{this} to have a "+b+" above #{exp} but got #{act}","expected #{this} to not have a "+b+" above #{exp}",t,w);}else this.assert(s>t,"expected #{this} to be above #{exp}","expected #{this} to be at most #{exp}",t);}function p(t,r){r&&o(this,"message",r);var a,s=o(this,"object"),c=o(this,"doLength"),u=o(this,"message"),f=u?u+": ":"",h=o(this,"ssfi"),l=e.type(s).toLowerCase(),d=e.type(t).toLowerCase(),p=!0;if(c&&"map"!==l&&"set"!==l&&new n(s,u,h,!0).to.have.property("length"),c||"date"!==l||"date"===d?"number"===d||!c&&"number"!==l?c||"date"===l||"number"===l?p=!1:a=f+"expected "+("string"===l?"'"+s+"'":s)+" to be a number or a date":a=f+"the argument to least must be a number":a=f+"the argument to least must be a date",p)throw new i(a,void 0,h);if(c){var w,b="length";"map"===l||"set"===l?(b="size",w=s.size):w=s.length,this.assert(w>=t,"expected #{this} to have a "+b+" at least #{exp} but got #{act}","expected #{this} to have a "+b+" below #{exp}",t,w);}else this.assert(s>=t,"expected #{this} to be at least #{exp}","expected #{this} to be below #{exp}",t);}function w(t,r){r&&o(this,"message",r);var a,s=o(this,"object"),c=o(this,"doLength"),u=o(this,"message"),f=u?u+": ":"",h=o(this,"ssfi"),l=e.type(s).toLowerCase(),d=e.type(t).toLowerCase(),p=!0;if(c&&"map"!==l&&"set"!==l&&new n(s,u,h,!0).to.have.property("length"),c||"date"!==l||"date"===d?"number"===d||!c&&"number"!==l?c||"date"===l||"number"===l?p=!1:a=f+"expected "+("string"===l?"'"+s+"'":s)+" to be a number or a date":a=f+"the argument to below must be a number":a=f+"the argument to below must be a date",p)throw new i(a,void 0,h);if(c){var w,b="length";"map"===l||"set"===l?(b="size",w=s.size):w=s.length,this.assert(w<t,"expected #{this} to have a "+b+" below #{exp} but got #{act}","expected #{this} to not have a "+b+" below #{exp}",t,w);}else this.assert(s<t,"expected #{this} to be below #{exp}","expected #{this} to be at least #{exp}",t);}function b(t,r){r&&o(this,"message",r);var a,s=o(this,"object"),c=o(this,"doLength"),u=o(this,"message"),f=u?u+": ":"",h=o(this,"ssfi"),l=e.type(s).toLowerCase(),d=e.type(t).toLowerCase(),p=!0;if(c&&"map"!==l&&"set"!==l&&new n(s,u,h,!0).to.have.property("length"),c||"date"!==l||"date"===d?"number"===d||!c&&"number"!==l?c||"date"===l||"number"===l?p=!1:a=f+"expected "+("string"===l?"'"+s+"'":s)+" to be a number or a date":a=f+"the argument to most must be a number":a=f+"the argument to most must be a date",p)throw new i(a,void 0,h);if(c){var w,b="length";"map"===l||"set"===l?(b="size",w=s.size):w=s.length,this.assert(w<=t,"expected #{this} to have a "+b+" at most #{exp} but got #{act}","expected #{this} to have a "+b+" above #{exp}",t,w);}else this.assert(s<=t,"expected #{this} to be at most #{exp}","expected #{this} to be above #{exp}",t);}function m(t,n){n&&o(this,"message",n);var r=o(this,"object"),a=o(this,"ssfi"),s=o(this,"message");try{var c=r instanceof t;}catch(n){if(n instanceof TypeError)throw new i((s=s?s+": ":"")+"The instanceof assertion needs a constructor but "+e.type(t)+" was given.",void 0,a);throw n;}var u=e.getName(t);null===u&&(u="an unnamed constructor"),this.assert(c,"expected #{this} to be an instance of "+u,"expected #{this} to not be an instance of "+u);}function v(t,n,r){r&&o(this,"message",r);var a=o(this,"nested"),s=o(this,"own"),c=o(this,"message"),u=o(this,"object"),f=o(this,"ssfi"),h=_typeof(t);if(c=c?c+": ":"",a){if("string"!==h)throw new i(c+"the argument to property must be a string when using nested syntax",void 0,f);}else if("string"!==h&&"number"!==h&&"symbol"!==h)throw new i(c+"the argument to property must be a string, number, or symbol",void 0,f);if(a&&s)throw new i(c+'The "nested" and "own" flags cannot be combined.',void 0,f);if(null==u)throw new i(c+"Target cannot be null or undefined.",void 0,f);var l,d=o(this,"deep"),p=o(this,"negate"),w=a?e.getPathInfo(u,t):null,b=a?w.value:u[t],m="";d&&(m+="deep "),s&&(m+="own "),a&&(m+="nested "),m+="property ",l=s?Object.prototype.hasOwnProperty.call(u,t):a?w.exists:e.hasProperty(u,t),p&&1!==arguments.length||this.assert(l,"expected #{this} to have "+m+e.inspect(t),"expected #{this} to not have "+m+e.inspect(t)),arguments.length>1&&this.assert(l&&(d?e.eql(n,b):n===b),"expected #{this} to have "+m+e.inspect(t)+" of #{exp}, but got #{act}","expected #{this} to not have "+m+e.inspect(t)+" of #{act}",n,b),o(this,"object",b);}function g(t,e,n){o(this,"own",!0),v.apply(this,arguments);}function x(t,n,i){"string"==typeof n&&(i=n,n=null),i&&o(this,"message",i);var r=o(this,"object"),a=Object.getOwnPropertyDescriptor(Object(r),t);a&&n?this.assert(e.eql(n,a),"expected the own property descriptor for "+e.inspect(t)+" on #{this} to match "+e.inspect(n)+", got "+e.inspect(a),"expected the own property descriptor for "+e.inspect(t)+" on #{this} to not match "+e.inspect(n),n,a,!0):this.assert(a,"expected #{this} to have an own property descriptor for "+e.inspect(t),"expected #{this} to not have an own property descriptor for "+e.inspect(t)),o(this,"object",a);}function y(){o(this,"doLength",!0);}function j(t,i){i&&o(this,"message",i);var r,a=o(this,"object"),s=e.type(a).toLowerCase(),c=o(this,"message"),u=o(this,"ssfi"),f="length";switch(s){case"map":case"set":f="size",r=a.size;break;default:new n(a,c,u,!0).to.have.property("length"),r=a.length;}this.assert(r==t,"expected #{this} to have a "+f+" of #{exp} but got #{act}","expected #{this} to not have a "+f+" of #{act}",t,r);}function k(t,e){e&&o(this,"message",e);var n=o(this,"object");this.assert(t.exec(n),"expected #{this} to match "+t,"expected #{this} not to match "+t);}function E(t){var n,r,a=o(this,"object"),s=e.type(a),c=e.type(t),u=o(this,"ssfi"),f=o(this,"deep"),h="",l=!0,d=o(this,"message"),p=(d=d?d+": ":"")+"when testing keys against an object or an array you must give a single Array|Object|String argument or multiple String arguments";if("Map"===s||"Set"===s)h=f?"deeply ":"",r=[],a.forEach(function(t,e){r.push(e);}),"Array"!==c&&(t=Array.prototype.slice.call(arguments));else{switch(r=e.getOwnEnumerableProperties(a),c){case"Array":if(arguments.length>1)throw new i(p,void 0,u);break;case"Object":if(arguments.length>1)throw new i(p,void 0,u);t=Object.keys(t);break;default:t=Array.prototype.slice.call(arguments);}t=t.map(function(t){return"symbol"==_typeof(t)?t:String(t);});}if(!t.length)throw new i(d+"keys required",void 0,u);var w=t.length,b=o(this,"any"),m=o(this,"all"),v=t;if(b||m||(m=!0),b&&(l=v.some(function(t){return r.some(function(n){return f?e.eql(t,n):t===n;});})),m&&(l=v.every(function(t){return r.some(function(n){return f?e.eql(t,n):t===n;});}),o(this,"contains")||(l=l&&t.length==r.length)),w>1){var g=(t=t.map(function(t){return e.inspect(t);})).pop();m&&(n=t.join(", ")+", and "+g),b&&(n=t.join(", ")+", or "+g);}else n=e.inspect(t[0]);n=(w>1?"keys ":"key ")+n,n=(o(this,"contains")?"contain ":"have ")+n,this.assert(l,"expected #{this} to "+h+n,"expected #{this} to not "+h+n,v.slice(0).sort(e.compareByInspect),r.sort(e.compareByInspect),!0);}function O(t,i,r){r&&o(this,"message",r);var a,s=o(this,"object"),c=o(this,"ssfi"),u=o(this,"message"),f=o(this,"negate")||!1;new n(s,u,c,!0).is.a("function"),(t instanceof RegExp||"string"==typeof t)&&(i=t,t=null);try{s();}catch(t){a=t;}var h=void 0===t&&void 0===i,l=Boolean(t&&i),d=!1,p=!1;if(h||!h&&!f){var w="an error";t instanceof Error?w="#{exp}":t&&(w=e.checkError.getConstructorName(t)),this.assert(a,"expected #{this} to throw "+w,"expected #{this} to not throw an error but #{act} was thrown",t&&t.toString(),a instanceof Error?a.toString():"string"==typeof a?a:a&&e.checkError.getConstructorName(a));}if(t&&a&&(t instanceof Error&&e.checkError.compatibleInstance(a,t)===f&&(l&&f?d=!0:this.assert(f,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a&&!f?" but #{act} was thrown":""),t.toString(),a.toString())),e.checkError.compatibleConstructor(a,t)===f&&(l&&f?d=!0:this.assert(f,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a?" but #{act} was thrown":""),t instanceof Error?t.toString():t&&e.checkError.getConstructorName(t),a instanceof Error?a.toString():a&&e.checkError.getConstructorName(a)))),a&&null!=i){var b="including";i instanceof RegExp&&(b="matching"),e.checkError.compatibleMessage(a,i)===f&&(l&&f?p=!0:this.assert(f,"expected #{this} to throw error "+b+" #{exp} but got #{act}","expected #{this} to throw error not "+b+" #{exp}",i,e.checkError.getMessage(a)));}d&&p&&this.assert(f,"expected #{this} to throw #{exp} but #{act} was thrown","expected #{this} to not throw #{exp}"+(a?" but #{act} was thrown":""),t instanceof Error?t.toString():t&&e.checkError.getConstructorName(t),a instanceof Error?a.toString():a&&e.checkError.getConstructorName(a)),o(this,"object",a);}function S(t,n){n&&o(this,"message",n);var i=o(this,"object"),r=o(this,"itself"),a="function"!=typeof i||r?i[t]:i.prototype[t];this.assert("function"==typeof a,"expected #{this} to respond to "+e.inspect(t),"expected #{this} to not respond to "+e.inspect(t));}function A(t,n){n&&o(this,"message",n);var i=t(o(this,"object"));this.assert(i,"expected #{this} to satisfy "+e.objDisplay(t),"expected #{this} to not satisfy"+e.objDisplay(t),!o(this,"negate"),i);}function D(t,e,r){r&&o(this,"message",r);var a=o(this,"object"),s=o(this,"message"),c=o(this,"ssfi");if(new n(a,s,c,!0).is.a("number"),"number"!=typeof t||"number"!=typeof e)throw new i((s=s?s+": ":"")+"the arguments to closeTo or approximately must be numbers"+(void 0===e?", and a delta is required":""),void 0,c);this.assert(Math.abs(a-t)<=e,"expected #{this} to be close to "+t+" +/- "+e,"expected #{this} not to be close to "+t+" +/- "+e);}function T(t,e,i){i&&o(this,"message",i);var r,a=o(this,"object"),s=o(this,"message"),c=o(this,"ssfi");new n(a,s,c,!0).is.a("function"),e?(new n(t,s,c,!0).to.have.property(e),r=t[e]):(new n(t,s,c,!0).is.a("function"),r=t()),a();var u=null==e?t():t[e],f=null==e?r:"."+e;o(this,"deltaMsgObj",f),o(this,"initialDeltaValue",r),o(this,"finalDeltaValue",u),o(this,"deltaBehavior","change"),o(this,"realDelta",u!==r),this.assert(r!==u,"expected "+f+" to change","expected "+f+" to not change");}function q(t,e,i){i&&o(this,"message",i);var r,a=o(this,"object"),s=o(this,"message"),c=o(this,"ssfi");new n(a,s,c,!0).is.a("function"),e?(new n(t,s,c,!0).to.have.property(e),r=t[e]):(new n(t,s,c,!0).is.a("function"),r=t()),new n(r,s,c,!0).is.a("number"),a();var u=null==e?t():t[e],f=null==e?r:"."+e;o(this,"deltaMsgObj",f),o(this,"initialDeltaValue",r),o(this,"finalDeltaValue",u),o(this,"deltaBehavior","increase"),o(this,"realDelta",u-r),this.assert(u-r>0,"expected "+f+" to increase","expected "+f+" to not increase");}function M(t,e,i){i&&o(this,"message",i);var r,a=o(this,"object"),s=o(this,"message"),c=o(this,"ssfi");new n(a,s,c,!0).is.a("function"),e?(new n(t,s,c,!0).to.have.property(e),r=t[e]):(new n(t,s,c,!0).is.a("function"),r=t()),new n(r,s,c,!0).is.a("number"),a();var u=null==e?t():t[e],f=null==e?r:"."+e;o(this,"deltaMsgObj",f),o(this,"initialDeltaValue",r),o(this,"finalDeltaValue",u),o(this,"deltaBehavior","decrease"),o(this,"realDelta",r-u),this.assert(u-r<0,"expected "+f+" to decrease","expected "+f+" to not decrease");}["to","be","been","is","and","has","have","with","that","which","at","of","same","but","does","still","also"].forEach(function(t){n.addProperty(t);}),n.addProperty("not",function(){o(this,"negate",!0);}),n.addProperty("deep",function(){o(this,"deep",!0);}),n.addProperty("nested",function(){o(this,"nested",!0);}),n.addProperty("own",function(){o(this,"own",!0);}),n.addProperty("ordered",function(){o(this,"ordered",!0);}),n.addProperty("any",function(){o(this,"any",!0),o(this,"all",!1);}),n.addProperty("all",function(){o(this,"all",!0),o(this,"any",!1);}),n.addChainableMethod("an",r),n.addChainableMethod("a",r),n.addChainableMethod("include",c,s),n.addChainableMethod("contain",c,s),n.addChainableMethod("contains",c,s),n.addChainableMethod("includes",c,s),n.addProperty("ok",function(){this.assert(o(this,"object"),"expected #{this} to be truthy","expected #{this} to be falsy");}),n.addProperty("true",function(){this.assert(!0===o(this,"object"),"expected #{this} to be true","expected #{this} to be false",!o(this,"negate"));}),n.addProperty("false",function(){this.assert(!1===o(this,"object"),"expected #{this} to be false","expected #{this} to be true",!!o(this,"negate"));}),n.addProperty("null",function(){this.assert(null===o(this,"object"),"expected #{this} to be null","expected #{this} not to be null");}),n.addProperty("undefined",function(){this.assert(void 0===o(this,"object"),"expected #{this} to be undefined","expected #{this} not to be undefined");}),n.addProperty("NaN",function(){this.assert(e.isNaN(o(this,"object")),"expected #{this} to be NaN","expected #{this} not to be NaN");}),n.addProperty("exist",u),n.addProperty("exists",u),n.addProperty("empty",function(){var t,n=o(this,"object"),r=o(this,"ssfi"),a=o(this,"message");switch(a=a?a+": ":"",e.type(n).toLowerCase()){case"array":case"string":t=n.length;break;case"map":case"set":t=n.size;break;case"weakmap":case"weakset":throw new i(a+".empty was passed a weak collection",void 0,r);case"function":var s=a+".empty was passed a function "+e.getName(n);throw new i(s.trim(),void 0,r);default:if(n!==Object(n))throw new i(a+".empty was passed non-string primitive "+e.inspect(n),void 0,r);t=Object.keys(n).length;}this.assert(0===t,"expected #{this} to be empty","expected #{this} not to be empty");}),n.addProperty("arguments",f),n.addProperty("Arguments",f),n.addMethod("equal",h),n.addMethod("equals",h),n.addMethod("eq",h),n.addMethod("eql",l),n.addMethod("eqls",l),n.addMethod("above",d),n.addMethod("gt",d),n.addMethod("greaterThan",d),n.addMethod("least",p),n.addMethod("gte",p),n.addMethod("greaterThanOrEqual",p),n.addMethod("below",w),n.addMethod("lt",w),n.addMethod("lessThan",w),n.addMethod("most",b),n.addMethod("lte",b),n.addMethod("lessThanOrEqual",b),n.addMethod("within",function(t,r,a){a&&o(this,"message",a);var s,c=o(this,"object"),u=o(this,"doLength"),f=o(this,"message"),h=f?f+": ":"",l=o(this,"ssfi"),d=e.type(c).toLowerCase(),p=e.type(t).toLowerCase(),w=e.type(r).toLowerCase(),b=!0,m="date"===p&&"date"===w?t.toUTCString()+".."+r.toUTCString():t+".."+r;if(u&&"map"!==d&&"set"!==d&&new n(c,f,l,!0).to.have.property("length"),u||"date"!==d||"date"===p&&"date"===w?"number"===p&&"number"===w||!u&&"number"!==d?u||"date"===d||"number"===d?b=!1:s=h+"expected "+("string"===d?"'"+c+"'":c)+" to be a number or a date":s=h+"the arguments to within must be numbers":s=h+"the arguments to within must be dates",b)throw new i(s,void 0,l);if(u){var v,g="length";"map"===d||"set"===d?(g="size",v=c.size):v=c.length,this.assert(v>=t&&v<=r,"expected #{this} to have a "+g+" within "+m,"expected #{this} to not have a "+g+" within "+m);}else this.assert(c>=t&&c<=r,"expected #{this} to be within "+m,"expected #{this} to not be within "+m);}),n.addMethod("instanceof",m),n.addMethod("instanceOf",m),n.addMethod("property",v),n.addMethod("ownProperty",g),n.addMethod("haveOwnProperty",g),n.addMethod("ownPropertyDescriptor",x),n.addMethod("haveOwnPropertyDescriptor",x),n.addChainableMethod("length",j,y),n.addChainableMethod("lengthOf",j,y),n.addMethod("match",k),n.addMethod("matches",k),n.addMethod("string",function(t,i){i&&o(this,"message",i);var r=o(this,"object"),a=o(this,"message"),s=o(this,"ssfi");new n(r,a,s,!0).is.a("string"),this.assert(~r.indexOf(t),"expected #{this} to contain "+e.inspect(t),"expected #{this} to not contain "+e.inspect(t));}),n.addMethod("keys",E),n.addMethod("key",E),n.addMethod("throw",O),n.addMethod("throws",O),n.addMethod("Throw",O),n.addMethod("respondTo",S),n.addMethod("respondsTo",S),n.addProperty("itself",function(){o(this,"itself",!0);}),n.addMethod("satisfy",A),n.addMethod("satisfies",A),n.addMethod("closeTo",D),n.addMethod("approximately",D),n.addMethod("members",function(t,i){i&&o(this,"message",i);var r=o(this,"object"),a=o(this,"message"),s=o(this,"ssfi");new n(r,a,s,!0).to.be.an("array"),new n(t,a,s,!0).to.be.an("array");var c,u,f,h=o(this,"contains"),l=o(this,"ordered");h?(u="expected #{this} to be "+(c=l?"an ordered superset":"a superset")+" of #{exp}",f="expected #{this} to not be "+c+" of #{exp}"):(u="expected #{this} to have the same "+(c=l?"ordered members":"members")+" as #{exp}",f="expected #{this} to not have the same "+c+" as #{exp}");var d=o(this,"deep")?e.eql:void 0;this.assert(function(t,e,n,i,o){if(!i){if(t.length!==e.length)return!1;e=e.slice();}return t.every(function(t,r){if(o)return n?n(t,e[r]):t===e[r];if(!n){var a=e.indexOf(t);return-1!==a&&(i||e.splice(a,1),!0);}return e.some(function(o,r){return!!n(t,o)&&(i||e.splice(r,1),!0);});});}(t,r,d,h,l),u,f,t,r,!0);}),n.addMethod("oneOf",function(t,i){i&&o(this,"message",i);var r=o(this,"object"),a=o(this,"message"),s=o(this,"ssfi"),c=o(this,"contains"),u=o(this,"deep");new n(t,a,s,!0).to.be.an("array"),c?this.assert(t.some(function(t){return r.indexOf(t)>-1;}),"expected #{this} to contain one of #{exp}","expected #{this} to not contain one of #{exp}",t,r):u?this.assert(t.some(function(t){return e.eql(r,t);}),"expected #{this} to deeply equal one of #{exp}","expected #{this} to deeply equal one of #{exp}",t,r):this.assert(t.indexOf(r)>-1,"expected #{this} to be one of #{exp}","expected #{this} to not be one of #{exp}",t,r);}),n.addMethod("change",T),n.addMethod("changes",T),n.addMethod("increase",q),n.addMethod("increases",q),n.addMethod("decrease",M),n.addMethod("decreases",M),n.addMethod("by",function(t,e){e&&o(this,"message",e);var n,i=o(this,"deltaMsgObj"),r=o(this,"initialDeltaValue"),a=o(this,"finalDeltaValue"),s=o(this,"deltaBehavior"),c=o(this,"realDelta");n="change"===s?Math.abs(a-r)===Math.abs(t):c===Math.abs(t),this.assert(n,"expected "+i+" to "+s+" by "+t,"expected "+i+" to not "+s+" by "+t);}),n.addProperty("extensible",function(){var t=o(this,"object"),e=t===Object(t)&&Object.isExtensible(t);this.assert(e,"expected #{this} to be extensible","expected #{this} to not be extensible");}),n.addProperty("sealed",function(){var t=o(this,"object"),e=t!==Object(t)||Object.isSealed(t);this.assert(e,"expected #{this} to be sealed","expected #{this} to not be sealed");}),n.addProperty("frozen",function(){var t=o(this,"object"),e=t!==Object(t)||Object.isFrozen(t);this.assert(e,"expected #{this} to be frozen","expected #{this} to not be frozen");}),n.addProperty("finite",function(t){var e=o(this,"object");this.assert("number"==typeof e&&isFinite(e),"expected #{this} to be a finite number","expected #{this} to not be a finite number");});};},{}],6:[function(t,e,n){/*!
|
82
82
|
* chai
|
83
83
|
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
|
84
84
|
* MIT Licensed
|
@@ -232,7 +232,7 @@ System.register(["lit/static-html.js","lit","lit/directives/unsafe-html.js","lit
|
|
232
232
|
* isNaN method
|
233
233
|
*/n.isNaN=t("./isNaN"),/*!
|
234
234
|
* getOperator method
|
235
|
-
*/n.getOperator=t("./getOperator");},{"./addChainableMethod":9,"./addLengthGuard":10,"./addMethod":11,"./addProperty":12,"./compareByInspect":13,"./expectTypes":14,"./flag":15,"./getActual":16,"./getMessage":18,"./getOperator":19,"./getOwnEnumerableProperties":20,"./getOwnEnumerablePropertySymbols":21,"./inspect":24,"./isNaN":25,"./isProxyEnabled":26,"./objDisplay":27,"./overwriteChainableMethod":28,"./overwriteMethod":29,"./overwriteProperty":30,"./proxify":31,"./test":32,"./transferFlags":33,"check-error":35,"deep-eql":36,"get-func-name":37,pathval:38,"type-detect":39}],24:[function(t,e,n){var i=t("get-func-name"),o=t("./getProperties"),r=t("./getEnumerableProperties"),a=t("../config");e.exports=function(t,e,n,i){return c({showHidden:e,seen:[],stylize:function stylize(t){return t;}},t,void 0===n?2:n);};var s=function s(t){return"object"==(typeof HTMLElement==="undefined"?"undefined":_typeof(HTMLElement))?t instanceof HTMLElement:t&&"object"==_typeof(t)&&"nodeType"in t&&1===t.nodeType&&"string"==typeof t.nodeName;};function c(t,e,a){if(e&&"function"==typeof e.inspect&&e.inspect!==n.inspect&&(!e.constructor||e.constructor.prototype!==e)){var
|
235
|
+
*/n.getOperator=t("./getOperator");},{"./addChainableMethod":9,"./addLengthGuard":10,"./addMethod":11,"./addProperty":12,"./compareByInspect":13,"./expectTypes":14,"./flag":15,"./getActual":16,"./getMessage":18,"./getOperator":19,"./getOwnEnumerableProperties":20,"./getOwnEnumerablePropertySymbols":21,"./inspect":24,"./isNaN":25,"./isProxyEnabled":26,"./objDisplay":27,"./overwriteChainableMethod":28,"./overwriteMethod":29,"./overwriteProperty":30,"./proxify":31,"./test":32,"./transferFlags":33,"check-error":35,"deep-eql":36,"get-func-name":37,pathval:38,"type-detect":39}],24:[function(t,e,n){var i=t("get-func-name"),o=t("./getProperties"),r=t("./getEnumerableProperties"),a=t("../config");e.exports=function(t,e,n,i){return c({showHidden:e,seen:[],stylize:function stylize(t){return t;}},t,void 0===n?2:n);};var s=function s(t){return"object"==(typeof HTMLElement==="undefined"?"undefined":_typeof(HTMLElement))?t instanceof HTMLElement:t&&"object"==_typeof(t)&&"nodeType"in t&&1===t.nodeType&&"string"==typeof t.nodeName;};function c(t,e,a){if(e&&"function"==typeof e.inspect&&e.inspect!==n.inspect&&(!e.constructor||e.constructor.prototype!==e)){var m=e.inspect(a,t);return"string"!=typeof m&&(m=c(t,m,a)),m;}var v=function(t,e){switch(_typeof(e)){case"undefined":return t.stylize("undefined","undefined");case"string":var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string");case"number":return 0===e&&1/e==-1/0?t.stylize("-0","number"):t.stylize(""+e,"number");case"boolean":return t.stylize(""+e,"boolean");case"symbol":return t.stylize(e.toString(),"symbol");case"bigint":return t.stylize(e.toString()+"n","bigint");}if(null===e)return t.stylize("null","null");}(t,e);if(v)return v;if(s(e)){if("outerHTML"in e)return e.outerHTML;try{if(document.xmlVersion)return new XMLSerializer().serializeToString(e);var g=document.createElementNS("http://www.w3.org/1999/xhtml","_");g.appendChild(e.cloneNode(!1));var x=g.innerHTML.replace("><",">"+e.innerHTML+"<");return g.innerHTML="",x;}catch(t){}}var y,j,k=r(e),E=t.showHidden?o(e):k;if(0===E.length||b(e)&&(1===E.length&&"stack"===E[0]||2===E.length&&"description"===E[0]&&"stack"===E[1])){if("function"==typeof e)return j=(y=i(e))?": "+y:"",t.stylize("[Function"+j+"]","special");if(p(e))return t.stylize(RegExp.prototype.toString.call(e),"regexp");if(w(e))return t.stylize(Date.prototype.toUTCString.call(e),"date");if(b(e))return u(e);}var O,S="",A=!1,D=!1,T=["{","}"];if(l(e)&&(D=!0,T=["[","]"]),d(e)&&(A=!0,T=["[","]"]),"function"==typeof e&&(S=" [Function"+(j=(y=i(e))?": "+y:"")+"]"),p(e)&&(S=" "+RegExp.prototype.toString.call(e)),w(e)&&(S=" "+Date.prototype.toUTCString.call(e)),b(e))return u(e);if(0===E.length&&(!A||0==e.length))return T[0]+S+T[1];if(a<0)return p(e)?t.stylize(RegExp.prototype.toString.call(e),"regexp"):t.stylize("[Object]","special");if(t.seen.push(e),A)O=function(t,e,n,i,o){for(var r=[],a=0,s=e.length;a<s;++a)Object.prototype.hasOwnProperty.call(e,String(a))?r.push(h(t,e,n,i,String(a),!0)):r.push("");return o.forEach(function(o){o.match(/^\d+$/)||r.push(h(t,e,n,i,o,!0));}),r;}(t,e,a,k,E);else{if(D)return f(e);O=E.map(function(n){return h(t,e,a,k,n,A);});}return t.seen.pop(),function(t,e,n){return t.reduce(function(t,e){return t+e.length+1;},0)>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1];}(O,S,T);}function u(t){return"["+Error.prototype.toString.call(t)+"]";}function f(t){for(var e="[ ",n=0;n<t.length;++n){if(e.length>=a.truncateThreshold-7){e+="...";break;}e+=t[n]+", ";}return-1!==(e+=" ]").indexOf(", ]")&&(e=e.replace(", ]"," ]")),e;}function h(t,e,n,i,o,r){var a,s,u=Object.getOwnPropertyDescriptor(e,o);if(u&&(u.get?s=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special"))),i.indexOf(o)<0&&(a="["+o+"]"),s||(t.seen.indexOf(e[o])<0?(s=c(t,e[o],null===n?null:n-1)).indexOf("\n")>-1&&(s=r?s.split("\n").map(function(t){return" "+t;}).join("\n").substr(2):"\n"+s.split("\n").map(function(t){return" "+t;}).join("\n")):s=t.stylize("[Circular]","special")),void 0===a){if(r&&o.match(/^\d+$/))return s;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"));}return a+": "+s;}function l(t){return"object"==_typeof(t)&&/\w+Array]$/.test(m(t));}function d(t){return Array.isArray(t)||"object"==_typeof(t)&&"[object Array]"===m(t);}function p(t){return"object"==_typeof(t)&&"[object RegExp]"===m(t);}function w(t){return"object"==_typeof(t)&&"[object Date]"===m(t);}function b(t){return"object"==_typeof(t)&&"[object Error]"===m(t);}function m(t){return Object.prototype.toString.call(t);}},{"../config":4,"./getEnumerableProperties":17,"./getProperties":22,"get-func-name":37}],25:[function(t,e,n){e.exports=Number.isNaN||/*!
|
236
236
|
* Chai - isNaN utility
|
237
237
|
* Copyright(c) 2012-2015 Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
|
238
238
|
* MIT Licensed
|
@@ -391,5 +391,5 @@ System.register(["lit/static-html.js","lit","lit/directives/unsafe-html.js","lit
|
|
391
391
|
*
|
392
392
|
* @param {Object} target
|
393
393
|
* @returns {Array} an array of own and inherited enumerable keys from the target.
|
394
|
-
*/function w(t){var e=[];for(var n in t)e.push(n);return e;}function b(t){return null===t||"object"!=_typeof(t);}e.exports=c,e.exports.MemoizeMap=r;},{"type-detect":39}],37:[function(t,e,n){var i=Function.prototype.toString,o=/\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\s\(\/]+)/;e.exports=function(t){if("function"!=typeof t)return null;var e="";if(void 0===Function.prototype.name&&void 0===t.name){var n=i.call(t).match(o);n&&(e=n[1]);}else e=t.name;return e;};},{}],38:[function(t,e,n){function i(t,e){return null!=t&&e in Object(t);}function o(t){return t.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map(function(t){if("constructor"===t||"__proto__"===t||"prototype"===t)return{};var e=/^\[(\d+)\]$/.exec(t);return e?{i:parseFloat(e[1])}:{p:t.replace(/\\([.[\]])/g,"$1")};});}function r(t,e,n){var i=t,o=null;n=void 0===n?e.length:n;for(var r=0;r<n;r++){var a=e[r];i&&(i=void 0===a.p?i[a.i]:i[a.p],r===n-1&&(o=i));}return o;}function a(t,e){var n=o(e),a=n[n.length-1],s={parent:n.length>1?r(t,n,n.length-1):t,name:a.p||a.i,value:r(t,n)};return s.exists=i(s.parent,s.name),s;}e.exports={hasProperty:i,getPathInfo:a,getPathValue:function getPathValue(t,e){return a(t,e).value;},setPathValue:function setPathValue(t,e,n){return function(t,e,n){for(var i=t,o=n.length,r=null,a=0;a<o;a++){var s=null,c=null;if(r=n[a],a===o-1)i[s=void 0===r.p?r.i:r.p]=e;else if(void 0!==r.p&&i[r.p])i=i[r.p];else if(void 0!==r.i&&i[r.i])i=i[r.i];else{var u=n[a+1];s=void 0===r.p?r.i:r.p,c=void 0===u.p?[]:{},i[s]=c,i=i[s];}}}(t,n,o(e)),t;}};},{}],39:[function(t,e,n){!function(t,i){"object"==_typeof(n)&&void 0!==e?e.exports=i():t.typeDetect=i();}(this,function(){var t="function"==typeof Promise,e="object"==(typeof self==="undefined"?"undefined":_typeof(self))?self:r,n="undefined"!=typeof Symbol,i="undefined"!=typeof Map,o="undefined"!=typeof Set,a="undefined"!=typeof WeakMap,s="undefined"!=typeof WeakSet,c="undefined"!=typeof DataView,u=n&&void 0!==Symbol.iterator,f=n&&void 0!==Symbol.toStringTag,h=o&&"function"==typeof Set.prototype.entries,l=i&&"function"==typeof Map.prototype.entries,d=h&&Object.getPrototypeOf(new Set().entries()),p=l&&Object.getPrototypeOf(new Map().entries()),w=u&&"function"==typeof Array.prototype[Symbol.iterator],b=w&&Object.getPrototypeOf([][Symbol.iterator]()),v=u&&"function"==typeof String.prototype[Symbol.iterator],m=v&&Object.getPrototypeOf(""[Symbol.iterator]());return function(n){var r=_typeof(n);if("object"!==r)return r;if(null===n)return"null";if(n===e)return"global";if(Array.isArray(n)&&(!1===f||!(Symbol.toStringTag in n)))return"Array";if("object"==(typeof window==="undefined"?"undefined":_typeof(window))&&null!==window){if("object"==_typeof(window.location)&&n===window.location)return"Location";if("object"==_typeof(window.document)&&n===window.document)return"Document";if("object"==_typeof(window.navigator)){if("object"==_typeof(window.navigator.mimeTypes)&&n===window.navigator.mimeTypes)return"MimeTypeArray";if("object"==_typeof(window.navigator.plugins)&&n===window.navigator.plugins)return"PluginArray";}if(("function"==typeof window.HTMLElement||"object"==_typeof(window.HTMLElement))&&n instanceof window.HTMLElement){if("BLOCKQUOTE"===n.tagName)return"HTMLQuoteElement";if("TD"===n.tagName)return"HTMLTableDataCellElement";if("TH"===n.tagName)return"HTMLTableHeaderCellElement";}}var u=f&&n[Symbol.toStringTag];if("string"==typeof u)return u;var h=Object.getPrototypeOf(n);return h===RegExp.prototype?"RegExp":h===Date.prototype?"Date":t&&h===Promise.prototype?"Promise":o&&h===Set.prototype?"Set":i&&h===Map.prototype?"Map":s&&h===WeakSet.prototype?"WeakSet":a&&h===WeakMap.prototype?"WeakMap":c&&h===DataView.prototype?"DataView":i&&h===p?"Map Iterator":o&&h===d?"Set Iterator":w&&h===b?"Array Iterator":v&&h===m?"String Iterator":null===h?"Object":Object.prototype.toString.call(n).slice(8,-1);};});},{}]},{},[1])(1);s.version,s.AssertionError,s.use,s.util,s.config,s.Assertion;c=s.expect;s.should,s.Should,s.assert;u=["script","style","svg"];f=["class","id"];h=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"];d=new URL(window.location.href).searchParams.get("wtr-session-id");m=/*#__PURE__*/_wrapRegExp(/snapshots\[[^\]]+\] = (\n)?(`[^`]*`)/gm,{content:2});g=function g(t){return _toConsumableArray(t.matchAll(m)).forEach(function(_ref3){var e=_ref3.groups.content;t=t.replaceAll(e,encodeURIComponent(e));}),t;};S={};O={get exports(){return S;},set exports(t){S=t;}},function(t){O.exports=t;}(function(t,e){var n=e.flag,i=function i(t){var e;return a(t)?0===t.length?"empty NodeList":(e=Array.prototype.slice.call(t,0,5).map(i).join(", "),t.length>5?e+"... (+"+(t.length-5)+" more)":e):r(t)?(e=t.tagName.toLowerCase(),t.id&&(e+="#"+t.id),t.className&&(e+="."+String(t.className).replace(/\s+/g,".")),Array.prototype.forEach.call(t.attributes,function(t){"class"!==t.name&&"id"!==t.name&&(e+="["+t.name+(t.value?'="'+t.value+'"]':"]"));}),e):String(t);},o=function o(t,_o){var r=n(this,"object"),a=r.getAttribute(t);n(this,"negate")&&void 0!==_o||this.assert(!!r.attributes[t],"expected "+i(r)+" to have an attribute #{exp}","expected "+i(r)+" not to have an attribute #{exp}",t),void 0!==_o&&this.assert(_o===a,"expected "+i(r)+" to have an attribute "+e.inspect(t)+" with the value #{exp}, but the value was #{act}","expected "+i(r)+" not to have an attribute "+e.inspect(t)+" with the value #{act}",_o,a),n(this,"object",a);},r=function r(t){return 1===t.nodeType;},a=function a(t){return"[object NodeList]"===Object.prototype.toString.call(t);};e.elToString=i,t.Assertion.addMethod("attr",o),t.Assertion.addMethod("attribute",o),t.Assertion.addMethod("class",function(t){var e=n(this,"object");if(t instanceof RegExp)return this.assert(Array.from(e.classList).some(function(e){return t.test(e);}),"expected "+i(e)+" to have class matching #{exp}","expected "+i(e)+" not to have class matching #{exp}",t);this.assert(e.classList.contains(t),"expected "+i(e)+" to have class #{exp}","expected "+i(e)+" not to have class #{exp}",t);}),t.Assertion.addMethod("id",function(t){var e=n(this,"object");this.assert(e.id==t,"expected "+i(e)+" to have id #{exp}","expected "+i(e)+" not to have id #{exp}",t);}),t.Assertion.addMethod("html",function(t){var e=n(this,"object"),o=n(this,"object").innerHTML;n(this,"contains")?this.assert(o.indexOf(t)>=0,"expected #{act} to contain HTML #{exp}","expected #{act} not to contain HTML #{exp}",t,o):this.assert(o===t,"expected "+i(e)+" to have HTML #{exp}, but the HTML was #{act}","expected "+i(e)+" not to have HTML #{exp}",t,o);}),t.Assertion.addChainableMethod("trimmed",null,function(){n(this,"trim-text",!0);}),t.Assertion.addProperty("rendered",function(){n(this,"rendered-text",!0);}),t.Assertion.addMethod("text",function(t){var o,r,s=n(this,"object"),c=n(this,"contains"),u=n(this,"trim-text"),f=n(this,"rendered-text")?"innerText":"textContent";a(s)?(o=Array.prototype.map.call(s,function(t){return u?t[f].trim():t[f];}),Array.isArray(t)?(r=c?t[n(this,"negate")?"some":"every"](function(t){return Array.prototype.some.call(s,function(e){return(u?e[f].trim():e[f])===t;});}):e.eql(o,t),o=o.join(),t=t.join()):(o=o.join(""),r=c?o.indexOf(t)>=0:o===t)):(o=u?s[f].trim():s[f],r=c?o.indexOf(t)>=0:o===t);var h=i(s),l="";u&&(l+="trimmed "),n(this,"rendered-text")&&(l+="rendered "),l+="text",c?this.assert(r,"expected "+h+" to contain #{exp}, but the "+l+" was #{act}","expected "+h+" not to contain #{exp}, but the "+l+" was #{act}",t,o):this.assert(r,"expected "+h+" to have "+l+" #{exp}, but the "+l+" was #{act}","expected "+h+" not to have "+l+" #{exp}",t,o);}),t.Assertion.addMethod("value",function(t){var e=n(this,"object"),o=n(this,"object").value;this.assert(n(this,"object").value===t,"expected "+i(e)+" to have value #{exp}, but the value was #{act}","expected "+i(e)+" not to have value #{exp}",t,o);}),t.Assertion.overwriteProperty("exist",function(t){return function(){var e=n(this,"object");a(e)?this.assert(e.length>0,"expected an empty NodeList to have nodes","expected "+i(e)+" to not exist"):t.apply(this,arguments);};}),t.Assertion.overwriteProperty("empty",function(t){return function(){var e=n(this,"object");r(e)?this.assert(0===e.children.length,"expected "+i(e)+" to be empty","expected "+i(e)+" to not be empty"):a(e)?this.assert(0===e.length,"expected "+i(e)+" to be empty","expected "+i(e)+" to not be empty"):t.apply(this,arguments);};}),t.Assertion.overwriteChainableMethod("length",function(t){return function(e){var o=n(this,"object");if(a(o)||r(o)){var s=o.children?o.children.length:o.length;this.assert(s===e,"expected "+i(o)+" to have #{exp} children but it had #{act} children","expected "+i(o)+" to not have #{exp} children",e,s);}else t.apply(this,arguments);};},function(t){return function(){t.call(this);};}),t.Assertion.overwriteMethod("match",function(t){return function(e){var o=n(this,"object");r(o)?this.assert(o.matches(e),"expected "+i(o)+" to match #{exp}","expected "+i(o)+" to not match #{exp}",e):a(o)?this.assert(!!o.length&&Array.prototype.every.call(o,function(t){return t.matches(e);}),"expected "+i(o)+" to match #{exp}","expected "+i(o)+" to not match #{exp}",e):t.apply(this,arguments);};}),t.Assertion.overwriteChainableMethod("contain",function(t){return function(e){var o=n(this,"object");r(o)?"string"==typeof e?this.assert(!!o.querySelector(e),"expected "+i(o)+" to contain #{exp}","expected "+i(o)+" to not contain #{exp}",e):this.assert(o.contains(e),"expected "+i(o)+" to contain "+i(e),"expected "+i(o)+" to not contain "+i(e)):t.apply(this,arguments);};},function(t){return function(){t.call(this);};}),t.Assertion.addMethod("descendant",function(t){var e=n(this,"object"),o=t;"string"==typeof t?(o=e.querySelector(t),this.assert(!!o,"expected "+i(e)+" to have descendant #{exp}","expected "+i(e)+" to not have descendant #{exp}",t)):this.assert(e.contains(t),"expected "+i(e)+" to contain "+i(t),"expected "+i(e)+" to not contain "+i(t)),n(this,"object",o);}),t.Assertion.addMethod("descendants",function(t){var e=n(this,"object"),o=e.querySelectorAll(t);this.assert(!!o.length,"expected "+i(e)+" to have descendants #{exp}","expected "+i(e)+" to not have descendants #{exp}",t),n(this,"object",o);}),t.Assertion.addProperty("displayed",function(){var t=n(this,"object"),e=document.body.contains(t)?window.getComputedStyle(t).display:t.style.display;this.assert("none"!==e,"expected "+i(t)+" to be displayed, but it was not","expected "+i(t)+" to not be displayed, but it was as "+e,e);}),t.Assertion.addProperty("visible",function(){var t=n(this,"object"),e=document.body.contains(t)?window.getComputedStyle(t).visibility:t.style.visibility;this.assert("hidden"!==e&&"collapse"!==e,"expected "+i(t)+" to be visible, but it was "+("hidden"===e?"hidden":"collapsed"),"expected "+i(t)+" to not be visible, but it was",e);}),t.Assertion.addMethod("tagName",function(t){var e=n(this,"object"),o=e.tagName;this.assert(o.toUpperCase()===t.toUpperCase(),"expected "+i(e)+" to have tagName "+t+", but it was "+o,"expected "+i(e)+" to not have tagName "+t+", but it was "+o,o);}),t.Assertion.addMethod("style",function(t,e){var o=n(this,"object"),r=window.getComputedStyle(o).getPropertyValue(t).trim();this.assert(r===e,"expected "+i(o)+" to have style property "+t+" equal to "+e+", but it was equal to "+r,"expected "+i(o)+" to not have style property "+t+" equal to "+e+", but it was equal to "+r,r);}),t.Assertion.overwriteProperty("focus",function(){return function(){var t=n(this,"object"),e=t.ownerDocument.activeElement;this.assert(t===t.ownerDocument.activeElement,"expected #{this} to have focus","expected #{this} not to have focus",t,e);};}),t.Assertion.overwriteProperty("checked",function(){return function(){var t=n(this,"object");if(!(t instanceof HTMLInputElement)||"checkbox"!==t.type&&"radio"!==t.type)throw new TypeError(i(t)+" is not a checkbox or radio input");this.assert(t.checked,"expected "+i(t)+" to be checked","expected "+i(t)+" to not be checked");};});});A=S;D={};!function(t,e){!function(e){t.exports=e;}(function(t,e){var n,i,o,r=Array.prototype.slice;function a(t){return"function"==typeof t&&"function"==typeof t.getCall&&"function"==typeof t.calledWithExactly;}function s(t){switch(t){case 1:return"once";case 2:return"twice";case 3:return"thrice";default:return(t||0)+" times";}}function c(t){if(!a(t._obj)&&(!(n=t._obj)||!a(n.proxy)))throw new TypeError(e.inspect(t._obj)+" is not a spy or a call to a spy!");var n;}function u(t,e,n,i,o){var r=i?"always have ":"have ";function s(e){return t.printf.apply(t,e);}return n=n||"",a(t.proxy)&&(t=t.proxy),{affirmative:function affirmative(){return s(["expected %n to "+r+e+n].concat(o));},negative:function negative(){return s(["expected %n to not "+r+e].concat(o));}};}function f(n,i,o){e.addProperty(t.Assertion.prototype,n,function(){c(this);var t=u(this._obj,i,o,!1);this.assert(this._obj[n],t.affirmative,t.negative);});}function h(t,n,i){return function(){c(this);var o="always"+t[0].toUpperCase()+t.substring(1),a=e.flag(this,"always")&&"function"==typeof this._obj[o],s=a?o:t,f=u(this._obj,n,i,a,r.call(arguments));this.assert(this._obj[s].apply(this._obj,arguments),f.affirmative,f.negative);};}function l(n,i,o,r){var a=h(i,o,r);e.addMethod(t.Assertion.prototype,n,a);}function d(t,e,n){l(t,t,e,n);}e.addProperty(t.Assertion.prototype,"always",function(){e.flag(this,"always",!0);}),f("called","been called"," at least once, but it was never called"),n="callCount",i="been called exactly %1",o=", but it was called %c%C",e.addMethod(t.Assertion.prototype,n,function(t){c(this);var e=u(this._obj,i,o,!1,[s(t)]);this.assert(this._obj[n]===t,e.affirmative,e.negative);}),f("calledOnce","been called exactly once",", but it was called %c%C"),f("calledTwice","been called exactly twice",", but it was called %c%C"),f("calledThrice","been called exactly thrice",", but it was called %c%C"),function(n,i,o){var r=h(n,i,o);e.addProperty(t.Assertion.prototype,n,r);}("calledWithNew","been called with new"),d("calledBefore","been called before %1"),d("calledAfter","been called after %1"),d("calledImmediatelyBefore","been called immediately before %1"),d("calledImmediatelyAfter","been called immediately after %1"),d("calledOn","been called with %1 as this",", but it was called with %t instead"),d("calledWith","been called with arguments %*","%D"),d("calledOnceWith","been called exactly once with arguments %*","%D"),d("calledWithExactly","been called with exact arguments %*","%D"),d("calledOnceWithExactly","been called exactly once with exact arguments %*","%D"),d("calledWithMatch","been called with arguments matching %*","%D"),d("returned","returned %1"),l("thrown","threw","thrown %1");});}({get exports(){return D;},set exports(t){D=t;}});T=D;s.use(function(t,e){t.Assertion.addProperty("lightDom",function(){new t.Assertion(this._obj.nodeType).to.equal(1),e.flag(this,"lightDom",!0);}),t.Assertion.addProperty("shadowDom",function(){new t.Assertion(this._obj.nodeType).to.equal(1),e.flag(this,"shadowDom",!0);}),t.Assertion.addProperty("dom",function(){new t.Assertion(this._obj.nodeType).to.equal(1),e.flag(this,"dom",!0);});var n=function n(t){return function(t){if(window.ShadyCSS&&!1===window.ShadyCSS.nativeShadow){var _e2=t.tagName.toLowerCase();var _n4=" ";return Array.prototype.slice.call(t.attributes).forEach(function(t){_n4+="".concat(t.name,"=\"").concat(t.value,"\" ");}),_n4=_n4.slice(0,-1),"<".concat(_e2).concat(_n4,">").concat(t.innerHTML,"</").concat(_e2,">");}return t.outerHTML;}(t);},i=function i(t){return t.innerHTML;},o=function o(t){return function(t){if(window.ShadyCSS&&!1===window.ShadyCSS.nativeShadow){var _e3=t.tagName.toLowerCase(),_n5=new RegExp(_e3,"g");var _i=t.shadowRoot.innerHTML;return _i=_i.replace(/style-scope/g,""),_i=_i.replace(_n5,""),_i=_i.replace(/(class=".*?)(\s)*"/g,'$1"'),_i=_i.replace(/ class="\w?"/g,""),_i;}return t.shadowRoot.innerHTML;}(t);},r=function r(e,n,i){for(var _len2=arguments.length,o=new Array(_len2>3?_len2-3:0),_key2=3;_key2<_len2;_key2++){o[_key2-3]=arguments[_key2];}var _j=j.apply(void 0,o),r=_j.message,a=_j.options,s=new t.Assertion(l(e,a),r),c=l(n,a);i?s.not.equal(c,r):s.equal(c,r);},a=function a(t){return function(a){for(var _len3=arguments.length,s=new Array(_len3>1?_len3-1:0),_key3=1;_key3<_len3;_key3++){s[_key3-1]=arguments[_key3];}if(e.flag(this,"lightDom")||e.flag(this,"shadowDom")||e.flag(this,"dom")){var _t3;_t3=e.flag(this,"lightDom")?i(this._obj):e.flag(this,"shadowDom")?o(this._obj):n(this._obj),r(_t3,a,e.flag(this,"negate"),s[0]);}else t.apply(this,[a].concat(s));};};function s(e,n){for(var _len4=arguments.length,i=new Array(_len4>2?_len4-2:0),_key4=2;_key4<_len4;_key4++){i[_key4-2]=arguments[_key4];}var o=window.__mocha_context__,r=window.__snapshot__,_j2=j.apply(void 0,i),a=_j2.message,s=_j2.options,c=o.index;o.index+=1;var u=x(o.runnable),f=l(e,s);if(r.update)r.set(u,c,f,"html");else{var _e4=r.get(u,c);if(_e4){var _i2=r.match(f,l(_e4.code,s));if(_i2&&n||!_i2&&!n)throw new t.AssertionError(a||"Received value does not match stored snapshot ".concat(c),{actual:f,expected:_e4.code,showDiff:!0},t.util.flag(this,"ssfi"));}else r.set(u,c,f,"html");}}function c(_x6,_x7){return _c.apply(this,arguments);}function _c(){_c=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(e,n){var _len5,i,_key5,_j3,o,r,a,s,c,u,_args4=arguments;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:for(_len5=_args4.length,i=new Array(_len5>2?_len5-2:0),_key5=2;_key5<_len5;_key5++){i[_key5-2]=_args4[_key5];}_j3=j.apply(void 0,i);o=_j3.message;r=_j3.options;a=x(window.__WTR_MOCHA_RUNNER__.test).join(" ");s=l(e,r);_context5.next=8;return function(){var _ref4=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(t){return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:if(p(t)){_context2.next=2;break;}throw new Error("You must provide a payload object");case 2:if(!("string"!=typeof t.name)){_context2.next=4;break;}throw new Error("You must provide a snapshot name");case 4:_context2.next=6;return y(t);case 6:_context2.t0=t.name;return _context2.abrupt("return",_context2.sent[_context2.t0]);case 8:case"end":return _context2.stop();}},_callee);}));return function(_x8){return _ref4.apply(this,arguments);};}()({name:a});case 8:c=_context5.sent;_context5.next=11;return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.t0=b;if(_context3.t0){_context3.next=5;break;}_context3.next=4;return w("get-snapshot-config",void 0,"snapshotPlugin from @web/test-runner-commands");case 4:b=_context3.sent;case 5:return _context3.abrupt("return",b);case 6:case"end":return _context3.stop();}},_callee2);}))();case 11:u=_context5.sent;if(!(c&&!u.updateSnapshots)){_context5.next=17;break;}if(!(n?c===s:c!==s)){_context5.next=15;break;}throw new t.AssertionError(o||"Snapshot ".concat(a," does not match the saved snapshot on disk"),{actual:s,expected:c,showDiff:!0},t.util.flag(this,"ssfi"));case 15:_context5.next=21;break;case 17:_context5.t0=c!==s;if(!_context5.t0){_context5.next=21;break;}_context5.next=21;return function(){var _ref6=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(t){return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:if(p(t)){_context4.next=2;break;}throw new Error("You must provide a payload object");case 2:if(!("string"!=typeof t.name)){_context4.next=4;break;}throw new Error("You must provide a snapshot name");case 4:if(!(void 0!==t.content&&"string"!=typeof t.content)){_context4.next=6;break;}throw new Error("You must provide a snapshot content");case 6:_context4.next=8;return y();case 8:_context4.t0=t.name;_context4.sent[_context4.t0]=t.content;return _context4.abrupt("return",w("save-snapshot",t,"snapshotPlugin from @web/test-runner-commands"));case 11:case"end":return _context4.stop();}},_callee3);}));return function(_x9){return _ref6.apply(this,arguments);};}()({name:a,content:s});case 21:case"end":return _context5.stop();}},_callee4,this);}));return _c.apply(this,arguments);}function u(t,e){for(var _len6=arguments.length,n=new Array(_len6>2?_len6-2:0),_key6=2;_key6<_len6;_key6++){n[_key6-2]=arguments[_key6];}if(window.__mocha_context__&&window.__snapshot__)return s.call.apply(s,[this,t,e].concat(n));if(window.__WTR_MOCHA_RUNNER__)return c.call.apply(c,[this,t,e].concat(n));throw new Error("Could not detect test runner environment. Snapshots require either Web Test Runner with mocha, or Karma with mocha and karma mocha snapshot");}function f(n){var r=t.util.flag(this,"object");var a;return a=e.flag(this,"shadowDom")?o(r):e.flag(this,"lightDom")?i(r):r,u.call(this,a,e.flag(this,"negate"),n);}t.Assertion.overwriteMethod("equals",a),t.Assertion.overwriteMethod("equal",a),t.Assertion.overwriteMethod("eq",a),e.addMethod(t.Assertion.prototype,"equalSnapshot",f),e.addMethod(t.Assertion.prototype,"notEqualSnapshot",f),e.addMethod(t.assert,"equalSnapshot",u),e.addMethod(t.assert,"notEqualSnapshot",u),t.assert.dom={equal:function equal(t,e){for(var _len7=arguments.length,i=new Array(_len7>2?_len7-2:0),_key7=2;_key7<_len7;_key7++){i[_key7-2]=arguments[_key7];}return r.call.apply(r,[this,n(t),e,!1].concat(i));},notEqual:function notEqual(t,e){for(var _len8=arguments.length,i=new Array(_len8>2?_len8-2:0),_key8=2;_key8<_len8;_key8++){i[_key8-2]=arguments[_key8];}return r.call.apply(r,[this,n(t),e,!0].concat(i));},equalSnapshot:function equalSnapshot(t){for(var _len9=arguments.length,e=new Array(_len9>1?_len9-1:0),_key9=1;_key9<_len9;_key9++){e[_key9-1]=arguments[_key9];}return u.call.apply(u,[this,t,!1].concat(e));},notEqualSnapshot:function notEqualSnapshot(t){for(var _len10=arguments.length,e=new Array(_len10>1?_len10-1:0),_key10=1;_key10<_len10;_key10++){e[_key10-1]=arguments[_key10];}return u.call.apply(u,[this,t,!0].concat(e));}},t.assert.lightDom={equal:function equal(t,e){for(var _len11=arguments.length,n=new Array(_len11>2?_len11-2:0),_key11=2;_key11<_len11;_key11++){n[_key11-2]=arguments[_key11];}return r.call.apply(r,[this,i(t),e,!1].concat(n));},notEqual:function notEqual(t,e){for(var _len12=arguments.length,n=new Array(_len12>2?_len12-2:0),_key12=2;_key12<_len12;_key12++){n[_key12-2]=arguments[_key12];}return r.call.apply(r,[this,i(t),e,!0].concat(n));},equalSnapshot:function equalSnapshot(t){for(var _len13=arguments.length,e=new Array(_len13>1?_len13-1:0),_key13=1;_key13<_len13;_key13++){e[_key13-1]=arguments[_key13];}return u.call.apply(u,[this,i(t),!1].concat(e));},notEqualSnapshot:function notEqualSnapshot(t){for(var _len14=arguments.length,e=new Array(_len14>1?_len14-1:0),_key14=1;_key14<_len14;_key14++){e[_key14-1]=arguments[_key14];}return u.call.apply(u,[this,i(t),!0].concat(e));}},t.assert.shadowDom={equal:function equal(t,e){for(var _len15=arguments.length,n=new Array(_len15>2?_len15-2:0),_key15=2;_key15<_len15;_key15++){n[_key15-2]=arguments[_key15];}return r.call.apply(r,[this,o(t),e,!1].concat(n));},notEqual:function notEqual(t,e){for(var _len16=arguments.length,n=new Array(_len16>2?_len16-2:0),_key16=2;_key16<_len16;_key16++){n[_key16-2]=arguments[_key16];}return r.call.apply(r,[this,o(t),e,!0].concat(n));},equalSnapshot:function equalSnapshot(t){for(var _len17=arguments.length,e=new Array(_len17>1?_len17-1:0),_key17=1;_key17<_len17;_key17++){e[_key17-1]=arguments[_key17];}return u.call.apply(u,[this,o(t),!1].concat(e));},notEqualSnapshot:function notEqualSnapshot(t){for(var _len18=arguments.length,e=new Array(_len18>1?_len18-1:0),_key18=1;_key18<_len18;_key18++){e[_key18-1]=arguments[_key18];}return u.call.apply(u,[this,o(t),!0].concat(e));}};}),s.use(function(t,e){var n=t.assert;e.addMethod(t.Assertion.prototype,"accessible",function(t){var _this=this;var n=this._obj,i=t||{},o=function(t){if(!t||!t.length)return;var e={};return t.forEach(function(t){e[t]={enabled:!1};}),e;}(i.ignoredRules),r={resultTypes:["violations"]};o&&(r.rules=o);var a=i.done?i.done:void 0;if(a||(a=function a(){}),i.ignoredTags){n.parentNode.querySelectorAll(i.ignoredTags.toString()).forEach(function(t){return t.setAttribute("aria-hidden",!0);});}var s=k(n,r).then(function(t){return function(t,e,n){var i=e.violations;if(i.length&&t)return void n();if(!i.length&&!t)return void n();var o=[];i.length&&(o[o.length]="Accessibility Violations",o[o.length]="---",i.forEach(function(t){o[o.length]="Rule: ".concat(t.id),o[o.length]="Impact: ".concat(t.impact),o[o.length]="".concat(t.help," (").concat(t.helpUrl,")"),t.nodes.forEach(function(t){o[o.length]="",t.target&&(o[o.length]="Issue target: ".concat(t.target)),o[o.length]="Context: ".concat(t.html),t.failureSummary&&(o[o.length]="".concat(t.failureSummary));}),o[o.length]="---";}));var r=new Error(o.join("\n"));throw n(r),r;}(e.flag(_this,"negate"),t,a);});return this.then=s.then.bind(s),this;}),n.isAccessible=function(e,n){return new t.Assertion(e).to.be.accessible(n);},n.isNotAccessible=function(e,n){return new t.Assertion(e).not.to.be.accessible(n);};}),s.use(A),s.use(T);M=function M(t){return"object"==_typeof(t)&&Promise.resolve(t)===t;};P=[];L=function L(t){return null!=t&&"function"==typeof t[Symbol.iterator];};R=Object.freeze({ELEMENT_NODE:1,TEXT_NODE:3,COMMENT_NODE:8,DOCUMENT_FRAGMENT_NODE:11});_=function _(_ref7){var t=_ref7.nodeType,e=_ref7.textContent;switch(t){case R.COMMENT_NODE:return!1;case R.TEXT_NODE:return e.trim();default:return!0;}};try{"afterEach"in window&&afterEach(function(){F();}),"teardown"in window&&teardown(function(){F();});}catch(t){}describe("NileCheckbox",function(){it("renders correctly with default properties",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var e;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return W(t(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-checkbox></nile-checkbox>"]))));case 2:e=_context6.sent;c(e).shadowDom.to.equalSnapshot();case 4:case"end":return _context6.stop();}},_callee5);}))),it("toggles checked state on click",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var e,n;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return W(t(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-checkbox></nile-checkbox>"]))));case 2:e=_context7.sent;n=e.shadowRoot.querySelector('input[type="checkbox"]');n.click(),c(e.checked).to.be["true"],n.click(),c(e.checked).to.be["false"];case 5:case"end":return _context7.stop();}},_callee6);}))),it("emits nile-change event on click",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var e,n,i;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return W(t(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-checkbox></nile-checkbox>"]))));case 2:e=_context8.sent;n=e.shadowRoot.querySelector('input[type="checkbox"]');setTimeout(function(){return n.click();});_context8.next=7;return q(e,"valueChange");case 7:i=_context8.sent;c(i.detail.checked).to.be["true"];case 9:case"end":return _context8.stop();}},_callee7);}))),it("handles focus and blur events",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var e,n,i,o;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.next=2;return W(t(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-checkbox></nile-checkbox>"]))));case 2:e=_context9.sent;n=e.shadowRoot.querySelector('input[type="checkbox"]');setTimeout(function(){return n.focus();});_context9.next=7;return q(e,"focus");case 7:i=_context9.sent;c(i).to.exist,setTimeout(function(){return n.blur();});_context9.next=11;return q(e,"blur");case 11:o=_context9.sent;c(o).to.exist;case 13:case"end":return _context9.stop();}},_callee8);}))),it("handles indeterminate state",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(){var e,n;return _regeneratorRuntime().wrap(function _callee9$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:_context10.next=2;return W(t(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<nile-checkbox indeterminate></nile-checkbox>"]))));case 2:e=_context10.sent;n=e.shadowRoot.querySelector('input[type="checkbox"]');c(n.indeterminate).to.be["true"];e.checked=!0;e.indeterminate=!1;_context10.next=9;return e.updateComplete;case 9:c(n.indeterminate).to.be["false"];c(n.checked).to.be["true"];case 11:case"end":return _context10.stop();}},_callee9);}))),it("reflects properties to attributes",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(){var e;return _regeneratorRuntime().wrap(function _callee10$(_context11){while(1)switch(_context11.prev=_context11.next){case 0:_context11.next=2;return W(t(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n <nile-checkbox\n name=\"test-name\"\n title=\"test-title\"\n disabled\n required\n label=\"test-label\"\n sub-label=\"test-sublabel\"\n help-text=\"test-help\"\n error-message=\"test-error\"\n ></nile-checkbox>\n "]))));case 2:e=_context11.sent;c(e.getAttribute("name")).to.equal("test-name"),c(e.getAttribute("title")).to.equal("test-title"),c(e.getAttribute("disabled")).to.equal(""),c(e.getAttribute("required")).to.equal(""),c(e.getAttribute("label")).to.equal("test-label"),c(e.getAttribute("sub-label")).to.equal("test-sublabel"),c(e.getAttribute("help-text")).to.equal("test-help"),c(e.getAttribute("error-message")).to.equal("test-error");case 4:case"end":return _context11.stop();}},_callee10);}))),it("displays help text when showHelpText is true",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(){var e,n;return _regeneratorRuntime().wrap(function _callee11$(_context12){while(1)switch(_context12.prev=_context12.next){case 0:_context12.next=2;return W(t(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["<nile-checkbox help-text=\"test-help\"></nile-checkbox>"]))));case 2:e=_context12.sent;e.showHelpText=!0;_context12.next=6;return e.updateComplete;case 6:n=e.shadowRoot.querySelector(".checkbox__helptext-icon");c(n).to.exist;case 8:case"end":return _context12.stop();}},_callee11);}))),it("updates host class based on helpText",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee12(){var e;return _regeneratorRuntime().wrap(function _callee12$(_context13){while(1)switch(_context13.prev=_context13.next){case 0:_context13.next=2;return W(t(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["<nile-checkbox></nile-checkbox>"]))));case 2:e=_context13.sent;e.helpText="test-help";_context13.next=6;return e.updateComplete;case 6:c(e.classList.contains("full-width")).to.be["true"];e.helpText="";_context13.next=10;return e.updateComplete;case 10:c(e.classList.contains("full-width")).to.be["false"];case 11:case"end":return _context13.stop();}},_callee12);}))),it("emits custom events on connected and disconnected",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee13(){var t,e,n,i,o;return _regeneratorRuntime().wrap(function _callee13$(_context14){while(1)switch(_context14.prev=_context14.next){case 0:t=document.createElement("nile-checkbox"),e=q(t,"nile-init");document.body.appendChild(t);_context14.next=4;return e;case 4:n=_context14.sent;c(n).to.exist;i=q(t,"nile-destroy");document.body.removeChild(t);_context14.next=10;return i;case 10:o=_context14.sent;c(o).to.exist;case 12:case"end":return _context14.stop();}},_callee13);}))),it("handles required attribute",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee14(){var e;return _regeneratorRuntime().wrap(function _callee14$(_context15){while(1)switch(_context15.prev=_context15.next){case 0:_context15.next=2;return W(t(_templateObject9||(_templateObject9=_taggedTemplateLiteral(["<nile-checkbox required></nile-checkbox>"]))));case 2:e=_context15.sent.shadowRoot.querySelector('input[type="checkbox"]');c(e.required).to.be["true"];case 4:case"end":return _context15.stop();}},_callee14);}))),it("simulates click using click method",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee15(){var e;return _regeneratorRuntime().wrap(function _callee15$(_context16){while(1)switch(_context16.prev=_context16.next){case 0:_context16.next=2;return W(t(_templateObject10||(_templateObject10=_taggedTemplateLiteral(["<nile-checkbox></nile-checkbox>"]))));case 2:e=_context16.sent;e.click(),c(e.checked).to.be["true"];case 4:case"end":return _context16.stop();}},_callee15);}))),it("sets and removes focus using focus and blur methods",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee16(){var e,n,i;return _regeneratorRuntime().wrap(function _callee16$(_context17){while(1)switch(_context17.prev=_context17.next){case 0:_context17.next=2;return W(t(_templateObject11||(_templateObject11=_taggedTemplateLiteral(["<nile-checkbox></nile-checkbox>"]))));case 2:e=_context17.sent;setTimeout(function(){return e.focus();});_context17.next=6;return q(e,"focus");case 6:n=_context17.sent;c(n).to.exist,setTimeout(function(){return e.blur();});_context17.next=10;return q(e,"blur");case 10:i=_context17.sent;c(i).to.exist;case 12:case"end":return _context17.stop();}},_callee16);})));});}};});
|
394
|
+
*/function w(t){var e=[];for(var n in t)e.push(n);return e;}function b(t){return null===t||"object"!=_typeof(t);}e.exports=c,e.exports.MemoizeMap=r;},{"type-detect":39}],37:[function(t,e,n){var i=Function.prototype.toString,o=/\s*function(?:\s|\s*\/\*[^(?:*\/)]+\*\/\s*)*([^\s\(\/]+)/;e.exports=function(t){if("function"!=typeof t)return null;var e="";if(void 0===Function.prototype.name&&void 0===t.name){var n=i.call(t).match(o);n&&(e=n[1]);}else e=t.name;return e;};},{}],38:[function(t,e,n){function i(t,e){return null!=t&&e in Object(t);}function o(t){return t.replace(/([^\\])\[/g,"$1.[").match(/(\\\.|[^.]+?)+/g).map(function(t){if("constructor"===t||"__proto__"===t||"prototype"===t)return{};var e=/^\[(\d+)\]$/.exec(t);return e?{i:parseFloat(e[1])}:{p:t.replace(/\\([.[\]])/g,"$1")};});}function r(t,e,n){var i=t,o=null;n=void 0===n?e.length:n;for(var r=0;r<n;r++){var a=e[r];i&&(i=void 0===a.p?i[a.i]:i[a.p],r===n-1&&(o=i));}return o;}function a(t,e){var n=o(e),a=n[n.length-1],s={parent:n.length>1?r(t,n,n.length-1):t,name:a.p||a.i,value:r(t,n)};return s.exists=i(s.parent,s.name),s;}e.exports={hasProperty:i,getPathInfo:a,getPathValue:function getPathValue(t,e){return a(t,e).value;},setPathValue:function setPathValue(t,e,n){return function(t,e,n){for(var i=t,o=n.length,r=null,a=0;a<o;a++){var s=null,c=null;if(r=n[a],a===o-1)i[s=void 0===r.p?r.i:r.p]=e;else if(void 0!==r.p&&i[r.p])i=i[r.p];else if(void 0!==r.i&&i[r.i])i=i[r.i];else{var u=n[a+1];s=void 0===r.p?r.i:r.p,c=void 0===u.p?[]:{},i[s]=c,i=i[s];}}}(t,n,o(e)),t;}};},{}],39:[function(t,e,n){!function(t,i){"object"==_typeof(n)&&void 0!==e?e.exports=i():t.typeDetect=i();}(this,function(){var t="function"==typeof Promise,e="object"==(typeof self==="undefined"?"undefined":_typeof(self))?self:r,n="undefined"!=typeof Symbol,i="undefined"!=typeof Map,o="undefined"!=typeof Set,a="undefined"!=typeof WeakMap,s="undefined"!=typeof WeakSet,c="undefined"!=typeof DataView,u=n&&void 0!==Symbol.iterator,f=n&&void 0!==Symbol.toStringTag,h=o&&"function"==typeof Set.prototype.entries,l=i&&"function"==typeof Map.prototype.entries,d=h&&Object.getPrototypeOf(new Set().entries()),p=l&&Object.getPrototypeOf(new Map().entries()),w=u&&"function"==typeof Array.prototype[Symbol.iterator],b=w&&Object.getPrototypeOf([][Symbol.iterator]()),m=u&&"function"==typeof String.prototype[Symbol.iterator],v=m&&Object.getPrototypeOf(""[Symbol.iterator]());return function(n){var r=_typeof(n);if("object"!==r)return r;if(null===n)return"null";if(n===e)return"global";if(Array.isArray(n)&&(!1===f||!(Symbol.toStringTag in n)))return"Array";if("object"==(typeof window==="undefined"?"undefined":_typeof(window))&&null!==window){if("object"==_typeof(window.location)&&n===window.location)return"Location";if("object"==_typeof(window.document)&&n===window.document)return"Document";if("object"==_typeof(window.navigator)){if("object"==_typeof(window.navigator.mimeTypes)&&n===window.navigator.mimeTypes)return"MimeTypeArray";if("object"==_typeof(window.navigator.plugins)&&n===window.navigator.plugins)return"PluginArray";}if(("function"==typeof window.HTMLElement||"object"==_typeof(window.HTMLElement))&&n instanceof window.HTMLElement){if("BLOCKQUOTE"===n.tagName)return"HTMLQuoteElement";if("TD"===n.tagName)return"HTMLTableDataCellElement";if("TH"===n.tagName)return"HTMLTableHeaderCellElement";}}var u=f&&n[Symbol.toStringTag];if("string"==typeof u)return u;var h=Object.getPrototypeOf(n);return h===RegExp.prototype?"RegExp":h===Date.prototype?"Date":t&&h===Promise.prototype?"Promise":o&&h===Set.prototype?"Set":i&&h===Map.prototype?"Map":s&&h===WeakSet.prototype?"WeakSet":a&&h===WeakMap.prototype?"WeakMap":c&&h===DataView.prototype?"DataView":i&&h===p?"Map Iterator":o&&h===d?"Set Iterator":w&&h===b?"Array Iterator":m&&h===v?"String Iterator":null===h?"Object":Object.prototype.toString.call(n).slice(8,-1);};});},{}]},{},[1])(1);s.version,s.AssertionError,s.use,s.util,s.config,s.Assertion;c=s.expect;s.should,s.Should,s.assert;u=["script","style","svg"];f=["class","id"];h=["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"];d=new URL(window.location.href).searchParams.get("wtr-session-id");v=/*#__PURE__*/_wrapRegExp(/snapshots\[[^\]]+\] = (\n)?(`[^`]*`)/gm,{content:2});g=function g(t){return _toConsumableArray(t.matchAll(v)).forEach(function(_ref3){var e=_ref3.groups.content;t=t.replaceAll(e,encodeURIComponent(e));}),t;};S={};O={get exports(){return S;},set exports(t){S=t;}},function(t){O.exports=t;}(function(t,e){var n=e.flag,i=function i(t){var e;return a(t)?0===t.length?"empty NodeList":(e=Array.prototype.slice.call(t,0,5).map(i).join(", "),t.length>5?e+"... (+"+(t.length-5)+" more)":e):r(t)?(e=t.tagName.toLowerCase(),t.id&&(e+="#"+t.id),t.className&&(e+="."+String(t.className).replace(/\s+/g,".")),Array.prototype.forEach.call(t.attributes,function(t){"class"!==t.name&&"id"!==t.name&&(e+="["+t.name+(t.value?'="'+t.value+'"]':"]"));}),e):String(t);},o=function o(t,_o){var r=n(this,"object"),a=r.getAttribute(t);n(this,"negate")&&void 0!==_o||this.assert(!!r.attributes[t],"expected "+i(r)+" to have an attribute #{exp}","expected "+i(r)+" not to have an attribute #{exp}",t),void 0!==_o&&this.assert(_o===a,"expected "+i(r)+" to have an attribute "+e.inspect(t)+" with the value #{exp}, but the value was #{act}","expected "+i(r)+" not to have an attribute "+e.inspect(t)+" with the value #{act}",_o,a),n(this,"object",a);},r=function r(t){return 1===t.nodeType;},a=function a(t){return"[object NodeList]"===Object.prototype.toString.call(t);};e.elToString=i,t.Assertion.addMethod("attr",o),t.Assertion.addMethod("attribute",o),t.Assertion.addMethod("class",function(t){var e=n(this,"object");if(t instanceof RegExp)return this.assert(Array.from(e.classList).some(function(e){return t.test(e);}),"expected "+i(e)+" to have class matching #{exp}","expected "+i(e)+" not to have class matching #{exp}",t);this.assert(e.classList.contains(t),"expected "+i(e)+" to have class #{exp}","expected "+i(e)+" not to have class #{exp}",t);}),t.Assertion.addMethod("id",function(t){var e=n(this,"object");this.assert(e.id==t,"expected "+i(e)+" to have id #{exp}","expected "+i(e)+" not to have id #{exp}",t);}),t.Assertion.addMethod("html",function(t){var e=n(this,"object"),o=n(this,"object").innerHTML;n(this,"contains")?this.assert(o.indexOf(t)>=0,"expected #{act} to contain HTML #{exp}","expected #{act} not to contain HTML #{exp}",t,o):this.assert(o===t,"expected "+i(e)+" to have HTML #{exp}, but the HTML was #{act}","expected "+i(e)+" not to have HTML #{exp}",t,o);}),t.Assertion.addChainableMethod("trimmed",null,function(){n(this,"trim-text",!0);}),t.Assertion.addProperty("rendered",function(){n(this,"rendered-text",!0);}),t.Assertion.addMethod("text",function(t){var o,r,s=n(this,"object"),c=n(this,"contains"),u=n(this,"trim-text"),f=n(this,"rendered-text")?"innerText":"textContent";a(s)?(o=Array.prototype.map.call(s,function(t){return u?t[f].trim():t[f];}),Array.isArray(t)?(r=c?t[n(this,"negate")?"some":"every"](function(t){return Array.prototype.some.call(s,function(e){return(u?e[f].trim():e[f])===t;});}):e.eql(o,t),o=o.join(),t=t.join()):(o=o.join(""),r=c?o.indexOf(t)>=0:o===t)):(o=u?s[f].trim():s[f],r=c?o.indexOf(t)>=0:o===t);var h=i(s),l="";u&&(l+="trimmed "),n(this,"rendered-text")&&(l+="rendered "),l+="text",c?this.assert(r,"expected "+h+" to contain #{exp}, but the "+l+" was #{act}","expected "+h+" not to contain #{exp}, but the "+l+" was #{act}",t,o):this.assert(r,"expected "+h+" to have "+l+" #{exp}, but the "+l+" was #{act}","expected "+h+" not to have "+l+" #{exp}",t,o);}),t.Assertion.addMethod("value",function(t){var e=n(this,"object"),o=n(this,"object").value;this.assert(n(this,"object").value===t,"expected "+i(e)+" to have value #{exp}, but the value was #{act}","expected "+i(e)+" not to have value #{exp}",t,o);}),t.Assertion.overwriteProperty("exist",function(t){return function(){var e=n(this,"object");a(e)?this.assert(e.length>0,"expected an empty NodeList to have nodes","expected "+i(e)+" to not exist"):t.apply(this,arguments);};}),t.Assertion.overwriteProperty("empty",function(t){return function(){var e=n(this,"object");r(e)?this.assert(0===e.children.length,"expected "+i(e)+" to be empty","expected "+i(e)+" to not be empty"):a(e)?this.assert(0===e.length,"expected "+i(e)+" to be empty","expected "+i(e)+" to not be empty"):t.apply(this,arguments);};}),t.Assertion.overwriteChainableMethod("length",function(t){return function(e){var o=n(this,"object");if(a(o)||r(o)){var s=o.children?o.children.length:o.length;this.assert(s===e,"expected "+i(o)+" to have #{exp} children but it had #{act} children","expected "+i(o)+" to not have #{exp} children",e,s);}else t.apply(this,arguments);};},function(t){return function(){t.call(this);};}),t.Assertion.overwriteMethod("match",function(t){return function(e){var o=n(this,"object");r(o)?this.assert(o.matches(e),"expected "+i(o)+" to match #{exp}","expected "+i(o)+" to not match #{exp}",e):a(o)?this.assert(!!o.length&&Array.prototype.every.call(o,function(t){return t.matches(e);}),"expected "+i(o)+" to match #{exp}","expected "+i(o)+" to not match #{exp}",e):t.apply(this,arguments);};}),t.Assertion.overwriteChainableMethod("contain",function(t){return function(e){var o=n(this,"object");r(o)?"string"==typeof e?this.assert(!!o.querySelector(e),"expected "+i(o)+" to contain #{exp}","expected "+i(o)+" to not contain #{exp}",e):this.assert(o.contains(e),"expected "+i(o)+" to contain "+i(e),"expected "+i(o)+" to not contain "+i(e)):t.apply(this,arguments);};},function(t){return function(){t.call(this);};}),t.Assertion.addMethod("descendant",function(t){var e=n(this,"object"),o=t;"string"==typeof t?(o=e.querySelector(t),this.assert(!!o,"expected "+i(e)+" to have descendant #{exp}","expected "+i(e)+" to not have descendant #{exp}",t)):this.assert(e.contains(t),"expected "+i(e)+" to contain "+i(t),"expected "+i(e)+" to not contain "+i(t)),n(this,"object",o);}),t.Assertion.addMethod("descendants",function(t){var e=n(this,"object"),o=e.querySelectorAll(t);this.assert(!!o.length,"expected "+i(e)+" to have descendants #{exp}","expected "+i(e)+" to not have descendants #{exp}",t),n(this,"object",o);}),t.Assertion.addProperty("displayed",function(){var t=n(this,"object"),e=document.body.contains(t)?window.getComputedStyle(t).display:t.style.display;this.assert("none"!==e,"expected "+i(t)+" to be displayed, but it was not","expected "+i(t)+" to not be displayed, but it was as "+e,e);}),t.Assertion.addProperty("visible",function(){var t=n(this,"object"),e=document.body.contains(t)?window.getComputedStyle(t).visibility:t.style.visibility;this.assert("hidden"!==e&&"collapse"!==e,"expected "+i(t)+" to be visible, but it was "+("hidden"===e?"hidden":"collapsed"),"expected "+i(t)+" to not be visible, but it was",e);}),t.Assertion.addMethod("tagName",function(t){var e=n(this,"object"),o=e.tagName;this.assert(o.toUpperCase()===t.toUpperCase(),"expected "+i(e)+" to have tagName "+t+", but it was "+o,"expected "+i(e)+" to not have tagName "+t+", but it was "+o,o);}),t.Assertion.addMethod("style",function(t,e){var o=n(this,"object"),r=window.getComputedStyle(o).getPropertyValue(t).trim();this.assert(r===e,"expected "+i(o)+" to have style property "+t+" equal to "+e+", but it was equal to "+r,"expected "+i(o)+" to not have style property "+t+" equal to "+e+", but it was equal to "+r,r);}),t.Assertion.overwriteProperty("focus",function(){return function(){var t=n(this,"object"),e=t.ownerDocument.activeElement;this.assert(t===t.ownerDocument.activeElement,"expected #{this} to have focus","expected #{this} not to have focus",t,e);};}),t.Assertion.overwriteProperty("checked",function(){return function(){var t=n(this,"object");if(!(t instanceof HTMLInputElement)||"checkbox"!==t.type&&"radio"!==t.type)throw new TypeError(i(t)+" is not a checkbox or radio input");this.assert(t.checked,"expected "+i(t)+" to be checked","expected "+i(t)+" to not be checked");};});});A=S;D={};!function(t,e){!function(e){t.exports=e;}(function(t,e){var n,i,o,r=Array.prototype.slice;function a(t){return"function"==typeof t&&"function"==typeof t.getCall&&"function"==typeof t.calledWithExactly;}function s(t){switch(t){case 1:return"once";case 2:return"twice";case 3:return"thrice";default:return(t||0)+" times";}}function c(t){if(!a(t._obj)&&(!(n=t._obj)||!a(n.proxy)))throw new TypeError(e.inspect(t._obj)+" is not a spy or a call to a spy!");var n;}function u(t,e,n,i,o){var r=i?"always have ":"have ";function s(e){return t.printf.apply(t,e);}return n=n||"",a(t.proxy)&&(t=t.proxy),{affirmative:function affirmative(){return s(["expected %n to "+r+e+n].concat(o));},negative:function negative(){return s(["expected %n to not "+r+e].concat(o));}};}function f(n,i,o){e.addProperty(t.Assertion.prototype,n,function(){c(this);var t=u(this._obj,i,o,!1);this.assert(this._obj[n],t.affirmative,t.negative);});}function h(t,n,i){return function(){c(this);var o="always"+t[0].toUpperCase()+t.substring(1),a=e.flag(this,"always")&&"function"==typeof this._obj[o],s=a?o:t,f=u(this._obj,n,i,a,r.call(arguments));this.assert(this._obj[s].apply(this._obj,arguments),f.affirmative,f.negative);};}function l(n,i,o,r){var a=h(i,o,r);e.addMethod(t.Assertion.prototype,n,a);}function d(t,e,n){l(t,t,e,n);}e.addProperty(t.Assertion.prototype,"always",function(){e.flag(this,"always",!0);}),f("called","been called"," at least once, but it was never called"),n="callCount",i="been called exactly %1",o=", but it was called %c%C",e.addMethod(t.Assertion.prototype,n,function(t){c(this);var e=u(this._obj,i,o,!1,[s(t)]);this.assert(this._obj[n]===t,e.affirmative,e.negative);}),f("calledOnce","been called exactly once",", but it was called %c%C"),f("calledTwice","been called exactly twice",", but it was called %c%C"),f("calledThrice","been called exactly thrice",", but it was called %c%C"),function(n,i,o){var r=h(n,i,o);e.addProperty(t.Assertion.prototype,n,r);}("calledWithNew","been called with new"),d("calledBefore","been called before %1"),d("calledAfter","been called after %1"),d("calledImmediatelyBefore","been called immediately before %1"),d("calledImmediatelyAfter","been called immediately after %1"),d("calledOn","been called with %1 as this",", but it was called with %t instead"),d("calledWith","been called with arguments %*","%D"),d("calledOnceWith","been called exactly once with arguments %*","%D"),d("calledWithExactly","been called with exact arguments %*","%D"),d("calledOnceWithExactly","been called exactly once with exact arguments %*","%D"),d("calledWithMatch","been called with arguments matching %*","%D"),d("returned","returned %1"),l("thrown","threw","thrown %1");});}({get exports(){return D;},set exports(t){D=t;}});T=D;s.use(function(t,e){t.Assertion.addProperty("lightDom",function(){new t.Assertion(this._obj.nodeType).to.equal(1),e.flag(this,"lightDom",!0);}),t.Assertion.addProperty("shadowDom",function(){new t.Assertion(this._obj.nodeType).to.equal(1),e.flag(this,"shadowDom",!0);}),t.Assertion.addProperty("dom",function(){new t.Assertion(this._obj.nodeType).to.equal(1),e.flag(this,"dom",!0);});var n=function n(t){return function(t){if(window.ShadyCSS&&!1===window.ShadyCSS.nativeShadow){var _e2=t.tagName.toLowerCase();var _n4=" ";return Array.prototype.slice.call(t.attributes).forEach(function(t){_n4+="".concat(t.name,"=\"").concat(t.value,"\" ");}),_n4=_n4.slice(0,-1),"<".concat(_e2).concat(_n4,">").concat(t.innerHTML,"</").concat(_e2,">");}return t.outerHTML;}(t);},i=function i(t){return t.innerHTML;},o=function o(t){return function(t){if(window.ShadyCSS&&!1===window.ShadyCSS.nativeShadow){var _e3=t.tagName.toLowerCase(),_n5=new RegExp(_e3,"g");var _i=t.shadowRoot.innerHTML;return _i=_i.replace(/style-scope/g,""),_i=_i.replace(_n5,""),_i=_i.replace(/(class=".*?)(\s)*"/g,'$1"'),_i=_i.replace(/ class="\w?"/g,""),_i;}return t.shadowRoot.innerHTML;}(t);},r=function r(e,n,i){for(var _len2=arguments.length,o=new Array(_len2>3?_len2-3:0),_key2=3;_key2<_len2;_key2++){o[_key2-3]=arguments[_key2];}var _j=j.apply(void 0,o),r=_j.message,a=_j.options,s=new t.Assertion(l(e,a),r),c=l(n,a);i?s.not.equal(c,r):s.equal(c,r);},a=function a(t){return function(a){for(var _len3=arguments.length,s=new Array(_len3>1?_len3-1:0),_key3=1;_key3<_len3;_key3++){s[_key3-1]=arguments[_key3];}if(e.flag(this,"lightDom")||e.flag(this,"shadowDom")||e.flag(this,"dom")){var _t3;_t3=e.flag(this,"lightDom")?i(this._obj):e.flag(this,"shadowDom")?o(this._obj):n(this._obj),r(_t3,a,e.flag(this,"negate"),s[0]);}else t.apply(this,[a].concat(s));};};function s(e,n){for(var _len4=arguments.length,i=new Array(_len4>2?_len4-2:0),_key4=2;_key4<_len4;_key4++){i[_key4-2]=arguments[_key4];}var o=window.__mocha_context__,r=window.__snapshot__,_j2=j.apply(void 0,i),a=_j2.message,s=_j2.options,c=o.index;o.index+=1;var u=y(o.runnable),f=l(e,s);if(r.update)r.set(u,c,f,"html");else{var _e4=r.get(u,c);if(_e4){var _i2=r.match(f,l(_e4.code,s));if(_i2&&n||!_i2&&!n)throw new t.AssertionError(a||"Received value does not match stored snapshot ".concat(c),{actual:f,expected:_e4.code,showDiff:!0},t.util.flag(this,"ssfi"));}else r.set(u,c,f,"html");}}function c(_x7,_x8){return _c.apply(this,arguments);}function _c(){_c=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(e,n){var _len5,i,_key5,_j3,o,r,a,s,c,u,_args4=arguments;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:for(_len5=_args4.length,i=new Array(_len5>2?_len5-2:0),_key5=2;_key5<_len5;_key5++){i[_key5-2]=_args4[_key5];}_j3=j.apply(void 0,i);o=_j3.message;r=_j3.options;a=y(window.__WTR_MOCHA_RUNNER__.test).join(" ");s=l(e,r);_context5.next=8;return function(){var _ref4=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(t){return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:if(p(t)){_context2.next=2;break;}throw new Error("You must provide a payload object");case 2:if(!("string"!=typeof t.name)){_context2.next=4;break;}throw new Error("You must provide a snapshot name");case 4:_context2.next=6;return x(t);case 6:_context2.t0=t.name;return _context2.abrupt("return",_context2.sent[_context2.t0]);case 8:case"end":return _context2.stop();}},_callee);}));return function(_x9){return _ref4.apply(this,arguments);};}()({name:a});case 8:c=_context5.sent;_context5.next=11;return _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.t0=b;if(_context3.t0){_context3.next=5;break;}_context3.next=4;return w("get-snapshot-config",void 0,"snapshotPlugin from @web/test-runner-commands");case 4:b=_context3.sent;case 5:return _context3.abrupt("return",b);case 6:case"end":return _context3.stop();}},_callee2);}))();case 11:u=_context5.sent;if(!(c&&!u.updateSnapshots)){_context5.next=17;break;}if(!(n?c===s:c!==s)){_context5.next=15;break;}throw new t.AssertionError(o||"Snapshot ".concat(a," does not match the saved snapshot on disk"),{actual:s,expected:c,showDiff:!0},t.util.flag(this,"ssfi"));case 15:_context5.next=21;break;case 17:_context5.t0=c!==s;if(!_context5.t0){_context5.next=21;break;}_context5.next=21;return function(){var _ref6=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(t){return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:if(p(t)){_context4.next=2;break;}throw new Error("You must provide a payload object");case 2:if(!("string"!=typeof t.name)){_context4.next=4;break;}throw new Error("You must provide a snapshot name");case 4:if(!(void 0!==t.content&&"string"!=typeof t.content)){_context4.next=6;break;}throw new Error("You must provide a snapshot content");case 6:_context4.next=8;return x();case 8:_context4.t0=t.name;_context4.sent[_context4.t0]=t.content;return _context4.abrupt("return",w("save-snapshot",t,"snapshotPlugin from @web/test-runner-commands"));case 11:case"end":return _context4.stop();}},_callee3);}));return function(_x10){return _ref6.apply(this,arguments);};}()({name:a,content:s});case 21:case"end":return _context5.stop();}},_callee4,this);}));return _c.apply(this,arguments);}function u(t,e){for(var _len6=arguments.length,n=new Array(_len6>2?_len6-2:0),_key6=2;_key6<_len6;_key6++){n[_key6-2]=arguments[_key6];}if(window.__mocha_context__&&window.__snapshot__)return s.call.apply(s,[this,t,e].concat(n));if(window.__WTR_MOCHA_RUNNER__)return c.call.apply(c,[this,t,e].concat(n));throw new Error("Could not detect test runner environment. Snapshots require either Web Test Runner with mocha, or Karma with mocha and karma mocha snapshot");}function f(n){var r=t.util.flag(this,"object");var a;return a=e.flag(this,"shadowDom")?o(r):e.flag(this,"lightDom")?i(r):r,u.call(this,a,e.flag(this,"negate"),n);}t.Assertion.overwriteMethod("equals",a),t.Assertion.overwriteMethod("equal",a),t.Assertion.overwriteMethod("eq",a),e.addMethod(t.Assertion.prototype,"equalSnapshot",f),e.addMethod(t.Assertion.prototype,"notEqualSnapshot",f),e.addMethod(t.assert,"equalSnapshot",u),e.addMethod(t.assert,"notEqualSnapshot",u),t.assert.dom={equal:function equal(t,e){for(var _len7=arguments.length,i=new Array(_len7>2?_len7-2:0),_key7=2;_key7<_len7;_key7++){i[_key7-2]=arguments[_key7];}return r.call.apply(r,[this,n(t),e,!1].concat(i));},notEqual:function notEqual(t,e){for(var _len8=arguments.length,i=new Array(_len8>2?_len8-2:0),_key8=2;_key8<_len8;_key8++){i[_key8-2]=arguments[_key8];}return r.call.apply(r,[this,n(t),e,!0].concat(i));},equalSnapshot:function equalSnapshot(t){for(var _len9=arguments.length,e=new Array(_len9>1?_len9-1:0),_key9=1;_key9<_len9;_key9++){e[_key9-1]=arguments[_key9];}return u.call.apply(u,[this,t,!1].concat(e));},notEqualSnapshot:function notEqualSnapshot(t){for(var _len10=arguments.length,e=new Array(_len10>1?_len10-1:0),_key10=1;_key10<_len10;_key10++){e[_key10-1]=arguments[_key10];}return u.call.apply(u,[this,t,!0].concat(e));}},t.assert.lightDom={equal:function equal(t,e){for(var _len11=arguments.length,n=new Array(_len11>2?_len11-2:0),_key11=2;_key11<_len11;_key11++){n[_key11-2]=arguments[_key11];}return r.call.apply(r,[this,i(t),e,!1].concat(n));},notEqual:function notEqual(t,e){for(var _len12=arguments.length,n=new Array(_len12>2?_len12-2:0),_key12=2;_key12<_len12;_key12++){n[_key12-2]=arguments[_key12];}return r.call.apply(r,[this,i(t),e,!0].concat(n));},equalSnapshot:function equalSnapshot(t){for(var _len13=arguments.length,e=new Array(_len13>1?_len13-1:0),_key13=1;_key13<_len13;_key13++){e[_key13-1]=arguments[_key13];}return u.call.apply(u,[this,i(t),!1].concat(e));},notEqualSnapshot:function notEqualSnapshot(t){for(var _len14=arguments.length,e=new Array(_len14>1?_len14-1:0),_key14=1;_key14<_len14;_key14++){e[_key14-1]=arguments[_key14];}return u.call.apply(u,[this,i(t),!0].concat(e));}},t.assert.shadowDom={equal:function equal(t,e){for(var _len15=arguments.length,n=new Array(_len15>2?_len15-2:0),_key15=2;_key15<_len15;_key15++){n[_key15-2]=arguments[_key15];}return r.call.apply(r,[this,o(t),e,!1].concat(n));},notEqual:function notEqual(t,e){for(var _len16=arguments.length,n=new Array(_len16>2?_len16-2:0),_key16=2;_key16<_len16;_key16++){n[_key16-2]=arguments[_key16];}return r.call.apply(r,[this,o(t),e,!0].concat(n));},equalSnapshot:function equalSnapshot(t){for(var _len17=arguments.length,e=new Array(_len17>1?_len17-1:0),_key17=1;_key17<_len17;_key17++){e[_key17-1]=arguments[_key17];}return u.call.apply(u,[this,o(t),!1].concat(e));},notEqualSnapshot:function notEqualSnapshot(t){for(var _len18=arguments.length,e=new Array(_len18>1?_len18-1:0),_key18=1;_key18<_len18;_key18++){e[_key18-1]=arguments[_key18];}return u.call.apply(u,[this,o(t),!0].concat(e));}};}),s.use(function(t,e){var n=t.assert;e.addMethod(t.Assertion.prototype,"accessible",function(t){var _this=this;var n=this._obj,i=t||{},o=function(t){if(!t||!t.length)return;var e={};return t.forEach(function(t){e[t]={enabled:!1};}),e;}(i.ignoredRules),r={resultTypes:["violations"]};o&&(r.rules=o);var a=i.done?i.done:void 0;if(a||(a=function a(){}),i.ignoredTags){n.parentNode.querySelectorAll(i.ignoredTags.toString()).forEach(function(t){return t.setAttribute("aria-hidden",!0);});}var s=E(n,r).then(function(t){return function(t,e,n){var i=e.violations;if(i.length&&t)return void n();if(!i.length&&!t)return void n();var o=[];i.length&&(o[o.length]="Accessibility Violations",o[o.length]="---",i.forEach(function(t){o[o.length]="Rule: ".concat(t.id),o[o.length]="Impact: ".concat(t.impact),o[o.length]="".concat(t.help," (").concat(t.helpUrl,")"),t.nodes.forEach(function(t){o[o.length]="",t.target&&(o[o.length]="Issue target: ".concat(t.target)),o[o.length]="Context: ".concat(t.html),t.failureSummary&&(o[o.length]="".concat(t.failureSummary));}),o[o.length]="---";}));var r=new Error(o.join("\n"));throw n(r),r;}(e.flag(_this,"negate"),t,a);});return this.then=s.then.bind(s),this;}),n.isAccessible=function(e,n){return new t.Assertion(e).to.be.accessible(n);},n.isNotAccessible=function(e,n){return new t.Assertion(e).not.to.be.accessible(n);};}),s.use(A),s.use(T);M=function M(t){return"object"==_typeof(t)&&Promise.resolve(t)===t;};P=[];L=function L(t){return null!=t&&"function"==typeof t[Symbol.iterator];};_=Object.freeze({ELEMENT_NODE:1,TEXT_NODE:3,COMMENT_NODE:8,DOCUMENT_FRAGMENT_NODE:11});R=function R(_ref7){var t=_ref7.nodeType,e=_ref7.textContent;switch(t){case _.COMMENT_NODE:return!1;case _.TEXT_NODE:return e.trim();default:return!0;}};try{"afterEach"in window&&afterEach(function(){F();}),"teardown"in window&&teardown(function(){F();});}catch(t){}describe("NileCheckbox",function(){it("renders correctly with default properties",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var e;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return W(t(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-checkbox></nile-checkbox>"]))));case 2:e=_context6.sent;c(e).shadowDom.to.equalSnapshot();case 4:case"end":return _context6.stop();}},_callee5);}))),it("toggles checked state on click",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var e,n;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return W(t(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-checkbox></nile-checkbox>"]))));case 2:e=_context7.sent;n=e.shadowRoot.querySelector('input[type="checkbox"]');n.click(),c(e.checked).to.be["true"],n.click(),c(e.checked).to.be["false"];case 5:case"end":return _context7.stop();}},_callee6);}))),it("emits nile-change event on click",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var e,n,i;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return W(t(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-checkbox></nile-checkbox>"]))));case 2:e=_context8.sent;n=e.shadowRoot.querySelector('input[type="checkbox"]');setTimeout(function(){return n.click();});_context8.next=7;return q(e,"valueChange");case 7:i=_context8.sent;c(i.detail.checked).to.be["true"];case 9:case"end":return _context8.stop();}},_callee7);}))),it("handles focus and blur events",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var e,n,i,o;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.next=2;return W(t(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-checkbox></nile-checkbox>"]))));case 2:e=_context9.sent;n=e.shadowRoot.querySelector('input[type="checkbox"]');setTimeout(function(){return n.focus();});_context9.next=7;return q(e,"focus");case 7:i=_context9.sent;c(i).to.exist,setTimeout(function(){return n.blur();});_context9.next=11;return q(e,"blur");case 11:o=_context9.sent;c(o).to.exist;case 13:case"end":return _context9.stop();}},_callee8);}))),it("handles indeterminate state",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(){var e,n;return _regeneratorRuntime().wrap(function _callee9$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:_context10.next=2;return W(t(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<nile-checkbox indeterminate></nile-checkbox>"]))));case 2:e=_context10.sent;n=e.shadowRoot.querySelector('input[type="checkbox"]');c(n.indeterminate).to.be["true"];e.checked=!0;e.indeterminate=!1;_context10.next=9;return e.updateComplete;case 9:c(n.indeterminate).to.be["false"];c(n.checked).to.be["true"];case 11:case"end":return _context10.stop();}},_callee9);}))),it("reflects properties to attributes",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(){var e;return _regeneratorRuntime().wrap(function _callee10$(_context11){while(1)switch(_context11.prev=_context11.next){case 0:_context11.next=2;return W(t(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n <nile-checkbox\n name=\"test-name\"\n title=\"test-title\"\n disabled\n required\n label=\"test-label\"\n sub-label=\"test-sublabel\"\n help-text=\"test-help\"\n error-message=\"test-error\"\n ></nile-checkbox>\n "]))));case 2:e=_context11.sent;c(e.getAttribute("name")).to.equal("test-name"),c(e.getAttribute("title")).to.equal("test-title"),c(e.getAttribute("disabled")).to.equal(""),c(e.getAttribute("required")).to.equal(""),c(e.getAttribute("label")).to.equal("test-label"),c(e.getAttribute("sub-label")).to.equal("test-sublabel"),c(e.getAttribute("help-text")).to.equal("test-help"),c(e.getAttribute("error-message")).to.equal("test-error");case 4:case"end":return _context11.stop();}},_callee10);}))),it("displays help text when showHelpText is true",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(){var e,n;return _regeneratorRuntime().wrap(function _callee11$(_context12){while(1)switch(_context12.prev=_context12.next){case 0:_context12.next=2;return W(t(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["<nile-checkbox help-text=\"test-help\"></nile-checkbox>"]))));case 2:e=_context12.sent;e.showHelpText=!0;_context12.next=6;return e.updateComplete;case 6:n=e.shadowRoot.querySelector(".checkbox__helptext-icon");c(n).to.exist;case 8:case"end":return _context12.stop();}},_callee11);}))),it("updates host class based on helpText",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee12(){var e;return _regeneratorRuntime().wrap(function _callee12$(_context13){while(1)switch(_context13.prev=_context13.next){case 0:_context13.next=2;return W(t(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["<nile-checkbox></nile-checkbox>"]))));case 2:e=_context13.sent;e.helpText="test-help";_context13.next=6;return e.updateComplete;case 6:c(e.classList.contains("full-width")).to.be["true"];e.helpText="";_context13.next=10;return e.updateComplete;case 10:c(e.classList.contains("full-width")).to.be["false"];case 11:case"end":return _context13.stop();}},_callee12);}))),it("emits custom events on connected and disconnected",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee13(){var t,e,n,i,o;return _regeneratorRuntime().wrap(function _callee13$(_context14){while(1)switch(_context14.prev=_context14.next){case 0:t=document.createElement("nile-checkbox"),e=q(t,"nile-init");document.body.appendChild(t);_context14.next=4;return e;case 4:n=_context14.sent;c(n).to.exist;i=q(t,"nile-destroy");document.body.removeChild(t);_context14.next=10;return i;case 10:o=_context14.sent;c(o).to.exist;case 12:case"end":return _context14.stop();}},_callee13);}))),it("handles required attribute",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee14(){var e;return _regeneratorRuntime().wrap(function _callee14$(_context15){while(1)switch(_context15.prev=_context15.next){case 0:_context15.next=2;return W(t(_templateObject9||(_templateObject9=_taggedTemplateLiteral(["<nile-checkbox required></nile-checkbox>"]))));case 2:e=_context15.sent.shadowRoot.querySelector('input[type="checkbox"]');c(e.required).to.be["true"];case 4:case"end":return _context15.stop();}},_callee14);}))),it("simulates click using click method",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee15(){var e;return _regeneratorRuntime().wrap(function _callee15$(_context16){while(1)switch(_context16.prev=_context16.next){case 0:_context16.next=2;return W(t(_templateObject10||(_templateObject10=_taggedTemplateLiteral(["<nile-checkbox></nile-checkbox>"]))));case 2:e=_context16.sent;e.click(),c(e.checked).to.be["true"];case 4:case"end":return _context16.stop();}},_callee15);}))),it("sets and removes focus using focus and blur methods",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee16(){var e,n,i;return _regeneratorRuntime().wrap(function _callee16$(_context17){while(1)switch(_context17.prev=_context17.next){case 0:_context17.next=2;return W(t(_templateObject11||(_templateObject11=_taggedTemplateLiteral(["<nile-checkbox></nile-checkbox>"]))));case 2:e=_context17.sent;setTimeout(function(){return e.focus();});_context17.next=6;return q(e,"focus");case 6:n=_context17.sent;c(n).to.exist,setTimeout(function(){return e.blur();});_context17.next=10;return q(e,"blur");case 10:i=_context17.sent;c(i).to.exist;case 12:case"end":return _context17.stop();}},_callee16);}))),it("reflects checked attribute to property",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee17(){var e;return _regeneratorRuntime().wrap(function _callee17$(_context18){while(1)switch(_context18.prev=_context18.next){case 0:_context18.next=2;return W(t(_templateObject12||(_templateObject12=_taggedTemplateLiteral(["<nile-checkbox checked></nile-checkbox>"]))));case 2:e=_context18.sent;c(e.checked).to.be["true"];case 4:case"end":return _context18.stop();}},_callee17);}))),it("reflects indeterminate attribute to property",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee18(){var e;return _regeneratorRuntime().wrap(function _callee18$(_context19){while(1)switch(_context19.prev=_context19.next){case 0:_context19.next=2;return W(t(_templateObject13||(_templateObject13=_taggedTemplateLiteral(["<nile-checkbox indeterminate></nile-checkbox>"]))));case 2:e=_context19.sent;c(e.indeterminate).to.be["true"];case 4:case"end":return _context19.stop();}},_callee18);}))),it("associates form using form attribute",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee19(){var e;return _regeneratorRuntime().wrap(function _callee19$(_context20){while(1)switch(_context20.prev=_context20.next){case 0:_context20.next=2;return W(t(_templateObject14||(_templateObject14=_taggedTemplateLiteral(["\n <div>\n <form id=\"test-form\"></form>\n <nile-checkbox form=\"test-form\"></nile-checkbox>\n </div>\n "]))));case 2:e=_context20.sent.querySelector("nile-checkbox");c(e).to.not.be["null"],c(e.getAttribute("form")).to.equal("test-form");case 4:case"end":return _context20.stop();}},_callee19);}))),it("displays and hides help text correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee20(){var e,n;return _regeneratorRuntime().wrap(function _callee20$(_context21){while(1)switch(_context21.prev=_context21.next){case 0:_context21.next=2;return W(t(_templateObject15||(_templateObject15=_taggedTemplateLiteral(["<nile-checkbox help-text=\"test-help\"></nile-checkbox>"]))));case 2:e=_context21.sent;c(e.showHelpText).to.be["false"];e.showHelpText=!0;_context21.next=7;return e.updateComplete;case 7:n=e.shadowRoot.querySelector(".checkbox__helptext-icon");c(n).to.exist;e.showHelpText=!1;_context21.next=12;return e.updateComplete;case 12:n=e.shadowRoot.querySelector(".checkbox__helptext-icon");c(n).to.be.exist;case 14:case"end":return _context21.stop();}},_callee20);})));});}};});
|
395
395
|
//# sourceMappingURL=nile-checkbox.test.cjs.js.map
|