New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@engie-group/fluid-design-system

Package Overview
Dependencies
Maintainers
2
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@engie-group/fluid-design-system - npm Package Compare versions

Comparing version 5.11.0 to 5.12.0

lib-esm/components/accordion/index.d.ts

3

lib-esm/auto-init.js

@@ -36,3 +36,4 @@ /**

'.nj-tab': 'Tab',
'.nj-tag': 'Tag'
'.nj-tag': 'Tag',
'.nj-accordion': 'Accordion'
// NEW_COMPONENT add library name here

@@ -39,0 +40,0 @@ };

@@ -37,2 +37,3 @@ /**

this.toggleClearButtonIfNeeded();
this.field.focus();
});

@@ -39,0 +40,0 @@ EventHandler.on(this.field, 'input', () => {

import './auto-init';
import 'element-closest-polyfill';
import 'custom-event-polyfill';
import Accordion from './components/accordion';
import Alert from './components/alert';
import Checkbox from './components/checkbox';
import Collapse from './components/collapse';

@@ -14,3 +14,2 @@ import Dropdown from './components/dropdown';

import Navbar from './components/navbar';
import Radio from './components/radio';
import Select from './components/select';

@@ -26,4 +25,4 @@ import Sidebar from './components/sidebar';

private static readonly AUTOINIT_COMPONENTS;
static readonly Accordion: typeof Accordion;
static readonly Alert: typeof Alert;
static readonly Checkbox: typeof Checkbox;
static readonly Collapse: typeof Collapse;

@@ -37,3 +36,2 @@ static readonly Dropdown: typeof Dropdown;

static readonly Navbar: typeof Navbar;
static readonly Radio: typeof Radio;
static readonly Select: typeof Select;

@@ -40,0 +38,0 @@ static readonly Sidebar: typeof Sidebar;

@@ -5,4 +5,4 @@ import './auto-init';

import cssVars from 'css-vars-ponyfill';
import Accordion from './components/accordion';
import Alert from './components/alert';
import Checkbox from './components/checkbox';
import Collapse from './components/collapse';

@@ -16,3 +16,2 @@ import Dropdown from './components/dropdown';

import Navbar from './components/navbar';
import Radio from './components/radio';
import Select from './components/select';

@@ -47,4 +46,4 @@ import Sidebar from './components/sidebar';

NJ.AUTOINIT_COMPONENTS = [
Accordion,
Alert,
Checkbox,
Collapse,

@@ -58,3 +57,2 @@ Dropdown,

Navbar,
Radio,
Select,

@@ -68,4 +66,4 @@ Sidebar,

// Makes components API available
NJ.Accordion = Accordion;
NJ.Alert = Alert;
NJ.Checkbox = Checkbox;
NJ.Collapse = Collapse;

@@ -79,3 +77,2 @@ NJ.Dropdown = Dropdown;

NJ.Navbar = Navbar;
NJ.Radio = Radio;
NJ.Select = Select;

@@ -82,0 +79,0 @@ NJ.Sidebar = Sidebar;

import './auto-init';
import Accordion from './components/accordion';
import Alert from './components/alert';
import AutocompleteInput from './components/autocomplete-input';
import Checkbox from './components/checkbox';
import Collapse from './components/collapse';

@@ -16,3 +16,2 @@ import Dropdown from './components/dropdown';

import Password from './components/password';
import Radio from './components/radio';
import Search from './components/search';

@@ -32,4 +31,4 @@ import SegmentedControl from './components/segmented-control';

private static readonly AUTOINIT_COMPONENTS;
static readonly Accordion: typeof Accordion;
static readonly Alert: typeof Alert;
static readonly Checkbox: typeof Checkbox;
static readonly Collapse: typeof Collapse;

@@ -45,3 +44,2 @@ static readonly Dropdown: typeof Dropdown;

static readonly Navbar: typeof Navbar;
static readonly Radio: typeof Radio;
static readonly Select: typeof Select;

@@ -68,3 +66,3 @@ static readonly Sidebar: typeof Sidebar;

}
export { Alert, Checkbox, Collapse, Dropdown, Fab, Form, Header, InlineMessage, InputNumber, Search, Modal, Navbar, Password, Radio, Select, Sidebar, Slider, Tab, Tag, AutocompleteInput, SelectInput, SegmentedControl, BeforeHideEventSource, njTooltip, initAllTooltips, displayTooltipOnHoverAndFocus, Tooltip, ITooltipOptions, openMenu, IMenuOptions };
export { Accordion, Alert, Collapse, Dropdown, Fab, Form, Header, InlineMessage, InputNumber, Search, Modal, Navbar, Password, Select, Sidebar, Slider, Tab, Tag, AutocompleteInput, SelectInput, SegmentedControl, BeforeHideEventSource, njTooltip, initAllTooltips, displayTooltipOnHoverAndFocus, Tooltip, ITooltipOptions, openMenu, IMenuOptions };
declare global {

@@ -71,0 +69,0 @@ interface Window {

import './auto-init';
import Accordion from './components/accordion';
import Alert from './components/alert';
import AutocompleteInput from './components/autocomplete-input';
import Checkbox from './components/checkbox';
import Collapse from './components/collapse';

@@ -16,3 +16,2 @@ import Dropdown from './components/dropdown';

import Password from './components/password';
import Radio from './components/radio';
import Search from './components/search';

@@ -48,4 +47,4 @@ import SegmentedControl from './components/segmented-control';

NJ.AUTOINIT_COMPONENTS = [
Accordion,
Alert,
Checkbox,
Collapse,

@@ -61,3 +60,2 @@ Dropdown,

Navbar,
Radio,
Select,

@@ -75,4 +73,4 @@ Sidebar,

// Makes components API available
NJ.Accordion = Accordion;
NJ.Alert = Alert;
NJ.Checkbox = Checkbox;
NJ.Collapse = Collapse;

@@ -88,3 +86,2 @@ NJ.Dropdown = Dropdown;

NJ.Navbar = Navbar;
NJ.Radio = Radio;
NJ.Select = Select;

@@ -104,3 +101,3 @@ NJ.Sidebar = Sidebar;

export default NJ;
export { Alert, Checkbox, Collapse, Dropdown, Fab, Form, Header, InlineMessage, InputNumber, Search, Modal, Navbar, Password, Radio, Select, Sidebar, Slider, Tab, Tag, AutocompleteInput, SelectInput, SegmentedControl, njTooltip, initAllTooltips, displayTooltipOnHoverAndFocus, Tooltip, openMenu };
export { Accordion, Alert, Collapse, Dropdown, Fab, Form, Header, InlineMessage, InputNumber, Search, Modal, Navbar, Password, Select, Sidebar, Slider, Tab, Tag, AutocompleteInput, SelectInput, SegmentedControl, njTooltip, initAllTooltips, displayTooltipOnHoverAndFocus, Tooltip, openMenu };
if (typeof window !== 'undefined') {

@@ -107,0 +104,0 @@ window.NJ = NJ;

@@ -1,2 +0,2 @@

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("NJ_autoInit",[],e):"object"==typeof exports?exports.NJ_autoInit=e():t.NJ_autoInit=e()}(window,(()=>(()=>{"use strict";var t={1896:(t,e,r)=>{var n=r(9063),o=r(4596),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not a function")}},9472:(t,e,r)=>{var n=r(968),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i("Can't set "+o(t)+" as a prototype")}},2328:(t,e,r)=>{var n=r(1840),o=r(8340),i=r(368).f,a=n("unscopables"),u=Array.prototype;void 0===u[a]&&i(u,a,{configurable:!0,value:o(null)}),t.exports=function(t){u[a][t]=!0}},8424:(t,e,r)=>{var n=r(808),o=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(o(t)+" is not an object")}},2196:(t,e,r)=>{var n=r(9740),o=r(4160),i=r(9480),a=function(t){return function(e,r,a){var u,c=n(e),s=i(c),f=o(a,s);if(t&&r!=r){for(;s>f;)if((u=c[f++])!=u)return!0}else for(;s>f;f++)if((t||f in c)&&c[f]===r)return t||f||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},5983:(t,e,r)=>{var n=r(1447),o=n({}.toString),i=n("".slice);t.exports=function(t){return i(o(t),8,-1)}},4304:(t,e,r)=>{var n=r(6216),o=r(9976),i=r(4560),a=r(368);t.exports=function(t,e,r){for(var u=o(e),c=a.f,s=i.f,f=0;f<u.length;f++){var p=u[f];n(t,p)||r&&n(r,p)||c(t,p,s(e,p))}}},6740:(t,e,r)=>{var n=r(6040);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},2596:t=>{t.exports=function(t,e){return{value:t,done:e}}},3652:(t,e,r)=>{var n=r(3528),o=r(368),i=r(9200);t.exports=n?function(t,e,r){return o.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},9200:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},3244:(t,e,r)=>{var n=r(9063),o=r(368),i=r(316),a=r(1544);t.exports=function(t,e,r,u){u||(u={});var c=u.enumerable,s=void 0!==u.name?u.name:e;if(n(r)&&i(r,s,u),u.global)c?t[e]=r:a(e,r);else{try{u.unsafe?t[e]&&(c=!0):delete t[e]}catch(t){}c?t[e]=r:o.f(t,e,{value:r,enumerable:!1,configurable:!u.nonConfigurable,writable:!u.nonWritable})}return t}},1544:(t,e,r)=>{var n=r(5624),o=Object.defineProperty;t.exports=function(t,e){try{o(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},3528:(t,e,r)=>{var n=r(6040);t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9308:(t,e,r)=>{var n=r(5624),o=r(808),i=n.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},5848:t=>{t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8280:(t,e,r)=>{var n=r(9308)("span").classList,o=n&&n.constructor&&n.constructor.prototype;t.exports=o===Object.prototype?void 0:o},8232:t=>{t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3356:(t,e,r)=>{var n,o,i=r(5624),a=r(8232),u=i.process,c=i.Deno,s=u&&u.versions||c&&c.version,f=s&&s.v8;f&&(o=(n=f.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=+n[1]),t.exports=o},4656:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3748:(t,e,r)=>{var n=r(5624),o=r(4560).f,i=r(3652),a=r(3244),u=r(1544),c=r(4304),s=r(5272);t.exports=function(t,e){var r,f,p,l,v,y=t.target,d=t.global,b=t.stat;if(r=d?n:b?n[y]||u(y,{}):n[y]&&n[y].prototype)for(f in e){if(l=e[f],p=t.dontCallGetSet?(v=o(r,f))&&v.value:r[f],!s(d?f:y+(b?".":"#")+f,t.forced)&&void 0!==p){if(typeof l==typeof p)continue;c(l,p)}(t.sham||p&&p.sham)&&i(l,"sham",!0),a(r,f,l,t)}}},6040:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},5744:(t,e,r)=>{var n=r(6040);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},892:(t,e,r)=>{var n=r(5744),o=Function.prototype.call;t.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},3788:(t,e,r)=>{var n=r(3528),o=r(6216),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,u=o(i,"name"),c=u&&"something"===function(){}.name,s=u&&(!n||n&&a(i,"name").configurable);t.exports={EXISTS:u,PROPER:c,CONFIGURABLE:s}},6632:(t,e,r)=>{var n=r(1447),o=r(1896);t.exports=function(t,e,r){try{return n(o(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}}},1447:(t,e,r)=>{var n=r(5744),o=Function.prototype,i=o.call,a=n&&o.bind.bind(i,i);t.exports=n?a:function(t){return function(){return i.apply(t,arguments)}}},4960:(t,e,r)=>{var n=r(5624),o=r(9063);t.exports=function(t,e){return arguments.length<2?(r=n[t],o(r)?r:void 0):n[t]&&n[t][e];var r}},364:(t,e,r)=>{var n=r(1896),o=r(952);t.exports=function(t,e){var r=t[e];return o(r)?void 0:n(r)}},5624:function(t,e,r){var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},6216:(t,e,r)=>{var n=r(1447),o=r(6804),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(o(t),e)}},6480:t=>{t.exports={}},6836:(t,e,r)=>{var n=r(4960);t.exports=n("document","documentElement")},784:(t,e,r)=>{var n=r(3528),o=r(6040),i=r(9308);t.exports=!n&&!o((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},6212:(t,e,r)=>{var n=r(1447),o=r(6040),i=r(5983),a=Object,u=n("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?u(t,""):a(t)}:a},8460:(t,e,r)=>{var n=r(1447),o=r(9063),i=r(9136),a=n(Function.toString);o(i.inspectSource)||(i.inspectSource=function(t){return a(t)}),t.exports=i.inspectSource},5444:(t,e,r)=>{var n,o,i,a=r(280),u=r(5624),c=r(808),s=r(3652),f=r(6216),p=r(9136),l=r(8192),v=r(6480),y="Object already initialized",d=u.TypeError,b=u.WeakMap;if(a||p.state){var h=p.state||(p.state=new b);h.get=h.get,h.has=h.has,h.set=h.set,n=function(t,e){if(h.has(t))throw new d(y);return e.facade=t,h.set(t,e),e},o=function(t){return h.get(t)||{}},i=function(t){return h.has(t)}}else{var g=l("state");v[g]=!0,n=function(t,e){if(f(t,g))throw new d(y);return e.facade=t,s(t,g,e),e},o=function(t){return f(t,g)?t[g]:{}},i=function(t){return f(t,g)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!c(e)||(r=o(e)).type!==t)throw new d("Incompatible receiver, "+t+" required");return r}}}},9063:t=>{var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},5272:(t,e,r)=>{var n=r(6040),o=r(9063),i=/#|\.prototype\./,a=function(t,e){var r=c[u(t)];return r===f||r!==s&&(o(e)?n(e):!!e)},u=a.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=a.data={},s=a.NATIVE="N",f=a.POLYFILL="P";t.exports=a},952:t=>{t.exports=function(t){return null==t}},808:(t,e,r)=>{var n=r(9063);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},968:(t,e,r)=>{var n=r(808);t.exports=function(t){return n(t)||null===t}},2804:t=>{t.exports=!1},6232:(t,e,r)=>{var n=r(4960),o=r(9063),i=r(6056),a=r(9448),u=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return o(e)&&i(e.prototype,u(t))}},7936:(t,e,r)=>{var n=r(5412).IteratorPrototype,o=r(8340),i=r(9200),a=r(4200),u=r(4920),c=function(){return this};t.exports=function(t,e,r,s){var f=e+" Iterator";return t.prototype=o(n,{next:i(+!s,r)}),a(t,f,!1,!0),u[f]=c,t}},8752:(t,e,r)=>{var n=r(3748),o=r(892),i=r(2804),a=r(3788),u=r(9063),c=r(7936),s=r(1304),f=r(5168),p=r(4200),l=r(3652),v=r(3244),y=r(1840),d=r(4920),b=r(5412),h=a.PROPER,g=a.CONFIGURABLE,m=b.IteratorPrototype,x=b.BUGGY_SAFARI_ITERATORS,w=y("iterator"),S="keys",O="values",j="entries",L=function(){return this};t.exports=function(t,e,r,a,y,b,E){c(r,e,a);var P,T,I,N=function(t){if(t===y&&M)return M;if(!x&&t&&t in C)return C[t];switch(t){case S:case O:case j:return function(){return new r(this,t)}}return function(){return new r(this)}},A=e+" Iterator",k=!1,C=t.prototype,_=C[w]||C["@@iterator"]||y&&C[y],M=!x&&_||N(y),F="Array"===e&&C.entries||_;if(F&&(P=s(F.call(new t)))!==Object.prototype&&P.next&&(i||s(P)===m||(f?f(P,m):u(P[w])||v(P,w,L)),p(P,A,!0,!0),i&&(d[A]=L)),h&&y===O&&_&&_.name!==O&&(!i&&g?l(C,"name",O):(k=!0,M=function(){return o(_,this)})),y)if(T={values:N(O),keys:b?M:N(S),entries:N(j)},E)for(I in T)(x||k||!(I in C))&&v(C,I,T[I]);else n({target:e,proto:!0,forced:x||k},T);return i&&!E||C[w]===M||v(C,w,M,{name:y}),d[e]=M,T}},5412:(t,e,r)=>{var n,o,i,a=r(6040),u=r(9063),c=r(808),s=r(8340),f=r(1304),p=r(3244),l=r(1840),v=r(2804),y=l("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(o=f(f(i)))!==Object.prototype&&(n=o):d=!0),!c(n)||a((function(){var t={};return n[y].call(t)!==t}))?n={}:v&&(n=s(n)),u(n[y])||p(n,y,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},4920:t=>{t.exports={}},9480:(t,e,r)=>{var n=r(960);t.exports=function(t){return n(t.length)}},316:(t,e,r)=>{var n=r(1447),o=r(6040),i=r(9063),a=r(6216),u=r(3528),c=r(3788).CONFIGURABLE,s=r(8460),f=r(5444),p=f.enforce,l=f.get,v=String,y=Object.defineProperty,d=n("".slice),b=n("".replace),h=n([].join),g=u&&!o((function(){return 8!==y((function(){}),"length",{value:8}).length})),m=String(String).split("String"),x=t.exports=function(t,e,r){"Symbol("===d(v(e),0,7)&&(e="["+b(v(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!a(t,"name")||c&&t.name!==e)&&(u?y(t,"name",{value:e,configurable:!0}):t.name=e),g&&r&&a(r,"arity")&&t.length!==r.arity&&y(t,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?u&&y(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=p(t);return a(n,"source")||(n.source=h(m,"string"==typeof e?e:"")),t};Function.prototype.toString=x((function(){return i(this)&&l(this).source||s(this)}),"toString")},1736:t=>{var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},8340:(t,e,r)=>{var n,o=r(8424),i=r(5045),a=r(4656),u=r(6480),c=r(6836),s=r(9308),f=r(8192),p="prototype",l="script",v=f("IE_PROTO"),y=function(){},d=function(t){return"<"+l+">"+t+"</"+l+">"},b=function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e},h=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;h="undefined"!=typeof document?document.domain&&n?b(n):(e=s("iframe"),r="java"+l+":",e.style.display="none",c.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F):b(n);for(var o=a.length;o--;)delete h[p][a[o]];return h()};u[v]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(y[p]=o(t),r=new y,y[p]=null,r[v]=t):r=h(),void 0===e?r:i.f(r,e)}},5045:(t,e,r)=>{var n=r(3528),o=r(4859),i=r(368),a=r(8424),u=r(9740),c=r(4152);e.f=n&&!o?Object.defineProperties:function(t,e){a(t);for(var r,n=u(e),o=c(e),s=o.length,f=0;s>f;)i.f(t,r=o[f++],n[r]);return t}},368:(t,e,r)=>{var n=r(3528),o=r(784),i=r(4859),a=r(8424),u=r(8732),c=TypeError,s=Object.defineProperty,f=Object.getOwnPropertyDescriptor,p="enumerable",l="configurable",v="writable";e.f=n?i?function(t,e,r){if(a(t),e=u(e),a(r),"function"==typeof t&&"prototype"===e&&"value"in r&&v in r&&!r[v]){var n=f(t,e);n&&n[v]&&(t[e]=r.value,r={configurable:l in r?r[l]:n[l],enumerable:p in r?r[p]:n[p],writable:!1})}return s(t,e,r)}:s:function(t,e,r){if(a(t),e=u(e),a(r),o)try{return s(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},4560:(t,e,r)=>{var n=r(3528),o=r(892),i=r(2460),a=r(9200),u=r(9740),c=r(8732),s=r(6216),f=r(784),p=Object.getOwnPropertyDescriptor;e.f=n?p:function(t,e){if(t=u(t),e=c(e),f)try{return p(t,e)}catch(t){}if(s(t,e))return a(!o(i.f,t,e),t[e])}},692:(t,e,r)=>{var n=r(9232),o=r(4656).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,o)}},8167:(t,e)=>{e.f=Object.getOwnPropertySymbols},1304:(t,e,r)=>{var n=r(6216),o=r(9063),i=r(6804),a=r(8192),u=r(6740),c=a("IE_PROTO"),s=Object,f=s.prototype;t.exports=u?s.getPrototypeOf:function(t){var e=i(t);if(n(e,c))return e[c];var r=e.constructor;return o(r)&&e instanceof r?r.prototype:e instanceof s?f:null}},6056:(t,e,r)=>{var n=r(1447);t.exports=n({}.isPrototypeOf)},9232:(t,e,r)=>{var n=r(1447),o=r(6216),i=r(9740),a=r(2196).indexOf,u=r(6480),c=n([].push);t.exports=function(t,e){var r,n=i(t),s=0,f=[];for(r in n)!o(u,r)&&o(n,r)&&c(f,r);for(;e.length>s;)o(n,r=e[s++])&&(~a(f,r)||c(f,r));return f}},4152:(t,e,r)=>{var n=r(9232),o=r(4656);t.exports=Object.keys||function(t){return n(t,o)}},2460:(t,e)=>{var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,o=n&&!r.call({1:2},1);e.f=o?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},5168:(t,e,r)=>{var n=r(6632),o=r(8424),i=r(9472);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=n(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return o(r),i(n),e?t(r,n):r.__proto__=n,r}}():void 0)},7664:(t,e,r)=>{var n=r(892),o=r(9063),i=r(808),a=TypeError;t.exports=function(t,e){var r,u;if("string"===e&&o(r=t.toString)&&!i(u=n(r,t)))return u;if(o(r=t.valueOf)&&!i(u=n(r,t)))return u;if("string"!==e&&o(r=t.toString)&&!i(u=n(r,t)))return u;throw new a("Can't convert object to primitive value")}},9976:(t,e,r)=>{var n=r(4960),o=r(1447),i=r(692),a=r(8167),u=r(8424),c=o([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(u(t)),r=a.f;return r?c(e,r(t)):e}},2696:(t,e,r)=>{var n=r(952),o=TypeError;t.exports=function(t){if(n(t))throw new o("Can't call method on "+t);return t}},4200:(t,e,r)=>{var n=r(368).f,o=r(6216),i=r(1840)("toStringTag");t.exports=function(t,e,r){t&&!r&&(t=t.prototype),t&&!o(t,i)&&n(t,i,{configurable:!0,value:e})}},8192:(t,e,r)=>{var n=r(8196),o=r(320),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},9136:(t,e,r)=>{var n=r(5624),o=r(1544),i="__core-js_shared__",a=n[i]||o(i,{});t.exports=a},8196:(t,e,r)=>{var n=r(2804),o=r(9136);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.35.1",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE",source:"https://github.com/zloirock/core-js"})},8972:(t,e,r)=>{var n=r(3356),o=r(6040),i=r(5624).String;t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},4160:(t,e,r)=>{var n=r(3288),o=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):i(r,e)}},9740:(t,e,r)=>{var n=r(6212),o=r(2696);t.exports=function(t){return n(o(t))}},3288:(t,e,r)=>{var n=r(1736);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},960:(t,e,r)=>{var n=r(3288),o=Math.min;t.exports=function(t){var e=n(t);return e>0?o(e,9007199254740991):0}},6804:(t,e,r)=>{var n=r(2696),o=Object;t.exports=function(t){return o(n(t))}},8176:(t,e,r)=>{var n=r(892),o=r(808),i=r(6232),a=r(364),u=r(7664),c=r(1840),s=TypeError,f=c("toPrimitive");t.exports=function(t,e){if(!o(t)||i(t))return t;var r,c=a(t,f);if(c){if(void 0===e&&(e="default"),r=n(c,t,e),!o(r)||i(r))return r;throw new s("Can't convert object to primitive value")}return void 0===e&&(e="number"),u(t,e)}},8732:(t,e,r)=>{var n=r(8176),o=r(6232);t.exports=function(t){var e=n(t,"string");return o(e)?e:e+""}},4596:t=>{var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},320:(t,e,r)=>{var n=r(1447),o=0,i=Math.random(),a=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+i,36)}},9448:(t,e,r)=>{var n=r(8972);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},4859:(t,e,r)=>{var n=r(3528),o=r(6040);t.exports=n&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},280:(t,e,r)=>{var n=r(5624),o=r(9063),i=n.WeakMap;t.exports=o(i)&&/native code/.test(String(i))},1840:(t,e,r)=>{var n=r(5624),o=r(8196),i=r(6216),a=r(320),u=r(8972),c=r(9448),s=n.Symbol,f=o("wks"),p=c?s.for||s:s&&s.withoutSetter||a;t.exports=function(t){return i(f,t)||(f[t]=u&&i(s,t)?s[t]:p("Symbol."+t)),f[t]}},9120:(t,e,r)=>{var n=r(9740),o=r(2328),i=r(4920),a=r(5444),u=r(368).f,c=r(8752),s=r(2596),f=r(2804),p=r(3528),l="Array Iterator",v=a.set,y=a.getterFor(l);t.exports=c(Array,"Array",(function(t,e){v(this,{type:l,target:n(t),index:0,kind:e})}),(function(){var t=y(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=void 0,s(void 0,!0);switch(t.kind){case"keys":return s(r,!1);case"values":return s(e[r],!1)}return s([r,e[r]],!1)}),"values");var d=i.Arguments=i.Array;if(o("keys"),o("values"),o("entries"),!f&&p&&"values"!==d.name)try{u(d,"name",{value:"values"})}catch(t){}},9708:(t,e,r)=>{var n=r(5624),o=r(5848),i=r(8280),a=r(9120),u=r(3652),c=r(4200),s=r(1840)("iterator"),f=a.values,p=function(t,e){if(t){if(t[s]!==f)try{u(t,s,f)}catch(e){t[s]=f}if(c(t,e,!0),o[e])for(var r in a)if(t[r]!==a[r])try{u(t,r,a[r])}catch(e){t[r]=a[r]}}};for(var l in o)p(n[l]&&n[l].prototype,l);p(i,"DOMTokenList")}},e={};function r(n){var o=e[n];if(void 0!==o)return o.exports;var i=e[n]={exports:{}};return t[n].call(i.exports,i,i.exports,r),i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var n={};return(()=>{r.d(n,{default:()=>c});r(9708);const t=window.NJ&&window.NJ.config||null,e={".nj-alert":"Alert",".nj-checkbox":"Checkbox",".nj-collapse":"Collapse",".nj-dropdown":"Dropdown",".nj-fab-menu":"Fab",".nj-form-autocomplete":"Form",".nj-form-input-password":"Form",".nj-search":"Search","input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=file]):not([type=button]):not([type=submit]):not([type=reset]).nj-form-control":"Form","textarea.nj-form-control":"Form",".nj-header":"Header",".nj-modal":"Modal",".nj-navbar":"Navbar",".nj-radio > label > input[type=radio]":"Radio","select.nj-form-control":"Select",".nj-sidebar":"Sidebar",".nj-slider":"Slider",".nj-tab":"Tab",".nj-tag":"Tag"},o=Object.values(e),i=Object.keys(e),a=i.toString(),u=(()=>{if("undefined"!=typeof window){function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(window.NJ)t?window.NJ[t].init():window.NJ.AutoInit();else if(t)window[t].init();else{const t=o.length;let e=0;for(;e<t;e++)window[o[e]]&&window[o[e]].init()}}function r(t){const e=[];for(const r of t){r&&r.key&&e.push(r)}return!!e.length&&e}function n(t,e){const n={};if("childList"===t[e].type&&t[e].addedNodes.length)for(let a=0;a<t[e].addedNodes.length;a++){const u=t[e].addedNodes[a];if(u){const t=[],e=(e,r)=>{u.classList&&u.classList.contains(e.substring(1))?t[r]=u:u.querySelector&&u.querySelector("".concat(e))&&(t[r]=u.querySelector("".concat(e)))};i.forEach(e);let a=-1;switch(u.tagName){case"INPUT":a=8;break;case"SELECT":a=14;break;case"CHECKBOX":a=9}if(-1!==a&&(t[a]=u),t.length>0){const e=r(t);(!e||e.length<t.length)&&t.forEach(((t,e)=>{t&&(n[o[e]]=o[e])}))}}}return n}function u(t,e){if("childList"===t[e].type&&t[e].removedNodes.length)for(let n=0;n<t[e].removedNodes.length;n++){const o=t[e].removedNodes[n];if(o){const t=o.querySelectorAll?[...o.querySelectorAll(a)]:[];i.forEach((e=>{o.classList&&o.classList.contains(e.substring(1))&&t.push(o)})),"INPUT"!==o.tagName&&"SELECT"!==o.tagName&&"CHECKBOX"!==o.tagName||t.push(o);const e=o.querySelectorAll?[...o.querySelectorAll('[data-toggle="tooltip"]')]:[];if(o.getAttribute&&"tooltip"===o.getAttribute("data-toggle")&&e.push(o),e.length>0&&t.push(...e),t.length>0){const e=r(t);if(e){const t=t=>{const e=t;window.NJStore[e.key.id].dispose()};e.forEach(t)}}}}}function c(){let r=document.getElementById("root")||document.body;t&&t.rootElementId&&(r=document.getElementById(t.rootElementId)||r);const o=r;if(o){const t={attributes:!1,childList:!0,subtree:!0};new MutationObserver((t=>{for(let r=0,o=t.length;r<o;r++){u(t,r);const o=n(t,r);for(const t in o)e(o[t])}})).observe(o,t)}}const s=()=>{e(),c()};return document.addEventListener("DOMContentLoaded",s),!0}return!1})(),c=u})(),n=n.default})()));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("NJ_autoInit",[],t):"object"==typeof exports?exports.NJ_autoInit=t():e.NJ_autoInit=t()}(window,(()=>(()=>{"use strict";var e={d:(t,o)=>{for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>s});const o=window.NJ&&window.NJ.config||null,n={".nj-alert":"Alert",".nj-checkbox":"Checkbox",".nj-collapse":"Collapse",".nj-dropdown":"Dropdown",".nj-fab-menu":"Fab",".nj-form-autocomplete":"Form",".nj-form-input-password":"Form",".nj-search":"Search","input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=file]):not([type=button]):not([type=submit]):not([type=reset]).nj-form-control":"Form","textarea.nj-form-control":"Form",".nj-header":"Header",".nj-modal":"Modal",".nj-navbar":"Navbar",".nj-radio > label > input[type=radio]":"Radio","select.nj-form-control":"Select",".nj-sidebar":"Sidebar",".nj-slider":"Slider",".nj-tab":"Tab",".nj-tag":"Tag",".nj-accordion":"Accordion"},r=Object.values(n),i=Object.keys(n),d=i.toString(),l=(()=>{if("undefined"!=typeof window){function e(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(window.NJ)e?window.NJ[e].init():window.NJ.AutoInit();else if(e)window[e].init();else{const e=r.length;let t=0;for(;t<e;t++)window[r[t]]&&window[r[t]].init()}}function t(e){const t=[];for(const o of e){o&&o.key&&t.push(o)}return!!t.length&&t}function n(e,o){const n={};if("childList"===e[o].type&&e[o].addedNodes.length)for(let d=0;d<e[o].addedNodes.length;d++){const l=e[o].addedNodes[d];if(l){const e=[],o=(t,o)=>{l.classList&&l.classList.contains(t.substring(1))?e[o]=l:l.querySelector&&l.querySelector(`${t}`)&&(e[o]=l.querySelector(`${t}`))};i.forEach(o);let d=-1;switch(l.tagName){case"INPUT":d=8;break;case"SELECT":d=14;break;case"CHECKBOX":d=9}if(-1!==d&&(e[d]=l),e.length>0){const o=t(e);(!o||o.length<e.length)&&e.forEach(((e,t)=>{e&&(n[r[t]]=r[t])}))}}}return n}function l(e,o){if("childList"===e[o].type&&e[o].removedNodes.length)for(let n=0;n<e[o].removedNodes.length;n++){const r=e[o].removedNodes[n];if(r){const e=r.querySelectorAll?[...r.querySelectorAll(d)]:[];i.forEach((t=>{r.classList&&r.classList.contains(t.substring(1))&&e.push(r)})),"INPUT"!==r.tagName&&"SELECT"!==r.tagName&&"CHECKBOX"!==r.tagName||e.push(r);const o=r.querySelectorAll?[...r.querySelectorAll('[data-toggle="tooltip"]')]:[];if(r.getAttribute&&"tooltip"===r.getAttribute("data-toggle")&&o.push(r),o.length>0&&e.push(...o),e.length>0){const o=t(e);if(o){const e=e=>{const t=e;window.NJStore[t.key.id].dispose()};o.forEach(e)}}}}}function s(){let t=document.getElementById("root")||document.body;o&&o.rootElementId&&(t=document.getElementById(o.rootElementId)||t);const r=t;if(r){const t={attributes:!1,childList:!0,subtree:!0};new MutationObserver((t=>{for(let o=0,r=t.length;o<r;o++){l(t,o);const r=n(t,o);for(const t in r)e(r[t])}})).observe(r,t)}}const c=()=>{e(),s()};return document.addEventListener("DOMContentLoaded",c),!0}return!1})(),s=l;return t=t.default})()));
//# sourceMappingURL=auto-init.js.map

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Alert",[],t):"object"==typeof exports?exports.Alert=t():e.Alert=t()}(window,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>g});r={},function(e,t){function n(){this._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,this._iterations=1,this._duration=0,this._playbackRate=1,this._direction="normal",this._easing="linear",this._easingFunction=d}function r(){return e.isDeprecated("Invalid timing inputs","2016-03-02","TypeError exceptions will be thrown instead.",!0)}function i(t,r,i){var o=new n;return r&&(o.fill="both",o.duration="auto"),"number"!=typeof t||isNaN(t)?void 0!==t&&Object.getOwnPropertyNames(t).forEach((function(n){if("auto"!=t[n]){if(("number"==typeof o[n]||"duration"==n)&&("number"!=typeof t[n]||isNaN(t[n])))return;if("fill"==n&&-1==c.indexOf(t[n]))return;if("direction"==n&&-1==f.indexOf(t[n]))return;if("playbackRate"==n&&1!==t[n]&&e.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;o[n]=t[n]}})):o.duration=t,o}function o(e,t,n,r){return e<0||e>1||n<0||n>1?d:function(i){function o(e,t,n){return 3*e*(1-n)*(1-n)*n+3*t*(1-n)*n*n+n*n*n}if(i<=0){var a=0;return e>0?a=t/e:!t&&n>0&&(a=r/n),a*i}if(i>=1){var s=0;return n<1?s=(r-1)/(n-1):1==n&&e<1&&(s=(t-1)/(e-1)),1+s*(i-1)}for(var u=0,l=1;u<l;){var c=(u+l)/2,f=o(e,n,c);if(Math.abs(i-f)<1e-5)return o(t,r,c);f<i?u=c:l=c}return o(t,r,c)}}function a(e,t){return function(n){if(n>=1)return 1;var r=1/e;return(n+=t*r)-n%r}}function s(e){v||(v=document.createElement("div").style),v.animationTimingFunction="",v.animationTimingFunction=e;var t=v.animationTimingFunction;if(""==t&&r())throw new TypeError(e+" is not a valid value for easing");return t}function u(e){if("linear"==e)return d;var t=_.exec(e);if(t)return o.apply(this,t.slice(1).map(Number));var n=b.exec(e);if(n)return a(Number(n[1]),m);var r=T.exec(e);return r?a(Number(r[1]),{start:h,middle:p,end:m}[r[2]]):g[e]||d}function l(e,t,n){if(null==t)return E;var r=n.delay+e+n.endDelay;return t<Math.min(n.delay,r)?x:t>=Math.min(n.delay+e,r)?w:k}var c="backwards|forwards|both|none".split("|"),f="reverse|alternate|alternate-reverse".split("|"),d=function(e){return e};n.prototype={_setMember:function(t,n){this["_"+t]=n,this._effect&&(this._effect._timingInput[t]=n,this._effect._timing=e.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=e.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(e){this._setMember("delay",e)},get delay(){return this._delay},set endDelay(e){this._setMember("endDelay",e)},get endDelay(){return this._endDelay},set fill(e){this._setMember("fill",e)},get fill(){return this._fill},set iterationStart(e){if((isNaN(e)||e<0)&&r())throw new TypeError("iterationStart must be a non-negative number, received: "+e);this._setMember("iterationStart",e)},get iterationStart(){return this._iterationStart},set duration(e){if("auto"!=e&&(isNaN(e)||e<0)&&r())throw new TypeError("duration must be non-negative or auto, received: "+e);this._setMember("duration",e)},get duration(){return this._duration},set direction(e){this._setMember("direction",e)},get direction(){return this._direction},set easing(e){this._easingFunction=u(s(e)),this._setMember("easing",e)},get easing(){return this._easing},set iterations(e){if((isNaN(e)||e<0)&&r())throw new TypeError("iterations must be non-negative, received: "+e);this._setMember("iterations",e)},get iterations(){return this._iterations}};var h=1,p=.5,m=0,g={ease:o(.25,.1,.25,1),"ease-in":o(.42,0,1,1),"ease-out":o(0,0,.58,1),"ease-in-out":o(.42,0,.58,1),"step-start":a(1,h),"step-middle":a(1,p),"step-end":a(1,m)},v=null,y="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",_=new RegExp("cubic-bezier\\("+y+","+y+","+y+","+y+"\\)"),b=/steps\(\s*(\d+)\s*\)/,T=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,E=0,x=1,w=2,k=3;e.cloneTimingInput=function(e){if("number"==typeof e)return e;var t={};for(var n in e)t[n]=e[n];return t},e.makeTiming=i,e.numericTimingToObject=function(e){return"number"==typeof e&&(e=isNaN(e)?{duration:0}:{duration:e}),e},e.normalizeTimingInput=function(t,n){return i(t=e.numericTimingToObject(t),n)},e.calculateActiveDuration=function(e){return Math.abs(function(e){return 0===e.duration||0===e.iterations?0:e.duration*e.iterations}(e)/e.playbackRate)},e.calculateIterationProgress=function(e,t,n){var r=l(e,t,n),i=function(e,t,n,r,i){switch(r){case x:return"backwards"==t||"both"==t?0:null;case k:return n-i;case w:return"forwards"==t||"both"==t?e:null;case E:return null}}(e,n.fill,t,r,n.delay);if(null===i)return null;var o=function(e,t,n,r,i){var o=i;return 0===e?t!==x&&(o+=n):o+=r/e,o}(n.duration,r,n.iterations,i,n.iterationStart),a=function(e,t,n,r,i,o){var a=e===1/0?t%1:e%1;return 0!==a||n!==w||0===r||0===i&&0!==o||(a=1),a}(o,n.iterationStart,r,n.iterations,i,n.duration),s=function(e,t,n,r){return e===w&&t===1/0?1/0:1===n?Math.floor(r)-1:Math.floor(r)}(r,n.iterations,a,o),u=function(e,t,n){var r=e;if("normal"!==e&&"reverse"!==e){var i=t;"alternate-reverse"===e&&(i+=1),r="normal",i!==1/0&&i%2!=0&&(r="reverse")}return"normal"===r?n:1-n}(n.direction,s,a);return n._easingFunction(u)},e.calculatePhase=l,e.normalizeEasing=s,e.parseEasingFunction=u}(n={}),function(e,t){function n(e,t){return e in u&&u[e][t]||t}function r(e,t,r){if(!function(e){return"display"===e||0===e.lastIndexOf("animation",0)||0===e.lastIndexOf("transition",0)}(e)){var i=o[e];if(i)for(var s in a.style[e]=t,i){var u=i[s],l=a.style[u];r[u]=n(u,l)}else r[e]=n(e,t)}}function i(e){var t=[];for(var n in e)if(!(n in["easing","offset","composite"])){var r=e[n];Array.isArray(r)||(r=[r]);for(var i,o=r.length,a=0;a<o;a++)(i={}).offset="offset"in e?e.offset:1==o?1:a/(o-1),"easing"in e&&(i.easing=e.easing),"composite"in e&&(i.composite=e.composite),i[n]=r[a],t.push(i)}return t.sort((function(e,t){return e.offset-t.offset})),t}var o={background:["backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat","backgroundAttachment","backgroundOrigin","backgroundClip","backgroundColor"],border:["borderTopColor","borderTopStyle","borderTopWidth","borderRightColor","borderRightStyle","borderRightWidth","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeftColor","borderLeftStyle","borderLeftWidth"],borderBottom:["borderBottomWidth","borderBottomStyle","borderBottomColor"],borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderLeft:["borderLeftWidth","borderLeftStyle","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderRight:["borderRightWidth","borderRightStyle","borderRightColor"],borderTop:["borderTopWidth","borderTopStyle","borderTopColor"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],flex:["flexGrow","flexShrink","flexBasis"],font:["fontFamily","fontSize","fontStyle","fontVariant","fontWeight","lineHeight"],margin:["marginTop","marginRight","marginBottom","marginLeft"],outline:["outlineColor","outlineStyle","outlineWidth"],padding:["paddingTop","paddingRight","paddingBottom","paddingLeft"]},a=document.createElementNS("http://www.w3.org/1999/xhtml","div"),s={thin:"1px",medium:"3px",thick:"5px"},u={borderBottomWidth:s,borderLeftWidth:s,borderRightWidth:s,borderTopWidth:s,fontSize:{"xx-small":"60%","x-small":"75%",small:"89%",medium:"100%",large:"120%","x-large":"150%","xx-large":"200%"},fontWeight:{normal:"400",bold:"700"},outlineWidth:s,textShadow:{none:"0px 0px 0px transparent"},boxShadow:{none:"0px 0px 0px 0px transparent"}};e.convertToArrayForm=i,e.normalizeKeyframes=function(t){if(null==t)return[];window.Symbol&&Symbol.iterator&&Array.prototype.from&&t[Symbol.iterator]&&(t=Array.from(t)),Array.isArray(t)||(t=i(t));for(var n=t.map((function(t){var n={};for(var i in t){var o=t[i];if("offset"==i){if(null!=o){if(o=Number(o),!isFinite(o))throw new TypeError("Keyframe offsets must be numbers.");if(o<0||o>1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==i){if("add"==o||"accumulate"==o)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};if("replace"!=o)throw new TypeError("Invalid composite mode "+o+".")}else o="easing"==i?e.normalizeEasing(o):""+o;r(i,o,n)}return null==n.offset&&(n.offset=null),null==n.easing&&(n.easing="linear"),n})),o=!0,a=-1/0,s=0;s<n.length;s++){var u=n[s].offset;if(null!=u){if(u<a)throw new TypeError("Keyframes are not loosely sorted by offset. Sort or specify offsets.");a=u}else o=!1}return n=n.filter((function(e){return e.offset>=0&&e.offset<=1})),o||function(){var e=n.length;null==n[e-1].offset&&(n[e-1].offset=1),e>1&&null==n[0].offset&&(n[0].offset=0);for(var t=0,r=n[0].offset,i=1;i<e;i++){var o=n[i].offset;if(null!=o){for(var a=1;a<i-t;a++)n[t+a].offset=r+(o-r)*a/(i-t);t=i,r=o}}}(),n}}(n),function(e){var t={};e.isDeprecated=function(e,n,r,i){var o=i?"are":"is",a=new Date,s=new Date(n);return s.setMonth(s.getMonth()+3),!(a<s&&(e in t||console.warn("Web Animations: "+e+" "+o+" deprecated and will stop working on "+s.toDateString()+". "+r),t[e]=!0,1))},e.deprecated=function(t,n,r,i){var o=i?"are":"is";if(e.isDeprecated(t,n,r,i))throw new Error(t+" "+o+" no longer supported. "+r)}}(n),function(){if(document.documentElement.animate){var e=document.documentElement.animate([],0),t=!0;if(e&&(t=!1,"play|currentTime|pause|reverse|playbackRate|cancel|finish|startTime|playState".split("|").forEach((function(n){void 0===e[n]&&(t=!0)}))),!t)return}!function(e,t,n){t.convertEffectInput=function(n){var r=function(e){for(var t={},n=0;n<e.length;n++)for(var r in e[n])if("offset"!=r&&"easing"!=r&&"composite"!=r){var i={offset:e[n].offset,easing:e[n].easing,value:e[n][r]};t[r]=t[r]||[],t[r].push(i)}for(var o in t){var a=t[o];if(0!=a[0].offset||1!=a[a.length-1].offset)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"Partial keyframes are not supported"}}return t}(e.normalizeKeyframes(n)),i=function(n){var r=[];for(var i in n)for(var o=n[i],a=0;a<o.length-1;a++){var s=a,u=a+1,l=o[s].offset,c=o[u].offset,f=l,d=c;0==a&&(f=-1/0,0==c&&(u=s)),a==o.length-2&&(d=1/0,1==l&&(s=u)),r.push({applyFrom:f,applyTo:d,startOffset:o[s].offset,endOffset:o[u].offset,easingFunction:e.parseEasingFunction(o[s].easing),property:i,interpolation:t.propertyInterpolation(i,o[s].value,o[u].value)})}return r.sort((function(e,t){return e.startOffset-t.startOffset})),r}(r);return function(e,n){if(null!=n)i.filter((function(e){return n>=e.applyFrom&&n<e.applyTo})).forEach((function(r){var i=n-r.startOffset,o=r.endOffset-r.startOffset,a=0==o?0:r.easingFunction(i/o);t.apply(e,r.property,r.interpolation(a))}));else for(var o in r)"offset"!=o&&"easing"!=o&&"composite"!=o&&t.clear(e,o)}}}(n,r),function(e,t,n){function r(e){return e.replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}function i(e,t,n){o[n]=o[n]||[],o[n].push([e,t])}var o={};t.addPropertiesHandler=function(e,t,n){for(var o=0;o<n.length;o++)i(e,t,r(n[o]))};var a={backgroundColor:"transparent",backgroundPosition:"0% 0%",borderBottomColor:"currentColor",borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px",borderBottomWidth:"3px",borderLeftColor:"currentColor",borderLeftWidth:"3px",borderRightColor:"currentColor",borderRightWidth:"3px",borderSpacing:"2px",borderTopColor:"currentColor",borderTopLeftRadius:"0px",borderTopRightRadius:"0px",borderTopWidth:"3px",bottom:"auto",clip:"rect(0px, 0px, 0px, 0px)",color:"black",fontSize:"100%",fontWeight:"400",height:"auto",left:"auto",letterSpacing:"normal",lineHeight:"120%",marginBottom:"0px",marginLeft:"0px",marginRight:"0px",marginTop:"0px",maxHeight:"none",maxWidth:"none",minHeight:"0px",minWidth:"0px",opacity:"1.0",outlineColor:"invert",outlineOffset:"0px",outlineWidth:"3px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",paddingTop:"0px",right:"auto",strokeDasharray:"none",strokeDashoffset:"0px",textIndent:"0px",textShadow:"0px 0px 0px transparent",top:"auto",transform:"",verticalAlign:"0px",visibility:"visible",width:"auto",wordSpacing:"normal",zIndex:"auto"};t.propertyInterpolation=function(n,i,s){var u=n;/-/.test(n)&&!e.isDeprecated("Hyphenated property names","2016-03-22","Use camelCase instead.",!0)&&(u=r(n)),"initial"!=i&&"initial"!=s||("initial"==i&&(i=a[u]),"initial"==s&&(s=a[u]));for(var l=i==s?[]:o[u],c=0;l&&c<l.length;c++){var f=l[c][0](i),d=l[c][0](s);if(void 0!==f&&void 0!==d){var h=l[c][1](f,d);if(h){var p=t.Interpolation.apply(null,h);return function(e){return 0==e?i:1==e?s:p(e)}}}}return t.Interpolation(!1,!0,(function(e){return e?s:i}))}}(n,r),function(e,t,n){t.KeyframeEffect=function(n,r,i,o){var a,s=function(t){var n=e.calculateActiveDuration(t),r=function(r){return e.calculateIterationProgress(n,r,t)};return r._totalDuration=t.delay+n+t.endDelay,r}(e.normalizeTimingInput(i)),u=t.convertEffectInput(r),l=function(){u(n,a)};return l._update=function(e){return null!==(a=s(e))},l._clear=function(){u(n,null)},l._hasSameTarget=function(e){return n===e},l._target=n,l._totalDuration=s._totalDuration,l._id=o,l}}(n,r),function(e,t){function n(e,t,n){n.enumerable=!0,n.configurable=!0,Object.defineProperty(e,t,n)}function r(e){this._element=e,this._surrogateStyle=document.createElementNS("http://www.w3.org/1999/xhtml","div").style,this._style=e.style,this._length=0,this._isAnimatedProperty={},this._updateSvgTransformAttr=function(e,t){return!(!t.namespaceURI||-1==t.namespaceURI.indexOf("/svg"))&&(o in e||(e[o]=/Trident|MSIE|IEMobile|Edge|Android 4/i.test(e.navigator.userAgent)),e[o])}(window,e),this._savedTransformAttr=null;for(var t=0;t<this._style.length;t++){var n=this._style[t];this._surrogateStyle[n]=this._style[n]}this._updateIndices()}function i(e){if(!e._webAnimationsPatchedStyle){var t=new r(e);try{n(e,"style",{get:function(){return t}})}catch(t){e.style._set=function(t,n){e.style[t]=n},e.style._clear=function(t){e.style[t]=""}}e._webAnimationsPatchedStyle=e.style}}var o="_webAnimationsUpdateSvgTransformAttr",a={cssText:1,length:1,parentRule:1},s={getPropertyCSSValue:1,getPropertyPriority:1,getPropertyValue:1,item:1,removeProperty:1,setProperty:1},u={removeProperty:1,setProperty:1};for(var l in r.prototype={get cssText(){return this._surrogateStyle.cssText},set cssText(e){for(var t={},n=0;n<this._surrogateStyle.length;n++)t[this._surrogateStyle[n]]=!0;for(this._surrogateStyle.cssText=e,this._updateIndices(),n=0;n<this._surrogateStyle.length;n++)t[this._surrogateStyle[n]]=!0;for(var r in t)this._isAnimatedProperty[r]||this._style.setProperty(r,this._surrogateStyle.getPropertyValue(r))},get length(){return this._surrogateStyle.length},get parentRule(){return this._style.parentRule},_updateIndices:function(){for(;this._length<this._surrogateStyle.length;)Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,get:function(e){return function(){return this._surrogateStyle[e]}}(this._length)}),this._length++;for(;this._length>this._surrogateStyle.length;)this._length--,Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,value:void 0})},_set:function(t,n){this._style[t]=n,this._isAnimatedProperty[t]=!0,this._updateSvgTransformAttr&&"transform"==e.unprefixedPropertyName(t)&&(null==this._savedTransformAttr&&(this._savedTransformAttr=this._element.getAttribute("transform")),this._element.setAttribute("transform",e.transformToSvgMatrix(n)))},_clear:function(t){this._style[t]=this._surrogateStyle[t],this._updateSvgTransformAttr&&"transform"==e.unprefixedPropertyName(t)&&(this._savedTransformAttr?this._element.setAttribute("transform",this._savedTransformAttr):this._element.removeAttribute("transform"),this._savedTransformAttr=null),delete this._isAnimatedProperty[t]}},s)r.prototype[l]=function(e,t){return function(){var n=this._surrogateStyle[e].apply(this._surrogateStyle,arguments);return t&&(this._isAnimatedProperty[arguments[0]]||this._style[e].apply(this._style,arguments),this._updateIndices()),n}}(l,l in u);for(var c in document.documentElement.style)c in a||c in s||function(e){n(r.prototype,e,{get:function(){return this._surrogateStyle[e]},set:function(t){this._surrogateStyle[e]=t,this._updateIndices(),this._isAnimatedProperty&&!this._isAnimatedProperty[e]&&(this._style[e]=t)}})}(c);e.apply=function(t,n,r){i(t),t.style._set(e.propertyName(n),r)},e.clear=function(t,n){t._webAnimationsPatchedStyle&&t.style._clear(e.propertyName(n))}}(r),function(e){window.Element.prototype.animate=function(t,n){var r="";return n&&n.id&&(r=n.id),e.timeline._play(e.KeyframeEffect(this,t,n,r))}}(r),function(e,t){function n(e,t,r){if("number"==typeof e&&"number"==typeof t)return e*(1-r)+t*r;if("boolean"==typeof e&&"boolean"==typeof t)return r<.5?e:t;if(e.length==t.length){for(var i=[],o=0;o<e.length;o++)i.push(n(e[o],t[o],r));return i}throw"Mismatched interpolation arguments "+e+":"+t}e.Interpolation=function(e,t,r){return function(i){return r(n(e,t,i))}}}(r),function(e,t){var n=function(){function e(e,t){for(var n=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],r=0;r<4;r++)for(var i=0;i<4;i++)for(var o=0;o<4;o++)n[r][i]+=t[r][o]*e[o][i];return n}return function(t,n,r,i,o){for(var a=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],s=0;s<4;s++)a[s][3]=o[s];for(s=0;s<3;s++)for(var u=0;u<3;u++)a[3][s]+=t[u]*a[u][s];var l=i[0],c=i[1],f=i[2],d=i[3],h=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];h[0][0]=1-2*(c*c+f*f),h[0][1]=2*(l*c-f*d),h[0][2]=2*(l*f+c*d),h[1][0]=2*(l*c+f*d),h[1][1]=1-2*(l*l+f*f),h[1][2]=2*(c*f-l*d),h[2][0]=2*(l*f-c*d),h[2][1]=2*(c*f+l*d),h[2][2]=1-2*(l*l+c*c),a=e(a,h);var p=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];for(r[2]&&(p[2][1]=r[2],a=e(a,p)),r[1]&&(p[2][1]=0,p[2][0]=r[0],a=e(a,p)),r[0]&&(p[2][0]=0,p[1][0]=r[0],a=e(a,p)),s=0;s<3;s++)for(u=0;u<3;u++)a[s][u]*=n[s];return function(e){return 0==e[0][2]&&0==e[0][3]&&0==e[1][2]&&0==e[1][3]&&0==e[2][0]&&0==e[2][1]&&1==e[2][2]&&0==e[2][3]&&0==e[3][2]&&1==e[3][3]}(a)?[a[0][0],a[0][1],a[1][0],a[1][1],a[3][0],a[3][1]]:a[0].concat(a[1],a[2],a[3])}}();e.composeMatrix=n,e.quat=function(t,n,r){var i=e.dot(t,n);i=function(e,t,n){return Math.max(Math.min(e,n),t)}(i,-1,1);var o=[];if(1===i)o=t;else for(var a=Math.acos(i),s=1*Math.sin(r*a)/Math.sqrt(1-i*i),u=0;u<4;u++)o.push(t[u]*(Math.cos(r*a)-i*s)+n[u]*s);return o}}(r),function(e,t,n){e.sequenceNumber=0;var r=function(e,t,n){this.target=e,this.currentTime=t,this.timelineTime=n,this.type="finish",this.bubbles=!1,this.cancelable=!1,this.currentTarget=e,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()};t.Animation=function(t){this.id="",t&&t._id&&(this.id=t._id),this._sequenceNumber=e.sequenceNumber++,this._currentTime=0,this._startTime=null,this._paused=!1,this._playbackRate=1,this._inTimeline=!0,this._finishedFlag=!0,this.onfinish=null,this._finishHandlers=[],this._effect=t,this._inEffect=this._effect._update(0),this._idle=!0,this._currentTimePending=!1},t.Animation.prototype={_ensureAlive:function(){this.playbackRate<0&&0===this.currentTime?this._inEffect=this._effect._update(-1):this._inEffect=this._effect._update(this.currentTime),this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline=!0,t.timeline._animations.push(this))},_tickCurrentTime:function(e,t){e!=this._currentTime&&(this._currentTime=e,this._isFinished&&!t&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(e){e=+e,isNaN(e)||(t.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-e/this._playbackRate),this._currentTimePending=!1,this._currentTime!=e&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(e,!0),t.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(e){e=+e,isNaN(e)||this._paused||this._idle||(this._startTime=e,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),t.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(e){if(e!=this._playbackRate){var n=this.currentTime;this._playbackRate=e,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),t.applyDirtiedAnimation(this)),null!=n&&(this.currentTime=n)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished":"running"},_rewind:function(){if(this._playbackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to rewind negative playback rate animation with infinite duration","InvalidStateError");this._currentTime=this._totalDuration}},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),t.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0,this._startTime=null,this._paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1,t.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),t.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(e,t){"function"==typeof t&&"finish"==e&&this._finishHandlers.push(t)},removeEventListener:function(e,t){if("finish"==e){var n=this._finishHandlers.indexOf(t);n>=0&&this._finishHandlers.splice(n,1)}},_fireEvents:function(e){if(this._isFinished){if(!this._finishedFlag){var t=new r(this,this._currentTime,e),n=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout((function(){n.forEach((function(e){e.call(t.target,t)}))}),0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(e,t){this._idle||this._paused||(null==this._startTime?t&&(this.startTime=e-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((e-this._startTime)*this.playbackRate)),t&&(this._currentTimePending=!1,this._fireEvents(e))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var e=this._effect._target;return e._activeAnimations||(e._activeAnimations=[]),e._activeAnimations},_markTarget:function(){var e=this._targetAnimations();-1===e.indexOf(this)&&e.push(this)},_unmarkTarget:function(){var e=this._targetAnimations(),t=e.indexOf(this);-1!==t&&e.splice(t,1)}}}(n,r),function(e,t,n){function r(e){var t=l;l=[],e<m.currentTime&&(e=m.currentTime),m._animations.sort(i),m._animations=s(e,!0,m._animations)[0],t.forEach((function(t){t[1](e)})),a()}function i(e,t){return e._sequenceNumber-t._sequenceNumber}function o(){this._animations=[],this.currentTime=window.performance&&performance.now?performance.now():0}function a(){h.forEach((function(e){e()})),h.length=0}function s(e,n,r){p=!0,d=!1,t.timeline.currentTime=e,f=!1;var i=[],o=[],a=[],s=[];return r.forEach((function(t){t._tick(e,n),t._inEffect?(o.push(t._effect),t._markTarget()):(i.push(t._effect),t._unmarkTarget()),t._needsTick&&(f=!0);var r=t._inEffect||t._needsTick;t._inTimeline=r,r?a.push(t):s.push(t)})),h.push.apply(h,i),h.push.apply(h,o),f&&requestAnimationFrame((function(){})),p=!1,[a,s]}var u=window.requestAnimationFrame,l=[],c=0;window.requestAnimationFrame=function(e){var t=c++;return 0==l.length&&u(r),l.push([t,e]),t},window.cancelAnimationFrame=function(e){l.forEach((function(t){t[0]==e&&(t[1]=function(){})}))},o.prototype={_play:function(n){n._timing=e.normalizeTimingInput(n.timing);var r=new t.Animation(n);return r._idle=!1,r._timeline=this,this._animations.push(r),t.restart(),t.applyDirtiedAnimation(r),r}};var f=!1,d=!1;t.restart=function(){return f||(f=!0,requestAnimationFrame((function(){})),d=!0),d},t.applyDirtiedAnimation=function(e){if(!p){e._markTarget();var n=e._targetAnimations();n.sort(i),s(t.timeline.currentTime,!1,n.slice())[1].forEach((function(e){var t=m._animations.indexOf(e);-1!==t&&m._animations.splice(t,1)})),a()}};var h=[],p=!1,m=new o;t.timeline=m}(n,r),function(e,t){function n(e,t){for(var n=0,r=0;r<e.length;r++)n+=e[r]*t[r];return n}function r(e,t){return[e[0]*t[0]+e[4]*t[1]+e[8]*t[2]+e[12]*t[3],e[1]*t[0]+e[5]*t[1]+e[9]*t[2]+e[13]*t[3],e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]*t[3],e[3]*t[0]+e[7]*t[1]+e[11]*t[2]+e[15]*t[3],e[0]*t[4]+e[4]*t[5]+e[8]*t[6]+e[12]*t[7],e[1]*t[4]+e[5]*t[5]+e[9]*t[6]+e[13]*t[7],e[2]*t[4]+e[6]*t[5]+e[10]*t[6]+e[14]*t[7],e[3]*t[4]+e[7]*t[5]+e[11]*t[6]+e[15]*t[7],e[0]*t[8]+e[4]*t[9]+e[8]*t[10]+e[12]*t[11],e[1]*t[8]+e[5]*t[9]+e[9]*t[10]+e[13]*t[11],e[2]*t[8]+e[6]*t[9]+e[10]*t[10]+e[14]*t[11],e[3]*t[8]+e[7]*t[9]+e[11]*t[10]+e[15]*t[11],e[0]*t[12]+e[4]*t[13]+e[8]*t[14]+e[12]*t[15],e[1]*t[12]+e[5]*t[13]+e[9]*t[14]+e[13]*t[15],e[2]*t[12]+e[6]*t[13]+e[10]*t[14]+e[14]*t[15],e[3]*t[12]+e[7]*t[13]+e[11]*t[14]+e[15]*t[15]]}function i(e){var t=e.rad||0;return((e.deg||0)/360+(e.grad||0)/400+(e.turn||0))*(2*Math.PI)+t}function o(e){switch(e.t){case"rotatex":var t=i(e.d[0]);return[1,0,0,0,0,Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1];case"rotatey":return t=i(e.d[0]),[Math.cos(t),0,-Math.sin(t),0,0,1,0,0,Math.sin(t),0,Math.cos(t),0,0,0,0,1];case"rotate":case"rotatez":return t=i(e.d[0]),[Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1,0,0,0,0,1];case"rotate3d":var n=e.d[0],r=e.d[1],o=e.d[2],a=(t=i(e.d[3]),n*n+r*r+o*o);if(0===a)n=1,r=0,o=0;else if(1!==a){var s=Math.sqrt(a);n/=s,r/=s,o/=s}var u=Math.sin(t/2),l=u*Math.cos(t/2),c=u*u;return[1-2*(r*r+o*o)*c,2*(n*r*c+o*l),2*(n*o*c-r*l),0,2*(n*r*c-o*l),1-2*(n*n+o*o)*c,2*(r*o*c+n*l),0,2*(n*o*c+r*l),2*(r*o*c-n*l),1-2*(n*n+r*r)*c,0,0,0,0,1];case"scale":return[e.d[0],0,0,0,0,e.d[1],0,0,0,0,1,0,0,0,0,1];case"scalex":return[e.d[0],0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"scaley":return[1,0,0,0,0,e.d[0],0,0,0,0,1,0,0,0,0,1];case"scalez":return[1,0,0,0,0,1,0,0,0,0,e.d[0],0,0,0,0,1];case"scale3d":return[e.d[0],0,0,0,0,e.d[1],0,0,0,0,e.d[2],0,0,0,0,1];case"skew":var f=i(e.d[0]),d=i(e.d[1]);return[1,Math.tan(d),0,0,Math.tan(f),1,0,0,0,0,1,0,0,0,0,1];case"skewx":return t=i(e.d[0]),[1,0,0,0,Math.tan(t),1,0,0,0,0,1,0,0,0,0,1];case"skewy":return t=i(e.d[0]),[1,Math.tan(t),0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"translate":return[1,0,0,0,0,1,0,0,0,0,1,0,n=e.d[0].px||0,r=e.d[1].px||0,0,1];case"translatex":return[1,0,0,0,0,1,0,0,0,0,1,0,n=e.d[0].px||0,0,0,1];case"translatey":return[1,0,0,0,0,1,0,0,0,0,1,0,0,r=e.d[0].px||0,0,1];case"translatez":return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,o=e.d[0].px||0,1];case"translate3d":return[1,0,0,0,0,1,0,0,0,0,1,0,n=e.d[0].px||0,r=e.d[1].px||0,o=e.d[2].px||0,1];case"perspective":return[1,0,0,0,0,1,0,0,0,0,1,e.d[0].px?-1/e.d[0].px:0,0,0,0,1];case"matrix":return[e.d[0],e.d[1],0,0,e.d[2],e.d[3],0,0,0,0,1,0,e.d[4],e.d[5],0,1];case"matrix3d":return e.d}}function a(e){return 0===e.length?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:e.map(o).reduce(r)}var s=function(){function e(e){return e[0][0]*e[1][1]*e[2][2]+e[1][0]*e[2][1]*e[0][2]+e[2][0]*e[0][1]*e[1][2]-e[0][2]*e[1][1]*e[2][0]-e[1][2]*e[2][1]*e[0][0]-e[2][2]*e[0][1]*e[1][0]}function t(e){var t=r(e);return[e[0]/t,e[1]/t,e[2]/t]}function r(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2])}function i(e,t,n,r){return[n*e[0]+r*t[0],n*e[1]+r*t[1],n*e[2]+r*t[2]]}return function(o){var a=[o.slice(0,4),o.slice(4,8),o.slice(8,12),o.slice(12,16)];if(1!==a[3][3])return null;for(var s=[],u=0;u<4;u++)s.push(a[u].slice());for(u=0;u<3;u++)s[u][3]=0;if(0===e(s))return null;var l,c=[];a[0][3]||a[1][3]||a[2][3]?(c.push(a[0][3]),c.push(a[1][3]),c.push(a[2][3]),c.push(a[3][3]),l=function(e,t){for(var n=[],r=0;r<4;r++){for(var i=0,o=0;o<4;o++)i+=e[o]*t[o][r];n.push(i)}return n}(c,function(e){return[[e[0][0],e[1][0],e[2][0],e[3][0]],[e[0][1],e[1][1],e[2][1],e[3][1]],[e[0][2],e[1][2],e[2][2],e[3][2]],[e[0][3],e[1][3],e[2][3],e[3][3]]]}(function(t){for(var n=1/e(t),r=t[0][0],i=t[0][1],o=t[0][2],a=t[1][0],s=t[1][1],u=t[1][2],l=t[2][0],c=t[2][1],f=t[2][2],d=[[(s*f-u*c)*n,(o*c-i*f)*n,(i*u-o*s)*n,0],[(u*l-a*f)*n,(r*f-o*l)*n,(o*a-r*u)*n,0],[(a*c-s*l)*n,(l*i-r*c)*n,(r*s-i*a)*n,0]],h=[],p=0;p<3;p++){for(var m=0,g=0;g<3;g++)m+=t[3][g]*d[g][p];h.push(m)}return h.push(1),d.push(h),d}(s)))):l=[0,0,0,1];var f=a[3].slice(0,3),d=[];d.push(a[0].slice(0,3));var h=[];h.push(r(d[0])),d[0]=t(d[0]);var p=[];d.push(a[1].slice(0,3)),p.push(n(d[0],d[1])),d[1]=i(d[1],d[0],1,-p[0]),h.push(r(d[1])),d[1]=t(d[1]),p[0]/=h[1],d.push(a[2].slice(0,3)),p.push(n(d[0],d[2])),d[2]=i(d[2],d[0],1,-p[1]),p.push(n(d[1],d[2])),d[2]=i(d[2],d[1],1,-p[2]),h.push(r(d[2])),d[2]=t(d[2]),p[1]/=h[2],p[2]/=h[2];var m=function(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}(d[1],d[2]);if(n(d[0],m)<0)for(u=0;u<3;u++)h[u]*=-1,d[u][0]*=-1,d[u][1]*=-1,d[u][2]*=-1;var g,v,y=d[0][0]+d[1][1]+d[2][2]+1;return y>1e-4?(g=.5/Math.sqrt(y),v=[(d[2][1]-d[1][2])*g,(d[0][2]-d[2][0])*g,(d[1][0]-d[0][1])*g,.25/g]):d[0][0]>d[1][1]&&d[0][0]>d[2][2]?v=[.25*(g=2*Math.sqrt(1+d[0][0]-d[1][1]-d[2][2])),(d[0][1]+d[1][0])/g,(d[0][2]+d[2][0])/g,(d[2][1]-d[1][2])/g]:d[1][1]>d[2][2]?(g=2*Math.sqrt(1+d[1][1]-d[0][0]-d[2][2]),v=[(d[0][1]+d[1][0])/g,.25*g,(d[1][2]+d[2][1])/g,(d[0][2]-d[2][0])/g]):(g=2*Math.sqrt(1+d[2][2]-d[0][0]-d[1][1]),v=[(d[0][2]+d[2][0])/g,(d[1][2]+d[2][1])/g,.25*g,(d[1][0]-d[0][1])/g]),[f,h,p,v,l]}}();e.dot=n,e.makeMatrixDecomposition=function(e){return[s(a(e))]},e.transformListToMatrix=a}(r),function(e){function t(e,t){var n=e.exec(t);if(n)return[n=e.ignoreCase?n[0].toLowerCase():n[0],t.substr(n.length)]}function n(e,t){var n=e(t=t.replace(/^\s*/,""));if(n)return[n[0],n[1].replace(/^\s*/,"")]}function r(e,t,n,r,i){for(var o=[],a=[],s=[],u=function(e,t){for(var n=e,r=t;n&&r;)n>r?n%=r:r%=n;return e*t/(n+r)}(r.length,i.length),l=0;l<u;l++){var c=t(r[l%r.length],i[l%i.length]);if(!c)return;o.push(c[0]),a.push(c[1]),s.push(c[2])}return[o,a,function(t){var r=t.map((function(e,t){return s[t](e)})).join(n);return e?e(r):r}]}e.consumeToken=t,e.consumeTrimmed=n,e.consumeRepeated=function(e,r,i){e=n.bind(null,e);for(var o=[];;){var a=e(i);if(!a)return[o,i];if(o.push(a[0]),!(a=t(r,i=a[1]))||""==a[1])return[o,i];i=a[1]}},e.consumeParenthesised=function(e,t){for(var n=0,r=0;r<t.length&&(!/\s|,/.test(t[r])||0!=n);r++)if("("==t[r])n++;else if(")"==t[r]&&(0==--n&&r++,n<=0))break;var i=e(t.substr(0,r));return null==i?void 0:[i,t.substr(r)]},e.ignore=function(e){return function(t){var n=e(t);return n&&(n[0]=void 0),n}},e.optional=function(e,t){return function(n){return e(n)||[t,n]}},e.consumeList=function(t,n){for(var r=[],i=0;i<t.length;i++){var o=e.consumeTrimmed(t[i],n);if(!o||""==o[0])return;void 0!==o[0]&&r.push(o[0]),n=o[1]}if(""==n)return r},e.mergeNestedRepeated=r.bind(null,null),e.mergeWrappedNestedRepeated=r,e.mergeList=function(e,t,n){for(var r=[],i=[],o=[],a=0,s=0;s<n.length;s++)if("function"==typeof n[s]){var u=n[s](e[a],t[a++]);r.push(u[0]),i.push(u[1]),o.push(u[2])}else!function(e){r.push(!1),i.push(!1),o.push((function(){return n[e]}))}(s);return[r,i,function(e){for(var t="",n=0;n<e.length;n++)t+=o[n](e[n]);return t}]}}(r),function(e){function t(t){var n={inset:!1,lengths:[],color:null},r=e.consumeRepeated((function(t){var r=e.consumeToken(/^inset/i,t);return r?(n.inset=!0,r):(r=e.consumeLengthOrPercent(t))?(n.lengths.push(r[0]),r):(r=e.consumeColor(t))?(n.color=r[0],r):void 0}),/^/,t);if(r&&r[0].length)return[n,r[1]]}var n=function(t,n,r,i){function o(e){return{inset:e,color:[0,0,0,0],lengths:[{px:0},{px:0},{px:0},{px:0}]}}for(var a=[],s=[],u=0;u<r.length||u<i.length;u++){var l=r[u]||o(i[u].inset),c=i[u]||o(r[u].inset);a.push(l),s.push(c)}return e.mergeNestedRepeated(t,n,a,s)}.bind(null,(function(t,n){for(;t.lengths.length<Math.max(t.lengths.length,n.lengths.length);)t.lengths.push({px:0});for(;n.lengths.length<Math.max(t.lengths.length,n.lengths.length);)n.lengths.push({px:0});if(t.inset==n.inset&&!!t.color==!!n.color){for(var r,i=[],o=[[],0],a=[[],0],s=0;s<t.lengths.length;s++){var u=e.mergeDimensions(t.lengths[s],n.lengths[s],2==s);o[0].push(u[0]),a[0].push(u[1]),i.push(u[2])}if(t.color&&n.color){var l=e.mergeColors(t.color,n.color);o[1]=l[0],a[1]=l[1],r=l[2]}return[o,a,function(e){for(var n=t.inset?"inset ":" ",o=0;o<i.length;o++)n+=i[o](e[0][o])+" ";return r&&(n+=r(e[1])),n}]}}),", ");e.addPropertiesHandler((function(n){var r=e.consumeRepeated(t,/^,/,n);if(r&&""==r[1])return r[0]}),n,["box-shadow","text-shadow"])}(r),function(e,t){function n(e){return e.toFixed(3).replace(/0+$/,"").replace(/\.$/,"")}function r(e,t,n){return Math.min(t,Math.max(e,n))}function i(e){if(/^\s*[-+]?(\d*\.)?\d+\s*$/.test(e))return Number(e)}function o(e,t){return function(i,o){return[i,o,function(i){return n(r(e,t,i))}]}}function a(e){var t=e.trim().split(/\s*[\s,]\s*/);if(0!==t.length){for(var n=[],r=0;r<t.length;r++){var o=i(t[r]);if(void 0===o)return;n.push(o)}return n}}e.clamp=r,e.addPropertiesHandler(a,(function(e,t){if(e.length==t.length)return[e,t,function(e){return e.map(n).join(" ")}]}),["stroke-dasharray"]),e.addPropertiesHandler(i,o(0,1/0),["border-image-width","line-height"]),e.addPropertiesHandler(i,o(0,1),["opacity","shape-image-threshold"]),e.addPropertiesHandler(i,(function(e,t){if(0!=e)return o(0,1/0)(e,t)}),["flex-grow","flex-shrink"]),e.addPropertiesHandler(i,(function(e,t){return[e,t,function(e){return Math.round(r(1,1/0,e))}]}),["orphans","widows"]),e.addPropertiesHandler(i,(function(e,t){return[e,t,Math.round]}),["z-index"]),e.parseNumber=i,e.parseNumberList=a,e.mergeNumbers=function(e,t){return[e,t,n]},e.numberToString=n}(r),function(e,t){e.addPropertiesHandler(String,(function(e,t){if("visible"==e||"visible"==t)return[0,1,function(n){return n<=0?e:n>=1?t:"visible"}]}),["visibility"])}(r),function(e,t){function n(e){e=e.trim(),o.fillStyle="#000",o.fillStyle=e;var t=o.fillStyle;if(o.fillStyle="#fff",o.fillStyle=e,t==o.fillStyle){o.fillRect(0,0,1,1);var n=o.getImageData(0,0,1,1).data;o.clearRect(0,0,1,1);var r=n[3]/255;return[n[0]*r,n[1]*r,n[2]*r,r]}}function r(t,n){return[t,n,function(t){function n(e){return Math.max(0,Math.min(255,e))}if(t[3])for(var r=0;r<3;r++)t[r]=Math.round(n(t[r]/t[3]));return t[3]=e.numberToString(e.clamp(0,1,t[3])),"rgba("+t.join(",")+")"}]}var i=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");i.width=i.height=1;var o=i.getContext("2d");e.addPropertiesHandler(n,r,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","fill","flood-color","lighting-color","outline-color","stop-color","stroke","text-decoration-color"]),e.consumeColor=e.consumeParenthesised.bind(null,n),e.mergeColors=r}(r),function(e,t){function n(e){function t(){var t=a.exec(e);o=t?t[0]:void 0}function n(){if("("!==o)return function(){var e=Number(o);return t(),e}();t();var e=i();return")"!==o?NaN:(t(),e)}function r(){for(var e=n();"*"===o||"/"===o;){var r=o;t();var i=n();"*"===r?e*=i:e/=i}return e}function i(){for(var e=r();"+"===o||"-"===o;){var n=o;t();var i=r();"+"===n?e+=i:e-=i}return e}var o,a=/([\+\-\w\.]+|[\(\)\*\/])/g;return t(),i()}function r(e,t){if("0"==(t=t.trim().toLowerCase())&&"px".search(e)>=0)return{px:0};if(/^[^(]*$|^calc/.test(t)){t=t.replace(/calc\(/g,"(");var r={};t=t.replace(e,(function(e){return r[e]=null,"U"+e}));for(var i="U("+e.source+")",o=t.replace(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+i,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),a=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],s=0;s<a.length;)a[s].test(o)?(o=o.replace(a[s],"$1"),s=0):s++;if("D"==o){for(var u in r){var l=n(t.replace(new RegExp("U"+u,"g"),"").replace(new RegExp(i,"g"),"*0"));if(!isFinite(l))return;r[u]=l}return r}}}function i(e,t){return o(e,t,!0)}function o(t,n,r){var i,o=[];for(i in t)o.push(i);for(i in n)o.indexOf(i)<0&&o.push(i);return t=o.map((function(e){return t[e]||0})),n=o.map((function(e){return n[e]||0})),[t,n,function(t){var n=t.map((function(n,i){return 1==t.length&&r&&(n=Math.max(n,0)),e.numberToString(n)+o[i]})).join(" + ");return t.length>1?"calc("+n+")":n}]}var a="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",s=r.bind(null,new RegExp(a,"g")),u=r.bind(null,new RegExp(a+"|%","g")),l=r.bind(null,/deg|rad|grad|turn/g);e.parseLength=s,e.parseLengthOrPercent=u,e.consumeLengthOrPercent=e.consumeParenthesised.bind(null,u),e.parseAngle=l,e.mergeDimensions=o;var c=e.consumeParenthesised.bind(null,s),f=e.consumeRepeated.bind(void 0,c,/^/),d=e.consumeRepeated.bind(void 0,f,/^,/);e.consumeSizePairList=d;var h=e.mergeNestedRepeated.bind(void 0,i," "),p=e.mergeNestedRepeated.bind(void 0,h,",");e.mergeNonNegativeSizePair=h,e.addPropertiesHandler((function(e){var t=d(e);if(t&&""==t[1])return t[0]}),p,["background-size"]),e.addPropertiesHandler(u,i,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),e.addPropertiesHandler(u,o,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","stroke-dashoffset","text-indent","top","vertical-align","word-spacing"])}(r),function(e,t){function n(t){return e.consumeLengthOrPercent(t)||e.consumeToken(/^auto/,t)}function r(t){var r=e.consumeList([e.ignore(e.consumeToken.bind(null,/^rect/)),e.ignore(e.consumeToken.bind(null,/^\(/)),e.consumeRepeated.bind(null,n,/^,/),e.ignore(e.consumeToken.bind(null,/^\)/))],t);if(r&&4==r[0].length)return r[0]}var i=e.mergeWrappedNestedRepeated.bind(null,(function(e){return"rect("+e+")"}),(function(t,n){return"auto"==t||"auto"==n?[!0,!1,function(r){var i=r?t:n;if("auto"==i)return"auto";var o=e.mergeDimensions(i,i);return o[2](o[0])}]:e.mergeDimensions(t,n)}),", ");e.parseBox=r,e.mergeBoxes=i,e.addPropertiesHandler(r,i,["clip"])}(r),function(e,t){function n(e){return function(t){var n=0;return e.map((function(e){return e===l?t[n++]:e}))}}function r(e){return e}function i(t){if("none"==(t=t.toLowerCase().trim()))return[];for(var n,r=/\s*(\w+)\(([^)]*)\)/g,i=[],o=0;n=r.exec(t);){if(n.index!=o)return;o=n.index+n[0].length;var a=n[1],s=d[a];if(!s)return;var u=n[2].split(","),l=s[0];if(l.length<u.length)return;for(var h=[],p=0;p<l.length;p++){var m,g=u[p],v=l[p];if(void 0===(m=g?{A:function(t){return"0"==t.trim()?f:e.parseAngle(t)},N:e.parseNumber,T:e.parseLengthOrPercent,L:e.parseLength}[v.toUpperCase()](g):{a:f,n:h[0],t:c}[v]))return;h.push(m)}if(i.push({t:a,d:h}),r.lastIndex==t.length)return i}}function o(e){return e.toFixed(6).replace(".000000","")}function a(t,n){if(t.decompositionPair!==n){t.decompositionPair=n;var r=e.makeMatrixDecomposition(t)}if(n.decompositionPair!==t){n.decompositionPair=t;var i=e.makeMatrixDecomposition(n)}return null==r[0]||null==i[0]?[[!1],[!0],function(e){return e?n[0].d:t[0].d}]:(r[0].push(0),i[0].push(1),[r,i,function(t){var n=e.quat(r[0][3],i[0][3],t[5]);return e.composeMatrix(t[0],t[1],t[2],n,t[4]).map(o).join(",")}])}function s(e){return e.replace(/[xy]/,"")}function u(e){return e.replace(/(x|y|z|3d)?$/,"3d")}var l=null,c={px:0},f={deg:0},d={matrix:["NNNNNN",[l,l,0,0,l,l,0,0,0,0,1,0,l,l,0,1],r],matrix3d:["NNNNNNNNNNNNNNNN",r],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",n([l,l,1]),r],scalex:["N",n([l,1,1]),n([l,1])],scaley:["N",n([1,l,1]),n([1,l])],scalez:["N",n([1,1,l])],scale3d:["NNN",r],skew:["Aa",null,r],skewx:["A",null,n([l,f])],skewy:["A",null,n([f,l])],translate:["Tt",n([l,l,c]),r],translatex:["T",n([l,c,c]),n([l,c])],translatey:["T",n([c,l,c]),n([c,l])],translatez:["L",n([c,c,l])],translate3d:["TTL",r]};e.addPropertiesHandler(i,(function(t,n){var r=e.makeMatrixDecomposition&&!0,i=!1;if(!t.length||!n.length){t.length||(i=!0,t=n,n=[]);for(var o=0;o<t.length;o++){var l=t[o].t,c=t[o].d,f="scale"==l.substr(0,5)?1:0;n.push({t:l,d:c.map((function(e){if("number"==typeof e)return f;var t={};for(var n in e)t[n]=f;return t}))})}}var h=function(e,t){return"perspective"==e&&"perspective"==t||("matrix"==e||"matrix3d"==e)&&("matrix"==t||"matrix3d"==t)},p=[],m=[],g=[];if(t.length!=n.length){if(!r)return;p=[(x=a(t,n))[0]],m=[x[1]],g=[["matrix",[x[2]]]]}else for(o=0;o<t.length;o++){var v=t[o].t,y=n[o].t,_=t[o].d,b=n[o].d,T=d[v],E=d[y];if(h(v,y)){if(!r)return;var x=a([t[o]],[n[o]]);p.push(x[0]),m.push(x[1]),g.push(["matrix",[x[2]]])}else{if(v==y)l=v;else if(T[2]&&E[2]&&s(v)==s(y))l=s(v),_=T[2](_),b=E[2](b);else{if(!T[1]||!E[1]||u(v)!=u(y)){if(!r)return;p=[(x=a(t,n))[0]],m=[x[1]],g=[["matrix",[x[2]]]];break}l=u(v),_=T[1](_),b=E[1](b)}for(var w=[],k=[],N=[],A=0;A<_.length;A++)x=("number"==typeof _[A]?e.mergeNumbers:e.mergeDimensions)(_[A],b[A]),w[A]=x[0],k[A]=x[1],N.push(x[2]);p.push(w),m.push(k),g.push([l,N])}}if(i){var S=p;p=m,m=S}return[p,m,function(e){return e.map((function(e,t){var n=e.map((function(e,n){return g[t][1][n](e)})).join(",");return"matrix"==g[t][0]&&16==n.split(",").length&&(g[t][0]="matrix3d"),g[t][0]+"("+n+")"})).join(" ")}]}),["transform"]),e.transformToSvgMatrix=function(t){var n=e.transformListToMatrix(i(t));return"matrix("+o(n[0])+" "+o(n[1])+" "+o(n[4])+" "+o(n[5])+" "+o(n[12])+" "+o(n[13])+")"}}(r),function(e){function t(t){return t=100*Math.round(t/100),400===(t=e.clamp(100,900,t))?"normal":700===t?"bold":String(t)}e.addPropertiesHandler((function(e){var t=Number(e);if(!(isNaN(t)||t<100||t>900||t%100!=0))return t}),(function(e,n){return[e,n,t]}),["font-weight"])}(r),function(e){function t(e){var t={};for(var n in e)t[n]=-e[n];return t}function n(t){return e.consumeToken(/^(left|center|right|top|bottom)\b/i,t)||e.consumeLengthOrPercent(t)}function r(t,r){var i=e.consumeRepeated(n,/^/,r);if(i&&""==i[1]){var a=i[0];if(a[0]=a[0]||"center",a[1]=a[1]||"center",3==t&&(a[2]=a[2]||{px:0}),a.length==t){if(/top|bottom/.test(a[0])||/left|right/.test(a[1])){var s=a[0];a[0]=a[1],a[1]=s}if(/left|right|center|Object/.test(a[0])&&/top|bottom|center|Object/.test(a[1]))return a.map((function(e){return"object"==typeof e?e:o[e]}))}}}function i(r){var i=e.consumeRepeated(n,/^/,r);if(i){for(var a=i[0],s=[{"%":50},{"%":50}],u=0,l=!1,c=0;c<a.length;c++){var f=a[c];"string"==typeof f?(l=/bottom|right/.test(f),s[u={left:0,right:0,center:u,top:1,bottom:1}[f]]=o[f],"center"==f&&u++):(l&&((f=t(f))["%"]=(f["%"]||0)+100),s[u]=f,u++,l=!1)}return[s,i[1]]}}var o={left:{"%":0},center:{"%":50},right:{"%":100},top:{"%":0},bottom:{"%":100}},a=e.mergeNestedRepeated.bind(null,e.mergeDimensions," ");e.addPropertiesHandler(r.bind(null,3),a,["transform-origin"]),e.addPropertiesHandler(r.bind(null,2),a,["perspective-origin"]),e.consumePosition=i,e.mergeOffsetList=a;var s=e.mergeNestedRepeated.bind(null,a,", ");e.addPropertiesHandler((function(t){var n=e.consumeRepeated(i,/^,/,t);if(n&&""==n[1])return n[0]}),s,["background-position","object-position"])}(r),function(e){var t=e.consumeParenthesised.bind(null,e.parseLengthOrPercent),n=e.consumeRepeated.bind(void 0,t,/^/),r=e.mergeNestedRepeated.bind(void 0,e.mergeDimensions," "),i=e.mergeNestedRepeated.bind(void 0,r,",");e.addPropertiesHandler((function(r){var i=e.consumeToken(/^circle/,r);if(i&&i[0])return["circle"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),t,e.ignore(e.consumeToken.bind(void 0,/^at/)),e.consumePosition,e.ignore(e.consumeToken.bind(void 0,/^\)/))],i[1]));var o=e.consumeToken(/^ellipse/,r);if(o&&o[0])return["ellipse"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),n,e.ignore(e.consumeToken.bind(void 0,/^at/)),e.consumePosition,e.ignore(e.consumeToken.bind(void 0,/^\)/))],o[1]));var a=e.consumeToken(/^polygon/,r);return a&&a[0]?["polygon"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),e.optional(e.consumeToken.bind(void 0,/^nonzero\s*,|^evenodd\s*,/),"nonzero,"),e.consumeSizePairList,e.ignore(e.consumeToken.bind(void 0,/^\)/))],a[1])):void 0}),(function(t,n){if(t[0]===n[0])return"circle"==t[0]?e.mergeList(t.slice(1),n.slice(1),["circle(",e.mergeDimensions," at ",e.mergeOffsetList,")"]):"ellipse"==t[0]?e.mergeList(t.slice(1),n.slice(1),["ellipse(",e.mergeNonNegativeSizePair," at ",e.mergeOffsetList,")"]):"polygon"==t[0]&&t[1]==n[1]?e.mergeList(t.slice(2),n.slice(2),["polygon(",t[1],i,")"]):void 0}),["shape-outside"])}(r),function(e,t){function n(e,t){t.concat([e]).forEach((function(t){t in document.documentElement.style&&(r[e]=t),i[t]=e}))}var r={},i={};n("transform",["webkitTransform","msTransform"]),n("transformOrigin",["webkitTransformOrigin"]),n("perspective",["webkitPerspective"]),n("perspectiveOrigin",["webkitPerspectiveOrigin"]),e.propertyName=function(e){return r[e]||e},e.unprefixedPropertyName=function(e){return i[e]||e}}(r)}(),function(){if(void 0===document.createElement("div").animate([]).oncancel){if(window.performance&&performance.now)var e=function(){return performance.now()};else e=function(){return Date.now()};var t=function(e,t,n){this.target=e,this.currentTime=t,this.timelineTime=n,this.type="cancel",this.bubbles=!1,this.cancelable=!1,this.currentTarget=e,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()},n=window.Element.prototype.animate;window.Element.prototype.animate=function(r,i){var o=n.call(this,r,i);o._cancelHandlers=[],o.oncancel=null;var a=o.cancel;o.cancel=function(){a.call(this);var n=new t(this,null,e()),r=this._cancelHandlers.concat(this.oncancel?[this.oncancel]:[]);setTimeout((function(){r.forEach((function(e){e.call(n.target,n)}))}),0)};var s=o.addEventListener;o.addEventListener=function(e,t){"function"==typeof t&&"cancel"==e?this._cancelHandlers.push(t):s.call(this,e,t)};var u=o.removeEventListener;return o.removeEventListener=function(e,t){if("cancel"==e){var n=this._cancelHandlers.indexOf(t);n>=0&&this._cancelHandlers.splice(n,1)}else u.call(this,e,t)},o}}}(),function(e){var t=document.documentElement,n=null,r=!1;try{var i="0"==getComputedStyle(t).getPropertyValue("opacity")?"1":"0";(n=t.animate({opacity:[i,i]},{duration:1})).currentTime=0,r=getComputedStyle(t).getPropertyValue("opacity")==i}catch(e){}finally{n&&n.cancel()}if(!r){var o=window.Element.prototype.animate;window.Element.prototype.animate=function(t,n){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&t[Symbol.iterator]&&(t=Array.from(t)),Array.isArray(t)||null===t||(t=e.convertToArrayForm(t)),o.call(this,t,n)}}}(n);var n,r;var i,o,a,s;!function(e){e.LIBRARY_LOG_TAG="[FLUID]",e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(i||(i={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(o||(o={})),function(e){e.beforehide="beforehide",e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(a||(a={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(s||(s={})),window.NJStore=window.NJStore||[];const u=(()=>{const e=window.NJStore;return{set(t,n,r){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=r},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const r=t.key;r.key===n&&(delete e[r.id],delete t.key)}}})(),l={setData(e,t,n){u.set(e,t,n)},getData:(e,t)=>u.get(e,t),removeData(e,t){u.delete(e,t)}},c=l;class f{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r=[],i=document.querySelectorAll(n);for(let n=0;n<i.length;n++){const o=i[n];if(!o.key||o.key.key!==e.DATA_KEY){const a=new e(i[n],t);o.key||c.setData(i[n],e.DATA_KEY,a),r.push(a)}}return r}}class d{static getUidEvent(e,t){return t&&`${t}::${d.uidEvent++}`||e.uidEvent||d.uidEvent++}static getEvent(e){const t=d.getUidEvent(e);return e.uidEvent=t,d.EVENTREGISTRY[t]=d.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&d.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=r=>(d.fixEvent(r,e),n.oneOff&&d.off(e,r.type,t),t.apply(e,[r]));return n}static njDelegationHandler(e,t,n){const r=i=>{const o=e.querySelectorAll(t);for(let t=i.target;t&&t!==this;t=t.parentNode)for(let a=o.length;a>=0;a--)if(o[a]===t)return d.fixEvent(i,t),r.oneOff&&d.off(e,i.type,n),n.apply(t,[i]);return null};return r}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;const i=e[r];if(i.originalHandler===t&&i.delegationSelector===n)return e[r]}return null}static normalizeParams(e,t,n){const r="string"==typeof t,i=r?n:t;let a=e.replace(d.STRIPNAME_REGEX,"");const u=o[a];u&&(a=u);return"string"==typeof s[a]||(a=e),[r,i,a]}static addHandler(e,t,n,r,i){if("string"!=typeof t||null==e)return;n||(n=r,r=null);const o=d.getEvent(e);for(const a of t.split(" ")){const[t,s,u]=d.normalizeParams(a,n,r),l=o[u]||(o[u]={}),c=d.findHandler(l,s,t?n:null);if(c)return void(c.oneOff=c.oneOff&&i);const f=d.getUidEvent(s,a.replace(d.NAMESPACE_REGEX,"")),h=t?d.njDelegationHandler(e,n,r):d.njHandler(e,n);h.delegationSelector=t?n:null,h.originalHandler=s,h.oneOff=i,h.uidEvent=f,l[f]=h,e.addEventListener(u,h,t)}}static removeHandler(e,t,n,r,i){const o=d.findHandler(t[n],r,i);null!==o&&(e.removeEventListener(n,o,Boolean(i)),delete t[n][o.uidEvent])}static removeNamespacedHandlers(e,t,n,r){const i=t[n]||{};for(const o in i)if(Object.prototype.hasOwnProperty.call(i,o)&&o.indexOf(r)>-1){const r=i[o];d.removeHandler(e,t,n,r.originalHandler,r.delegationSelector)}}static on(e,t,n,r){d.addHandler(e,t,n,r,!1)}static one(e,t,n,r){d.addHandler(e,t,n,r,!0)}static off(e,t,n,r){if("string"!=typeof t||null==e)return;const[i,o,a]=d.normalizeParams(t,n,r),s=a!==t,u=d.getEvent(e);if(void 0!==o){if(!u||!u[a])return;return void d.removeHandler(e,u,a,o,i?n:null)}if("."===t.charAt(0))for(const n in u)Object.prototype.hasOwnProperty.call(u,n)&&d.removeNamespacedHandlers(e,u,n,t.substr(1));const l=u[a]||{};for(const n in l){if(!Object.prototype.hasOwnProperty.call(l,n))continue;const r=n.replace(d.STRIPUID_REGEX,"");if(!s||t.indexOf(r)>-1){const t=l[n];d.removeHandler(e,u,a,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const r=t.replace(d.STRIPNAME_REGEX,""),i="string"==typeof s[r];let o=null;return i?(o=document.createEvent("HTMLEvents"),o.initEvent(r,true,!0)):o=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(o,e,{get:()=>n[e]})})),e.dispatchEvent(o),o}}d.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,d.STRIPNAME_REGEX=/\..*/,d.KEYEVENT_REGEX=/^key/,d.STRIPUID_REGEX=/::\d+$/,d.EVENTREGISTRY={},d.uidEvent=1;const h=d;var p=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};class m extends f{constructor(e){super(m,e),c.setData(e,m.DATA_KEY,this),this.setListeners()}closeAndDestroy(){h.trigger(this.element,m.EVENT.close),this.element.animate&&(this.element.animate(m.KEY_FRAMES,{duration:250,delay:100,easing:"ease-out"}).onfinish=()=>{this.destroyElement()})}close(e){return p(this,void 0,void 0,(function*(){h.trigger(this.element,m.EVENT.close);this.element.animate&&this.element.animate(m.KEY_FRAMES,{duration:250,delay:100,easing:"ease-out"}),yield new Promise((e=>setTimeout(e,350))),e()}))}dispose(){const e=this.element.querySelector(m.SELECTOR.dismiss);h.off(e,m.EVENT.click),c.removeData(this.element,m.DATA_KEY),this.element=null}destroyElement(){this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),h.trigger(this.element,m.EVENT.closed)}setListeners(){const e=this.element.querySelector(m.SELECTOR.dismiss);h.on(e,m.EVENT.click,(()=>{this.closeAndDestroy()}))}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,m.SELECTOR.default)}static getInstance(e){return c.getData(e,m.DATA_KEY)}}m.NAME=`${i.KEY_PREFIX}-alert`,m.DATA_KEY=`${i.KEY_PREFIX}.alert`,m.EVENT_KEY=`.${m.DATA_KEY}`,m.SELECTOR={default:`.${m.NAME}`,dismiss:`.${m.NAME}__close`},m.KEY_FRAMES=[{transform:"translateY(0)",opacity:1},{transform:"translateY(-16px)",opacity:0}],m.EVENT={click:`${a.click}${m.EVENT_KEY}`,close:`${a.close}${m.EVENT_KEY}`,closed:`${a.closed}${m.EVENT_KEY}`};const g=m;return t=t.default})()));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Alert",[],t):"object"==typeof exports?exports.Alert=t():e.Alert=t()}(window,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>g});r={},function(e,t){function n(){this._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,this._iterations=1,this._duration=0,this._playbackRate=1,this._direction="normal",this._easing="linear",this._easingFunction=d}function r(){return e.isDeprecated("Invalid timing inputs","2016-03-02","TypeError exceptions will be thrown instead.",!0)}function i(t,r,i){var o=new n;return r&&(o.fill="both",o.duration="auto"),"number"!=typeof t||isNaN(t)?void 0!==t&&Object.getOwnPropertyNames(t).forEach((function(n){if("auto"!=t[n]){if(("number"==typeof o[n]||"duration"==n)&&("number"!=typeof t[n]||isNaN(t[n])))return;if("fill"==n&&-1==c.indexOf(t[n]))return;if("direction"==n&&-1==f.indexOf(t[n]))return;if("playbackRate"==n&&1!==t[n]&&e.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;o[n]=t[n]}})):o.duration=t,o}function o(e,t,n,r){return e<0||e>1||n<0||n>1?d:function(i){function o(e,t,n){return 3*e*(1-n)*(1-n)*n+3*t*(1-n)*n*n+n*n*n}if(i<=0){var a=0;return e>0?a=t/e:!t&&n>0&&(a=r/n),a*i}if(i>=1){var s=0;return n<1?s=(r-1)/(n-1):1==n&&e<1&&(s=(t-1)/(e-1)),1+s*(i-1)}for(var u=0,l=1;u<l;){var c=(u+l)/2,f=o(e,n,c);if(Math.abs(i-f)<1e-5)return o(t,r,c);f<i?u=c:l=c}return o(t,r,c)}}function a(e,t){return function(n){if(n>=1)return 1;var r=1/e;return(n+=t*r)-n%r}}function s(e){v||(v=document.createElement("div").style),v.animationTimingFunction="",v.animationTimingFunction=e;var t=v.animationTimingFunction;if(""==t&&r())throw new TypeError(e+" is not a valid value for easing");return t}function u(e){if("linear"==e)return d;var t=_.exec(e);if(t)return o.apply(this,t.slice(1).map(Number));var n=b.exec(e);if(n)return a(Number(n[1]),m);var r=T.exec(e);return r?a(Number(r[1]),{start:h,middle:p,end:m}[r[2]]):g[e]||d}function l(e,t,n){if(null==t)return E;var r=n.delay+e+n.endDelay;return t<Math.min(n.delay,r)?x:t>=Math.min(n.delay+e,r)?w:k}var c="backwards|forwards|both|none".split("|"),f="reverse|alternate|alternate-reverse".split("|"),d=function(e){return e};n.prototype={_setMember:function(t,n){this["_"+t]=n,this._effect&&(this._effect._timingInput[t]=n,this._effect._timing=e.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=e.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(e){this._setMember("delay",e)},get delay(){return this._delay},set endDelay(e){this._setMember("endDelay",e)},get endDelay(){return this._endDelay},set fill(e){this._setMember("fill",e)},get fill(){return this._fill},set iterationStart(e){if((isNaN(e)||e<0)&&r())throw new TypeError("iterationStart must be a non-negative number, received: "+e);this._setMember("iterationStart",e)},get iterationStart(){return this._iterationStart},set duration(e){if("auto"!=e&&(isNaN(e)||e<0)&&r())throw new TypeError("duration must be non-negative or auto, received: "+e);this._setMember("duration",e)},get duration(){return this._duration},set direction(e){this._setMember("direction",e)},get direction(){return this._direction},set easing(e){this._easingFunction=u(s(e)),this._setMember("easing",e)},get easing(){return this._easing},set iterations(e){if((isNaN(e)||e<0)&&r())throw new TypeError("iterations must be non-negative, received: "+e);this._setMember("iterations",e)},get iterations(){return this._iterations}};var h=1,p=.5,m=0,g={ease:o(.25,.1,.25,1),"ease-in":o(.42,0,1,1),"ease-out":o(0,0,.58,1),"ease-in-out":o(.42,0,.58,1),"step-start":a(1,h),"step-middle":a(1,p),"step-end":a(1,m)},v=null,y="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",_=new RegExp("cubic-bezier\\("+y+","+y+","+y+","+y+"\\)"),b=/steps\(\s*(\d+)\s*\)/,T=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,E=0,x=1,w=2,k=3;e.cloneTimingInput=function(e){if("number"==typeof e)return e;var t={};for(var n in e)t[n]=e[n];return t},e.makeTiming=i,e.numericTimingToObject=function(e){return"number"==typeof e&&(e=isNaN(e)?{duration:0}:{duration:e}),e},e.normalizeTimingInput=function(t,n){return i(t=e.numericTimingToObject(t),n)},e.calculateActiveDuration=function(e){return Math.abs(function(e){return 0===e.duration||0===e.iterations?0:e.duration*e.iterations}(e)/e.playbackRate)},e.calculateIterationProgress=function(e,t,n){var r=l(e,t,n),i=function(e,t,n,r,i){switch(r){case x:return"backwards"==t||"both"==t?0:null;case k:return n-i;case w:return"forwards"==t||"both"==t?e:null;case E:return null}}(e,n.fill,t,r,n.delay);if(null===i)return null;var o=function(e,t,n,r,i){var o=i;return 0===e?t!==x&&(o+=n):o+=r/e,o}(n.duration,r,n.iterations,i,n.iterationStart),a=function(e,t,n,r,i,o){var a=e===1/0?t%1:e%1;return 0!==a||n!==w||0===r||0===i&&0!==o||(a=1),a}(o,n.iterationStart,r,n.iterations,i,n.duration),s=function(e,t,n,r){return e===w&&t===1/0?1/0:1===n?Math.floor(r)-1:Math.floor(r)}(r,n.iterations,a,o),u=function(e,t,n){var r=e;if("normal"!==e&&"reverse"!==e){var i=t;"alternate-reverse"===e&&(i+=1),r="normal",i!==1/0&&i%2!=0&&(r="reverse")}return"normal"===r?n:1-n}(n.direction,s,a);return n._easingFunction(u)},e.calculatePhase=l,e.normalizeEasing=s,e.parseEasingFunction=u}(n={}),function(e,t){function n(e,t){return e in u&&u[e][t]||t}function r(e,t,r){if(!function(e){return"display"===e||0===e.lastIndexOf("animation",0)||0===e.lastIndexOf("transition",0)}(e)){var i=o[e];if(i)for(var s in a.style[e]=t,i){var u=i[s],l=a.style[u];r[u]=n(u,l)}else r[e]=n(e,t)}}function i(e){var t=[];for(var n in e)if(!(n in["easing","offset","composite"])){var r=e[n];Array.isArray(r)||(r=[r]);for(var i,o=r.length,a=0;a<o;a++)(i={}).offset="offset"in e?e.offset:1==o?1:a/(o-1),"easing"in e&&(i.easing=e.easing),"composite"in e&&(i.composite=e.composite),i[n]=r[a],t.push(i)}return t.sort((function(e,t){return e.offset-t.offset})),t}var o={background:["backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat","backgroundAttachment","backgroundOrigin","backgroundClip","backgroundColor"],border:["borderTopColor","borderTopStyle","borderTopWidth","borderRightColor","borderRightStyle","borderRightWidth","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeftColor","borderLeftStyle","borderLeftWidth"],borderBottom:["borderBottomWidth","borderBottomStyle","borderBottomColor"],borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderLeft:["borderLeftWidth","borderLeftStyle","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderRight:["borderRightWidth","borderRightStyle","borderRightColor"],borderTop:["borderTopWidth","borderTopStyle","borderTopColor"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],flex:["flexGrow","flexShrink","flexBasis"],font:["fontFamily","fontSize","fontStyle","fontVariant","fontWeight","lineHeight"],margin:["marginTop","marginRight","marginBottom","marginLeft"],outline:["outlineColor","outlineStyle","outlineWidth"],padding:["paddingTop","paddingRight","paddingBottom","paddingLeft"]},a=document.createElementNS("http://www.w3.org/1999/xhtml","div"),s={thin:"1px",medium:"3px",thick:"5px"},u={borderBottomWidth:s,borderLeftWidth:s,borderRightWidth:s,borderTopWidth:s,fontSize:{"xx-small":"60%","x-small":"75%",small:"89%",medium:"100%",large:"120%","x-large":"150%","xx-large":"200%"},fontWeight:{normal:"400",bold:"700"},outlineWidth:s,textShadow:{none:"0px 0px 0px transparent"},boxShadow:{none:"0px 0px 0px 0px transparent"}};e.convertToArrayForm=i,e.normalizeKeyframes=function(t){if(null==t)return[];window.Symbol&&Symbol.iterator&&Array.prototype.from&&t[Symbol.iterator]&&(t=Array.from(t)),Array.isArray(t)||(t=i(t));for(var n=t.map((function(t){var n={};for(var i in t){var o=t[i];if("offset"==i){if(null!=o){if(o=Number(o),!isFinite(o))throw new TypeError("Keyframe offsets must be numbers.");if(o<0||o>1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==i){if("add"==o||"accumulate"==o)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};if("replace"!=o)throw new TypeError("Invalid composite mode "+o+".")}else o="easing"==i?e.normalizeEasing(o):""+o;r(i,o,n)}return null==n.offset&&(n.offset=null),null==n.easing&&(n.easing="linear"),n})),o=!0,a=-1/0,s=0;s<n.length;s++){var u=n[s].offset;if(null!=u){if(u<a)throw new TypeError("Keyframes are not loosely sorted by offset. Sort or specify offsets.");a=u}else o=!1}return n=n.filter((function(e){return e.offset>=0&&e.offset<=1})),o||function(){var e=n.length;null==n[e-1].offset&&(n[e-1].offset=1),e>1&&null==n[0].offset&&(n[0].offset=0);for(var t=0,r=n[0].offset,i=1;i<e;i++){var o=n[i].offset;if(null!=o){for(var a=1;a<i-t;a++)n[t+a].offset=r+(o-r)*a/(i-t);t=i,r=o}}}(),n}}(n),function(e){var t={};e.isDeprecated=function(e,n,r,i){var o=i?"are":"is",a=new Date,s=new Date(n);return s.setMonth(s.getMonth()+3),!(a<s&&(e in t||console.warn("Web Animations: "+e+" "+o+" deprecated and will stop working on "+s.toDateString()+". "+r),t[e]=!0,1))},e.deprecated=function(t,n,r,i){var o=i?"are":"is";if(e.isDeprecated(t,n,r,i))throw new Error(t+" "+o+" no longer supported. "+r)}}(n),function(){if(document.documentElement.animate){var e=document.documentElement.animate([],0),t=!0;if(e&&(t=!1,"play|currentTime|pause|reverse|playbackRate|cancel|finish|startTime|playState".split("|").forEach((function(n){void 0===e[n]&&(t=!0)}))),!t)return}!function(e,t,n){t.convertEffectInput=function(n){var r=function(e){for(var t={},n=0;n<e.length;n++)for(var r in e[n])if("offset"!=r&&"easing"!=r&&"composite"!=r){var i={offset:e[n].offset,easing:e[n].easing,value:e[n][r]};t[r]=t[r]||[],t[r].push(i)}for(var o in t){var a=t[o];if(0!=a[0].offset||1!=a[a.length-1].offset)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"Partial keyframes are not supported"}}return t}(e.normalizeKeyframes(n)),i=function(n){var r=[];for(var i in n)for(var o=n[i],a=0;a<o.length-1;a++){var s=a,u=a+1,l=o[s].offset,c=o[u].offset,f=l,d=c;0==a&&(f=-1/0,0==c&&(u=s)),a==o.length-2&&(d=1/0,1==l&&(s=u)),r.push({applyFrom:f,applyTo:d,startOffset:o[s].offset,endOffset:o[u].offset,easingFunction:e.parseEasingFunction(o[s].easing),property:i,interpolation:t.propertyInterpolation(i,o[s].value,o[u].value)})}return r.sort((function(e,t){return e.startOffset-t.startOffset})),r}(r);return function(e,n){if(null!=n)i.filter((function(e){return n>=e.applyFrom&&n<e.applyTo})).forEach((function(r){var i=n-r.startOffset,o=r.endOffset-r.startOffset,a=0==o?0:r.easingFunction(i/o);t.apply(e,r.property,r.interpolation(a))}));else for(var o in r)"offset"!=o&&"easing"!=o&&"composite"!=o&&t.clear(e,o)}}}(n,r),function(e,t,n){function r(e){return e.replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}function i(e,t,n){o[n]=o[n]||[],o[n].push([e,t])}var o={};t.addPropertiesHandler=function(e,t,n){for(var o=0;o<n.length;o++)i(e,t,r(n[o]))};var a={backgroundColor:"transparent",backgroundPosition:"0% 0%",borderBottomColor:"currentColor",borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px",borderBottomWidth:"3px",borderLeftColor:"currentColor",borderLeftWidth:"3px",borderRightColor:"currentColor",borderRightWidth:"3px",borderSpacing:"2px",borderTopColor:"currentColor",borderTopLeftRadius:"0px",borderTopRightRadius:"0px",borderTopWidth:"3px",bottom:"auto",clip:"rect(0px, 0px, 0px, 0px)",color:"black",fontSize:"100%",fontWeight:"400",height:"auto",left:"auto",letterSpacing:"normal",lineHeight:"120%",marginBottom:"0px",marginLeft:"0px",marginRight:"0px",marginTop:"0px",maxHeight:"none",maxWidth:"none",minHeight:"0px",minWidth:"0px",opacity:"1.0",outlineColor:"invert",outlineOffset:"0px",outlineWidth:"3px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",paddingTop:"0px",right:"auto",strokeDasharray:"none",strokeDashoffset:"0px",textIndent:"0px",textShadow:"0px 0px 0px transparent",top:"auto",transform:"",verticalAlign:"0px",visibility:"visible",width:"auto",wordSpacing:"normal",zIndex:"auto"};t.propertyInterpolation=function(n,i,s){var u=n;/-/.test(n)&&!e.isDeprecated("Hyphenated property names","2016-03-22","Use camelCase instead.",!0)&&(u=r(n)),"initial"!=i&&"initial"!=s||("initial"==i&&(i=a[u]),"initial"==s&&(s=a[u]));for(var l=i==s?[]:o[u],c=0;l&&c<l.length;c++){var f=l[c][0](i),d=l[c][0](s);if(void 0!==f&&void 0!==d){var h=l[c][1](f,d);if(h){var p=t.Interpolation.apply(null,h);return function(e){return 0==e?i:1==e?s:p(e)}}}}return t.Interpolation(!1,!0,(function(e){return e?s:i}))}}(n,r),function(e,t,n){t.KeyframeEffect=function(n,r,i,o){var a,s=function(t){var n=e.calculateActiveDuration(t),r=function(r){return e.calculateIterationProgress(n,r,t)};return r._totalDuration=t.delay+n+t.endDelay,r}(e.normalizeTimingInput(i)),u=t.convertEffectInput(r),l=function(){u(n,a)};return l._update=function(e){return null!==(a=s(e))},l._clear=function(){u(n,null)},l._hasSameTarget=function(e){return n===e},l._target=n,l._totalDuration=s._totalDuration,l._id=o,l}}(n,r),function(e,t){function n(e,t,n){n.enumerable=!0,n.configurable=!0,Object.defineProperty(e,t,n)}function r(e){this._element=e,this._surrogateStyle=document.createElementNS("http://www.w3.org/1999/xhtml","div").style,this._style=e.style,this._length=0,this._isAnimatedProperty={},this._updateSvgTransformAttr=function(e,t){return!(!t.namespaceURI||-1==t.namespaceURI.indexOf("/svg"))&&(o in e||(e[o]=/Trident|MSIE|IEMobile|Edge|Android 4/i.test(e.navigator.userAgent)),e[o])}(window,e),this._savedTransformAttr=null;for(var t=0;t<this._style.length;t++){var n=this._style[t];this._surrogateStyle[n]=this._style[n]}this._updateIndices()}function i(e){if(!e._webAnimationsPatchedStyle){var t=new r(e);try{n(e,"style",{get:function(){return t}})}catch(t){e.style._set=function(t,n){e.style[t]=n},e.style._clear=function(t){e.style[t]=""}}e._webAnimationsPatchedStyle=e.style}}var o="_webAnimationsUpdateSvgTransformAttr",a={cssText:1,length:1,parentRule:1},s={getPropertyCSSValue:1,getPropertyPriority:1,getPropertyValue:1,item:1,removeProperty:1,setProperty:1},u={removeProperty:1,setProperty:1};for(var l in r.prototype={get cssText(){return this._surrogateStyle.cssText},set cssText(e){for(var t={},n=0;n<this._surrogateStyle.length;n++)t[this._surrogateStyle[n]]=!0;for(this._surrogateStyle.cssText=e,this._updateIndices(),n=0;n<this._surrogateStyle.length;n++)t[this._surrogateStyle[n]]=!0;for(var r in t)this._isAnimatedProperty[r]||this._style.setProperty(r,this._surrogateStyle.getPropertyValue(r))},get length(){return this._surrogateStyle.length},get parentRule(){return this._style.parentRule},_updateIndices:function(){for(;this._length<this._surrogateStyle.length;)Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,get:function(e){return function(){return this._surrogateStyle[e]}}(this._length)}),this._length++;for(;this._length>this._surrogateStyle.length;)this._length--,Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,value:void 0})},_set:function(t,n){this._style[t]=n,this._isAnimatedProperty[t]=!0,this._updateSvgTransformAttr&&"transform"==e.unprefixedPropertyName(t)&&(null==this._savedTransformAttr&&(this._savedTransformAttr=this._element.getAttribute("transform")),this._element.setAttribute("transform",e.transformToSvgMatrix(n)))},_clear:function(t){this._style[t]=this._surrogateStyle[t],this._updateSvgTransformAttr&&"transform"==e.unprefixedPropertyName(t)&&(this._savedTransformAttr?this._element.setAttribute("transform",this._savedTransformAttr):this._element.removeAttribute("transform"),this._savedTransformAttr=null),delete this._isAnimatedProperty[t]}},s)r.prototype[l]=function(e,t){return function(){var n=this._surrogateStyle[e].apply(this._surrogateStyle,arguments);return t&&(this._isAnimatedProperty[arguments[0]]||this._style[e].apply(this._style,arguments),this._updateIndices()),n}}(l,l in u);for(var c in document.documentElement.style)c in a||c in s||function(e){n(r.prototype,e,{get:function(){return this._surrogateStyle[e]},set:function(t){this._surrogateStyle[e]=t,this._updateIndices(),this._isAnimatedProperty&&!this._isAnimatedProperty[e]&&(this._style[e]=t)}})}(c);e.apply=function(t,n,r){i(t),t.style._set(e.propertyName(n),r)},e.clear=function(t,n){t._webAnimationsPatchedStyle&&t.style._clear(e.propertyName(n))}}(r),function(e){window.Element.prototype.animate=function(t,n){var r="";return n&&n.id&&(r=n.id),e.timeline._play(e.KeyframeEffect(this,t,n,r))}}(r),function(e,t){function n(e,t,r){if("number"==typeof e&&"number"==typeof t)return e*(1-r)+t*r;if("boolean"==typeof e&&"boolean"==typeof t)return r<.5?e:t;if(e.length==t.length){for(var i=[],o=0;o<e.length;o++)i.push(n(e[o],t[o],r));return i}throw"Mismatched interpolation arguments "+e+":"+t}e.Interpolation=function(e,t,r){return function(i){return r(n(e,t,i))}}}(r),function(e,t){var n=function(){function e(e,t){for(var n=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],r=0;r<4;r++)for(var i=0;i<4;i++)for(var o=0;o<4;o++)n[r][i]+=t[r][o]*e[o][i];return n}return function(t,n,r,i,o){for(var a=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],s=0;s<4;s++)a[s][3]=o[s];for(s=0;s<3;s++)for(var u=0;u<3;u++)a[3][s]+=t[u]*a[u][s];var l=i[0],c=i[1],f=i[2],d=i[3],h=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];h[0][0]=1-2*(c*c+f*f),h[0][1]=2*(l*c-f*d),h[0][2]=2*(l*f+c*d),h[1][0]=2*(l*c+f*d),h[1][1]=1-2*(l*l+f*f),h[1][2]=2*(c*f-l*d),h[2][0]=2*(l*f-c*d),h[2][1]=2*(c*f+l*d),h[2][2]=1-2*(l*l+c*c),a=e(a,h);var p=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];for(r[2]&&(p[2][1]=r[2],a=e(a,p)),r[1]&&(p[2][1]=0,p[2][0]=r[0],a=e(a,p)),r[0]&&(p[2][0]=0,p[1][0]=r[0],a=e(a,p)),s=0;s<3;s++)for(u=0;u<3;u++)a[s][u]*=n[s];return function(e){return 0==e[0][2]&&0==e[0][3]&&0==e[1][2]&&0==e[1][3]&&0==e[2][0]&&0==e[2][1]&&1==e[2][2]&&0==e[2][3]&&0==e[3][2]&&1==e[3][3]}(a)?[a[0][0],a[0][1],a[1][0],a[1][1],a[3][0],a[3][1]]:a[0].concat(a[1],a[2],a[3])}}();e.composeMatrix=n,e.quat=function(t,n,r){var i=e.dot(t,n);i=function(e,t,n){return Math.max(Math.min(e,n),t)}(i,-1,1);var o=[];if(1===i)o=t;else for(var a=Math.acos(i),s=1*Math.sin(r*a)/Math.sqrt(1-i*i),u=0;u<4;u++)o.push(t[u]*(Math.cos(r*a)-i*s)+n[u]*s);return o}}(r),function(e,t,n){e.sequenceNumber=0;var r=function(e,t,n){this.target=e,this.currentTime=t,this.timelineTime=n,this.type="finish",this.bubbles=!1,this.cancelable=!1,this.currentTarget=e,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()};t.Animation=function(t){this.id="",t&&t._id&&(this.id=t._id),this._sequenceNumber=e.sequenceNumber++,this._currentTime=0,this._startTime=null,this._paused=!1,this._playbackRate=1,this._inTimeline=!0,this._finishedFlag=!0,this.onfinish=null,this._finishHandlers=[],this._effect=t,this._inEffect=this._effect._update(0),this._idle=!0,this._currentTimePending=!1},t.Animation.prototype={_ensureAlive:function(){this.playbackRate<0&&0===this.currentTime?this._inEffect=this._effect._update(-1):this._inEffect=this._effect._update(this.currentTime),this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline=!0,t.timeline._animations.push(this))},_tickCurrentTime:function(e,t){e!=this._currentTime&&(this._currentTime=e,this._isFinished&&!t&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(e){e=+e,isNaN(e)||(t.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-e/this._playbackRate),this._currentTimePending=!1,this._currentTime!=e&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(e,!0),t.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(e){e=+e,isNaN(e)||this._paused||this._idle||(this._startTime=e,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),t.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(e){if(e!=this._playbackRate){var n=this.currentTime;this._playbackRate=e,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),t.applyDirtiedAnimation(this)),null!=n&&(this.currentTime=n)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished":"running"},_rewind:function(){if(this._playbackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to rewind negative playback rate animation with infinite duration","InvalidStateError");this._currentTime=this._totalDuration}},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),t.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0,this._startTime=null,this._paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1,t.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),t.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(e,t){"function"==typeof t&&"finish"==e&&this._finishHandlers.push(t)},removeEventListener:function(e,t){if("finish"==e){var n=this._finishHandlers.indexOf(t);n>=0&&this._finishHandlers.splice(n,1)}},_fireEvents:function(e){if(this._isFinished){if(!this._finishedFlag){var t=new r(this,this._currentTime,e),n=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout((function(){n.forEach((function(e){e.call(t.target,t)}))}),0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(e,t){this._idle||this._paused||(null==this._startTime?t&&(this.startTime=e-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((e-this._startTime)*this.playbackRate)),t&&(this._currentTimePending=!1,this._fireEvents(e))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var e=this._effect._target;return e._activeAnimations||(e._activeAnimations=[]),e._activeAnimations},_markTarget:function(){var e=this._targetAnimations();-1===e.indexOf(this)&&e.push(this)},_unmarkTarget:function(){var e=this._targetAnimations(),t=e.indexOf(this);-1!==t&&e.splice(t,1)}}}(n,r),function(e,t,n){function r(e){var t=l;l=[],e<m.currentTime&&(e=m.currentTime),m._animations.sort(i),m._animations=s(e,!0,m._animations)[0],t.forEach((function(t){t[1](e)})),a()}function i(e,t){return e._sequenceNumber-t._sequenceNumber}function o(){this._animations=[],this.currentTime=window.performance&&performance.now?performance.now():0}function a(){h.forEach((function(e){e()})),h.length=0}function s(e,n,r){p=!0,d=!1,t.timeline.currentTime=e,f=!1;var i=[],o=[],a=[],s=[];return r.forEach((function(t){t._tick(e,n),t._inEffect?(o.push(t._effect),t._markTarget()):(i.push(t._effect),t._unmarkTarget()),t._needsTick&&(f=!0);var r=t._inEffect||t._needsTick;t._inTimeline=r,r?a.push(t):s.push(t)})),h.push.apply(h,i),h.push.apply(h,o),f&&requestAnimationFrame((function(){})),p=!1,[a,s]}var u=window.requestAnimationFrame,l=[],c=0;window.requestAnimationFrame=function(e){var t=c++;return 0==l.length&&u(r),l.push([t,e]),t},window.cancelAnimationFrame=function(e){l.forEach((function(t){t[0]==e&&(t[1]=function(){})}))},o.prototype={_play:function(n){n._timing=e.normalizeTimingInput(n.timing);var r=new t.Animation(n);return r._idle=!1,r._timeline=this,this._animations.push(r),t.restart(),t.applyDirtiedAnimation(r),r}};var f=!1,d=!1;t.restart=function(){return f||(f=!0,requestAnimationFrame((function(){})),d=!0),d},t.applyDirtiedAnimation=function(e){if(!p){e._markTarget();var n=e._targetAnimations();n.sort(i),s(t.timeline.currentTime,!1,n.slice())[1].forEach((function(e){var t=m._animations.indexOf(e);-1!==t&&m._animations.splice(t,1)})),a()}};var h=[],p=!1,m=new o;t.timeline=m}(n,r),function(e,t){function n(e,t){for(var n=0,r=0;r<e.length;r++)n+=e[r]*t[r];return n}function r(e,t){return[e[0]*t[0]+e[4]*t[1]+e[8]*t[2]+e[12]*t[3],e[1]*t[0]+e[5]*t[1]+e[9]*t[2]+e[13]*t[3],e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]*t[3],e[3]*t[0]+e[7]*t[1]+e[11]*t[2]+e[15]*t[3],e[0]*t[4]+e[4]*t[5]+e[8]*t[6]+e[12]*t[7],e[1]*t[4]+e[5]*t[5]+e[9]*t[6]+e[13]*t[7],e[2]*t[4]+e[6]*t[5]+e[10]*t[6]+e[14]*t[7],e[3]*t[4]+e[7]*t[5]+e[11]*t[6]+e[15]*t[7],e[0]*t[8]+e[4]*t[9]+e[8]*t[10]+e[12]*t[11],e[1]*t[8]+e[5]*t[9]+e[9]*t[10]+e[13]*t[11],e[2]*t[8]+e[6]*t[9]+e[10]*t[10]+e[14]*t[11],e[3]*t[8]+e[7]*t[9]+e[11]*t[10]+e[15]*t[11],e[0]*t[12]+e[4]*t[13]+e[8]*t[14]+e[12]*t[15],e[1]*t[12]+e[5]*t[13]+e[9]*t[14]+e[13]*t[15],e[2]*t[12]+e[6]*t[13]+e[10]*t[14]+e[14]*t[15],e[3]*t[12]+e[7]*t[13]+e[11]*t[14]+e[15]*t[15]]}function i(e){var t=e.rad||0;return((e.deg||0)/360+(e.grad||0)/400+(e.turn||0))*(2*Math.PI)+t}function o(e){switch(e.t){case"rotatex":var t=i(e.d[0]);return[1,0,0,0,0,Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1];case"rotatey":return t=i(e.d[0]),[Math.cos(t),0,-Math.sin(t),0,0,1,0,0,Math.sin(t),0,Math.cos(t),0,0,0,0,1];case"rotate":case"rotatez":return t=i(e.d[0]),[Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1,0,0,0,0,1];case"rotate3d":var n=e.d[0],r=e.d[1],o=e.d[2],a=(t=i(e.d[3]),n*n+r*r+o*o);if(0===a)n=1,r=0,o=0;else if(1!==a){var s=Math.sqrt(a);n/=s,r/=s,o/=s}var u=Math.sin(t/2),l=u*Math.cos(t/2),c=u*u;return[1-2*(r*r+o*o)*c,2*(n*r*c+o*l),2*(n*o*c-r*l),0,2*(n*r*c-o*l),1-2*(n*n+o*o)*c,2*(r*o*c+n*l),0,2*(n*o*c+r*l),2*(r*o*c-n*l),1-2*(n*n+r*r)*c,0,0,0,0,1];case"scale":return[e.d[0],0,0,0,0,e.d[1],0,0,0,0,1,0,0,0,0,1];case"scalex":return[e.d[0],0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"scaley":return[1,0,0,0,0,e.d[0],0,0,0,0,1,0,0,0,0,1];case"scalez":return[1,0,0,0,0,1,0,0,0,0,e.d[0],0,0,0,0,1];case"scale3d":return[e.d[0],0,0,0,0,e.d[1],0,0,0,0,e.d[2],0,0,0,0,1];case"skew":var f=i(e.d[0]),d=i(e.d[1]);return[1,Math.tan(d),0,0,Math.tan(f),1,0,0,0,0,1,0,0,0,0,1];case"skewx":return t=i(e.d[0]),[1,0,0,0,Math.tan(t),1,0,0,0,0,1,0,0,0,0,1];case"skewy":return t=i(e.d[0]),[1,Math.tan(t),0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"translate":return[1,0,0,0,0,1,0,0,0,0,1,0,n=e.d[0].px||0,r=e.d[1].px||0,0,1];case"translatex":return[1,0,0,0,0,1,0,0,0,0,1,0,n=e.d[0].px||0,0,0,1];case"translatey":return[1,0,0,0,0,1,0,0,0,0,1,0,0,r=e.d[0].px||0,0,1];case"translatez":return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,o=e.d[0].px||0,1];case"translate3d":return[1,0,0,0,0,1,0,0,0,0,1,0,n=e.d[0].px||0,r=e.d[1].px||0,o=e.d[2].px||0,1];case"perspective":return[1,0,0,0,0,1,0,0,0,0,1,e.d[0].px?-1/e.d[0].px:0,0,0,0,1];case"matrix":return[e.d[0],e.d[1],0,0,e.d[2],e.d[3],0,0,0,0,1,0,e.d[4],e.d[5],0,1];case"matrix3d":return e.d}}function a(e){return 0===e.length?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:e.map(o).reduce(r)}var s=function(){function e(e){return e[0][0]*e[1][1]*e[2][2]+e[1][0]*e[2][1]*e[0][2]+e[2][0]*e[0][1]*e[1][2]-e[0][2]*e[1][1]*e[2][0]-e[1][2]*e[2][1]*e[0][0]-e[2][2]*e[0][1]*e[1][0]}function t(e){var t=r(e);return[e[0]/t,e[1]/t,e[2]/t]}function r(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2])}function i(e,t,n,r){return[n*e[0]+r*t[0],n*e[1]+r*t[1],n*e[2]+r*t[2]]}return function(o){var a=[o.slice(0,4),o.slice(4,8),o.slice(8,12),o.slice(12,16)];if(1!==a[3][3])return null;for(var s=[],u=0;u<4;u++)s.push(a[u].slice());for(u=0;u<3;u++)s[u][3]=0;if(0===e(s))return null;var l,c=[];a[0][3]||a[1][3]||a[2][3]?(c.push(a[0][3]),c.push(a[1][3]),c.push(a[2][3]),c.push(a[3][3]),l=function(e,t){for(var n=[],r=0;r<4;r++){for(var i=0,o=0;o<4;o++)i+=e[o]*t[o][r];n.push(i)}return n}(c,function(e){return[[e[0][0],e[1][0],e[2][0],e[3][0]],[e[0][1],e[1][1],e[2][1],e[3][1]],[e[0][2],e[1][2],e[2][2],e[3][2]],[e[0][3],e[1][3],e[2][3],e[3][3]]]}(function(t){for(var n=1/e(t),r=t[0][0],i=t[0][1],o=t[0][2],a=t[1][0],s=t[1][1],u=t[1][2],l=t[2][0],c=t[2][1],f=t[2][2],d=[[(s*f-u*c)*n,(o*c-i*f)*n,(i*u-o*s)*n,0],[(u*l-a*f)*n,(r*f-o*l)*n,(o*a-r*u)*n,0],[(a*c-s*l)*n,(l*i-r*c)*n,(r*s-i*a)*n,0]],h=[],p=0;p<3;p++){for(var m=0,g=0;g<3;g++)m+=t[3][g]*d[g][p];h.push(m)}return h.push(1),d.push(h),d}(s)))):l=[0,0,0,1];var f=a[3].slice(0,3),d=[];d.push(a[0].slice(0,3));var h=[];h.push(r(d[0])),d[0]=t(d[0]);var p=[];d.push(a[1].slice(0,3)),p.push(n(d[0],d[1])),d[1]=i(d[1],d[0],1,-p[0]),h.push(r(d[1])),d[1]=t(d[1]),p[0]/=h[1],d.push(a[2].slice(0,3)),p.push(n(d[0],d[2])),d[2]=i(d[2],d[0],1,-p[1]),p.push(n(d[1],d[2])),d[2]=i(d[2],d[1],1,-p[2]),h.push(r(d[2])),d[2]=t(d[2]),p[1]/=h[2],p[2]/=h[2];var m=function(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}(d[1],d[2]);if(n(d[0],m)<0)for(u=0;u<3;u++)h[u]*=-1,d[u][0]*=-1,d[u][1]*=-1,d[u][2]*=-1;var g,v,y=d[0][0]+d[1][1]+d[2][2]+1;return y>1e-4?(g=.5/Math.sqrt(y),v=[(d[2][1]-d[1][2])*g,(d[0][2]-d[2][0])*g,(d[1][0]-d[0][1])*g,.25/g]):d[0][0]>d[1][1]&&d[0][0]>d[2][2]?v=[.25*(g=2*Math.sqrt(1+d[0][0]-d[1][1]-d[2][2])),(d[0][1]+d[1][0])/g,(d[0][2]+d[2][0])/g,(d[2][1]-d[1][2])/g]:d[1][1]>d[2][2]?(g=2*Math.sqrt(1+d[1][1]-d[0][0]-d[2][2]),v=[(d[0][1]+d[1][0])/g,.25*g,(d[1][2]+d[2][1])/g,(d[0][2]-d[2][0])/g]):(g=2*Math.sqrt(1+d[2][2]-d[0][0]-d[1][1]),v=[(d[0][2]+d[2][0])/g,(d[1][2]+d[2][1])/g,.25*g,(d[1][0]-d[0][1])/g]),[f,h,p,v,l]}}();e.dot=n,e.makeMatrixDecomposition=function(e){return[s(a(e))]},e.transformListToMatrix=a}(r),function(e){function t(e,t){var n=e.exec(t);if(n)return[n=e.ignoreCase?n[0].toLowerCase():n[0],t.substr(n.length)]}function n(e,t){var n=e(t=t.replace(/^\s*/,""));if(n)return[n[0],n[1].replace(/^\s*/,"")]}function r(e,t,n,r,i){for(var o=[],a=[],s=[],u=function(e,t){for(var n=e,r=t;n&&r;)n>r?n%=r:r%=n;return e*t/(n+r)}(r.length,i.length),l=0;l<u;l++){var c=t(r[l%r.length],i[l%i.length]);if(!c)return;o.push(c[0]),a.push(c[1]),s.push(c[2])}return[o,a,function(t){var r=t.map((function(e,t){return s[t](e)})).join(n);return e?e(r):r}]}e.consumeToken=t,e.consumeTrimmed=n,e.consumeRepeated=function(e,r,i){e=n.bind(null,e);for(var o=[];;){var a=e(i);if(!a)return[o,i];if(o.push(a[0]),!(a=t(r,i=a[1]))||""==a[1])return[o,i];i=a[1]}},e.consumeParenthesised=function(e,t){for(var n=0,r=0;r<t.length&&(!/\s|,/.test(t[r])||0!=n);r++)if("("==t[r])n++;else if(")"==t[r]&&(0==--n&&r++,n<=0))break;var i=e(t.substr(0,r));return null==i?void 0:[i,t.substr(r)]},e.ignore=function(e){return function(t){var n=e(t);return n&&(n[0]=void 0),n}},e.optional=function(e,t){return function(n){return e(n)||[t,n]}},e.consumeList=function(t,n){for(var r=[],i=0;i<t.length;i++){var o=e.consumeTrimmed(t[i],n);if(!o||""==o[0])return;void 0!==o[0]&&r.push(o[0]),n=o[1]}if(""==n)return r},e.mergeNestedRepeated=r.bind(null,null),e.mergeWrappedNestedRepeated=r,e.mergeList=function(e,t,n){for(var r=[],i=[],o=[],a=0,s=0;s<n.length;s++)if("function"==typeof n[s]){var u=n[s](e[a],t[a++]);r.push(u[0]),i.push(u[1]),o.push(u[2])}else!function(e){r.push(!1),i.push(!1),o.push((function(){return n[e]}))}(s);return[r,i,function(e){for(var t="",n=0;n<e.length;n++)t+=o[n](e[n]);return t}]}}(r),function(e){function t(t){var n={inset:!1,lengths:[],color:null},r=e.consumeRepeated((function(t){var r=e.consumeToken(/^inset/i,t);return r?(n.inset=!0,r):(r=e.consumeLengthOrPercent(t))?(n.lengths.push(r[0]),r):(r=e.consumeColor(t))?(n.color=r[0],r):void 0}),/^/,t);if(r&&r[0].length)return[n,r[1]]}var n=function(t,n,r,i){function o(e){return{inset:e,color:[0,0,0,0],lengths:[{px:0},{px:0},{px:0},{px:0}]}}for(var a=[],s=[],u=0;u<r.length||u<i.length;u++){var l=r[u]||o(i[u].inset),c=i[u]||o(r[u].inset);a.push(l),s.push(c)}return e.mergeNestedRepeated(t,n,a,s)}.bind(null,(function(t,n){for(;t.lengths.length<Math.max(t.lengths.length,n.lengths.length);)t.lengths.push({px:0});for(;n.lengths.length<Math.max(t.lengths.length,n.lengths.length);)n.lengths.push({px:0});if(t.inset==n.inset&&!!t.color==!!n.color){for(var r,i=[],o=[[],0],a=[[],0],s=0;s<t.lengths.length;s++){var u=e.mergeDimensions(t.lengths[s],n.lengths[s],2==s);o[0].push(u[0]),a[0].push(u[1]),i.push(u[2])}if(t.color&&n.color){var l=e.mergeColors(t.color,n.color);o[1]=l[0],a[1]=l[1],r=l[2]}return[o,a,function(e){for(var n=t.inset?"inset ":" ",o=0;o<i.length;o++)n+=i[o](e[0][o])+" ";return r&&(n+=r(e[1])),n}]}}),", ");e.addPropertiesHandler((function(n){var r=e.consumeRepeated(t,/^,/,n);if(r&&""==r[1])return r[0]}),n,["box-shadow","text-shadow"])}(r),function(e,t){function n(e){return e.toFixed(3).replace(/0+$/,"").replace(/\.$/,"")}function r(e,t,n){return Math.min(t,Math.max(e,n))}function i(e){if(/^\s*[-+]?(\d*\.)?\d+\s*$/.test(e))return Number(e)}function o(e,t){return function(i,o){return[i,o,function(i){return n(r(e,t,i))}]}}function a(e){var t=e.trim().split(/\s*[\s,]\s*/);if(0!==t.length){for(var n=[],r=0;r<t.length;r++){var o=i(t[r]);if(void 0===o)return;n.push(o)}return n}}e.clamp=r,e.addPropertiesHandler(a,(function(e,t){if(e.length==t.length)return[e,t,function(e){return e.map(n).join(" ")}]}),["stroke-dasharray"]),e.addPropertiesHandler(i,o(0,1/0),["border-image-width","line-height"]),e.addPropertiesHandler(i,o(0,1),["opacity","shape-image-threshold"]),e.addPropertiesHandler(i,(function(e,t){if(0!=e)return o(0,1/0)(e,t)}),["flex-grow","flex-shrink"]),e.addPropertiesHandler(i,(function(e,t){return[e,t,function(e){return Math.round(r(1,1/0,e))}]}),["orphans","widows"]),e.addPropertiesHandler(i,(function(e,t){return[e,t,Math.round]}),["z-index"]),e.parseNumber=i,e.parseNumberList=a,e.mergeNumbers=function(e,t){return[e,t,n]},e.numberToString=n}(r),function(e,t){e.addPropertiesHandler(String,(function(e,t){if("visible"==e||"visible"==t)return[0,1,function(n){return n<=0?e:n>=1?t:"visible"}]}),["visibility"])}(r),function(e,t){function n(e){e=e.trim(),o.fillStyle="#000",o.fillStyle=e;var t=o.fillStyle;if(o.fillStyle="#fff",o.fillStyle=e,t==o.fillStyle){o.fillRect(0,0,1,1);var n=o.getImageData(0,0,1,1).data;o.clearRect(0,0,1,1);var r=n[3]/255;return[n[0]*r,n[1]*r,n[2]*r,r]}}function r(t,n){return[t,n,function(t){function n(e){return Math.max(0,Math.min(255,e))}if(t[3])for(var r=0;r<3;r++)t[r]=Math.round(n(t[r]/t[3]));return t[3]=e.numberToString(e.clamp(0,1,t[3])),"rgba("+t.join(",")+")"}]}var i=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");i.width=i.height=1;var o=i.getContext("2d");e.addPropertiesHandler(n,r,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","fill","flood-color","lighting-color","outline-color","stop-color","stroke","text-decoration-color"]),e.consumeColor=e.consumeParenthesised.bind(null,n),e.mergeColors=r}(r),function(e,t){function n(e){function t(){var t=a.exec(e);o=t?t[0]:void 0}function n(){if("("!==o)return function(){var e=Number(o);return t(),e}();t();var e=i();return")"!==o?NaN:(t(),e)}function r(){for(var e=n();"*"===o||"/"===o;){var r=o;t();var i=n();"*"===r?e*=i:e/=i}return e}function i(){for(var e=r();"+"===o||"-"===o;){var n=o;t();var i=r();"+"===n?e+=i:e-=i}return e}var o,a=/([\+\-\w\.]+|[\(\)\*\/])/g;return t(),i()}function r(e,t){if("0"==(t=t.trim().toLowerCase())&&"px".search(e)>=0)return{px:0};if(/^[^(]*$|^calc/.test(t)){t=t.replace(/calc\(/g,"(");var r={};t=t.replace(e,(function(e){return r[e]=null,"U"+e}));for(var i="U("+e.source+")",o=t.replace(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+i,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),a=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],s=0;s<a.length;)a[s].test(o)?(o=o.replace(a[s],"$1"),s=0):s++;if("D"==o){for(var u in r){var l=n(t.replace(new RegExp("U"+u,"g"),"").replace(new RegExp(i,"g"),"*0"));if(!isFinite(l))return;r[u]=l}return r}}}function i(e,t){return o(e,t,!0)}function o(t,n,r){var i,o=[];for(i in t)o.push(i);for(i in n)o.indexOf(i)<0&&o.push(i);return t=o.map((function(e){return t[e]||0})),n=o.map((function(e){return n[e]||0})),[t,n,function(t){var n=t.map((function(n,i){return 1==t.length&&r&&(n=Math.max(n,0)),e.numberToString(n)+o[i]})).join(" + ");return t.length>1?"calc("+n+")":n}]}var a="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",s=r.bind(null,new RegExp(a,"g")),u=r.bind(null,new RegExp(a+"|%","g")),l=r.bind(null,/deg|rad|grad|turn/g);e.parseLength=s,e.parseLengthOrPercent=u,e.consumeLengthOrPercent=e.consumeParenthesised.bind(null,u),e.parseAngle=l,e.mergeDimensions=o;var c=e.consumeParenthesised.bind(null,s),f=e.consumeRepeated.bind(void 0,c,/^/),d=e.consumeRepeated.bind(void 0,f,/^,/);e.consumeSizePairList=d;var h=e.mergeNestedRepeated.bind(void 0,i," "),p=e.mergeNestedRepeated.bind(void 0,h,",");e.mergeNonNegativeSizePair=h,e.addPropertiesHandler((function(e){var t=d(e);if(t&&""==t[1])return t[0]}),p,["background-size"]),e.addPropertiesHandler(u,i,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),e.addPropertiesHandler(u,o,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","stroke-dashoffset","text-indent","top","vertical-align","word-spacing"])}(r),function(e,t){function n(t){return e.consumeLengthOrPercent(t)||e.consumeToken(/^auto/,t)}function r(t){var r=e.consumeList([e.ignore(e.consumeToken.bind(null,/^rect/)),e.ignore(e.consumeToken.bind(null,/^\(/)),e.consumeRepeated.bind(null,n,/^,/),e.ignore(e.consumeToken.bind(null,/^\)/))],t);if(r&&4==r[0].length)return r[0]}var i=e.mergeWrappedNestedRepeated.bind(null,(function(e){return"rect("+e+")"}),(function(t,n){return"auto"==t||"auto"==n?[!0,!1,function(r){var i=r?t:n;if("auto"==i)return"auto";var o=e.mergeDimensions(i,i);return o[2](o[0])}]:e.mergeDimensions(t,n)}),", ");e.parseBox=r,e.mergeBoxes=i,e.addPropertiesHandler(r,i,["clip"])}(r),function(e,t){function n(e){return function(t){var n=0;return e.map((function(e){return e===l?t[n++]:e}))}}function r(e){return e}function i(t){if("none"==(t=t.toLowerCase().trim()))return[];for(var n,r=/\s*(\w+)\(([^)]*)\)/g,i=[],o=0;n=r.exec(t);){if(n.index!=o)return;o=n.index+n[0].length;var a=n[1],s=d[a];if(!s)return;var u=n[2].split(","),l=s[0];if(l.length<u.length)return;for(var h=[],p=0;p<l.length;p++){var m,g=u[p],v=l[p];if(void 0===(m=g?{A:function(t){return"0"==t.trim()?f:e.parseAngle(t)},N:e.parseNumber,T:e.parseLengthOrPercent,L:e.parseLength}[v.toUpperCase()](g):{a:f,n:h[0],t:c}[v]))return;h.push(m)}if(i.push({t:a,d:h}),r.lastIndex==t.length)return i}}function o(e){return e.toFixed(6).replace(".000000","")}function a(t,n){if(t.decompositionPair!==n){t.decompositionPair=n;var r=e.makeMatrixDecomposition(t)}if(n.decompositionPair!==t){n.decompositionPair=t;var i=e.makeMatrixDecomposition(n)}return null==r[0]||null==i[0]?[[!1],[!0],function(e){return e?n[0].d:t[0].d}]:(r[0].push(0),i[0].push(1),[r,i,function(t){var n=e.quat(r[0][3],i[0][3],t[5]);return e.composeMatrix(t[0],t[1],t[2],n,t[4]).map(o).join(",")}])}function s(e){return e.replace(/[xy]/,"")}function u(e){return e.replace(/(x|y|z|3d)?$/,"3d")}var l=null,c={px:0},f={deg:0},d={matrix:["NNNNNN",[l,l,0,0,l,l,0,0,0,0,1,0,l,l,0,1],r],matrix3d:["NNNNNNNNNNNNNNNN",r],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",n([l,l,1]),r],scalex:["N",n([l,1,1]),n([l,1])],scaley:["N",n([1,l,1]),n([1,l])],scalez:["N",n([1,1,l])],scale3d:["NNN",r],skew:["Aa",null,r],skewx:["A",null,n([l,f])],skewy:["A",null,n([f,l])],translate:["Tt",n([l,l,c]),r],translatex:["T",n([l,c,c]),n([l,c])],translatey:["T",n([c,l,c]),n([c,l])],translatez:["L",n([c,c,l])],translate3d:["TTL",r]};e.addPropertiesHandler(i,(function(t,n){var r=e.makeMatrixDecomposition&&!0,i=!1;if(!t.length||!n.length){t.length||(i=!0,t=n,n=[]);for(var o=0;o<t.length;o++){var l=t[o].t,c=t[o].d,f="scale"==l.substr(0,5)?1:0;n.push({t:l,d:c.map((function(e){if("number"==typeof e)return f;var t={};for(var n in e)t[n]=f;return t}))})}}var h=function(e,t){return"perspective"==e&&"perspective"==t||("matrix"==e||"matrix3d"==e)&&("matrix"==t||"matrix3d"==t)},p=[],m=[],g=[];if(t.length!=n.length){if(!r)return;p=[(x=a(t,n))[0]],m=[x[1]],g=[["matrix",[x[2]]]]}else for(o=0;o<t.length;o++){var v=t[o].t,y=n[o].t,_=t[o].d,b=n[o].d,T=d[v],E=d[y];if(h(v,y)){if(!r)return;var x=a([t[o]],[n[o]]);p.push(x[0]),m.push(x[1]),g.push(["matrix",[x[2]]])}else{if(v==y)l=v;else if(T[2]&&E[2]&&s(v)==s(y))l=s(v),_=T[2](_),b=E[2](b);else{if(!T[1]||!E[1]||u(v)!=u(y)){if(!r)return;p=[(x=a(t,n))[0]],m=[x[1]],g=[["matrix",[x[2]]]];break}l=u(v),_=T[1](_),b=E[1](b)}for(var w=[],k=[],N=[],A=0;A<_.length;A++)x=("number"==typeof _[A]?e.mergeNumbers:e.mergeDimensions)(_[A],b[A]),w[A]=x[0],k[A]=x[1],N.push(x[2]);p.push(w),m.push(k),g.push([l,N])}}if(i){var S=p;p=m,m=S}return[p,m,function(e){return e.map((function(e,t){var n=e.map((function(e,n){return g[t][1][n](e)})).join(",");return"matrix"==g[t][0]&&16==n.split(",").length&&(g[t][0]="matrix3d"),g[t][0]+"("+n+")"})).join(" ")}]}),["transform"]),e.transformToSvgMatrix=function(t){var n=e.transformListToMatrix(i(t));return"matrix("+o(n[0])+" "+o(n[1])+" "+o(n[4])+" "+o(n[5])+" "+o(n[12])+" "+o(n[13])+")"}}(r),function(e){function t(t){return t=100*Math.round(t/100),400===(t=e.clamp(100,900,t))?"normal":700===t?"bold":String(t)}e.addPropertiesHandler((function(e){var t=Number(e);if(!(isNaN(t)||t<100||t>900||t%100!=0))return t}),(function(e,n){return[e,n,t]}),["font-weight"])}(r),function(e){function t(e){var t={};for(var n in e)t[n]=-e[n];return t}function n(t){return e.consumeToken(/^(left|center|right|top|bottom)\b/i,t)||e.consumeLengthOrPercent(t)}function r(t,r){var i=e.consumeRepeated(n,/^/,r);if(i&&""==i[1]){var a=i[0];if(a[0]=a[0]||"center",a[1]=a[1]||"center",3==t&&(a[2]=a[2]||{px:0}),a.length==t){if(/top|bottom/.test(a[0])||/left|right/.test(a[1])){var s=a[0];a[0]=a[1],a[1]=s}if(/left|right|center|Object/.test(a[0])&&/top|bottom|center|Object/.test(a[1]))return a.map((function(e){return"object"==typeof e?e:o[e]}))}}}function i(r){var i=e.consumeRepeated(n,/^/,r);if(i){for(var a=i[0],s=[{"%":50},{"%":50}],u=0,l=!1,c=0;c<a.length;c++){var f=a[c];"string"==typeof f?(l=/bottom|right/.test(f),s[u={left:0,right:0,center:u,top:1,bottom:1}[f]]=o[f],"center"==f&&u++):(l&&((f=t(f))["%"]=(f["%"]||0)+100),s[u]=f,u++,l=!1)}return[s,i[1]]}}var o={left:{"%":0},center:{"%":50},right:{"%":100},top:{"%":0},bottom:{"%":100}},a=e.mergeNestedRepeated.bind(null,e.mergeDimensions," ");e.addPropertiesHandler(r.bind(null,3),a,["transform-origin"]),e.addPropertiesHandler(r.bind(null,2),a,["perspective-origin"]),e.consumePosition=i,e.mergeOffsetList=a;var s=e.mergeNestedRepeated.bind(null,a,", ");e.addPropertiesHandler((function(t){var n=e.consumeRepeated(i,/^,/,t);if(n&&""==n[1])return n[0]}),s,["background-position","object-position"])}(r),function(e){var t=e.consumeParenthesised.bind(null,e.parseLengthOrPercent),n=e.consumeRepeated.bind(void 0,t,/^/),r=e.mergeNestedRepeated.bind(void 0,e.mergeDimensions," "),i=e.mergeNestedRepeated.bind(void 0,r,",");e.addPropertiesHandler((function(r){var i=e.consumeToken(/^circle/,r);if(i&&i[0])return["circle"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),t,e.ignore(e.consumeToken.bind(void 0,/^at/)),e.consumePosition,e.ignore(e.consumeToken.bind(void 0,/^\)/))],i[1]));var o=e.consumeToken(/^ellipse/,r);if(o&&o[0])return["ellipse"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),n,e.ignore(e.consumeToken.bind(void 0,/^at/)),e.consumePosition,e.ignore(e.consumeToken.bind(void 0,/^\)/))],o[1]));var a=e.consumeToken(/^polygon/,r);return a&&a[0]?["polygon"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),e.optional(e.consumeToken.bind(void 0,/^nonzero\s*,|^evenodd\s*,/),"nonzero,"),e.consumeSizePairList,e.ignore(e.consumeToken.bind(void 0,/^\)/))],a[1])):void 0}),(function(t,n){if(t[0]===n[0])return"circle"==t[0]?e.mergeList(t.slice(1),n.slice(1),["circle(",e.mergeDimensions," at ",e.mergeOffsetList,")"]):"ellipse"==t[0]?e.mergeList(t.slice(1),n.slice(1),["ellipse(",e.mergeNonNegativeSizePair," at ",e.mergeOffsetList,")"]):"polygon"==t[0]&&t[1]==n[1]?e.mergeList(t.slice(2),n.slice(2),["polygon(",t[1],i,")"]):void 0}),["shape-outside"])}(r),function(e,t){function n(e,t){t.concat([e]).forEach((function(t){t in document.documentElement.style&&(r[e]=t),i[t]=e}))}var r={},i={};n("transform",["webkitTransform","msTransform"]),n("transformOrigin",["webkitTransformOrigin"]),n("perspective",["webkitPerspective"]),n("perspectiveOrigin",["webkitPerspectiveOrigin"]),e.propertyName=function(e){return r[e]||e},e.unprefixedPropertyName=function(e){return i[e]||e}}(r)}(),function(){if(void 0===document.createElement("div").animate([]).oncancel){if(window.performance&&performance.now)var e=function(){return performance.now()};else e=function(){return Date.now()};var t=function(e,t,n){this.target=e,this.currentTime=t,this.timelineTime=n,this.type="cancel",this.bubbles=!1,this.cancelable=!1,this.currentTarget=e,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()},n=window.Element.prototype.animate;window.Element.prototype.animate=function(r,i){var o=n.call(this,r,i);o._cancelHandlers=[],o.oncancel=null;var a=o.cancel;o.cancel=function(){a.call(this);var n=new t(this,null,e()),r=this._cancelHandlers.concat(this.oncancel?[this.oncancel]:[]);setTimeout((function(){r.forEach((function(e){e.call(n.target,n)}))}),0)};var s=o.addEventListener;o.addEventListener=function(e,t){"function"==typeof t&&"cancel"==e?this._cancelHandlers.push(t):s.call(this,e,t)};var u=o.removeEventListener;return o.removeEventListener=function(e,t){if("cancel"==e){var n=this._cancelHandlers.indexOf(t);n>=0&&this._cancelHandlers.splice(n,1)}else u.call(this,e,t)},o}}}(),function(e){var t=document.documentElement,n=null,r=!1;try{var i="0"==getComputedStyle(t).getPropertyValue("opacity")?"1":"0";(n=t.animate({opacity:[i,i]},{duration:1})).currentTime=0,r=getComputedStyle(t).getPropertyValue("opacity")==i}catch(e){}finally{n&&n.cancel()}if(!r){var o=window.Element.prototype.animate;window.Element.prototype.animate=function(t,n){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&t[Symbol.iterator]&&(t=Array.from(t)),Array.isArray(t)||null===t||(t=e.convertToArrayForm(t)),o.call(this,t,n)}}}(n);var n,r;var i,o,a,s;!function(e){e.LIBRARY_LOG_TAG="[FLUID]",e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(i||(i={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(o||(o={})),function(e){e.beforehide="beforehide",e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(a||(a={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(s||(s={})),window.NJStore=window.NJStore||[];const u=(()=>{const e=window.NJStore;return{set(t,n,r){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=r},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const r=t.key;r.key===n&&(delete e[r.id],delete t.key)}}})(),l={setData(e,t,n){u.set(e,t,n)},getData:(e,t)=>u.get(e,t),removeData(e,t){u.delete(e,t)}},c=l;class f{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r=[],i=document.querySelectorAll(n);for(let n=0;n<i.length;n++){const o=i[n];if(!o.key||o.key.key!==e.DATA_KEY){const a=new e(i[n],t);o.key||c.setData(i[n],e.DATA_KEY,a),r.push(a)}}return r}}class d{static getUidEvent(e,t){return t&&`${t}::${d.uidEvent++}`||e.uidEvent||d.uidEvent++}static getEvent(e){const t=d.getUidEvent(e);return e.uidEvent=t,d.EVENTREGISTRY[t]=d.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&d.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=r=>(d.fixEvent(r,e),n.oneOff&&d.off(e,r.type,t),t.apply(e,[r]));return n}static njDelegationHandler(e,t,n){const r=i=>{const o=e.querySelectorAll(t);for(let t=i.target;t&&t!==this;t=t.parentNode)for(let a=o.length;a>=0;a--)if(o[a]===t)return d.fixEvent(i,t),r.oneOff&&d.off(e,i.type,n),n.apply(t,[i]);return null};return r}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;const i=e[r];if(i.originalHandler===t&&i.delegationSelector===n)return e[r]}return null}static normalizeParams(e,t,n){const r="string"==typeof t,i=r?n:t;let a=e.replace(d.STRIPNAME_REGEX,"");const u=o[a];u&&(a=u);return"string"==typeof s[a]||(a=e),[r,i,a]}static addHandler(e,t,n,r,i){if("string"!=typeof t||null==e)return;n||(n=r,r=null);const o=d.getEvent(e);for(const a of t.split(" ")){const[t,s,u]=d.normalizeParams(a,n,r),l=o[u]||(o[u]={}),c=d.findHandler(l,s,t?n:null);if(c)return void(c.oneOff=c.oneOff&&i);const f=d.getUidEvent(s,a.replace(d.NAMESPACE_REGEX,"")),h=t?d.njDelegationHandler(e,n,r):d.njHandler(e,n);h.delegationSelector=t?n:null,h.originalHandler=s,h.oneOff=i,h.uidEvent=f,l[f]=h,e.addEventListener(u,h,t)}}static removeHandler(e,t,n,r,i){const o=d.findHandler(t[n],r,i);null!==o&&(e.removeEventListener(n,o,Boolean(i)),delete t[n][o.uidEvent])}static removeNamespacedHandlers(e,t,n,r){const i=t[n]||{};for(const o in i)if(Object.prototype.hasOwnProperty.call(i,o)&&o.indexOf(r)>-1){const r=i[o];d.removeHandler(e,t,n,r.originalHandler,r.delegationSelector)}}static on(e,t,n,r){d.addHandler(e,t,n,r,!1)}static one(e,t,n,r){d.addHandler(e,t,n,r,!0)}static off(e,t,n,r){if("string"!=typeof t||null==e)return;const[i,o,a]=d.normalizeParams(t,n,r),s=a!==t,u=d.getEvent(e);if(void 0!==o){if(!u||!u[a])return;return void d.removeHandler(e,u,a,o,i?n:null)}if("."===t.charAt(0))for(const n in u)Object.prototype.hasOwnProperty.call(u,n)&&d.removeNamespacedHandlers(e,u,n,t.substr(1));const l=u[a]||{};for(const n in l){if(!Object.prototype.hasOwnProperty.call(l,n))continue;const r=n.replace(d.STRIPUID_REGEX,"");if(!s||t.indexOf(r)>-1){const t=l[n];d.removeHandler(e,u,a,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const r=t.replace(d.STRIPNAME_REGEX,""),i="string"==typeof s[r],o=!0;let a=null;return i?(a=document.createEvent("HTMLEvents"),a.initEvent(r,o,!0)):a=new window.CustomEvent(t,{bubbles:o,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(a,e,{get:()=>n[e]})})),e.dispatchEvent(a),a}}d.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,d.STRIPNAME_REGEX=/\..*/,d.KEYEVENT_REGEX=/^key/,d.STRIPUID_REGEX=/::\d+$/,d.EVENTREGISTRY={},d.uidEvent=1;const h=d;var p=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};class m extends f{constructor(e){super(m,e),c.setData(e,m.DATA_KEY,this),this.setListeners()}closeAndDestroy(){h.trigger(this.element,m.EVENT.close),this.element.animate&&(this.element.animate(m.KEY_FRAMES,{duration:250,delay:100,easing:"ease-out"}).onfinish=()=>{this.destroyElement()})}close(e){return p(this,void 0,void 0,(function*(){h.trigger(this.element,m.EVENT.close);this.element.animate&&this.element.animate(m.KEY_FRAMES,{duration:250,delay:100,easing:"ease-out"}),yield new Promise((e=>setTimeout(e,350))),e()}))}dispose(){const e=this.element.querySelector(m.SELECTOR.dismiss);h.off(e,m.EVENT.click),c.removeData(this.element,m.DATA_KEY),this.element=null}destroyElement(){this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),h.trigger(this.element,m.EVENT.closed)}setListeners(){const e=this.element.querySelector(m.SELECTOR.dismiss);h.on(e,m.EVENT.click,(()=>{this.closeAndDestroy()}))}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,m.SELECTOR.default)}static getInstance(e){return c.getData(e,m.DATA_KEY)}}m.NAME=`${i.KEY_PREFIX}-alert`,m.DATA_KEY=`${i.KEY_PREFIX}.alert`,m.EVENT_KEY=`.${m.DATA_KEY}`,m.SELECTOR={default:`.${m.NAME}`,dismiss:`.${m.NAME}__close`},m.KEY_FRAMES=[{transform:"translateY(0)",opacity:1},{transform:"translateY(-16px)",opacity:0}],m.EVENT={click:`${a.click}${m.EVENT_KEY}`,close:`${a.close}${m.EVENT_KEY}`,closed:`${a.closed}${m.EVENT_KEY}`};const g=m;return t=t.default})()));
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("AutocompleteInput",[],t):"object"==typeof exports?exports.AutocompleteInput=t():e.AutocompleteInput=t()}(window,(()=>(()=>{"use strict";var e,t,n,i,s={d:(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},o={};s.d(o,{default:()=>m}),function(e){e.LIBRARY_LOG_TAG="[FLUID]",e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(e||(e={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(t||(t={})),function(e){e.beforehide="beforehide",e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(n||(n={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(i||(i={})),window.NJStore=window.NJStore||[];const l=(()=>{const e=window.NJStore;return{set(t,n,i){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=i},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const i=t.key;i.key===n&&(delete e[i.id],delete t.key)}}})(),r={setData(e,t,n){l.set(e,t,n)},getData:(e,t)=>l.get(e,t),removeData(e,t){l.delete(e,t)}},a=r;class c{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const i=[],s=document.querySelectorAll(n);for(let n=0;n<s.length;n++){const o=s[n];if(!o.key||o.key.key!==e.DATA_KEY){const l=new e(s[n],t);o.key||a.setData(s[n],e.DATA_KEY,l),i.push(l)}}return i}}class u{static getUidEvent(e,t){return t&&`${t}::${u.uidEvent++}`||e.uidEvent||u.uidEvent++}static getEvent(e){const t=u.getUidEvent(e);return e.uidEvent=t,u.EVENTREGISTRY[t]=u.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&u.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=i=>(u.fixEvent(i,e),n.oneOff&&u.off(e,i.type,t),t.apply(e,[i]));return n}static njDelegationHandler(e,t,n){const i=s=>{const o=e.querySelectorAll(t);for(let t=s.target;t&&t!==this;t=t.parentNode)for(let l=o.length;l>=0;l--)if(o[l]===t)return u.fixEvent(s,t),i.oneOff&&u.off(e,s.type,n),n.apply(t,[s]);return null};return i}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;const s=e[i];if(s.originalHandler===t&&s.delegationSelector===n)return e[i]}return null}static normalizeParams(e,n,s){const o="string"==typeof n,l=o?s:n;let r=e.replace(u.STRIPNAME_REGEX,"");const a=t[r];a&&(r=a);return"string"==typeof i[r]||(r=e),[o,l,r]}static addHandler(e,t,n,i,s){if("string"!=typeof t||null==e)return;n||(n=i,i=null);const o=u.getEvent(e);for(const l of t.split(" ")){const[t,r,a]=u.normalizeParams(l,n,i),c=o[a]||(o[a]={}),d=u.findHandler(c,r,t?n:null);if(d)return void(d.oneOff=d.oneOff&&s);const h=u.getUidEvent(r,l.replace(u.NAMESPACE_REGEX,"")),m=t?u.njDelegationHandler(e,n,i):u.njHandler(e,n);m.delegationSelector=t?n:null,m.originalHandler=r,m.oneOff=s,m.uidEvent=h,c[h]=m,e.addEventListener(a,m,t)}}static removeHandler(e,t,n,i,s){const o=u.findHandler(t[n],i,s);null!==o&&(e.removeEventListener(n,o,Boolean(s)),delete t[n][o.uidEvent])}static removeNamespacedHandlers(e,t,n,i){const s=t[n]||{};for(const o in s)if(Object.prototype.hasOwnProperty.call(s,o)&&o.indexOf(i)>-1){const i=s[o];u.removeHandler(e,t,n,i.originalHandler,i.delegationSelector)}}static on(e,t,n,i){u.addHandler(e,t,n,i,!1)}static one(e,t,n,i){u.addHandler(e,t,n,i,!0)}static off(e,t,n,i){if("string"!=typeof t||null==e)return;const[s,o,l]=u.normalizeParams(t,n,i),r=l!==t,a=u.getEvent(e);if(void 0!==o){if(!a||!a[l])return;return void u.removeHandler(e,a,l,o,s?n:null)}if("."===t.charAt(0))for(const n in a)Object.prototype.hasOwnProperty.call(a,n)&&u.removeNamespacedHandlers(e,a,n,t.substr(1));const c=a[l]||{};for(const n in c){if(!Object.prototype.hasOwnProperty.call(c,n))continue;const i=n.replace(u.STRIPUID_REGEX,"");if(!r||t.indexOf(i)>-1){const t=c[n];u.removeHandler(e,a,l,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const s=t.replace(u.STRIPNAME_REGEX,""),o="string"==typeof i[s];let l=null;return o?(l=document.createEvent("HTMLEvents"),l.initEvent(s,true,!0)):l=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(l,e,{get:()=>n[e]})})),e.dispatchEvent(l),l}}u.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,u.STRIPNAME_REGEX=/\..*/,u.KEYEVENT_REGEX=/^key/,u.STRIPUID_REGEX=/::\d+$/,u.EVENTREGISTRY={},u.uidEvent=1;const d=u;class h extends c{constructor(e){super(h,e),this.options={noResultMessage:"No results",singularResultsMessage:"{x} result",pluralResultsMessage:"{x} results",showResultNumber:!1},this.currentItemElements=[],this.isFiltered=!1,this.dataList=JSON.parse(this.element.dataset.list),this.element.dataset.options&&(this.options=Object.assign(Object.assign({},this.options),JSON.parse(this.element.dataset.options))),this.listEl=this.element.querySelector(h.SELECTOR.list),this.fieldEl=this.element.querySelector(h.SELECTOR.input),this.itemTemplateEl=this.listEl.firstElementChild,this.itemElements=this.createItemElements(),this.hintEl=this.createHintElement(),this.liveZone=h.createLiveResultElement(),this.element.prepend(this.liveZone),d.on(e,"keydown",this.onKeydown.bind(this)),d.on(e,"focusout",this.onFocusOut.bind(this)),d.on(this.fieldEl,"click",(()=>{this.isFiltered=!1,this.isOpen=!this.isOpen})),d.on(this.fieldEl,"input",(()=>{this.updateList()})),a.setData(e,h.DATA_KEY,this)}get isOpen(){return!this.listEl.hasAttribute("hidden")}set isOpen(e){e?(this.element.classList.add(h.CLASS_NAME.isOpen),this.listEl.removeAttribute("hidden"),this.fieldEl.setAttribute("aria-expanded","true"),this.updateList(),this.setActiveOption(),d.trigger(this.element,h.EVENT.open)):(this.element.classList.remove(h.CLASS_NAME.isOpen),this.listEl.setAttribute("hidden","hidden"),this.fieldEl.setAttribute("aria-expanded","false"),this.fieldEl.removeAttribute("aria-activedescendant"),this.unselectOption(),d.trigger(this.element,h.EVENT.close))}selectMatchingOption(){var e,t;const n=null!==(e=this.matchingId)&&void 0!==e?e:null===(t=this.currentItemElements[0])||void 0===t?void 0:t.id;this.currentItemElements.forEach((e=>{e.setAttribute("aria-selected",e.id===n?"true":"false"),e.id===n&&this.fieldEl.setAttribute("aria-activedescendant",e.id)}))}getFilteredItemElements(){return this.itemElements.filter((e=>!this.isFiltered||h.compareText(e.dataset.name,this.fieldEl.value))).slice(0,this.options.limit)}updateList(){this.currentItemElements=this.getFilteredItemElements(),this.currentItemElements.length?(this.currentItemElements.forEach((e=>{e.innerHTML=h.getElementInnerHtml(e.dataset.name,this.isFiltered?this.fieldEl.value:"")})),this.options.showResultNumber&&this.isFiltered?(this.hintEl.innerHTML=this.createResultsMessageContent(),this.listEl.replaceChildren(this.hintEl,...this.currentItemElements)):this.listEl.replaceChildren(...this.currentItemElements),this.liveZone.innerHTML=this.createResultsMessageContent(!0)):(this.hintEl.innerHTML=this.createResultsMessageContent(),this.listEl.replaceChildren(this.hintEl),this.liveZone.innerHTML=this.createResultsMessageContent(!0))}getNextOptionIndex(e,t){return e>=t-1?0:e+1}getPreviousOptionIndex(e,t){return e<=0?t-1:e-1}selectOption(e){const t=this.currentItemElements;if(t.length){const n=this.matchingId;let i=-1;const s=t.findIndex(((e,t)=>(e.id===n&&(i=t),"true"===e.getAttribute("aria-selected")))),o=e(s>=0?s:i,t.length);t.forEach(((e,t)=>{e.setAttribute("aria-selected",t===o?"true":"false"),t===o&&(e.scrollIntoView({block:"nearest"}),this.fieldEl.setAttribute("aria-activedescendant",e.id))}))}}get matchingId(){var e,t;return null!==(t=null===(e=this.itemElements.find((e=>e.dataset.name===this.fieldEl.value)))||void 0===e?void 0:e.id)&&void 0!==t?t:null}setActiveOption(){this.itemElements.forEach((e=>{this.matchingId===e.id?(e.classList.add(h.CLASS_NAME.active),e.scrollIntoView({block:"nearest"})):e.classList.remove(h.CLASS_NAME.active)}))}unselectOption(){this.currentItemElements.forEach((e=>e.setAttribute("aria-selected","false")))}onKeydown(e){switch(e.key){case"ArrowDown":e.preventDefault(),this.isOpen?this.selectOption(this.getNextOptionIndex):(this.isFiltered=!1,this.updateList(),this.isOpen=!0,this.selectMatchingOption());break;case"ArrowUp":e.preventDefault(),this.isOpen&&this.selectOption(this.getPreviousOptionIndex);break;case"Escape":e.preventDefault(),this.isOpen&&(this.isOpen=!1,this.fieldEl.focus());break;case"Enter":this.selectCurrentSuggestion(),this.isOpen=!1;break;default:!("Backspace"!==e.key&&1!==e.key.length||e.metaKey||e.altKey||e.ctrlKey)&&(this.isFiltered=!0,this.unselectOption(),setTimeout((()=>{this.setActiveOption()})),this.isOpen||(this.isOpen=!0))}}selectCurrentSuggestion(){const e=this.fieldEl.getAttribute("aria-activedescendant");if(!e)return;const t=this.currentItemElements.find((t=>t.id===e)),n=t.dataset.name,i=t.dataset.value;this.fieldEl.value=n,d.trigger(this.element,h.EVENT.onchange,{name:n,value:i})}onFocusOut(e){this.element.contains(e.relatedTarget)||(this.isOpen=!1)}static createLiveResultElement(){const e=document.createElement("div");return e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),e.classList.add("nj-sr-only"),e}createItemElements(){return this.dataList.map(((e,t)=>{const n=this.itemTemplateEl.cloneNode();return n.innerHTML=e.name,n.dataset.name=e.name,n.dataset.value=e.value,n.setAttribute("id",`${this.fieldEl.getAttribute("id")}-option-${t}`),d.on(n,"click",(()=>{this.isOpen=!1,this.fieldEl.value=e.name,d.trigger(this.element,h.EVENT.onchange,{name:e.name,value:e.value})})),n}))}createHintElement(){const e=this.itemTemplateEl.cloneNode();return e.className=h.CLASS_NAME.hint,e.innerHTML=this.options.noResultMessage,e.setAttribute("aria-hidden","true"),e}createResultsMessageContent(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.currentItemElements;let n;return n=0===t.length?this.options.noResultMessage:`${1===t.length?this.options.singularResultsMessage.replace("{x}",t.length.toString()):this.options.pluralResultsMessage.replace("{x}",t.length.toString())}`,e?`<p>${n}</p>`:n}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,h.SELECTOR.default)}dispose(){a.removeData(this.element,h.DATA_KEY)}static getElementInnerHtml(e,t){if(void 0===t||""===(null==t?void 0:t.trim()))return e;const n=new RegExp(h.normalizeString(t),"gi"),i=h.normalizeString(e).matchAll(n);let s=e,o=0;if(i)for(const e of i){const n=o+e.index,i=s.slice(0,n),l=s.slice(n,n+t.length),r=s.slice(n+t.length,s.length);s=`${i}${this.HIGHLIGHT_OPENING_TAG}${l}${this.HIGHLIGHT_CLOSING_TAG}${r}`,o=o+h.HIGHLIGHT_OPENING_TAG.length+h.HIGHLIGHT_CLOSING_TAG.length}return`<span>${s}</span>`}static compareText(e,t){e=h.normalizeString(e),t=(t=h.normalizeString(t)).replace(/\(|\)|\\/gi,"");const n=new RegExp(t,"gi");return-1!==e.search(n)}static normalizeString(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}static getInstance(e){return a.getData(e,h.DATA_KEY)}setOptions(e){this.dataList=e,this.itemElements=this.createItemElements(),this.updateList(),this.selectMatchingOption()}}h.NAME=`${e.KEY_PREFIX}-form-item--autocomplete`,h.DATA_KEY=`${e.KEY_PREFIX}.autocomplete`,h.SELECTOR={default:`.${h.NAME}`,input:`.${e.KEY_PREFIX}-form-item__field`,list:`.${e.KEY_PREFIX}-form-item__list`},h.EVENT={open:`${n.show}${h.EVENT_KEY}`,onchange:`${n.onchange}${h.EVENT_KEY}`,close:`${n.hide}${h.EVENT_KEY}`},h.CLASS_NAME={isOpen:`${e.KEY_PREFIX}-form-item--open`,hint:`${e.KEY_PREFIX}-form-item__list-item-hint`,active:"active"},h.HIGHLIGHT_OPENING_TAG='<mark class="nj-highlight">',h.HIGHLIGHT_CLOSING_TAG="</mark>";const m=h;return o=o.default})()));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("AutocompleteInput",[],t):"object"==typeof exports?exports.AutocompleteInput=t():e.AutocompleteInput=t()}(window,(()=>(()=>{"use strict";var e,t,n,i,s={d:(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},o={};s.d(o,{default:()=>m}),function(e){e.LIBRARY_LOG_TAG="[FLUID]",e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(e||(e={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(t||(t={})),function(e){e.beforehide="beforehide",e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(n||(n={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(i||(i={})),window.NJStore=window.NJStore||[];const l=(()=>{const e=window.NJStore;return{set(t,n,i){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=i},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const i=t.key;i.key===n&&(delete e[i.id],delete t.key)}}})(),r={setData(e,t,n){l.set(e,t,n)},getData:(e,t)=>l.get(e,t),removeData(e,t){l.delete(e,t)}},a=r;class c{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const i=[],s=document.querySelectorAll(n);for(let n=0;n<s.length;n++){const o=s[n];if(!o.key||o.key.key!==e.DATA_KEY){const l=new e(s[n],t);o.key||a.setData(s[n],e.DATA_KEY,l),i.push(l)}}return i}}class u{static getUidEvent(e,t){return t&&`${t}::${u.uidEvent++}`||e.uidEvent||u.uidEvent++}static getEvent(e){const t=u.getUidEvent(e);return e.uidEvent=t,u.EVENTREGISTRY[t]=u.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&u.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=i=>(u.fixEvent(i,e),n.oneOff&&u.off(e,i.type,t),t.apply(e,[i]));return n}static njDelegationHandler(e,t,n){const i=s=>{const o=e.querySelectorAll(t);for(let t=s.target;t&&t!==this;t=t.parentNode)for(let l=o.length;l>=0;l--)if(o[l]===t)return u.fixEvent(s,t),i.oneOff&&u.off(e,s.type,n),n.apply(t,[s]);return null};return i}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;const s=e[i];if(s.originalHandler===t&&s.delegationSelector===n)return e[i]}return null}static normalizeParams(e,n,s){const o="string"==typeof n,l=o?s:n;let r=e.replace(u.STRIPNAME_REGEX,"");const a=t[r];a&&(r=a);return"string"==typeof i[r]||(r=e),[o,l,r]}static addHandler(e,t,n,i,s){if("string"!=typeof t||null==e)return;n||(n=i,i=null);const o=u.getEvent(e);for(const l of t.split(" ")){const[t,r,a]=u.normalizeParams(l,n,i),c=o[a]||(o[a]={}),d=u.findHandler(c,r,t?n:null);if(d)return void(d.oneOff=d.oneOff&&s);const h=u.getUidEvent(r,l.replace(u.NAMESPACE_REGEX,"")),m=t?u.njDelegationHandler(e,n,i):u.njHandler(e,n);m.delegationSelector=t?n:null,m.originalHandler=r,m.oneOff=s,m.uidEvent=h,c[h]=m,e.addEventListener(a,m,t)}}static removeHandler(e,t,n,i,s){const o=u.findHandler(t[n],i,s);null!==o&&(e.removeEventListener(n,o,Boolean(s)),delete t[n][o.uidEvent])}static removeNamespacedHandlers(e,t,n,i){const s=t[n]||{};for(const o in s)if(Object.prototype.hasOwnProperty.call(s,o)&&o.indexOf(i)>-1){const i=s[o];u.removeHandler(e,t,n,i.originalHandler,i.delegationSelector)}}static on(e,t,n,i){u.addHandler(e,t,n,i,!1)}static one(e,t,n,i){u.addHandler(e,t,n,i,!0)}static off(e,t,n,i){if("string"!=typeof t||null==e)return;const[s,o,l]=u.normalizeParams(t,n,i),r=l!==t,a=u.getEvent(e);if(void 0!==o){if(!a||!a[l])return;return void u.removeHandler(e,a,l,o,s?n:null)}if("."===t.charAt(0))for(const n in a)Object.prototype.hasOwnProperty.call(a,n)&&u.removeNamespacedHandlers(e,a,n,t.substr(1));const c=a[l]||{};for(const n in c){if(!Object.prototype.hasOwnProperty.call(c,n))continue;const i=n.replace(u.STRIPUID_REGEX,"");if(!r||t.indexOf(i)>-1){const t=c[n];u.removeHandler(e,a,l,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const s=t.replace(u.STRIPNAME_REGEX,""),o="string"==typeof i[s],l=!0;let r=null;return o?(r=document.createEvent("HTMLEvents"),r.initEvent(s,l,!0)):r=new window.CustomEvent(t,{bubbles:l,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(r,e,{get:()=>n[e]})})),e.dispatchEvent(r),r}}u.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,u.STRIPNAME_REGEX=/\..*/,u.KEYEVENT_REGEX=/^key/,u.STRIPUID_REGEX=/::\d+$/,u.EVENTREGISTRY={},u.uidEvent=1;const d=u;class h extends c{constructor(e){super(h,e),this.options={noResultMessage:"No results",singularResultsMessage:"{x} result",pluralResultsMessage:"{x} results",showResultNumber:!1},this.currentItemElements=[],this.isFiltered=!1,this.dataList=JSON.parse(this.element.dataset.list),this.element.dataset.options&&(this.options=Object.assign(Object.assign({},this.options),JSON.parse(this.element.dataset.options))),this.listEl=this.element.querySelector(h.SELECTOR.list),this.fieldEl=this.element.querySelector(h.SELECTOR.input),this.itemTemplateEl=this.listEl.firstElementChild,this.itemElements=this.createItemElements(),this.hintEl=this.createHintElement(),this.liveZone=h.createLiveResultElement(),this.element.prepend(this.liveZone),d.on(e,"keydown",this.onKeydown.bind(this)),d.on(e,"focusout",this.onFocusOut.bind(this)),d.on(this.fieldEl,"click",(()=>{this.isFiltered=!1,this.isOpen=!this.isOpen})),d.on(this.fieldEl,"input",(()=>{this.updateList()})),a.setData(e,h.DATA_KEY,this)}get isOpen(){return!this.listEl.hasAttribute("hidden")}set isOpen(e){e?(this.element.classList.add(h.CLASS_NAME.isOpen),this.listEl.removeAttribute("hidden"),this.fieldEl.setAttribute("aria-expanded","true"),this.updateList(),this.setActiveOption(),d.trigger(this.element,h.EVENT.open)):(this.element.classList.remove(h.CLASS_NAME.isOpen),this.listEl.setAttribute("hidden","hidden"),this.fieldEl.setAttribute("aria-expanded","false"),this.fieldEl.removeAttribute("aria-activedescendant"),this.unselectOption(),d.trigger(this.element,h.EVENT.close))}selectMatchingOption(){var e,t;const n=null!==(e=this.matchingId)&&void 0!==e?e:null===(t=this.currentItemElements[0])||void 0===t?void 0:t.id;this.currentItemElements.forEach((e=>{e.setAttribute("aria-selected",e.id===n?"true":"false"),e.id===n&&this.fieldEl.setAttribute("aria-activedescendant",e.id)}))}getFilteredItemElements(){return this.itemElements.filter((e=>!this.isFiltered||h.compareText(e.dataset.name,this.fieldEl.value))).slice(0,this.options.limit)}updateList(){this.currentItemElements=this.getFilteredItemElements(),this.currentItemElements.length?(this.currentItemElements.forEach((e=>{e.innerHTML=h.getElementInnerHtml(e.dataset.name,this.isFiltered?this.fieldEl.value:"")})),this.options.showResultNumber&&this.isFiltered?(this.hintEl.innerHTML=this.createResultsMessageContent(),this.listEl.replaceChildren(this.hintEl,...this.currentItemElements)):this.listEl.replaceChildren(...this.currentItemElements),this.liveZone.innerHTML=this.createResultsMessageContent(!0)):(this.hintEl.innerHTML=this.createResultsMessageContent(),this.listEl.replaceChildren(this.hintEl),this.liveZone.innerHTML=this.createResultsMessageContent(!0))}getNextOptionIndex(e,t){return e>=t-1?0:e+1}getPreviousOptionIndex(e,t){return e<=0?t-1:e-1}selectOption(e){const t=this.currentItemElements;if(t.length){const n=this.matchingId;let i=-1;const s=t.findIndex(((e,t)=>(e.id===n&&(i=t),"true"===e.getAttribute("aria-selected")))),o=e(s>=0?s:i,t.length);t.forEach(((e,t)=>{e.setAttribute("aria-selected",t===o?"true":"false"),t===o&&(e.scrollIntoView({block:"nearest"}),this.fieldEl.setAttribute("aria-activedescendant",e.id))}))}}get matchingId(){var e,t;return null!==(t=null===(e=this.itemElements.find((e=>e.dataset.name===this.fieldEl.value)))||void 0===e?void 0:e.id)&&void 0!==t?t:null}setActiveOption(){this.itemElements.forEach((e=>{this.matchingId===e.id?(e.classList.add(h.CLASS_NAME.active),e.scrollIntoView({block:"nearest"})):e.classList.remove(h.CLASS_NAME.active)}))}unselectOption(){this.currentItemElements.forEach((e=>e.setAttribute("aria-selected","false")))}onKeydown(e){switch(e.key){case"ArrowDown":e.preventDefault(),this.isOpen?this.selectOption(this.getNextOptionIndex):(this.isFiltered=!1,this.updateList(),this.isOpen=!0,this.selectMatchingOption());break;case"ArrowUp":e.preventDefault(),this.isOpen&&this.selectOption(this.getPreviousOptionIndex);break;case"Escape":e.preventDefault(),this.isOpen&&(this.isOpen=!1,this.fieldEl.focus());break;case"Enter":this.selectCurrentSuggestion(),this.isOpen=!1;break;default:!("Backspace"!==e.key&&1!==e.key.length||e.metaKey||e.altKey||e.ctrlKey)&&(this.isFiltered=!0,this.unselectOption(),setTimeout((()=>{this.setActiveOption()})),this.isOpen||(this.isOpen=!0))}}selectCurrentSuggestion(){const e=this.fieldEl.getAttribute("aria-activedescendant");if(!e)return;const t=this.currentItemElements.find((t=>t.id===e)),n=t.dataset.name,i=t.dataset.value;this.fieldEl.value=n,d.trigger(this.element,h.EVENT.onchange,{name:n,value:i})}onFocusOut(e){this.element.contains(e.relatedTarget)||(this.isOpen=!1)}static createLiveResultElement(){const e=document.createElement("div");return e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),e.classList.add("nj-sr-only"),e}createItemElements(){return this.dataList.map(((e,t)=>{const n=this.itemTemplateEl.cloneNode();return n.innerHTML=e.name,n.dataset.name=e.name,n.dataset.value=e.value,n.setAttribute("id",`${this.fieldEl.getAttribute("id")}-option-${t}`),d.on(n,"click",(()=>{this.isOpen=!1,this.fieldEl.value=e.name,d.trigger(this.element,h.EVENT.onchange,{name:e.name,value:e.value})})),n}))}createHintElement(){const e=this.itemTemplateEl.cloneNode();return e.className=h.CLASS_NAME.hint,e.innerHTML=this.options.noResultMessage,e.setAttribute("aria-hidden","true"),e}createResultsMessageContent(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const t=this.currentItemElements;let n;return n=0===t.length?this.options.noResultMessage:`${1===t.length?this.options.singularResultsMessage.replace("{x}",t.length.toString()):this.options.pluralResultsMessage.replace("{x}",t.length.toString())}`,e?`<p>${n}</p>`:n}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,h.SELECTOR.default)}dispose(){a.removeData(this.element,h.DATA_KEY)}static getElementInnerHtml(e,t){if(void 0===t||""===(null==t?void 0:t.trim()))return e;const n=new RegExp(h.normalizeString(t),"gi"),i=h.normalizeString(e).matchAll(n);let s=e,o=0;if(i)for(const e of i){const n=o+e.index,i=s.slice(0,n),l=s.slice(n,n+t.length),r=s.slice(n+t.length,s.length);s=`${i}${this.HIGHLIGHT_OPENING_TAG}${l}${this.HIGHLIGHT_CLOSING_TAG}${r}`,o=o+h.HIGHLIGHT_OPENING_TAG.length+h.HIGHLIGHT_CLOSING_TAG.length}return`<span>${s}</span>`}static compareText(e,t){e=h.normalizeString(e),t=(t=h.normalizeString(t)).replace(/\(|\)|\\/gi,"");const n=new RegExp(t,"gi");return-1!==e.search(n)}static normalizeString(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}static getInstance(e){return a.getData(e,h.DATA_KEY)}setOptions(e){this.dataList=e,this.itemElements=this.createItemElements(),this.updateList(),this.selectMatchingOption()}}h.NAME=`${e.KEY_PREFIX}-form-item--autocomplete`,h.DATA_KEY=`${e.KEY_PREFIX}.autocomplete`,h.SELECTOR={default:`.${h.NAME}`,input:`.${e.KEY_PREFIX}-form-item__field`,list:`.${e.KEY_PREFIX}-form-item__list`},h.EVENT={open:`${n.show}${h.EVENT_KEY}`,onchange:`${n.onchange}${h.EVENT_KEY}`,close:`${n.hide}${h.EVENT_KEY}`},h.CLASS_NAME={isOpen:`${e.KEY_PREFIX}-form-item--open`,hint:`${e.KEY_PREFIX}-form-item__list-item-hint`,active:"active"},h.HIGHLIGHT_OPENING_TAG='<mark class="nj-highlight">',h.HIGHLIGHT_CLOSING_TAG="</mark>";const m=h;return o=o.default})()));
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Checkbox",[],t):"object"==typeof exports?exports.Checkbox=t():e.Checkbox=t()}(window,(()=>(()=>{"use strict";var e,t,o,n,r={d:(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},s={};r.d(s,{default:()=>L}),function(e){e.LIBRARY_LOG_TAG="[FLUID]",e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(e||(e={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(t||(t={})),function(e){e.beforehide="beforehide",e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(o||(o={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(n||(n={}));class l{static getUidEvent(e,t){return t&&`${t}::${l.uidEvent++}`||e.uidEvent||l.uidEvent++}static getEvent(e){const t=l.getUidEvent(e);return e.uidEvent=t,l.EVENTREGISTRY[t]=l.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&l.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const o=n=>(l.fixEvent(n,e),o.oneOff&&l.off(e,n.type,t),t.apply(e,[n]));return o}static njDelegationHandler(e,t,o){const n=r=>{const s=e.querySelectorAll(t);for(let t=r.target;t&&t!==this;t=t.parentNode)for(let i=s.length;i>=0;i--)if(s[i]===t)return l.fixEvent(r,t),n.oneOff&&l.off(e,r.type,o),o.apply(t,[r]);return null};return n}static findHandler(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;const r=e[n];if(r.originalHandler===t&&r.delegationSelector===o)return e[n]}return null}static normalizeParams(e,o,r){const s="string"==typeof o,i=s?r:o;let a=e.replace(l.STRIPNAME_REGEX,"");const c=t[a];c&&(a=c);return"string"==typeof n[a]||(a=e),[s,i,a]}static addHandler(e,t,o,n,r){if("string"!=typeof t||null==e)return;o||(o=n,n=null);const s=l.getEvent(e);for(const i of t.split(" ")){const[t,a,c]=l.normalizeParams(i,o,n),d=s[c]||(s[c]={}),u=l.findHandler(d,a,t?o:null);if(u)return void(u.oneOff=u.oneOff&&r);const h=l.getUidEvent(a,i.replace(l.NAMESPACE_REGEX,"")),m=t?l.njDelegationHandler(e,o,n):l.njHandler(e,o);m.delegationSelector=t?o:null,m.originalHandler=a,m.oneOff=r,m.uidEvent=h,d[h]=m,e.addEventListener(c,m,t)}}static removeHandler(e,t,o,n,r){const s=l.findHandler(t[o],n,r);null!==s&&(e.removeEventListener(o,s,Boolean(r)),delete t[o][s.uidEvent])}static removeNamespacedHandlers(e,t,o,n){const r=t[o]||{};for(const s in r)if(Object.prototype.hasOwnProperty.call(r,s)&&s.indexOf(n)>-1){const n=r[s];l.removeHandler(e,t,o,n.originalHandler,n.delegationSelector)}}static on(e,t,o,n){l.addHandler(e,t,o,n,!1)}static one(e,t,o,n){l.addHandler(e,t,o,n,!0)}static off(e,t,o,n){if("string"!=typeof t||null==e)return;const[r,s,i]=l.normalizeParams(t,o,n),a=i!==t,c=l.getEvent(e);if(void 0!==s){if(!c||!c[i])return;return void l.removeHandler(e,c,i,s,r?o:null)}if("."===t.charAt(0))for(const o in c)Object.prototype.hasOwnProperty.call(c,o)&&l.removeNamespacedHandlers(e,c,o,t.substr(1));const d=c[i]||{};for(const o in d){if(!Object.prototype.hasOwnProperty.call(d,o))continue;const n=o.replace(l.STRIPUID_REGEX,"");if(!a||t.indexOf(n)>-1){const t=d[o];l.removeHandler(e,c,i,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,o){if("string"!=typeof t||null==e)return null;const r=t.replace(l.STRIPNAME_REGEX,""),s="string"==typeof n[r];let i=null;return s?(i=document.createEvent("HTMLEvents"),i.initEvent(r,true,!0)):i=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==o&&Object.keys(o).forEach((e=>{Object.defineProperty(i,e,{get:()=>o[e]})})),e.dispatchEvent(i),i}}l.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,l.STRIPNAME_REGEX=/\..*/,l.KEYEVENT_REGEX=/^key/,l.STRIPUID_REGEX=/::\d+$/,l.EVENTREGISTRY={},l.uidEvent=1;const i=l;const a={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let o=0;o<e.attributes.length;o++){const n=e.attributes[o];if(-1!==n.nodeName.indexOf("data-")){const e=n.nodeName.substring(5).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=n.nodeValue}}return Object.keys(t).forEach((e=>{var o;t[e]="true"===(o=t[e])||"false"!==o&&("null"===o?null:o===Number(o).toString()?Number(o):""===o?null:o)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,o){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(o&&"[object Object]"===Object.prototype.toString.call(t[n])?e[n]=a.extend(e[n],t[n]):e[n]=t[n]);return e},extend(){let e={},t=!1,o=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],o++);o<arguments.length;o++)e=a.mergeExtended(e,o<0||arguments.length<=o?void 0:arguments[o],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},c=a,d={describe:e=>void 0===e?"undefined":0===e.length?"(no matching elements)":`${e.outerHTML.split(">")[0]}>`,assert(e,t,o){if(t)throw void 0!==e&&(e.style.border="1px solid red"),console.error(o,e),o},isChar:e=>void 0===e.which||"number"==typeof e.which&&e.which>0&&(!e.ctrlKey&&!e.metaKey&&!e.altKey&&8!==e.which&&9!==e.which&&13!==e.which&&16!==e.which&&17!==e.which&&20!==e.which&&27!==e.which)};window.NJStore=window.NJStore||[];const u=(()=>{const e=window.NJStore;return{set(t,o,n){void 0===t.key&&(t.key={key:o,id:e.length}),e[t.key.id]=n},get:(t,o)=>(t.key&&o&&void 0===o.id&&(o=t.key),o&&void 0!==o.id?e[o.id]:null),delete(t,o){if(void 0===t.key)return;const n=t.key;n.key===o&&(delete e[n.id],delete t.key)}}})(),h={setData(e,t,o){u.set(e,t,o)},getData:(e,t)=>u.get(e,t),removeData(e,t){u.delete(e,t)}},m=h;class p{constructor(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=o,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;const n=[],r=document.querySelectorAll(o);for(let o=0;o<r.length;o++){const s=r[o];if(!s.key||s.key.key!==e.DATA_KEY){const l=new e(r[o],t);s.key||m.setData(r[o],e.DATA_KEY,l),n.push(l)}}return n}}class E extends p{constructor(e,t){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{});for(const e in o)!{}.hasOwnProperty.call(o,e)?console.error(`${e} does not exist in properties`):this[e]=o[e]}addFormGroupFocus(){this.element&&!0==!this.element.disabled&&this.njFormGroup.classList.add(E.CLASS_NAME.isFocused)}removeFormGroupFocus(){this.njFormGroup.classList.remove(E.CLASS_NAME.isFocused)}addIsFilled(){this.njFormGroup.classList.add(E.CLASS_NAME.isFilled)}removeIsFilled(){this.njFormGroup.classList.remove(E.CLASS_NAME.isFilled)}findFormGroup(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=this.element.closest(E.SELECTOR.formGroup);return null===t&&e&&console.error(`Failed to find ${E.SELECTOR.formGroup} for ${d.describe(this.element)}`),t}}E.CLASS_NAME={njFormGroup:"nj-form-group",isFilled:"is-filled",isFocused:"is-focused"},E.SELECTOR={formGroup:`.${E.CLASS_NAME.njFormGroup}`};const f=E;class g extends f{constructor(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,c.extend(!0,g.DEFAULT_OPTIONS,o),n),this.njFormGroup=this.resolveNJFormGroup(),this.njFormGroup&&(this.resolveNJLabel(),this.resolveNJFormGroupSizing(),this.addFocusListener(),this.addChangeListener(),this.isEmpty()?this.removeIsFilled():this.addIsFilled())}dispose(){i.off(this.element,"focus"),i.off(this.element,"blur"),i.off(this.element,"keydown"),i.off(this.element,"keyup")}addFocusListener(){i.on(this.element,"focus",(()=>{this.addFormGroupFocus()})),i.on(this.element,"blur",(()=>{this.removeFormGroupFocus()}))}addChangeListener(){i.on(this.element,"keydown",(e=>{d.isChar(e)&&this.addIsFilled()})),i.on(this.element,"keyup",(()=>{if(this.isEmpty()?this.removeIsFilled():this.addIsFilled(),this.options.validate){void 0===this.element[0].checkValidity||this.element[0].checkValidity()?this.removeHasDanger():this.addHasDanger()}}))}addHasDanger(){this.njFormGroup.classList.add(g.CLASS_NAME.hasDanger)}removeHasDanger(){this.njFormGroup.classList.remove(g.CLASS_NAME.hasDanger)}isEmpty(){return null===this.element.value||void 0===this.element.value||""===this.element.value}resolveNJFormGroup(){return this.findFormGroup(this.options.njFormGroup.required)}outerElement(){return this.element}resolveNJLabel(){let e=this.njFormGroup.querySelectorAll(g.INPUT_SELECTOR.njLabelWildcard);0===e.length&&(e=this.findLabel(this.options.label.required),null!==e&&e.length>1&&e.forEach((e=>{e.classList.add(this.options.label.className)})))}findLabel(){let e,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],o=null,n=0,r=!1;do{e=this.options.label.selectors[n];try{o=this.njFormGroup.querySelectorAll(e)}catch(e){o=null}r=null!==o&&o.length>0,n++}while(!r&&n<this.options.label.selectors.length);return!r&&t&&console.error(`Failed to find ${g.INPUT_SELECTOR.njLabelWildcard} within nj-form-group for ${d.describe(this.element)}`),o}resolveNJFormGroupSizing(){if(this.options.convertInputSizeVariations)for(const e in g.FORM_CONTROL_SIZE_MARKERS)this.element.classList.contains(e)&&this.njFormGroup.classList.add(g.FORM_CONTROL_SIZE_MARKERS[e])}}g.CLASS_NAME={njFormGroup:"nj-form-group",njLabel:"nj-label",njLabelStatic:"nj-label-static",njLabelPlaceholder:"nj-label-placeholder",njLabelFloating:"nj-label-floating",hasDanger:"has-danger",isFilled:"is-filled",isFocused:"is-focused",inputGroup:"input-group"},g.INPUT_SELECTOR={njFormGroup:`.${g.CLASS_NAME.njFormGroup}`,njLabelWildcard:`label[class^='${g.CLASS_NAME.njLabel}'], label[class*=' ${g.CLASS_NAME.njLabel}']`},g.DEFAULT_OPTIONS={validate:!1,njFormGroup:{template:"span",templateClass:`${g.CLASS_NAME.njFormGroup}`},label:{required:!1,selectors:[".form-control-label",":scope > label"],className:g.CLASS_NAME.njLabelStatic},requiredClasses:[],convertInputSizeVariations:!0},g.FORM_CONTROL_SIZE_MARKERS={"form-control-lg":"nj-form-group-lg","form-control-sm":"nj-form-group-sm"};const v=g;class b extends v{constructor(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,c.extend(!0,b.DEFAULT_OPTIONS,o),n),this.decorateMarkup()}decorateMarkup(){const e=c.createHtmlNode(this.options.template),t=`.${Array.from(e.classList).join(".")}`;this.element.parentNode.querySelector(t)||this.element.parentNode.appendChild(e)}outerElement(){return this.element.parentElement.closest(this.outerClass)}rejectWithoutRequiredStructure(){d.assert(this.element,"label"===this.element.parentElement.tagName.toLowerCase(),`${this.constructor.name}'s ${d.describe(this.element)} parent element should be <label>.`),d.assert(this.element,!this.outerElement().classList.contains(this.outerClass),`${this.constructor.name}'s ${d.describe(this.element)} outer element should have class ${this.outerClass}.`)}addFocusListener(){const e=this.element.closest(b.SELECTOR.label);i.on(e,"mouseenter",(()=>{this.addFormGroupFocus()})),i.on(e,"mouseleave",(()=>{this.removeFormGroupFocus()}))}addChangeListener(){i.on(this.element,"change",(()=>{this.element.blur()}))}}b.SELECTOR={formGroup:v.SELECTOR.formGroup,label:"label"},b.DEFAULT_OPTIONS={label:{required:!1}};const y=b;class S extends y{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};super(S,e,c.extend(!0,S.DEFAULT_OPTIONS,t),o);const n=e.parentNode.parentNode;m.setData(n,S.DATA_KEY,this)}dispose(){const e=this.element.parentNode.parentNode;m.removeData(e,S.DATA_KEY),this.element=null}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,S.SELECTOR.input)}static getInstance(e){return m.getData(e,S.DATA_KEY)}static matches(e){return"checkbox"===e.getAttribute("type")}}S.NAME=`${e.KEY_PREFIX}-checkbox`,S.DATA_KEY=`${e.KEY_PREFIX}.checkbox`,S.SELECTOR={default:`.${S.NAME}`,input:`.${S.NAME} > label > input[type=checkbox]`,formGroup:y.SELECTOR.formGroup,label:y.SELECTOR.label},S.DEFAULT_OPTIONS={template:`<span class="${S.NAME}__decorator"><span class="${S.NAME}__check"></span></span>`,njFormGroup:{required:!1}};const L=S;return s=s.default})()));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Checkbox",[],t):"object"==typeof exports?exports.Checkbox=t():e.Checkbox=t()}(window,(()=>(()=>{"use strict";var e,t,o,n,r={d:(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},s={};r.d(s,{default:()=>L}),function(e){e.LIBRARY_LOG_TAG="[FLUID]",e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(e||(e={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(t||(t={})),function(e){e.beforehide="beforehide",e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(o||(o={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(n||(n={}));class l{static getUidEvent(e,t){return t&&`${t}::${l.uidEvent++}`||e.uidEvent||l.uidEvent++}static getEvent(e){const t=l.getUidEvent(e);return e.uidEvent=t,l.EVENTREGISTRY[t]=l.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&l.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const o=n=>(l.fixEvent(n,e),o.oneOff&&l.off(e,n.type,t),t.apply(e,[n]));return o}static njDelegationHandler(e,t,o){const n=r=>{const s=e.querySelectorAll(t);for(let t=r.target;t&&t!==this;t=t.parentNode)for(let i=s.length;i>=0;i--)if(s[i]===t)return l.fixEvent(r,t),n.oneOff&&l.off(e,r.type,o),o.apply(t,[r]);return null};return n}static findHandler(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;const r=e[n];if(r.originalHandler===t&&r.delegationSelector===o)return e[n]}return null}static normalizeParams(e,o,r){const s="string"==typeof o,i=s?r:o;let a=e.replace(l.STRIPNAME_REGEX,"");const c=t[a];c&&(a=c);return"string"==typeof n[a]||(a=e),[s,i,a]}static addHandler(e,t,o,n,r){if("string"!=typeof t||null==e)return;o||(o=n,n=null);const s=l.getEvent(e);for(const i of t.split(" ")){const[t,a,c]=l.normalizeParams(i,o,n),d=s[c]||(s[c]={}),u=l.findHandler(d,a,t?o:null);if(u)return void(u.oneOff=u.oneOff&&r);const h=l.getUidEvent(a,i.replace(l.NAMESPACE_REGEX,"")),m=t?l.njDelegationHandler(e,o,n):l.njHandler(e,o);m.delegationSelector=t?o:null,m.originalHandler=a,m.oneOff=r,m.uidEvent=h,d[h]=m,e.addEventListener(c,m,t)}}static removeHandler(e,t,o,n,r){const s=l.findHandler(t[o],n,r);null!==s&&(e.removeEventListener(o,s,Boolean(r)),delete t[o][s.uidEvent])}static removeNamespacedHandlers(e,t,o,n){const r=t[o]||{};for(const s in r)if(Object.prototype.hasOwnProperty.call(r,s)&&s.indexOf(n)>-1){const n=r[s];l.removeHandler(e,t,o,n.originalHandler,n.delegationSelector)}}static on(e,t,o,n){l.addHandler(e,t,o,n,!1)}static one(e,t,o,n){l.addHandler(e,t,o,n,!0)}static off(e,t,o,n){if("string"!=typeof t||null==e)return;const[r,s,i]=l.normalizeParams(t,o,n),a=i!==t,c=l.getEvent(e);if(void 0!==s){if(!c||!c[i])return;return void l.removeHandler(e,c,i,s,r?o:null)}if("."===t.charAt(0))for(const o in c)Object.prototype.hasOwnProperty.call(c,o)&&l.removeNamespacedHandlers(e,c,o,t.substr(1));const d=c[i]||{};for(const o in d){if(!Object.prototype.hasOwnProperty.call(d,o))continue;const n=o.replace(l.STRIPUID_REGEX,"");if(!a||t.indexOf(n)>-1){const t=d[o];l.removeHandler(e,c,i,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,o){if("string"!=typeof t||null==e)return null;const r=t.replace(l.STRIPNAME_REGEX,""),s="string"==typeof n[r],i=!0;let a=null;return s?(a=document.createEvent("HTMLEvents"),a.initEvent(r,i,!0)):a=new window.CustomEvent(t,{bubbles:i,cancelable:!0}),void 0!==o&&Object.keys(o).forEach((e=>{Object.defineProperty(a,e,{get:()=>o[e]})})),e.dispatchEvent(a),a}}l.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,l.STRIPNAME_REGEX=/\..*/,l.KEYEVENT_REGEX=/^key/,l.STRIPUID_REGEX=/::\d+$/,l.EVENTREGISTRY={},l.uidEvent=1;const i=l;const a={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let o=0;o<e.attributes.length;o++){const n=e.attributes[o];if(-1!==n.nodeName.indexOf("data-")){const e=n.nodeName.substring(5).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=n.nodeValue}}return Object.keys(t).forEach((e=>{var o;t[e]="true"===(o=t[e])||"false"!==o&&("null"===o?null:o===Number(o).toString()?Number(o):""===o?null:o)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,o){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(o&&"[object Object]"===Object.prototype.toString.call(t[n])?e[n]=a.extend(e[n],t[n]):e[n]=t[n]);return e},extend(){let e={},t=!1,o=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],o++);o<arguments.length;o++)e=a.mergeExtended(e,o<0||arguments.length<=o?void 0:arguments[o],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},c=a,d={describe:e=>void 0===e?"undefined":0===e.length?"(no matching elements)":`${e.outerHTML.split(">")[0]}>`,assert(e,t,o){if(t)throw void 0!==e&&(e.style.border="1px solid red"),console.error(o,e),o},isChar:e=>void 0===e.which||"number"==typeof e.which&&e.which>0&&(!e.ctrlKey&&!e.metaKey&&!e.altKey&&8!==e.which&&9!==e.which&&13!==e.which&&16!==e.which&&17!==e.which&&20!==e.which&&27!==e.which)};window.NJStore=window.NJStore||[];const u=(()=>{const e=window.NJStore;return{set(t,o,n){void 0===t.key&&(t.key={key:o,id:e.length}),e[t.key.id]=n},get:(t,o)=>(t.key&&o&&void 0===o.id&&(o=t.key),o&&void 0!==o.id?e[o.id]:null),delete(t,o){if(void 0===t.key)return;const n=t.key;n.key===o&&(delete e[n.id],delete t.key)}}})(),h={setData(e,t,o){u.set(e,t,o)},getData:(e,t)=>u.get(e,t),removeData(e,t){u.delete(e,t)}},m=h;class p{constructor(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=o,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;const n=[],r=document.querySelectorAll(o);for(let o=0;o<r.length;o++){const s=r[o];if(!s.key||s.key.key!==e.DATA_KEY){const l=new e(r[o],t);s.key||m.setData(r[o],e.DATA_KEY,l),n.push(l)}}return n}}class E extends p{constructor(e,t){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{});for(const e in o)!{}.hasOwnProperty.call(o,e)?console.error(`${e} does not exist in properties`):this[e]=o[e]}addFormGroupFocus(){this.element&&!0==!this.element.disabled&&this.njFormGroup.classList.add(E.CLASS_NAME.isFocused)}removeFormGroupFocus(){this.njFormGroup.classList.remove(E.CLASS_NAME.isFocused)}addIsFilled(){this.njFormGroup.classList.add(E.CLASS_NAME.isFilled)}removeIsFilled(){this.njFormGroup.classList.remove(E.CLASS_NAME.isFilled)}findFormGroup(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=this.element.closest(E.SELECTOR.formGroup);return null===t&&e&&console.error(`Failed to find ${E.SELECTOR.formGroup} for ${d.describe(this.element)}`),t}}E.CLASS_NAME={njFormGroup:"nj-form-group",isFilled:"is-filled",isFocused:"is-focused"},E.SELECTOR={formGroup:`.${E.CLASS_NAME.njFormGroup}`};const f=E;class g extends f{constructor(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,c.extend(!0,g.DEFAULT_OPTIONS,o),n),this.njFormGroup=this.resolveNJFormGroup(),this.njFormGroup&&(this.resolveNJLabel(),this.resolveNJFormGroupSizing(),this.addFocusListener(),this.addChangeListener(),this.isEmpty()?this.removeIsFilled():this.addIsFilled())}dispose(){i.off(this.element,"focus"),i.off(this.element,"blur"),i.off(this.element,"keydown"),i.off(this.element,"keyup")}addFocusListener(){i.on(this.element,"focus",(()=>{this.addFormGroupFocus()})),i.on(this.element,"blur",(()=>{this.removeFormGroupFocus()}))}addChangeListener(){i.on(this.element,"keydown",(e=>{d.isChar(e)&&this.addIsFilled()})),i.on(this.element,"keyup",(()=>{if(this.isEmpty()?this.removeIsFilled():this.addIsFilled(),this.options.validate){void 0===this.element[0].checkValidity||this.element[0].checkValidity()?this.removeHasDanger():this.addHasDanger()}}))}addHasDanger(){this.njFormGroup.classList.add(g.CLASS_NAME.hasDanger)}removeHasDanger(){this.njFormGroup.classList.remove(g.CLASS_NAME.hasDanger)}isEmpty(){return null===this.element.value||void 0===this.element.value||""===this.element.value}resolveNJFormGroup(){return this.findFormGroup(this.options.njFormGroup.required)}outerElement(){return this.element}resolveNJLabel(){let e=this.njFormGroup.querySelectorAll(g.INPUT_SELECTOR.njLabelWildcard);0===e.length&&(e=this.findLabel(this.options.label.required),null!==e&&e.length>1&&e.forEach((e=>{e.classList.add(this.options.label.className)})))}findLabel(){let e,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],o=null,n=0,r=!1;do{e=this.options.label.selectors[n];try{o=this.njFormGroup.querySelectorAll(e)}catch(e){o=null}r=null!==o&&o.length>0,n++}while(!r&&n<this.options.label.selectors.length);return!r&&t&&console.error(`Failed to find ${g.INPUT_SELECTOR.njLabelWildcard} within nj-form-group for ${d.describe(this.element)}`),o}resolveNJFormGroupSizing(){if(this.options.convertInputSizeVariations)for(const e in g.FORM_CONTROL_SIZE_MARKERS)this.element.classList.contains(e)&&this.njFormGroup.classList.add(g.FORM_CONTROL_SIZE_MARKERS[e])}}g.CLASS_NAME={njFormGroup:"nj-form-group",njLabel:"nj-label",njLabelStatic:"nj-label-static",njLabelPlaceholder:"nj-label-placeholder",njLabelFloating:"nj-label-floating",hasDanger:"has-danger",isFilled:"is-filled",isFocused:"is-focused",inputGroup:"input-group"},g.INPUT_SELECTOR={njFormGroup:`.${g.CLASS_NAME.njFormGroup}`,njLabelWildcard:`label[class^='${g.CLASS_NAME.njLabel}'], label[class*=' ${g.CLASS_NAME.njLabel}']`},g.DEFAULT_OPTIONS={validate:!1,njFormGroup:{template:"span",templateClass:`${g.CLASS_NAME.njFormGroup}`},label:{required:!1,selectors:[".form-control-label",":scope > label"],className:g.CLASS_NAME.njLabelStatic},requiredClasses:[],convertInputSizeVariations:!0},g.FORM_CONTROL_SIZE_MARKERS={"form-control-lg":"nj-form-group-lg","form-control-sm":"nj-form-group-sm"};const v=g;class b extends v{constructor(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,c.extend(!0,b.DEFAULT_OPTIONS,o),n),this.decorateMarkup()}decorateMarkup(){const e=c.createHtmlNode(this.options.template),t=`.${Array.from(e.classList).join(".")}`;this.element.parentNode.querySelector(t)||this.element.parentNode.appendChild(e)}outerElement(){return this.element.parentElement.closest(this.outerClass)}rejectWithoutRequiredStructure(){d.assert(this.element,"label"===this.element.parentElement.tagName.toLowerCase(),`${this.constructor.name}'s ${d.describe(this.element)} parent element should be <label>.`),d.assert(this.element,!this.outerElement().classList.contains(this.outerClass),`${this.constructor.name}'s ${d.describe(this.element)} outer element should have class ${this.outerClass}.`)}addFocusListener(){const e=this.element.closest(b.SELECTOR.label);i.on(e,"mouseenter",(()=>{this.addFormGroupFocus()})),i.on(e,"mouseleave",(()=>{this.removeFormGroupFocus()}))}addChangeListener(){i.on(this.element,"change",(()=>{this.element.blur()}))}}b.SELECTOR={formGroup:v.SELECTOR.formGroup,label:"label"},b.DEFAULT_OPTIONS={label:{required:!1}};const y=b;class S extends y{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};super(S,e,c.extend(!0,S.DEFAULT_OPTIONS,t),o);const n=e.parentNode.parentNode;m.setData(n,S.DATA_KEY,this)}dispose(){const e=this.element.parentNode.parentNode;m.removeData(e,S.DATA_KEY),this.element=null}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,S.SELECTOR.input)}static getInstance(e){return m.getData(e,S.DATA_KEY)}static matches(e){return"checkbox"===e.getAttribute("type")}}S.NAME=`${e.KEY_PREFIX}-checkbox`,S.DATA_KEY=`${e.KEY_PREFIX}.checkbox`,S.SELECTOR={default:`.${S.NAME}`,input:`.${S.NAME} > label > input[type=checkbox]`,formGroup:y.SELECTOR.formGroup,label:y.SELECTOR.label},S.DEFAULT_OPTIONS={template:`<span class="${S.NAME}__decorator"><span class="${S.NAME}__check"></span></span>`,njFormGroup:{required:!1}};const L=S;return s=s.default})()));
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Collapse",[],t):"object"==typeof exports?exports.Collapse=t():e.Collapse=t()}(window,(()=>(()=>{"use strict";var e,t,n,o,s={d:(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},r={};s.d(r,{default:()=>m}),function(e){e.LIBRARY_LOG_TAG="[FLUID]",e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(e||(e={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(t||(t={})),function(e){e.beforehide="beforehide",e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(n||(n={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(o||(o={})),window.NJStore=window.NJStore||[];const i=(()=>{const e=window.NJStore;return{set(t,n,o){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=o},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const o=t.key;o.key===n&&(delete e[o.id],delete t.key)}}})(),l={setData(e,t,n){i.set(e,t,n)},getData:(e,t)=>i.get(e,t),removeData(e,t){i.delete(e,t)}};class a{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o=[],s=document.querySelectorAll(n);for(let n=0;n<s.length;n++){const r=s[n];if(!r.key||r.key.key!==e.DATA_KEY){const i=new e(s[n],t);r.key||l.setData(s[n],e.DATA_KEY,i),o.push(i)}}return o}}class c{static getUidEvent(e,t){return t&&`${t}::${c.uidEvent++}`||e.uidEvent||c.uidEvent++}static getEvent(e){const t=c.getUidEvent(e);return e.uidEvent=t,c.EVENTREGISTRY[t]=c.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&c.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=o=>(c.fixEvent(o,e),n.oneOff&&c.off(e,o.type,t),t.apply(e,[o]));return n}static njDelegationHandler(e,t,n){const o=s=>{const r=e.querySelectorAll(t);for(let t=s.target;t&&t!==this;t=t.parentNode)for(let i=r.length;i>=0;i--)if(r[i]===t)return c.fixEvent(s,t),o.oneOff&&c.off(e,s.type,n),n.apply(t,[s]);return null};return o}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;const s=e[o];if(s.originalHandler===t&&s.delegationSelector===n)return e[o]}return null}static normalizeParams(e,n,s){const r="string"==typeof n,i=r?s:n;let l=e.replace(c.STRIPNAME_REGEX,"");const a=t[l];a&&(l=a);return"string"==typeof o[l]||(l=e),[r,i,l]}static addHandler(e,t,n,o,s){if("string"!=typeof t||null==e)return;n||(n=o,o=null);const r=c.getEvent(e);for(const i of t.split(" ")){const[t,l,a]=c.normalizeParams(i,n,o),d=r[a]||(r[a]={}),u=c.findHandler(d,l,t?n:null);if(u)return void(u.oneOff=u.oneOff&&s);const h=c.getUidEvent(l,i.replace(c.NAMESPACE_REGEX,"")),g=t?c.njDelegationHandler(e,n,o):c.njHandler(e,n);g.delegationSelector=t?n:null,g.originalHandler=l,g.oneOff=s,g.uidEvent=h,d[h]=g,e.addEventListener(a,g,t)}}static removeHandler(e,t,n,o,s){const r=c.findHandler(t[n],o,s);null!==r&&(e.removeEventListener(n,r,Boolean(s)),delete t[n][r.uidEvent])}static removeNamespacedHandlers(e,t,n,o){const s=t[n]||{};for(const r in s)if(Object.prototype.hasOwnProperty.call(s,r)&&r.indexOf(o)>-1){const o=s[r];c.removeHandler(e,t,n,o.originalHandler,o.delegationSelector)}}static on(e,t,n,o){c.addHandler(e,t,n,o,!1)}static one(e,t,n,o){c.addHandler(e,t,n,o,!0)}static off(e,t,n,o){if("string"!=typeof t||null==e)return;const[s,r,i]=c.normalizeParams(t,n,o),l=i!==t,a=c.getEvent(e);if(void 0!==r){if(!a||!a[i])return;return void c.removeHandler(e,a,i,r,s?n:null)}if("."===t.charAt(0))for(const n in a)Object.prototype.hasOwnProperty.call(a,n)&&c.removeNamespacedHandlers(e,a,n,t.substr(1));const d=a[i]||{};for(const n in d){if(!Object.prototype.hasOwnProperty.call(d,n))continue;const o=n.replace(c.STRIPUID_REGEX,"");if(!l||t.indexOf(o)>-1){const t=d[n];c.removeHandler(e,a,i,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const s=t.replace(c.STRIPNAME_REGEX,""),r="string"==typeof o[s];let i=null;return r?(i=document.createEvent("HTMLEvents"),i.initEvent(s,true,!0)):i=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(i,e,{get:()=>n[e]})})),e.dispatchEvent(i),i}}c.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,c.STRIPNAME_REGEX=/\..*/,c.KEYEVENT_REGEX=/^key/,c.STRIPUID_REGEX=/::\d+$/,c.EVENTREGISTRY={},c.uidEvent=1;const d=c;const u={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let n=0;n<e.attributes.length;n++){const o=e.attributes[n];if(-1!==o.nodeName.indexOf("data-")){const e=o.nodeName.substring(5).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=o.nodeValue}}return Object.keys(t).forEach((e=>{var n;t[e]="true"===(n=t[e])||"false"!==n&&("null"===n?null:n===Number(n).toString()?Number(n):""===n?null:n)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,n){for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n&&"[object Object]"===Object.prototype.toString.call(t[o])?e[o]=u.extend(e[o],t[o]):e[o]=t[o]);return e},extend(){let e={},t=!1,n=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],n++);n<arguments.length;n++)e=u.mergeExtended(e,n<0||arguments.length<=n?void 0:arguments[n],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},h=u;const g={TRANSITION_END:"transitionend",getUID(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},getSelectorFromElement(e){let t=e.getAttribute("data-target");if(!t||"#"===t){const n=e.getAttribute("href");t=n&&"#"!==n?n.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement(e){if(!e)return 0;let t=window.getComputedStyle(e).transitionDuration,n=window.getComputedStyle(e).transitionDelay;const o=parseFloat(t),s=parseFloat(n);return o||s?(t=t.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(t)+parseFloat(n))):0},reflow:e=>e.offsetHeight,triggerTransitionEnd(e){const t=new CustomEvent(g.TRANSITION_END,{});e.dispatchEvent(t)},isElement:e=>(e[0]||e).nodeType,emulateTransitionEnd(e,t){let n=!1;const o=t+5;e.addEventListener(g.TRANSITION_END,(function t(){n=!0,e.removeEventListener(g.TRANSITION_END,t)})),setTimeout((()=>{n||g.triggerTransitionEnd(e)}),o)},typeCheckConfig(e,t,n){for(const s in n)if(Object.prototype.hasOwnProperty.call(n,s)){const r=n[s],i=t[s],l=i&&g.isElement(i)?"element":(o=i,{}.toString.call(o).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(r).test(l))throw new Error(`${e.toUpperCase()}: Option "${s}" provided type "${l}" but expected type "${r}".`)}var o},makeArray:e=>null==e?[]:[].slice.call(e),findShadowRoot(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?g.findShadowRoot(e.parentElement):null},throttle(e,t,n,o,s){let r,i,l,a=null,c=0;const d=()=>{c=Date.now(),a=null,l=e.apply(i,r)};return()=>{const u=Date.now();c||n||(c=u);const h=t-(u-c);return i=s||this,r=arguments,h<=0?(clearTimeout(a),a=null,c=u,l=e.apply(i,r)):!a&&o&&(a=setTimeout(d,h)),l}},coerceBool:e=>Boolean(e)},E=g;class p extends a{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(p,e,p.getOptions(t)),this.element=e,this.isTransitioning=!1,this.triggerArray=E.makeArray(document.querySelectorAll(`${p.SELECTOR.dataToggle}[href="#${e.id}"],${p.SELECTOR.dataToggle}[data-target="#${e.id}"]`));const n=E.makeArray(document.querySelectorAll(p.SELECTOR.dataToggle));for(let t=0,o=n.length;t<o;t++){const o=n[t],s=E.getSelectorFromElement(o),r=E.makeArray(document.querySelectorAll(s)).filter((t=>t===e));null!==s&&r.length&&(this.selector=s,this.triggerArray.push(o))}this.parent=this.options.parent?this.getParent():null,this.options.parent||this.addAriaAndCollapsedClass(this.element,this.triggerArray),this.options.toggle&&this.toggle(),l.setData(e,p.DATA_KEY,this),p.hasInit||(p.hasInit=!0,this.registerEvents())}toggle(){this.element.classList.contains(p.CLASS_NAME.show)?this.hide():this.show()}show(){if(this.isTransitioning||this.element.classList.contains(p.CLASS_NAME.show))return;let e,t;this.parent&&(e=E.makeArray(this.parent.querySelectorAll(p.SELECTOR.actives)).filter((e=>"string"==typeof this.options.parent?e.getAttribute("data-parent")===this.options.parent:e.classList.contains(p.CLASS_NAME.collapse))),0===e.length&&(e=null));const n=document.querySelector(this.selector);if(e){const o=e.filter((e=>n!==e));if(t=o[0]?l.getData(o[0],p.DATA_KEY):null,t&&t.isTransitioning)return}if(d.trigger(this.element,p.EVENT.show).defaultPrevented)return;e&&e.forEach((e=>{n!==e&&p.collapseInterface(e,"hide"),t||l.setData(e,p.DATA_KEY,null)}));const o=this.getDimension();this.element.classList.remove(p.CLASS_NAME.collapse),this.element.classList.add(p.CLASS_NAME.collapsing),this.element.style[o]=0,this.triggerArray.length&&this.triggerArray.forEach((e=>{e.classList.remove(p.CLASS_NAME.collapsed),e.setAttribute("aria-expanded","true")})),this.setTransitioning(!0);const s=`scroll${o[0].toUpperCase()+o.slice(1)}`,r=E.getTransitionDurationFromElement(this.element);d.one(this.element,E.TRANSITION_END,(()=>{this.element.classList.remove(p.CLASS_NAME.collapsing),this.element.classList.add(p.CLASS_NAME.collapse),this.element.classList.add(p.CLASS_NAME.show),this.element.style[o]="",this.setTransitioning(!1),d.trigger(this.element,p.EVENT.shown)})),E.emulateTransitionEnd(this.element,r),this.element.style[o]=`${this.element[s]}px`}hide(){if(this.isTransitioning||!this.element.classList.contains(p.CLASS_NAME.show))return;if(d.trigger(this.element,p.EVENT.hide).defaultPrevented)return;const e=this.getDimension();this.element.style[e]=`${this.element.getBoundingClientRect()[e]}px`,E.reflow(this.element),this.element.classList.add(p.CLASS_NAME.collapsing),this.element.classList.remove(p.CLASS_NAME.collapse),this.element.classList.remove(p.CLASS_NAME.show);const t=this.triggerArray.length;if(t>0)for(let e=0;e<t;e++){const t=this.triggerArray[e],n=E.getSelectorFromElement(t);if(null!==n){document.querySelector(n).classList.contains(p.CLASS_NAME.show)||(t.classList.add(p.CLASS_NAME.collapsed),t.setAttribute("aria-expanded","false"))}}this.setTransitioning(!0);this.element.style[e]="";const n=E.getTransitionDurationFromElement(this.element);d.one(this.element,E.TRANSITION_END,(()=>{this.setTransitioning(!1),this.element.classList.remove(p.CLASS_NAME.collapsing),this.element.classList.add(p.CLASS_NAME.collapse),d.trigger(this.element,p.EVENT.hidden)})),E.emulateTransitionEnd(this.element,n)}setTransitioning(e){this.isTransitioning=e}dispose(){l.removeData(this.element,p.DATA_KEY),this.options=null,this.parent=null,this.element=null,this.triggerArray=null,this.isTransitioning=null}getDimension(){return this.element.classList.contains(p.DIMENSION.width)?p.DIMENSION.width:p.DIMENSION.height}getParent(){let e;E.isElement(this.options.parent)?e=this.options.parent:this.options.parent&&(e=document.querySelector(this.options.parent));const t=`[data-toggle="collapse"][data-parent="${this.options.parent}"]`;return E.makeArray(e.querySelectorAll(t)).forEach((e=>{this.addAriaAndCollapsedClass(p.getTargetFromElement(e),[e])})),e}addAriaAndCollapsedClass(e,t){if(e){const n=e.classList.contains(p.CLASS_NAME.show);t.length&&t.forEach((e=>{n?e.classList.remove(p.CLASS_NAME.collapsed):e.classList.add(p.CLASS_NAME.collapsed),e.setAttribute("aria-expanded",n)}))}}static getOptions(e){return(e=Object.assign(Object.assign({},p.DEFAULT_OPTIONS),e)).toggle=Boolean(e.toggle),E.typeCheckConfig(p.NAME,e,p.DEFAULT_TYPE),e}static getTargetFromElement(e){const t=E.getSelectorFromElement(e);return t?document.querySelector(t):null}static collapseInterface(e,t){let n=l.getData(e,p.DATA_KEY);const o=Object.assign(Object.assign(Object.assign({},p.DEFAULT_OPTIONS),h.getDataAttributes(e)),"object"==typeof t&&t?t:{});if(!n&&o.toggle&&/show|hide/.test(t)&&(o.toggle=!1),n||(n=new p(e,o)),"string"==typeof t){if(void 0===n[t])throw new Error(`No method named "${t}"`);n[t]()}}static getInstance(e){return l.getData(e,p.DATA_KEY)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,p.SELECTOR.default)}registerEvents(){d.on(document,p.EVENT.clickDataApi,p.SELECTOR.dataToggle,(function(e){"A"===e.target.tagName&&e.preventDefault();const t=h.getDataAttributes(this),n=E.getSelectorFromElement(this);E.makeArray(document.querySelectorAll(n)).forEach((e=>{const n=p.getInstance(e);let o;n?(null===n.parent&&"string"==typeof t.parent&&(n.options.parent=t.parent,n.parent=n.getParent()),o="toggle"):o=t,p.collapseInterface(e,o)}))}))}}p.NAME=`${e.KEY_PREFIX}-collapse`,p.DATA_KEY=`${e.KEY_PREFIX}.collapse`,p.EVENT_KEY=`.${p.DATA_KEY}`,p.DATA_API_KEY=e.KEY_PREFIX,p.hasInit=!1,p.CLASS_NAME={show:"show",collapse:`${e.KEY_PREFIX}-collapse`,collapsing:`${e.KEY_PREFIX}-collapsing`,collapsed:`${e.KEY_PREFIX}-collapsed`},p.EVENT={show:`${n.show}${p.EVENT_KEY}`,shown:`${n.shown}${p.EVENT_KEY}`,hide:`${n.hide}${p.EVENT_KEY}`,hidden:`${n.hidden}${p.EVENT_KEY}`,clickDataApi:`${n.click}${p.EVENT_KEY}${p.DATA_API_KEY}`},p.DEFAULT_OPTIONS={toggle:!1,parent:""},p.DEFAULT_TYPE={toggle:"boolean",parent:"(string|element)"},p.DIMENSION={width:"width",height:"height"},p.SELECTOR={default:`.${p.CLASS_NAME.collapse}`,actives:`.${p.CLASS_NAME.show}, .${p.CLASS_NAME.collapsing}`,dataToggle:'[data-toggle="collapse"]'};const m=p;return r=r.default})()));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Collapse",[],t):"object"==typeof exports?exports.Collapse=t():e.Collapse=t()}(window,(()=>(()=>{"use strict";var e,t,n,o,s={d:(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},r={};s.d(r,{default:()=>m}),function(e){e.LIBRARY_LOG_TAG="[FLUID]",e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(e||(e={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(t||(t={})),function(e){e.beforehide="beforehide",e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(n||(n={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(o||(o={})),window.NJStore=window.NJStore||[];const i=(()=>{const e=window.NJStore;return{set(t,n,o){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=o},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const o=t.key;o.key===n&&(delete e[o.id],delete t.key)}}})(),l={setData(e,t,n){i.set(e,t,n)},getData:(e,t)=>i.get(e,t),removeData(e,t){i.delete(e,t)}};class a{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o=[],s=document.querySelectorAll(n);for(let n=0;n<s.length;n++){const r=s[n];if(!r.key||r.key.key!==e.DATA_KEY){const i=new e(s[n],t);r.key||l.setData(s[n],e.DATA_KEY,i),o.push(i)}}return o}}class c{static getUidEvent(e,t){return t&&`${t}::${c.uidEvent++}`||e.uidEvent||c.uidEvent++}static getEvent(e){const t=c.getUidEvent(e);return e.uidEvent=t,c.EVENTREGISTRY[t]=c.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&c.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=o=>(c.fixEvent(o,e),n.oneOff&&c.off(e,o.type,t),t.apply(e,[o]));return n}static njDelegationHandler(e,t,n){const o=s=>{const r=e.querySelectorAll(t);for(let t=s.target;t&&t!==this;t=t.parentNode)for(let i=r.length;i>=0;i--)if(r[i]===t)return c.fixEvent(s,t),o.oneOff&&c.off(e,s.type,n),n.apply(t,[s]);return null};return o}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;const s=e[o];if(s.originalHandler===t&&s.delegationSelector===n)return e[o]}return null}static normalizeParams(e,n,s){const r="string"==typeof n,i=r?s:n;let l=e.replace(c.STRIPNAME_REGEX,"");const a=t[l];a&&(l=a);return"string"==typeof o[l]||(l=e),[r,i,l]}static addHandler(e,t,n,o,s){if("string"!=typeof t||null==e)return;n||(n=o,o=null);const r=c.getEvent(e);for(const i of t.split(" ")){const[t,l,a]=c.normalizeParams(i,n,o),d=r[a]||(r[a]={}),u=c.findHandler(d,l,t?n:null);if(u)return void(u.oneOff=u.oneOff&&s);const h=c.getUidEvent(l,i.replace(c.NAMESPACE_REGEX,"")),g=t?c.njDelegationHandler(e,n,o):c.njHandler(e,n);g.delegationSelector=t?n:null,g.originalHandler=l,g.oneOff=s,g.uidEvent=h,d[h]=g,e.addEventListener(a,g,t)}}static removeHandler(e,t,n,o,s){const r=c.findHandler(t[n],o,s);null!==r&&(e.removeEventListener(n,r,Boolean(s)),delete t[n][r.uidEvent])}static removeNamespacedHandlers(e,t,n,o){const s=t[n]||{};for(const r in s)if(Object.prototype.hasOwnProperty.call(s,r)&&r.indexOf(o)>-1){const o=s[r];c.removeHandler(e,t,n,o.originalHandler,o.delegationSelector)}}static on(e,t,n,o){c.addHandler(e,t,n,o,!1)}static one(e,t,n,o){c.addHandler(e,t,n,o,!0)}static off(e,t,n,o){if("string"!=typeof t||null==e)return;const[s,r,i]=c.normalizeParams(t,n,o),l=i!==t,a=c.getEvent(e);if(void 0!==r){if(!a||!a[i])return;return void c.removeHandler(e,a,i,r,s?n:null)}if("."===t.charAt(0))for(const n in a)Object.prototype.hasOwnProperty.call(a,n)&&c.removeNamespacedHandlers(e,a,n,t.substr(1));const d=a[i]||{};for(const n in d){if(!Object.prototype.hasOwnProperty.call(d,n))continue;const o=n.replace(c.STRIPUID_REGEX,"");if(!l||t.indexOf(o)>-1){const t=d[n];c.removeHandler(e,a,i,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const s=t.replace(c.STRIPNAME_REGEX,""),r="string"==typeof o[s],i=!0;let l=null;return r?(l=document.createEvent("HTMLEvents"),l.initEvent(s,i,!0)):l=new window.CustomEvent(t,{bubbles:i,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(l,e,{get:()=>n[e]})})),e.dispatchEvent(l),l}}c.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,c.STRIPNAME_REGEX=/\..*/,c.KEYEVENT_REGEX=/^key/,c.STRIPUID_REGEX=/::\d+$/,c.EVENTREGISTRY={},c.uidEvent=1;const d=c;const u={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let n=0;n<e.attributes.length;n++){const o=e.attributes[n];if(-1!==o.nodeName.indexOf("data-")){const e=o.nodeName.substring(5).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=o.nodeValue}}return Object.keys(t).forEach((e=>{var n;t[e]="true"===(n=t[e])||"false"!==n&&("null"===n?null:n===Number(n).toString()?Number(n):""===n?null:n)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,n){for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n&&"[object Object]"===Object.prototype.toString.call(t[o])?e[o]=u.extend(e[o],t[o]):e[o]=t[o]);return e},extend(){let e={},t=!1,n=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],n++);n<arguments.length;n++)e=u.mergeExtended(e,n<0||arguments.length<=n?void 0:arguments[n],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},h=u;const g={TRANSITION_END:"transitionend",getUID(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},getSelectorFromElement(e){let t=e.getAttribute("data-target");if(!t||"#"===t){const n=e.getAttribute("href");t=n&&"#"!==n?n.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement(e){if(!e)return 0;let t=window.getComputedStyle(e).transitionDuration,n=window.getComputedStyle(e).transitionDelay;const o=parseFloat(t),s=parseFloat(n);return o||s?(t=t.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(t)+parseFloat(n))):0},reflow:e=>e.offsetHeight,triggerTransitionEnd(e){const t=new CustomEvent(g.TRANSITION_END,{});e.dispatchEvent(t)},isElement:e=>(e[0]||e).nodeType,emulateTransitionEnd(e,t){let n=!1;const o=t+5;e.addEventListener(g.TRANSITION_END,(function t(){n=!0,e.removeEventListener(g.TRANSITION_END,t)})),setTimeout((()=>{n||g.triggerTransitionEnd(e)}),o)},typeCheckConfig(e,t,n){for(const s in n)if(Object.prototype.hasOwnProperty.call(n,s)){const r=n[s],i=t[s],l=i&&g.isElement(i)?"element":(o=i,{}.toString.call(o).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(r).test(l))throw new Error(`${e.toUpperCase()}: Option "${s}" provided type "${l}" but expected type "${r}".`)}var o},makeArray:e=>null==e?[]:[].slice.call(e),findShadowRoot(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?g.findShadowRoot(e.parentElement):null},throttle(e,t,n,o,s){let r,i,l,a=null,c=0;const d=()=>{c=Date.now(),a=null,l=e.apply(i,r)};return()=>{const u=Date.now();c||n||(c=u);const h=t-(u-c);return i=s||this,r=arguments,h<=0?(clearTimeout(a),a=null,c=u,l=e.apply(i,r)):!a&&o&&(a=setTimeout(d,h)),l}},coerceBool:e=>Boolean(e)},E=g;class p extends a{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(p,e,p.getOptions(t)),this.element=e,this.isTransitioning=!1,this.triggerArray=E.makeArray(document.querySelectorAll(`${p.SELECTOR.dataToggle}[href="#${e.id}"],${p.SELECTOR.dataToggle}[data-target="#${e.id}"]`));const n=E.makeArray(document.querySelectorAll(p.SELECTOR.dataToggle));for(let t=0,o=n.length;t<o;t++){const o=n[t],s=E.getSelectorFromElement(o),r=E.makeArray(document.querySelectorAll(s)).filter((t=>t===e));null!==s&&r.length&&(this.selector=s,this.triggerArray.push(o))}this.parent=this.options.parent?this.getParent():null,this.options.parent||this.addAriaAndCollapsedClass(this.element,this.triggerArray),this.options.toggle&&this.toggle(),l.setData(e,p.DATA_KEY,this),p.hasInit||(p.hasInit=!0,this.registerEvents())}toggle(){this.element.classList.contains(p.CLASS_NAME.show)?this.hide():this.show()}show(){if(this.isTransitioning||this.element.classList.contains(p.CLASS_NAME.show))return;let e,t;this.parent&&(e=E.makeArray(this.parent.querySelectorAll(p.SELECTOR.actives)).filter((e=>"string"==typeof this.options.parent?e.getAttribute("data-parent")===this.options.parent:e.classList.contains(p.CLASS_NAME.collapse))),0===e.length&&(e=null));const n=document.querySelector(this.selector);if(e){const o=e.filter((e=>n!==e));if(t=o[0]?l.getData(o[0],p.DATA_KEY):null,t&&t.isTransitioning)return}if(d.trigger(this.element,p.EVENT.show).defaultPrevented)return;e&&e.forEach((e=>{n!==e&&p.collapseInterface(e,"hide"),t||l.setData(e,p.DATA_KEY,null)}));const o=this.getDimension();this.element.classList.remove(p.CLASS_NAME.collapse),this.element.classList.add(p.CLASS_NAME.collapsing),this.element.style[o]=0,this.triggerArray.length&&this.triggerArray.forEach((e=>{e.classList.remove(p.CLASS_NAME.collapsed),e.setAttribute("aria-expanded","true")})),this.setTransitioning(!0);const s=`scroll${o[0].toUpperCase()+o.slice(1)}`,r=E.getTransitionDurationFromElement(this.element);d.one(this.element,E.TRANSITION_END,(()=>{this.element.classList.remove(p.CLASS_NAME.collapsing),this.element.classList.add(p.CLASS_NAME.collapse),this.element.classList.add(p.CLASS_NAME.show),this.element.style[o]="",this.setTransitioning(!1),d.trigger(this.element,p.EVENT.shown)})),E.emulateTransitionEnd(this.element,r),this.element.style[o]=`${this.element[s]}px`}hide(){if(this.isTransitioning||!this.element.classList.contains(p.CLASS_NAME.show))return;if(d.trigger(this.element,p.EVENT.hide).defaultPrevented)return;const e=this.getDimension();this.element.style[e]=`${this.element.getBoundingClientRect()[e]}px`,E.reflow(this.element),this.element.classList.add(p.CLASS_NAME.collapsing),this.element.classList.remove(p.CLASS_NAME.collapse),this.element.classList.remove(p.CLASS_NAME.show);const t=this.triggerArray.length;if(t>0)for(let e=0;e<t;e++){const t=this.triggerArray[e],n=E.getSelectorFromElement(t);if(null!==n){document.querySelector(n).classList.contains(p.CLASS_NAME.show)||(t.classList.add(p.CLASS_NAME.collapsed),t.setAttribute("aria-expanded","false"))}}this.setTransitioning(!0);this.element.style[e]="";const n=E.getTransitionDurationFromElement(this.element);d.one(this.element,E.TRANSITION_END,(()=>{this.setTransitioning(!1),this.element.classList.remove(p.CLASS_NAME.collapsing),this.element.classList.add(p.CLASS_NAME.collapse),d.trigger(this.element,p.EVENT.hidden)})),E.emulateTransitionEnd(this.element,n)}setTransitioning(e){this.isTransitioning=e}dispose(){l.removeData(this.element,p.DATA_KEY),this.options=null,this.parent=null,this.element=null,this.triggerArray=null,this.isTransitioning=null}getDimension(){return this.element.classList.contains(p.DIMENSION.width)?p.DIMENSION.width:p.DIMENSION.height}getParent(){let e;E.isElement(this.options.parent)?e=this.options.parent:this.options.parent&&(e=document.querySelector(this.options.parent));const t=`[data-toggle="collapse"][data-parent="${this.options.parent}"]`;return E.makeArray(e.querySelectorAll(t)).forEach((e=>{this.addAriaAndCollapsedClass(p.getTargetFromElement(e),[e])})),e}addAriaAndCollapsedClass(e,t){if(e){const n=e.classList.contains(p.CLASS_NAME.show);t.length&&t.forEach((e=>{n?e.classList.remove(p.CLASS_NAME.collapsed):e.classList.add(p.CLASS_NAME.collapsed),e.setAttribute("aria-expanded",n)}))}}static getOptions(e){return(e=Object.assign(Object.assign({},p.DEFAULT_OPTIONS),e)).toggle=Boolean(e.toggle),E.typeCheckConfig(p.NAME,e,p.DEFAULT_TYPE),e}static getTargetFromElement(e){const t=E.getSelectorFromElement(e);return t?document.querySelector(t):null}static collapseInterface(e,t){let n=l.getData(e,p.DATA_KEY);const o=Object.assign(Object.assign(Object.assign({},p.DEFAULT_OPTIONS),h.getDataAttributes(e)),"object"==typeof t&&t?t:{});if(!n&&o.toggle&&/show|hide/.test(t)&&(o.toggle=!1),n||(n=new p(e,o)),"string"==typeof t){if(void 0===n[t])throw new Error(`No method named "${t}"`);n[t]()}}static getInstance(e){return l.getData(e,p.DATA_KEY)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,p.SELECTOR.default)}registerEvents(){d.on(document,p.EVENT.clickDataApi,p.SELECTOR.dataToggle,(function(e){"A"===e.target.tagName&&e.preventDefault();const t=h.getDataAttributes(this),n=E.getSelectorFromElement(this);E.makeArray(document.querySelectorAll(n)).forEach((e=>{const n=p.getInstance(e);let o;n?(null===n.parent&&"string"==typeof t.parent&&(n.options.parent=t.parent,n.parent=n.getParent()),o="toggle"):o=t,p.collapseInterface(e,o)}))}))}}p.NAME=`${e.KEY_PREFIX}-collapse`,p.DATA_KEY=`${e.KEY_PREFIX}.collapse`,p.EVENT_KEY=`.${p.DATA_KEY}`,p.DATA_API_KEY=e.KEY_PREFIX,p.hasInit=!1,p.CLASS_NAME={show:"show",collapse:`${e.KEY_PREFIX}-collapse`,collapsing:`${e.KEY_PREFIX}-collapsing`,collapsed:`${e.KEY_PREFIX}-collapsed`},p.EVENT={show:`${n.show}${p.EVENT_KEY}`,shown:`${n.shown}${p.EVENT_KEY}`,hide:`${n.hide}${p.EVENT_KEY}`,hidden:`${n.hidden}${p.EVENT_KEY}`,clickDataApi:`${n.click}${p.EVENT_KEY}${p.DATA_API_KEY}`},p.DEFAULT_OPTIONS={toggle:!1,parent:""},p.DEFAULT_TYPE={toggle:"boolean",parent:"(string|element)"},p.DIMENSION={width:"width",height:"height"},p.SELECTOR={default:`.${p.CLASS_NAME.collapse}`,actives:`.${p.CLASS_NAME.show}, .${p.CLASS_NAME.collapsing}`,dataToggle:'[data-toggle="collapse"]'};const m=p;return r=r.default})()));
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Dropdown",[],t):"object"==typeof exports?exports.Dropdown=t():e.Dropdown=t()}(window,(()=>(()=>{"use strict";var e,t,n,o,s={d:(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},l={};s.d(l,{default:()=>f}),function(e){e.LIBRARY_LOG_TAG="[FLUID]",e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(e||(e={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(t||(t={})),function(e){e.beforehide="beforehide",e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(n||(n={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(o||(o={})),window.NJStore=window.NJStore||[];const i=(()=>{const e=window.NJStore;return{set(t,n,o){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=o},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const o=t.key;o.key===n&&(delete e[o.id],delete t.key)}}})(),r={setData(e,t,n){i.set(e,t,n)},getData:(e,t)=>i.get(e,t),removeData(e,t){i.delete(e,t)}};class a{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o=[],s=document.querySelectorAll(n);for(let n=0;n<s.length;n++){const l=s[n];if(!l.key||l.key.key!==e.DATA_KEY){const i=new e(s[n],t);l.key||r.setData(s[n],e.DATA_KEY,i),o.push(i)}}return o}}class c{static getUidEvent(e,t){return t&&`${t}::${c.uidEvent++}`||e.uidEvent||c.uidEvent++}static getEvent(e){const t=c.getUidEvent(e);return e.uidEvent=t,c.EVENTREGISTRY[t]=c.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&c.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=o=>(c.fixEvent(o,e),n.oneOff&&c.off(e,o.type,t),t.apply(e,[o]));return n}static njDelegationHandler(e,t,n){const o=s=>{const l=e.querySelectorAll(t);for(let t=s.target;t&&t!==this;t=t.parentNode)for(let i=l.length;i>=0;i--)if(l[i]===t)return c.fixEvent(s,t),o.oneOff&&c.off(e,s.type,n),n.apply(t,[s]);return null};return o}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;const s=e[o];if(s.originalHandler===t&&s.delegationSelector===n)return e[o]}return null}static normalizeParams(e,n,s){const l="string"==typeof n,i=l?s:n;let r=e.replace(c.STRIPNAME_REGEX,"");const a=t[r];a&&(r=a);return"string"==typeof o[r]||(r=e),[l,i,r]}static addHandler(e,t,n,o,s){if("string"!=typeof t||null==e)return;n||(n=o,o=null);const l=c.getEvent(e);for(const i of t.split(" ")){const[t,r,a]=c.normalizeParams(i,n,o),d=l[a]||(l[a]={}),u=c.findHandler(d,r,t?n:null);if(u)return void(u.oneOff=u.oneOff&&s);const E=c.getUidEvent(r,i.replace(c.NAMESPACE_REGEX,"")),h=t?c.njDelegationHandler(e,n,o):c.njHandler(e,n);h.delegationSelector=t?n:null,h.originalHandler=r,h.oneOff=s,h.uidEvent=E,d[E]=h,e.addEventListener(a,h,t)}}static removeHandler(e,t,n,o,s){const l=c.findHandler(t[n],o,s);null!==l&&(e.removeEventListener(n,l,Boolean(s)),delete t[n][l.uidEvent])}static removeNamespacedHandlers(e,t,n,o){const s=t[n]||{};for(const l in s)if(Object.prototype.hasOwnProperty.call(s,l)&&l.indexOf(o)>-1){const o=s[l];c.removeHandler(e,t,n,o.originalHandler,o.delegationSelector)}}static on(e,t,n,o){c.addHandler(e,t,n,o,!1)}static one(e,t,n,o){c.addHandler(e,t,n,o,!0)}static off(e,t,n,o){if("string"!=typeof t||null==e)return;const[s,l,i]=c.normalizeParams(t,n,o),r=i!==t,a=c.getEvent(e);if(void 0!==l){if(!a||!a[i])return;return void c.removeHandler(e,a,i,l,s?n:null)}if("."===t.charAt(0))for(const n in a)Object.prototype.hasOwnProperty.call(a,n)&&c.removeNamespacedHandlers(e,a,n,t.substr(1));const d=a[i]||{};for(const n in d){if(!Object.prototype.hasOwnProperty.call(d,n))continue;const o=n.replace(c.STRIPUID_REGEX,"");if(!r||t.indexOf(o)>-1){const t=d[n];c.removeHandler(e,a,i,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const s=t.replace(c.STRIPNAME_REGEX,""),l="string"==typeof o[s];let i=null;return l?(i=document.createEvent("HTMLEvents"),i.initEvent(s,true,!0)):i=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(i,e,{get:()=>n[e]})})),e.dispatchEvent(i),i}}c.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,c.STRIPNAME_REGEX=/\..*/,c.KEYEVENT_REGEX=/^key/,c.STRIPUID_REGEX=/::\d+$/,c.EVENTREGISTRY={},c.uidEvent=1;const d=c;const u={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let n=0;n<e.attributes.length;n++){const o=e.attributes[n];if(-1!==o.nodeName.indexOf("data-")){const e=o.nodeName.substring(5).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=o.nodeValue}}return Object.keys(t).forEach((e=>{var n;t[e]="true"===(n=t[e])||"false"!==n&&("null"===n?null:n===Number(n).toString()?Number(n):""===n?null:n)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,n){for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n&&"[object Object]"===Object.prototype.toString.call(t[o])?e[o]=u.extend(e[o],t[o]):e[o]=t[o]);return e},extend(){let e={},t=!1,n=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],n++);n<arguments.length;n++)e=u.mergeExtended(e,n<0||arguments.length<=n?void 0:arguments[n],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},E=u;const h={TRANSITION_END:"transitionend",getUID(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},getSelectorFromElement(e){let t=e.getAttribute("data-target");if(!t||"#"===t){const n=e.getAttribute("href");t=n&&"#"!==n?n.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement(e){if(!e)return 0;let t=window.getComputedStyle(e).transitionDuration,n=window.getComputedStyle(e).transitionDelay;const o=parseFloat(t),s=parseFloat(n);return o||s?(t=t.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(t)+parseFloat(n))):0},reflow:e=>e.offsetHeight,triggerTransitionEnd(e){const t=new CustomEvent(h.TRANSITION_END,{});e.dispatchEvent(t)},isElement:e=>(e[0]||e).nodeType,emulateTransitionEnd(e,t){let n=!1;const o=t+5;e.addEventListener(h.TRANSITION_END,(function t(){n=!0,e.removeEventListener(h.TRANSITION_END,t)})),setTimeout((()=>{n||h.triggerTransitionEnd(e)}),o)},typeCheckConfig(e,t,n){for(const s in n)if(Object.prototype.hasOwnProperty.call(n,s)){const l=n[s],i=t[s],r=i&&h.isElement(i)?"element":(o=i,{}.toString.call(o).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(l).test(r))throw new Error(`${e.toUpperCase()}: Option "${s}" provided type "${r}" but expected type "${l}".`)}var o},makeArray:e=>null==e?[]:[].slice.call(e),findShadowRoot(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?h.findShadowRoot(e.parentElement):null},throttle(e,t,n,o,s){let l,i,r,a=null,c=0;const d=()=>{c=Date.now(),a=null,r=e.apply(i,l)};return()=>{const u=Date.now();c||n||(c=u);const E=t-(u-c);return i=s||this,l=arguments,E<=0?(clearTimeout(a),a=null,c=u,r=e.apply(i,l)):!a&&o&&(a=setTimeout(d,E)),r}},coerceBool:e=>Boolean(e)},g=h;class p extends a{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(p,e,p.getOptions(t)),this.element=e,this.isTransitioning=!1,this.triggerArray=g.makeArray(document.querySelectorAll(`${p.SELECTOR.dataToggle}[href="#${e.id}"],${p.SELECTOR.dataToggle}[data-target="#${e.id}"]`));const n=g.makeArray(document.querySelectorAll(p.SELECTOR.dataToggle));for(let t=0,o=n.length;t<o;t++){const o=n[t],s=g.getSelectorFromElement(o),l=g.makeArray(document.querySelectorAll(s)).filter((t=>t===e));null!==s&&l.length&&(this.selector=s,this.triggerArray.push(o))}this.parent=this.options.parent?this.getParent():null,this.options.parent||this.addAriaAndCollapsedClass(this.element,this.triggerArray),this.options.toggle&&this.toggle(),r.setData(e,p.DATA_KEY,this),p.hasInit||(p.hasInit=!0,this.registerEvents())}toggle(){this.element.classList.contains(p.CLASS_NAME.show)?this.hide():this.show()}show(){if(this.isTransitioning||this.element.classList.contains(p.CLASS_NAME.show))return;let e,t;this.parent&&(e=g.makeArray(this.parent.querySelectorAll(p.SELECTOR.actives)).filter((e=>"string"==typeof this.options.parent?e.getAttribute("data-parent")===this.options.parent:e.classList.contains(p.CLASS_NAME.collapse))),0===e.length&&(e=null));const n=document.querySelector(this.selector);if(e){const o=e.filter((e=>n!==e));if(t=o[0]?r.getData(o[0],p.DATA_KEY):null,t&&t.isTransitioning)return}if(d.trigger(this.element,p.EVENT.show).defaultPrevented)return;e&&e.forEach((e=>{n!==e&&p.collapseInterface(e,"hide"),t||r.setData(e,p.DATA_KEY,null)}));const o=this.getDimension();this.element.classList.remove(p.CLASS_NAME.collapse),this.element.classList.add(p.CLASS_NAME.collapsing),this.element.style[o]=0,this.triggerArray.length&&this.triggerArray.forEach((e=>{e.classList.remove(p.CLASS_NAME.collapsed),e.setAttribute("aria-expanded","true")})),this.setTransitioning(!0);const s=`scroll${o[0].toUpperCase()+o.slice(1)}`,l=g.getTransitionDurationFromElement(this.element);d.one(this.element,g.TRANSITION_END,(()=>{this.element.classList.remove(p.CLASS_NAME.collapsing),this.element.classList.add(p.CLASS_NAME.collapse),this.element.classList.add(p.CLASS_NAME.show),this.element.style[o]="",this.setTransitioning(!1),d.trigger(this.element,p.EVENT.shown)})),g.emulateTransitionEnd(this.element,l),this.element.style[o]=`${this.element[s]}px`}hide(){if(this.isTransitioning||!this.element.classList.contains(p.CLASS_NAME.show))return;if(d.trigger(this.element,p.EVENT.hide).defaultPrevented)return;const e=this.getDimension();this.element.style[e]=`${this.element.getBoundingClientRect()[e]}px`,g.reflow(this.element),this.element.classList.add(p.CLASS_NAME.collapsing),this.element.classList.remove(p.CLASS_NAME.collapse),this.element.classList.remove(p.CLASS_NAME.show);const t=this.triggerArray.length;if(t>0)for(let e=0;e<t;e++){const t=this.triggerArray[e],n=g.getSelectorFromElement(t);if(null!==n){document.querySelector(n).classList.contains(p.CLASS_NAME.show)||(t.classList.add(p.CLASS_NAME.collapsed),t.setAttribute("aria-expanded","false"))}}this.setTransitioning(!0);this.element.style[e]="";const n=g.getTransitionDurationFromElement(this.element);d.one(this.element,g.TRANSITION_END,(()=>{this.setTransitioning(!1),this.element.classList.remove(p.CLASS_NAME.collapsing),this.element.classList.add(p.CLASS_NAME.collapse),d.trigger(this.element,p.EVENT.hidden)})),g.emulateTransitionEnd(this.element,n)}setTransitioning(e){this.isTransitioning=e}dispose(){r.removeData(this.element,p.DATA_KEY),this.options=null,this.parent=null,this.element=null,this.triggerArray=null,this.isTransitioning=null}getDimension(){return this.element.classList.contains(p.DIMENSION.width)?p.DIMENSION.width:p.DIMENSION.height}getParent(){let e;g.isElement(this.options.parent)?e=this.options.parent:this.options.parent&&(e=document.querySelector(this.options.parent));const t=`[data-toggle="collapse"][data-parent="${this.options.parent}"]`;return g.makeArray(e.querySelectorAll(t)).forEach((e=>{this.addAriaAndCollapsedClass(p.getTargetFromElement(e),[e])})),e}addAriaAndCollapsedClass(e,t){if(e){const n=e.classList.contains(p.CLASS_NAME.show);t.length&&t.forEach((e=>{n?e.classList.remove(p.CLASS_NAME.collapsed):e.classList.add(p.CLASS_NAME.collapsed),e.setAttribute("aria-expanded",n)}))}}static getOptions(e){return(e=Object.assign(Object.assign({},p.DEFAULT_OPTIONS),e)).toggle=Boolean(e.toggle),g.typeCheckConfig(p.NAME,e,p.DEFAULT_TYPE),e}static getTargetFromElement(e){const t=g.getSelectorFromElement(e);return t?document.querySelector(t):null}static collapseInterface(e,t){let n=r.getData(e,p.DATA_KEY);const o=Object.assign(Object.assign(Object.assign({},p.DEFAULT_OPTIONS),E.getDataAttributes(e)),"object"==typeof t&&t?t:{});if(!n&&o.toggle&&/show|hide/.test(t)&&(o.toggle=!1),n||(n=new p(e,o)),"string"==typeof t){if(void 0===n[t])throw new Error(`No method named "${t}"`);n[t]()}}static getInstance(e){return r.getData(e,p.DATA_KEY)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,p.SELECTOR.default)}registerEvents(){d.on(document,p.EVENT.clickDataApi,p.SELECTOR.dataToggle,(function(e){"A"===e.target.tagName&&e.preventDefault();const t=E.getDataAttributes(this),n=g.getSelectorFromElement(this);g.makeArray(document.querySelectorAll(n)).forEach((e=>{const n=p.getInstance(e);let o;n?(null===n.parent&&"string"==typeof t.parent&&(n.options.parent=t.parent,n.parent=n.getParent()),o="toggle"):o=t,p.collapseInterface(e,o)}))}))}}p.NAME=`${e.KEY_PREFIX}-collapse`,p.DATA_KEY=`${e.KEY_PREFIX}.collapse`,p.EVENT_KEY=`.${p.DATA_KEY}`,p.DATA_API_KEY=e.KEY_PREFIX,p.hasInit=!1,p.CLASS_NAME={show:"show",collapse:`${e.KEY_PREFIX}-collapse`,collapsing:`${e.KEY_PREFIX}-collapsing`,collapsed:`${e.KEY_PREFIX}-collapsed`},p.EVENT={show:`${n.show}${p.EVENT_KEY}`,shown:`${n.shown}${p.EVENT_KEY}`,hide:`${n.hide}${p.EVENT_KEY}`,hidden:`${n.hidden}${p.EVENT_KEY}`,clickDataApi:`${n.click}${p.EVENT_KEY}${p.DATA_API_KEY}`},p.DEFAULT_OPTIONS={toggle:!1,parent:""},p.DEFAULT_TYPE={toggle:"boolean",parent:"(string|element)"},p.DIMENSION={width:"width",height:"height"},p.SELECTOR={default:`.${p.CLASS_NAME.collapse}`,actives:`.${p.CLASS_NAME.show}, .${p.CLASS_NAME.collapsing}`,dataToggle:'[data-toggle="collapse"]'};const m=p;class A extends a{constructor(e){super(A,e),r.setData(e,A.DATA_KEY,this),this.addBlurEvent(),this.addTouchEvent(),this.registerEvents()}closeMenu(){this.element.classList.contains(A.CLASS_NAME.shownCollapse)&&this.element.click()}dispose(){r.removeData(this.element,A.DATA_KEY),this.element=null}static handleCollapseShow(e){e.target.closest(A.SELECTOR.default).classList.add(A.CLASS_NAME.shownCollapse)}static handleCollapseHide(e){e.target.closest(A.SELECTOR.default).classList.remove(A.CLASS_NAME.shownCollapse)}static getInstance(e){return r.getData(e,A.DATA_KEY)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,A.SELECTOR.default)}addTouchEvent(){d.on(this.element,A.EVENT.keydownDismiss,(e=>{e.which===A.ESCAPE_KEYCODE&&(e.preventDefault(),this.closeMenu())}))}addBlurEvent(){d.on(this.element,"blur",(()=>{this.closeMenu()}))}registerEvents(){d.on(document,m.EVENT.show,A.SELECTOR.default,(e=>{A.handleCollapseShow(e)})),d.on(document,m.EVENT.hidden,A.SELECTOR.default,(e=>{A.handleCollapseHide(e)})),d.on(document,A.EVENT.clickDataApi,A.SELECTOR.options,(e=>{const t=e.target.closest(`[${A.ATTRIBUTE.value}]`),n=e.target.closest(A.SELECTOR.default),o=t.querySelector(`[${A.ATTRIBUTE.content}]`),s=n.querySelector(A.SELECTOR.input),l=t.getAttribute(A.ATTRIBUTE.value),i=o?o.textContent:t.textContent;s.value=l,n.setAttribute(A.ATTRIBUTE.selectedContent,i),this.value=l,d.trigger(this.element,A.EVENT.onchange)}))}}A.NAME=`${e.KEY_PREFIX}-dropdown`,A.DATA_KEY=`${e.KEY_PREFIX}.dropdown`,A.EVENT_KEY=`.${A.DATA_KEY}`,A.DATA_API_KEY=e.KEY_PREFIX,A.ESCAPE_KEYCODE=27,A.ATTRIBUTE={content:"data-content",selectedContent:"data-selected-content",value:"data-value"},A.CLASS_NAME={isFilled:`${A.NAME}__label--is-filled`,shownCollapse:`${A.NAME}--shown-collapse`},A.SELECTOR={default:`.${A.NAME}`,input:"input",label:`.${A.NAME}__label`,options:`.${A.NAME} [${A.ATTRIBUTE.value}]`},A.EVENT={clickDataApi:`${n.mousedown}${A.EVENT_KEY}${A.DATA_API_KEY}`,keydownDismiss:`${n.keydown}.dismiss${A.EVENT_KEY}`,onchange:`${n.onchange}${A.EVENT_KEY}`};const f=A;return l=l.default})()));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Dropdown",[],t):"object"==typeof exports?exports.Dropdown=t():e.Dropdown=t()}(window,(()=>(()=>{"use strict";var e,t,n,o,s={d:(e,t)=>{for(var n in t)s.o(t,n)&&!s.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},l={};s.d(l,{default:()=>f}),function(e){e.LIBRARY_LOG_TAG="[FLUID]",e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(e||(e={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(t||(t={})),function(e){e.beforehide="beforehide",e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(n||(n={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(o||(o={})),window.NJStore=window.NJStore||[];const i=(()=>{const e=window.NJStore;return{set(t,n,o){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=o},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const o=t.key;o.key===n&&(delete e[o.id],delete t.key)}}})(),r={setData(e,t,n){i.set(e,t,n)},getData:(e,t)=>i.get(e,t),removeData(e,t){i.delete(e,t)}};class a{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o=[],s=document.querySelectorAll(n);for(let n=0;n<s.length;n++){const l=s[n];if(!l.key||l.key.key!==e.DATA_KEY){const i=new e(s[n],t);l.key||r.setData(s[n],e.DATA_KEY,i),o.push(i)}}return o}}class c{static getUidEvent(e,t){return t&&`${t}::${c.uidEvent++}`||e.uidEvent||c.uidEvent++}static getEvent(e){const t=c.getUidEvent(e);return e.uidEvent=t,c.EVENTREGISTRY[t]=c.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&c.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=o=>(c.fixEvent(o,e),n.oneOff&&c.off(e,o.type,t),t.apply(e,[o]));return n}static njDelegationHandler(e,t,n){const o=s=>{const l=e.querySelectorAll(t);for(let t=s.target;t&&t!==this;t=t.parentNode)for(let i=l.length;i>=0;i--)if(l[i]===t)return c.fixEvent(s,t),o.oneOff&&c.off(e,s.type,n),n.apply(t,[s]);return null};return o}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;const s=e[o];if(s.originalHandler===t&&s.delegationSelector===n)return e[o]}return null}static normalizeParams(e,n,s){const l="string"==typeof n,i=l?s:n;let r=e.replace(c.STRIPNAME_REGEX,"");const a=t[r];a&&(r=a);return"string"==typeof o[r]||(r=e),[l,i,r]}static addHandler(e,t,n,o,s){if("string"!=typeof t||null==e)return;n||(n=o,o=null);const l=c.getEvent(e);for(const i of t.split(" ")){const[t,r,a]=c.normalizeParams(i,n,o),d=l[a]||(l[a]={}),u=c.findHandler(d,r,t?n:null);if(u)return void(u.oneOff=u.oneOff&&s);const E=c.getUidEvent(r,i.replace(c.NAMESPACE_REGEX,"")),h=t?c.njDelegationHandler(e,n,o):c.njHandler(e,n);h.delegationSelector=t?n:null,h.originalHandler=r,h.oneOff=s,h.uidEvent=E,d[E]=h,e.addEventListener(a,h,t)}}static removeHandler(e,t,n,o,s){const l=c.findHandler(t[n],o,s);null!==l&&(e.removeEventListener(n,l,Boolean(s)),delete t[n][l.uidEvent])}static removeNamespacedHandlers(e,t,n,o){const s=t[n]||{};for(const l in s)if(Object.prototype.hasOwnProperty.call(s,l)&&l.indexOf(o)>-1){const o=s[l];c.removeHandler(e,t,n,o.originalHandler,o.delegationSelector)}}static on(e,t,n,o){c.addHandler(e,t,n,o,!1)}static one(e,t,n,o){c.addHandler(e,t,n,o,!0)}static off(e,t,n,o){if("string"!=typeof t||null==e)return;const[s,l,i]=c.normalizeParams(t,n,o),r=i!==t,a=c.getEvent(e);if(void 0!==l){if(!a||!a[i])return;return void c.removeHandler(e,a,i,l,s?n:null)}if("."===t.charAt(0))for(const n in a)Object.prototype.hasOwnProperty.call(a,n)&&c.removeNamespacedHandlers(e,a,n,t.substr(1));const d=a[i]||{};for(const n in d){if(!Object.prototype.hasOwnProperty.call(d,n))continue;const o=n.replace(c.STRIPUID_REGEX,"");if(!r||t.indexOf(o)>-1){const t=d[n];c.removeHandler(e,a,i,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const s=t.replace(c.STRIPNAME_REGEX,""),l="string"==typeof o[s],i=!0;let r=null;return l?(r=document.createEvent("HTMLEvents"),r.initEvent(s,i,!0)):r=new window.CustomEvent(t,{bubbles:i,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(r,e,{get:()=>n[e]})})),e.dispatchEvent(r),r}}c.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,c.STRIPNAME_REGEX=/\..*/,c.KEYEVENT_REGEX=/^key/,c.STRIPUID_REGEX=/::\d+$/,c.EVENTREGISTRY={},c.uidEvent=1;const d=c;const u={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let n=0;n<e.attributes.length;n++){const o=e.attributes[n];if(-1!==o.nodeName.indexOf("data-")){const e=o.nodeName.substring(5).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=o.nodeValue}}return Object.keys(t).forEach((e=>{var n;t[e]="true"===(n=t[e])||"false"!==n&&("null"===n?null:n===Number(n).toString()?Number(n):""===n?null:n)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,n){for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n&&"[object Object]"===Object.prototype.toString.call(t[o])?e[o]=u.extend(e[o],t[o]):e[o]=t[o]);return e},extend(){let e={},t=!1,n=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],n++);n<arguments.length;n++)e=u.mergeExtended(e,n<0||arguments.length<=n?void 0:arguments[n],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},E=u;const h={TRANSITION_END:"transitionend",getUID(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},getSelectorFromElement(e){let t=e.getAttribute("data-target");if(!t||"#"===t){const n=e.getAttribute("href");t=n&&"#"!==n?n.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement(e){if(!e)return 0;let t=window.getComputedStyle(e).transitionDuration,n=window.getComputedStyle(e).transitionDelay;const o=parseFloat(t),s=parseFloat(n);return o||s?(t=t.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(t)+parseFloat(n))):0},reflow:e=>e.offsetHeight,triggerTransitionEnd(e){const t=new CustomEvent(h.TRANSITION_END,{});e.dispatchEvent(t)},isElement:e=>(e[0]||e).nodeType,emulateTransitionEnd(e,t){let n=!1;const o=t+5;e.addEventListener(h.TRANSITION_END,(function t(){n=!0,e.removeEventListener(h.TRANSITION_END,t)})),setTimeout((()=>{n||h.triggerTransitionEnd(e)}),o)},typeCheckConfig(e,t,n){for(const s in n)if(Object.prototype.hasOwnProperty.call(n,s)){const l=n[s],i=t[s],r=i&&h.isElement(i)?"element":(o=i,{}.toString.call(o).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(l).test(r))throw new Error(`${e.toUpperCase()}: Option "${s}" provided type "${r}" but expected type "${l}".`)}var o},makeArray:e=>null==e?[]:[].slice.call(e),findShadowRoot(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?h.findShadowRoot(e.parentElement):null},throttle(e,t,n,o,s){let l,i,r,a=null,c=0;const d=()=>{c=Date.now(),a=null,r=e.apply(i,l)};return()=>{const u=Date.now();c||n||(c=u);const E=t-(u-c);return i=s||this,l=arguments,E<=0?(clearTimeout(a),a=null,c=u,r=e.apply(i,l)):!a&&o&&(a=setTimeout(d,E)),r}},coerceBool:e=>Boolean(e)},g=h;class p extends a{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(p,e,p.getOptions(t)),this.element=e,this.isTransitioning=!1,this.triggerArray=g.makeArray(document.querySelectorAll(`${p.SELECTOR.dataToggle}[href="#${e.id}"],${p.SELECTOR.dataToggle}[data-target="#${e.id}"]`));const n=g.makeArray(document.querySelectorAll(p.SELECTOR.dataToggle));for(let t=0,o=n.length;t<o;t++){const o=n[t],s=g.getSelectorFromElement(o),l=g.makeArray(document.querySelectorAll(s)).filter((t=>t===e));null!==s&&l.length&&(this.selector=s,this.triggerArray.push(o))}this.parent=this.options.parent?this.getParent():null,this.options.parent||this.addAriaAndCollapsedClass(this.element,this.triggerArray),this.options.toggle&&this.toggle(),r.setData(e,p.DATA_KEY,this),p.hasInit||(p.hasInit=!0,this.registerEvents())}toggle(){this.element.classList.contains(p.CLASS_NAME.show)?this.hide():this.show()}show(){if(this.isTransitioning||this.element.classList.contains(p.CLASS_NAME.show))return;let e,t;this.parent&&(e=g.makeArray(this.parent.querySelectorAll(p.SELECTOR.actives)).filter((e=>"string"==typeof this.options.parent?e.getAttribute("data-parent")===this.options.parent:e.classList.contains(p.CLASS_NAME.collapse))),0===e.length&&(e=null));const n=document.querySelector(this.selector);if(e){const o=e.filter((e=>n!==e));if(t=o[0]?r.getData(o[0],p.DATA_KEY):null,t&&t.isTransitioning)return}if(d.trigger(this.element,p.EVENT.show).defaultPrevented)return;e&&e.forEach((e=>{n!==e&&p.collapseInterface(e,"hide"),t||r.setData(e,p.DATA_KEY,null)}));const o=this.getDimension();this.element.classList.remove(p.CLASS_NAME.collapse),this.element.classList.add(p.CLASS_NAME.collapsing),this.element.style[o]=0,this.triggerArray.length&&this.triggerArray.forEach((e=>{e.classList.remove(p.CLASS_NAME.collapsed),e.setAttribute("aria-expanded","true")})),this.setTransitioning(!0);const s=`scroll${o[0].toUpperCase()+o.slice(1)}`,l=g.getTransitionDurationFromElement(this.element);d.one(this.element,g.TRANSITION_END,(()=>{this.element.classList.remove(p.CLASS_NAME.collapsing),this.element.classList.add(p.CLASS_NAME.collapse),this.element.classList.add(p.CLASS_NAME.show),this.element.style[o]="",this.setTransitioning(!1),d.trigger(this.element,p.EVENT.shown)})),g.emulateTransitionEnd(this.element,l),this.element.style[o]=`${this.element[s]}px`}hide(){if(this.isTransitioning||!this.element.classList.contains(p.CLASS_NAME.show))return;if(d.trigger(this.element,p.EVENT.hide).defaultPrevented)return;const e=this.getDimension();this.element.style[e]=`${this.element.getBoundingClientRect()[e]}px`,g.reflow(this.element),this.element.classList.add(p.CLASS_NAME.collapsing),this.element.classList.remove(p.CLASS_NAME.collapse),this.element.classList.remove(p.CLASS_NAME.show);const t=this.triggerArray.length;if(t>0)for(let e=0;e<t;e++){const t=this.triggerArray[e],n=g.getSelectorFromElement(t);if(null!==n){document.querySelector(n).classList.contains(p.CLASS_NAME.show)||(t.classList.add(p.CLASS_NAME.collapsed),t.setAttribute("aria-expanded","false"))}}this.setTransitioning(!0);this.element.style[e]="";const n=g.getTransitionDurationFromElement(this.element);d.one(this.element,g.TRANSITION_END,(()=>{this.setTransitioning(!1),this.element.classList.remove(p.CLASS_NAME.collapsing),this.element.classList.add(p.CLASS_NAME.collapse),d.trigger(this.element,p.EVENT.hidden)})),g.emulateTransitionEnd(this.element,n)}setTransitioning(e){this.isTransitioning=e}dispose(){r.removeData(this.element,p.DATA_KEY),this.options=null,this.parent=null,this.element=null,this.triggerArray=null,this.isTransitioning=null}getDimension(){return this.element.classList.contains(p.DIMENSION.width)?p.DIMENSION.width:p.DIMENSION.height}getParent(){let e;g.isElement(this.options.parent)?e=this.options.parent:this.options.parent&&(e=document.querySelector(this.options.parent));const t=`[data-toggle="collapse"][data-parent="${this.options.parent}"]`;return g.makeArray(e.querySelectorAll(t)).forEach((e=>{this.addAriaAndCollapsedClass(p.getTargetFromElement(e),[e])})),e}addAriaAndCollapsedClass(e,t){if(e){const n=e.classList.contains(p.CLASS_NAME.show);t.length&&t.forEach((e=>{n?e.classList.remove(p.CLASS_NAME.collapsed):e.classList.add(p.CLASS_NAME.collapsed),e.setAttribute("aria-expanded",n)}))}}static getOptions(e){return(e=Object.assign(Object.assign({},p.DEFAULT_OPTIONS),e)).toggle=Boolean(e.toggle),g.typeCheckConfig(p.NAME,e,p.DEFAULT_TYPE),e}static getTargetFromElement(e){const t=g.getSelectorFromElement(e);return t?document.querySelector(t):null}static collapseInterface(e,t){let n=r.getData(e,p.DATA_KEY);const o=Object.assign(Object.assign(Object.assign({},p.DEFAULT_OPTIONS),E.getDataAttributes(e)),"object"==typeof t&&t?t:{});if(!n&&o.toggle&&/show|hide/.test(t)&&(o.toggle=!1),n||(n=new p(e,o)),"string"==typeof t){if(void 0===n[t])throw new Error(`No method named "${t}"`);n[t]()}}static getInstance(e){return r.getData(e,p.DATA_KEY)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,p.SELECTOR.default)}registerEvents(){d.on(document,p.EVENT.clickDataApi,p.SELECTOR.dataToggle,(function(e){"A"===e.target.tagName&&e.preventDefault();const t=E.getDataAttributes(this),n=g.getSelectorFromElement(this);g.makeArray(document.querySelectorAll(n)).forEach((e=>{const n=p.getInstance(e);let o;n?(null===n.parent&&"string"==typeof t.parent&&(n.options.parent=t.parent,n.parent=n.getParent()),o="toggle"):o=t,p.collapseInterface(e,o)}))}))}}p.NAME=`${e.KEY_PREFIX}-collapse`,p.DATA_KEY=`${e.KEY_PREFIX}.collapse`,p.EVENT_KEY=`.${p.DATA_KEY}`,p.DATA_API_KEY=e.KEY_PREFIX,p.hasInit=!1,p.CLASS_NAME={show:"show",collapse:`${e.KEY_PREFIX}-collapse`,collapsing:`${e.KEY_PREFIX}-collapsing`,collapsed:`${e.KEY_PREFIX}-collapsed`},p.EVENT={show:`${n.show}${p.EVENT_KEY}`,shown:`${n.shown}${p.EVENT_KEY}`,hide:`${n.hide}${p.EVENT_KEY}`,hidden:`${n.hidden}${p.EVENT_KEY}`,clickDataApi:`${n.click}${p.EVENT_KEY}${p.DATA_API_KEY}`},p.DEFAULT_OPTIONS={toggle:!1,parent:""},p.DEFAULT_TYPE={toggle:"boolean",parent:"(string|element)"},p.DIMENSION={width:"width",height:"height"},p.SELECTOR={default:`.${p.CLASS_NAME.collapse}`,actives:`.${p.CLASS_NAME.show}, .${p.CLASS_NAME.collapsing}`,dataToggle:'[data-toggle="collapse"]'};const m=p;class A extends a{constructor(e){super(A,e),r.setData(e,A.DATA_KEY,this),this.addBlurEvent(),this.addTouchEvent(),this.registerEvents()}closeMenu(){this.element.classList.contains(A.CLASS_NAME.shownCollapse)&&this.element.click()}dispose(){r.removeData(this.element,A.DATA_KEY),this.element=null}static handleCollapseShow(e){e.target.closest(A.SELECTOR.default).classList.add(A.CLASS_NAME.shownCollapse)}static handleCollapseHide(e){e.target.closest(A.SELECTOR.default).classList.remove(A.CLASS_NAME.shownCollapse)}static getInstance(e){return r.getData(e,A.DATA_KEY)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,A.SELECTOR.default)}addTouchEvent(){d.on(this.element,A.EVENT.keydownDismiss,(e=>{e.which===A.ESCAPE_KEYCODE&&(e.preventDefault(),this.closeMenu())}))}addBlurEvent(){d.on(this.element,"blur",(()=>{this.closeMenu()}))}registerEvents(){d.on(document,m.EVENT.show,A.SELECTOR.default,(e=>{A.handleCollapseShow(e)})),d.on(document,m.EVENT.hidden,A.SELECTOR.default,(e=>{A.handleCollapseHide(e)})),d.on(document,A.EVENT.clickDataApi,A.SELECTOR.options,(e=>{const t=e.target.closest(`[${A.ATTRIBUTE.value}]`),n=e.target.closest(A.SELECTOR.default),o=t.querySelector(`[${A.ATTRIBUTE.content}]`),s=n.querySelector(A.SELECTOR.input),l=t.getAttribute(A.ATTRIBUTE.value),i=o?o.textContent:t.textContent;s.value=l,n.setAttribute(A.ATTRIBUTE.selectedContent,i),this.value=l,d.trigger(this.element,A.EVENT.onchange)}))}}A.NAME=`${e.KEY_PREFIX}-dropdown`,A.DATA_KEY=`${e.KEY_PREFIX}.dropdown`,A.EVENT_KEY=`.${A.DATA_KEY}`,A.DATA_API_KEY=e.KEY_PREFIX,A.ESCAPE_KEYCODE=27,A.ATTRIBUTE={content:"data-content",selectedContent:"data-selected-content",value:"data-value"},A.CLASS_NAME={isFilled:`${A.NAME}__label--is-filled`,shownCollapse:`${A.NAME}--shown-collapse`},A.SELECTOR={default:`.${A.NAME}`,input:"input",label:`.${A.NAME}__label`,options:`.${A.NAME} [${A.ATTRIBUTE.value}]`},A.EVENT={clickDataApi:`${n.mousedown}${A.EVENT_KEY}${A.DATA_API_KEY}`,keydownDismiss:`${n.keydown}.dismiss${A.EVENT_KEY}`,onchange:`${n.onchange}${A.EVENT_KEY}`};const f=A;return l=l.default})()));
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Fab",[],t):"object"==typeof exports?exports.Fab=t():e.Fab=t()}(window,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>v});r={},function(e,t){function n(){this._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,this._iterations=1,this._duration=0,this._playbackRate=1,this._direction="normal",this._easing="linear",this._easingFunction=d}function r(){return e.isDeprecated("Invalid timing inputs","2016-03-02","TypeError exceptions will be thrown instead.",!0)}function i(t,r,i){var o=new n;return r&&(o.fill="both",o.duration="auto"),"number"!=typeof t||isNaN(t)?void 0!==t&&Object.getOwnPropertyNames(t).forEach((function(n){if("auto"!=t[n]){if(("number"==typeof o[n]||"duration"==n)&&("number"!=typeof t[n]||isNaN(t[n])))return;if("fill"==n&&-1==c.indexOf(t[n]))return;if("direction"==n&&-1==f.indexOf(t[n]))return;if("playbackRate"==n&&1!==t[n]&&e.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;o[n]=t[n]}})):o.duration=t,o}function o(e,t,n,r){return e<0||e>1||n<0||n>1?d:function(i){function o(e,t,n){return 3*e*(1-n)*(1-n)*n+3*t*(1-n)*n*n+n*n*n}if(i<=0){var a=0;return e>0?a=t/e:!t&&n>0&&(a=r/n),a*i}if(i>=1){var s=0;return n<1?s=(r-1)/(n-1):1==n&&e<1&&(s=(t-1)/(e-1)),1+s*(i-1)}for(var u=0,l=1;u<l;){var c=(u+l)/2,f=o(e,n,c);if(Math.abs(i-f)<1e-5)return o(t,r,c);f<i?u=c:l=c}return o(t,r,c)}}function a(e,t){return function(n){if(n>=1)return 1;var r=1/e;return(n+=t*r)-n%r}}function s(e){v||(v=document.createElement("div").style),v.animationTimingFunction="",v.animationTimingFunction=e;var t=v.animationTimingFunction;if(""==t&&r())throw new TypeError(e+" is not a valid value for easing");return t}function u(e){if("linear"==e)return d;var t=_.exec(e);if(t)return o.apply(this,t.slice(1).map(Number));var n=y.exec(e);if(n)return a(Number(n[1]),m);var r=T.exec(e);return r?a(Number(r[1]),{start:h,middle:p,end:m}[r[2]]):g[e]||d}function l(e,t,n){if(null==t)return E;var r=n.delay+e+n.endDelay;return t<Math.min(n.delay,r)?x:t>=Math.min(n.delay+e,r)?w:A}var c="backwards|forwards|both|none".split("|"),f="reverse|alternate|alternate-reverse".split("|"),d=function(e){return e};n.prototype={_setMember:function(t,n){this["_"+t]=n,this._effect&&(this._effect._timingInput[t]=n,this._effect._timing=e.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=e.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(e){this._setMember("delay",e)},get delay(){return this._delay},set endDelay(e){this._setMember("endDelay",e)},get endDelay(){return this._endDelay},set fill(e){this._setMember("fill",e)},get fill(){return this._fill},set iterationStart(e){if((isNaN(e)||e<0)&&r())throw new TypeError("iterationStart must be a non-negative number, received: "+e);this._setMember("iterationStart",e)},get iterationStart(){return this._iterationStart},set duration(e){if("auto"!=e&&(isNaN(e)||e<0)&&r())throw new TypeError("duration must be non-negative or auto, received: "+e);this._setMember("duration",e)},get duration(){return this._duration},set direction(e){this._setMember("direction",e)},get direction(){return this._direction},set easing(e){this._easingFunction=u(s(e)),this._setMember("easing",e)},get easing(){return this._easing},set iterations(e){if((isNaN(e)||e<0)&&r())throw new TypeError("iterations must be non-negative, received: "+e);this._setMember("iterations",e)},get iterations(){return this._iterations}};var h=1,p=.5,m=0,g={ease:o(.25,.1,.25,1),"ease-in":o(.42,0,1,1),"ease-out":o(0,0,.58,1),"ease-in-out":o(.42,0,.58,1),"step-start":a(1,h),"step-middle":a(1,p),"step-end":a(1,m)},v=null,b="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",_=new RegExp("cubic-bezier\\("+b+","+b+","+b+","+b+"\\)"),y=/steps\(\s*(\d+)\s*\)/,T=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,E=0,x=1,w=2,A=3;e.cloneTimingInput=function(e){if("number"==typeof e)return e;var t={};for(var n in e)t[n]=e[n];return t},e.makeTiming=i,e.numericTimingToObject=function(e){return"number"==typeof e&&(e=isNaN(e)?{duration:0}:{duration:e}),e},e.normalizeTimingInput=function(t,n){return i(t=e.numericTimingToObject(t),n)},e.calculateActiveDuration=function(e){return Math.abs(function(e){return 0===e.duration||0===e.iterations?0:e.duration*e.iterations}(e)/e.playbackRate)},e.calculateIterationProgress=function(e,t,n){var r=l(e,t,n),i=function(e,t,n,r,i){switch(r){case x:return"backwards"==t||"both"==t?0:null;case A:return n-i;case w:return"forwards"==t||"both"==t?e:null;case E:return null}}(e,n.fill,t,r,n.delay);if(null===i)return null;var o=function(e,t,n,r,i){var o=i;return 0===e?t!==x&&(o+=n):o+=r/e,o}(n.duration,r,n.iterations,i,n.iterationStart),a=function(e,t,n,r,i,o){var a=e===1/0?t%1:e%1;return 0!==a||n!==w||0===r||0===i&&0!==o||(a=1),a}(o,n.iterationStart,r,n.iterations,i,n.duration),s=function(e,t,n,r){return e===w&&t===1/0?1/0:1===n?Math.floor(r)-1:Math.floor(r)}(r,n.iterations,a,o),u=function(e,t,n){var r=e;if("normal"!==e&&"reverse"!==e){var i=t;"alternate-reverse"===e&&(i+=1),r="normal",i!==1/0&&i%2!=0&&(r="reverse")}return"normal"===r?n:1-n}(n.direction,s,a);return n._easingFunction(u)},e.calculatePhase=l,e.normalizeEasing=s,e.parseEasingFunction=u}(n={}),function(e,t){function n(e,t){return e in u&&u[e][t]||t}function r(e,t,r){if(!function(e){return"display"===e||0===e.lastIndexOf("animation",0)||0===e.lastIndexOf("transition",0)}(e)){var i=o[e];if(i)for(var s in a.style[e]=t,i){var u=i[s],l=a.style[u];r[u]=n(u,l)}else r[e]=n(e,t)}}function i(e){var t=[];for(var n in e)if(!(n in["easing","offset","composite"])){var r=e[n];Array.isArray(r)||(r=[r]);for(var i,o=r.length,a=0;a<o;a++)(i={}).offset="offset"in e?e.offset:1==o?1:a/(o-1),"easing"in e&&(i.easing=e.easing),"composite"in e&&(i.composite=e.composite),i[n]=r[a],t.push(i)}return t.sort((function(e,t){return e.offset-t.offset})),t}var o={background:["backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat","backgroundAttachment","backgroundOrigin","backgroundClip","backgroundColor"],border:["borderTopColor","borderTopStyle","borderTopWidth","borderRightColor","borderRightStyle","borderRightWidth","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeftColor","borderLeftStyle","borderLeftWidth"],borderBottom:["borderBottomWidth","borderBottomStyle","borderBottomColor"],borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderLeft:["borderLeftWidth","borderLeftStyle","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderRight:["borderRightWidth","borderRightStyle","borderRightColor"],borderTop:["borderTopWidth","borderTopStyle","borderTopColor"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],flex:["flexGrow","flexShrink","flexBasis"],font:["fontFamily","fontSize","fontStyle","fontVariant","fontWeight","lineHeight"],margin:["marginTop","marginRight","marginBottom","marginLeft"],outline:["outlineColor","outlineStyle","outlineWidth"],padding:["paddingTop","paddingRight","paddingBottom","paddingLeft"]},a=document.createElementNS("http://www.w3.org/1999/xhtml","div"),s={thin:"1px",medium:"3px",thick:"5px"},u={borderBottomWidth:s,borderLeftWidth:s,borderRightWidth:s,borderTopWidth:s,fontSize:{"xx-small":"60%","x-small":"75%",small:"89%",medium:"100%",large:"120%","x-large":"150%","xx-large":"200%"},fontWeight:{normal:"400",bold:"700"},outlineWidth:s,textShadow:{none:"0px 0px 0px transparent"},boxShadow:{none:"0px 0px 0px 0px transparent"}};e.convertToArrayForm=i,e.normalizeKeyframes=function(t){if(null==t)return[];window.Symbol&&Symbol.iterator&&Array.prototype.from&&t[Symbol.iterator]&&(t=Array.from(t)),Array.isArray(t)||(t=i(t));for(var n=t.map((function(t){var n={};for(var i in t){var o=t[i];if("offset"==i){if(null!=o){if(o=Number(o),!isFinite(o))throw new TypeError("Keyframe offsets must be numbers.");if(o<0||o>1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==i){if("add"==o||"accumulate"==o)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};if("replace"!=o)throw new TypeError("Invalid composite mode "+o+".")}else o="easing"==i?e.normalizeEasing(o):""+o;r(i,o,n)}return null==n.offset&&(n.offset=null),null==n.easing&&(n.easing="linear"),n})),o=!0,a=-1/0,s=0;s<n.length;s++){var u=n[s].offset;if(null!=u){if(u<a)throw new TypeError("Keyframes are not loosely sorted by offset. Sort or specify offsets.");a=u}else o=!1}return n=n.filter((function(e){return e.offset>=0&&e.offset<=1})),o||function(){var e=n.length;null==n[e-1].offset&&(n[e-1].offset=1),e>1&&null==n[0].offset&&(n[0].offset=0);for(var t=0,r=n[0].offset,i=1;i<e;i++){var o=n[i].offset;if(null!=o){for(var a=1;a<i-t;a++)n[t+a].offset=r+(o-r)*a/(i-t);t=i,r=o}}}(),n}}(n),function(e){var t={};e.isDeprecated=function(e,n,r,i){var o=i?"are":"is",a=new Date,s=new Date(n);return s.setMonth(s.getMonth()+3),!(a<s&&(e in t||console.warn("Web Animations: "+e+" "+o+" deprecated and will stop working on "+s.toDateString()+". "+r),t[e]=!0,1))},e.deprecated=function(t,n,r,i){var o=i?"are":"is";if(e.isDeprecated(t,n,r,i))throw new Error(t+" "+o+" no longer supported. "+r)}}(n),function(){if(document.documentElement.animate){var e=document.documentElement.animate([],0),t=!0;if(e&&(t=!1,"play|currentTime|pause|reverse|playbackRate|cancel|finish|startTime|playState".split("|").forEach((function(n){void 0===e[n]&&(t=!0)}))),!t)return}!function(e,t,n){t.convertEffectInput=function(n){var r=function(e){for(var t={},n=0;n<e.length;n++)for(var r in e[n])if("offset"!=r&&"easing"!=r&&"composite"!=r){var i={offset:e[n].offset,easing:e[n].easing,value:e[n][r]};t[r]=t[r]||[],t[r].push(i)}for(var o in t){var a=t[o];if(0!=a[0].offset||1!=a[a.length-1].offset)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"Partial keyframes are not supported"}}return t}(e.normalizeKeyframes(n)),i=function(n){var r=[];for(var i in n)for(var o=n[i],a=0;a<o.length-1;a++){var s=a,u=a+1,l=o[s].offset,c=o[u].offset,f=l,d=c;0==a&&(f=-1/0,0==c&&(u=s)),a==o.length-2&&(d=1/0,1==l&&(s=u)),r.push({applyFrom:f,applyTo:d,startOffset:o[s].offset,endOffset:o[u].offset,easingFunction:e.parseEasingFunction(o[s].easing),property:i,interpolation:t.propertyInterpolation(i,o[s].value,o[u].value)})}return r.sort((function(e,t){return e.startOffset-t.startOffset})),r}(r);return function(e,n){if(null!=n)i.filter((function(e){return n>=e.applyFrom&&n<e.applyTo})).forEach((function(r){var i=n-r.startOffset,o=r.endOffset-r.startOffset,a=0==o?0:r.easingFunction(i/o);t.apply(e,r.property,r.interpolation(a))}));else for(var o in r)"offset"!=o&&"easing"!=o&&"composite"!=o&&t.clear(e,o)}}}(n,r),function(e,t,n){function r(e){return e.replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}function i(e,t,n){o[n]=o[n]||[],o[n].push([e,t])}var o={};t.addPropertiesHandler=function(e,t,n){for(var o=0;o<n.length;o++)i(e,t,r(n[o]))};var a={backgroundColor:"transparent",backgroundPosition:"0% 0%",borderBottomColor:"currentColor",borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px",borderBottomWidth:"3px",borderLeftColor:"currentColor",borderLeftWidth:"3px",borderRightColor:"currentColor",borderRightWidth:"3px",borderSpacing:"2px",borderTopColor:"currentColor",borderTopLeftRadius:"0px",borderTopRightRadius:"0px",borderTopWidth:"3px",bottom:"auto",clip:"rect(0px, 0px, 0px, 0px)",color:"black",fontSize:"100%",fontWeight:"400",height:"auto",left:"auto",letterSpacing:"normal",lineHeight:"120%",marginBottom:"0px",marginLeft:"0px",marginRight:"0px",marginTop:"0px",maxHeight:"none",maxWidth:"none",minHeight:"0px",minWidth:"0px",opacity:"1.0",outlineColor:"invert",outlineOffset:"0px",outlineWidth:"3px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",paddingTop:"0px",right:"auto",strokeDasharray:"none",strokeDashoffset:"0px",textIndent:"0px",textShadow:"0px 0px 0px transparent",top:"auto",transform:"",verticalAlign:"0px",visibility:"visible",width:"auto",wordSpacing:"normal",zIndex:"auto"};t.propertyInterpolation=function(n,i,s){var u=n;/-/.test(n)&&!e.isDeprecated("Hyphenated property names","2016-03-22","Use camelCase instead.",!0)&&(u=r(n)),"initial"!=i&&"initial"!=s||("initial"==i&&(i=a[u]),"initial"==s&&(s=a[u]));for(var l=i==s?[]:o[u],c=0;l&&c<l.length;c++){var f=l[c][0](i),d=l[c][0](s);if(void 0!==f&&void 0!==d){var h=l[c][1](f,d);if(h){var p=t.Interpolation.apply(null,h);return function(e){return 0==e?i:1==e?s:p(e)}}}}return t.Interpolation(!1,!0,(function(e){return e?s:i}))}}(n,r),function(e,t,n){t.KeyframeEffect=function(n,r,i,o){var a,s=function(t){var n=e.calculateActiveDuration(t),r=function(r){return e.calculateIterationProgress(n,r,t)};return r._totalDuration=t.delay+n+t.endDelay,r}(e.normalizeTimingInput(i)),u=t.convertEffectInput(r),l=function(){u(n,a)};return l._update=function(e){return null!==(a=s(e))},l._clear=function(){u(n,null)},l._hasSameTarget=function(e){return n===e},l._target=n,l._totalDuration=s._totalDuration,l._id=o,l}}(n,r),function(e,t){function n(e,t,n){n.enumerable=!0,n.configurable=!0,Object.defineProperty(e,t,n)}function r(e){this._element=e,this._surrogateStyle=document.createElementNS("http://www.w3.org/1999/xhtml","div").style,this._style=e.style,this._length=0,this._isAnimatedProperty={},this._updateSvgTransformAttr=function(e,t){return!(!t.namespaceURI||-1==t.namespaceURI.indexOf("/svg"))&&(o in e||(e[o]=/Trident|MSIE|IEMobile|Edge|Android 4/i.test(e.navigator.userAgent)),e[o])}(window,e),this._savedTransformAttr=null;for(var t=0;t<this._style.length;t++){var n=this._style[t];this._surrogateStyle[n]=this._style[n]}this._updateIndices()}function i(e){if(!e._webAnimationsPatchedStyle){var t=new r(e);try{n(e,"style",{get:function(){return t}})}catch(t){e.style._set=function(t,n){e.style[t]=n},e.style._clear=function(t){e.style[t]=""}}e._webAnimationsPatchedStyle=e.style}}var o="_webAnimationsUpdateSvgTransformAttr",a={cssText:1,length:1,parentRule:1},s={getPropertyCSSValue:1,getPropertyPriority:1,getPropertyValue:1,item:1,removeProperty:1,setProperty:1},u={removeProperty:1,setProperty:1};for(var l in r.prototype={get cssText(){return this._surrogateStyle.cssText},set cssText(e){for(var t={},n=0;n<this._surrogateStyle.length;n++)t[this._surrogateStyle[n]]=!0;for(this._surrogateStyle.cssText=e,this._updateIndices(),n=0;n<this._surrogateStyle.length;n++)t[this._surrogateStyle[n]]=!0;for(var r in t)this._isAnimatedProperty[r]||this._style.setProperty(r,this._surrogateStyle.getPropertyValue(r))},get length(){return this._surrogateStyle.length},get parentRule(){return this._style.parentRule},_updateIndices:function(){for(;this._length<this._surrogateStyle.length;)Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,get:function(e){return function(){return this._surrogateStyle[e]}}(this._length)}),this._length++;for(;this._length>this._surrogateStyle.length;)this._length--,Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,value:void 0})},_set:function(t,n){this._style[t]=n,this._isAnimatedProperty[t]=!0,this._updateSvgTransformAttr&&"transform"==e.unprefixedPropertyName(t)&&(null==this._savedTransformAttr&&(this._savedTransformAttr=this._element.getAttribute("transform")),this._element.setAttribute("transform",e.transformToSvgMatrix(n)))},_clear:function(t){this._style[t]=this._surrogateStyle[t],this._updateSvgTransformAttr&&"transform"==e.unprefixedPropertyName(t)&&(this._savedTransformAttr?this._element.setAttribute("transform",this._savedTransformAttr):this._element.removeAttribute("transform"),this._savedTransformAttr=null),delete this._isAnimatedProperty[t]}},s)r.prototype[l]=function(e,t){return function(){var n=this._surrogateStyle[e].apply(this._surrogateStyle,arguments);return t&&(this._isAnimatedProperty[arguments[0]]||this._style[e].apply(this._style,arguments),this._updateIndices()),n}}(l,l in u);for(var c in document.documentElement.style)c in a||c in s||function(e){n(r.prototype,e,{get:function(){return this._surrogateStyle[e]},set:function(t){this._surrogateStyle[e]=t,this._updateIndices(),this._isAnimatedProperty&&!this._isAnimatedProperty[e]&&(this._style[e]=t)}})}(c);e.apply=function(t,n,r){i(t),t.style._set(e.propertyName(n),r)},e.clear=function(t,n){t._webAnimationsPatchedStyle&&t.style._clear(e.propertyName(n))}}(r),function(e){window.Element.prototype.animate=function(t,n){var r="";return n&&n.id&&(r=n.id),e.timeline._play(e.KeyframeEffect(this,t,n,r))}}(r),function(e,t){function n(e,t,r){if("number"==typeof e&&"number"==typeof t)return e*(1-r)+t*r;if("boolean"==typeof e&&"boolean"==typeof t)return r<.5?e:t;if(e.length==t.length){for(var i=[],o=0;o<e.length;o++)i.push(n(e[o],t[o],r));return i}throw"Mismatched interpolation arguments "+e+":"+t}e.Interpolation=function(e,t,r){return function(i){return r(n(e,t,i))}}}(r),function(e,t){var n=function(){function e(e,t){for(var n=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],r=0;r<4;r++)for(var i=0;i<4;i++)for(var o=0;o<4;o++)n[r][i]+=t[r][o]*e[o][i];return n}return function(t,n,r,i,o){for(var a=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],s=0;s<4;s++)a[s][3]=o[s];for(s=0;s<3;s++)for(var u=0;u<3;u++)a[3][s]+=t[u]*a[u][s];var l=i[0],c=i[1],f=i[2],d=i[3],h=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];h[0][0]=1-2*(c*c+f*f),h[0][1]=2*(l*c-f*d),h[0][2]=2*(l*f+c*d),h[1][0]=2*(l*c+f*d),h[1][1]=1-2*(l*l+f*f),h[1][2]=2*(c*f-l*d),h[2][0]=2*(l*f-c*d),h[2][1]=2*(c*f+l*d),h[2][2]=1-2*(l*l+c*c),a=e(a,h);var p=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];for(r[2]&&(p[2][1]=r[2],a=e(a,p)),r[1]&&(p[2][1]=0,p[2][0]=r[0],a=e(a,p)),r[0]&&(p[2][0]=0,p[1][0]=r[0],a=e(a,p)),s=0;s<3;s++)for(u=0;u<3;u++)a[s][u]*=n[s];return function(e){return 0==e[0][2]&&0==e[0][3]&&0==e[1][2]&&0==e[1][3]&&0==e[2][0]&&0==e[2][1]&&1==e[2][2]&&0==e[2][3]&&0==e[3][2]&&1==e[3][3]}(a)?[a[0][0],a[0][1],a[1][0],a[1][1],a[3][0],a[3][1]]:a[0].concat(a[1],a[2],a[3])}}();e.composeMatrix=n,e.quat=function(t,n,r){var i=e.dot(t,n);i=function(e,t,n){return Math.max(Math.min(e,n),t)}(i,-1,1);var o=[];if(1===i)o=t;else for(var a=Math.acos(i),s=1*Math.sin(r*a)/Math.sqrt(1-i*i),u=0;u<4;u++)o.push(t[u]*(Math.cos(r*a)-i*s)+n[u]*s);return o}}(r),function(e,t,n){e.sequenceNumber=0;var r=function(e,t,n){this.target=e,this.currentTime=t,this.timelineTime=n,this.type="finish",this.bubbles=!1,this.cancelable=!1,this.currentTarget=e,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()};t.Animation=function(t){this.id="",t&&t._id&&(this.id=t._id),this._sequenceNumber=e.sequenceNumber++,this._currentTime=0,this._startTime=null,this._paused=!1,this._playbackRate=1,this._inTimeline=!0,this._finishedFlag=!0,this.onfinish=null,this._finishHandlers=[],this._effect=t,this._inEffect=this._effect._update(0),this._idle=!0,this._currentTimePending=!1},t.Animation.prototype={_ensureAlive:function(){this.playbackRate<0&&0===this.currentTime?this._inEffect=this._effect._update(-1):this._inEffect=this._effect._update(this.currentTime),this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline=!0,t.timeline._animations.push(this))},_tickCurrentTime:function(e,t){e!=this._currentTime&&(this._currentTime=e,this._isFinished&&!t&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(e){e=+e,isNaN(e)||(t.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-e/this._playbackRate),this._currentTimePending=!1,this._currentTime!=e&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(e,!0),t.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(e){e=+e,isNaN(e)||this._paused||this._idle||(this._startTime=e,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),t.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(e){if(e!=this._playbackRate){var n=this.currentTime;this._playbackRate=e,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),t.applyDirtiedAnimation(this)),null!=n&&(this.currentTime=n)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished":"running"},_rewind:function(){if(this._playbackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to rewind negative playback rate animation with infinite duration","InvalidStateError");this._currentTime=this._totalDuration}},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),t.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0,this._startTime=null,this._paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1,t.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),t.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(e,t){"function"==typeof t&&"finish"==e&&this._finishHandlers.push(t)},removeEventListener:function(e,t){if("finish"==e){var n=this._finishHandlers.indexOf(t);n>=0&&this._finishHandlers.splice(n,1)}},_fireEvents:function(e){if(this._isFinished){if(!this._finishedFlag){var t=new r(this,this._currentTime,e),n=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout((function(){n.forEach((function(e){e.call(t.target,t)}))}),0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(e,t){this._idle||this._paused||(null==this._startTime?t&&(this.startTime=e-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((e-this._startTime)*this.playbackRate)),t&&(this._currentTimePending=!1,this._fireEvents(e))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var e=this._effect._target;return e._activeAnimations||(e._activeAnimations=[]),e._activeAnimations},_markTarget:function(){var e=this._targetAnimations();-1===e.indexOf(this)&&e.push(this)},_unmarkTarget:function(){var e=this._targetAnimations(),t=e.indexOf(this);-1!==t&&e.splice(t,1)}}}(n,r),function(e,t,n){function r(e){var t=l;l=[],e<m.currentTime&&(e=m.currentTime),m._animations.sort(i),m._animations=s(e,!0,m._animations)[0],t.forEach((function(t){t[1](e)})),a()}function i(e,t){return e._sequenceNumber-t._sequenceNumber}function o(){this._animations=[],this.currentTime=window.performance&&performance.now?performance.now():0}function a(){h.forEach((function(e){e()})),h.length=0}function s(e,n,r){p=!0,d=!1,t.timeline.currentTime=e,f=!1;var i=[],o=[],a=[],s=[];return r.forEach((function(t){t._tick(e,n),t._inEffect?(o.push(t._effect),t._markTarget()):(i.push(t._effect),t._unmarkTarget()),t._needsTick&&(f=!0);var r=t._inEffect||t._needsTick;t._inTimeline=r,r?a.push(t):s.push(t)})),h.push.apply(h,i),h.push.apply(h,o),f&&requestAnimationFrame((function(){})),p=!1,[a,s]}var u=window.requestAnimationFrame,l=[],c=0;window.requestAnimationFrame=function(e){var t=c++;return 0==l.length&&u(r),l.push([t,e]),t},window.cancelAnimationFrame=function(e){l.forEach((function(t){t[0]==e&&(t[1]=function(){})}))},o.prototype={_play:function(n){n._timing=e.normalizeTimingInput(n.timing);var r=new t.Animation(n);return r._idle=!1,r._timeline=this,this._animations.push(r),t.restart(),t.applyDirtiedAnimation(r),r}};var f=!1,d=!1;t.restart=function(){return f||(f=!0,requestAnimationFrame((function(){})),d=!0),d},t.applyDirtiedAnimation=function(e){if(!p){e._markTarget();var n=e._targetAnimations();n.sort(i),s(t.timeline.currentTime,!1,n.slice())[1].forEach((function(e){var t=m._animations.indexOf(e);-1!==t&&m._animations.splice(t,1)})),a()}};var h=[],p=!1,m=new o;t.timeline=m}(n,r),function(e,t){function n(e,t){for(var n=0,r=0;r<e.length;r++)n+=e[r]*t[r];return n}function r(e,t){return[e[0]*t[0]+e[4]*t[1]+e[8]*t[2]+e[12]*t[3],e[1]*t[0]+e[5]*t[1]+e[9]*t[2]+e[13]*t[3],e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]*t[3],e[3]*t[0]+e[7]*t[1]+e[11]*t[2]+e[15]*t[3],e[0]*t[4]+e[4]*t[5]+e[8]*t[6]+e[12]*t[7],e[1]*t[4]+e[5]*t[5]+e[9]*t[6]+e[13]*t[7],e[2]*t[4]+e[6]*t[5]+e[10]*t[6]+e[14]*t[7],e[3]*t[4]+e[7]*t[5]+e[11]*t[6]+e[15]*t[7],e[0]*t[8]+e[4]*t[9]+e[8]*t[10]+e[12]*t[11],e[1]*t[8]+e[5]*t[9]+e[9]*t[10]+e[13]*t[11],e[2]*t[8]+e[6]*t[9]+e[10]*t[10]+e[14]*t[11],e[3]*t[8]+e[7]*t[9]+e[11]*t[10]+e[15]*t[11],e[0]*t[12]+e[4]*t[13]+e[8]*t[14]+e[12]*t[15],e[1]*t[12]+e[5]*t[13]+e[9]*t[14]+e[13]*t[15],e[2]*t[12]+e[6]*t[13]+e[10]*t[14]+e[14]*t[15],e[3]*t[12]+e[7]*t[13]+e[11]*t[14]+e[15]*t[15]]}function i(e){var t=e.rad||0;return((e.deg||0)/360+(e.grad||0)/400+(e.turn||0))*(2*Math.PI)+t}function o(e){switch(e.t){case"rotatex":var t=i(e.d[0]);return[1,0,0,0,0,Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1];case"rotatey":return t=i(e.d[0]),[Math.cos(t),0,-Math.sin(t),0,0,1,0,0,Math.sin(t),0,Math.cos(t),0,0,0,0,1];case"rotate":case"rotatez":return t=i(e.d[0]),[Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1,0,0,0,0,1];case"rotate3d":var n=e.d[0],r=e.d[1],o=e.d[2],a=(t=i(e.d[3]),n*n+r*r+o*o);if(0===a)n=1,r=0,o=0;else if(1!==a){var s=Math.sqrt(a);n/=s,r/=s,o/=s}var u=Math.sin(t/2),l=u*Math.cos(t/2),c=u*u;return[1-2*(r*r+o*o)*c,2*(n*r*c+o*l),2*(n*o*c-r*l),0,2*(n*r*c-o*l),1-2*(n*n+o*o)*c,2*(r*o*c+n*l),0,2*(n*o*c+r*l),2*(r*o*c-n*l),1-2*(n*n+r*r)*c,0,0,0,0,1];case"scale":return[e.d[0],0,0,0,0,e.d[1],0,0,0,0,1,0,0,0,0,1];case"scalex":return[e.d[0],0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"scaley":return[1,0,0,0,0,e.d[0],0,0,0,0,1,0,0,0,0,1];case"scalez":return[1,0,0,0,0,1,0,0,0,0,e.d[0],0,0,0,0,1];case"scale3d":return[e.d[0],0,0,0,0,e.d[1],0,0,0,0,e.d[2],0,0,0,0,1];case"skew":var f=i(e.d[0]),d=i(e.d[1]);return[1,Math.tan(d),0,0,Math.tan(f),1,0,0,0,0,1,0,0,0,0,1];case"skewx":return t=i(e.d[0]),[1,0,0,0,Math.tan(t),1,0,0,0,0,1,0,0,0,0,1];case"skewy":return t=i(e.d[0]),[1,Math.tan(t),0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"translate":return[1,0,0,0,0,1,0,0,0,0,1,0,n=e.d[0].px||0,r=e.d[1].px||0,0,1];case"translatex":return[1,0,0,0,0,1,0,0,0,0,1,0,n=e.d[0].px||0,0,0,1];case"translatey":return[1,0,0,0,0,1,0,0,0,0,1,0,0,r=e.d[0].px||0,0,1];case"translatez":return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,o=e.d[0].px||0,1];case"translate3d":return[1,0,0,0,0,1,0,0,0,0,1,0,n=e.d[0].px||0,r=e.d[1].px||0,o=e.d[2].px||0,1];case"perspective":return[1,0,0,0,0,1,0,0,0,0,1,e.d[0].px?-1/e.d[0].px:0,0,0,0,1];case"matrix":return[e.d[0],e.d[1],0,0,e.d[2],e.d[3],0,0,0,0,1,0,e.d[4],e.d[5],0,1];case"matrix3d":return e.d}}function a(e){return 0===e.length?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:e.map(o).reduce(r)}var s=function(){function e(e){return e[0][0]*e[1][1]*e[2][2]+e[1][0]*e[2][1]*e[0][2]+e[2][0]*e[0][1]*e[1][2]-e[0][2]*e[1][1]*e[2][0]-e[1][2]*e[2][1]*e[0][0]-e[2][2]*e[0][1]*e[1][0]}function t(e){var t=r(e);return[e[0]/t,e[1]/t,e[2]/t]}function r(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2])}function i(e,t,n,r){return[n*e[0]+r*t[0],n*e[1]+r*t[1],n*e[2]+r*t[2]]}return function(o){var a=[o.slice(0,4),o.slice(4,8),o.slice(8,12),o.slice(12,16)];if(1!==a[3][3])return null;for(var s=[],u=0;u<4;u++)s.push(a[u].slice());for(u=0;u<3;u++)s[u][3]=0;if(0===e(s))return null;var l,c=[];a[0][3]||a[1][3]||a[2][3]?(c.push(a[0][3]),c.push(a[1][3]),c.push(a[2][3]),c.push(a[3][3]),l=function(e,t){for(var n=[],r=0;r<4;r++){for(var i=0,o=0;o<4;o++)i+=e[o]*t[o][r];n.push(i)}return n}(c,function(e){return[[e[0][0],e[1][0],e[2][0],e[3][0]],[e[0][1],e[1][1],e[2][1],e[3][1]],[e[0][2],e[1][2],e[2][2],e[3][2]],[e[0][3],e[1][3],e[2][3],e[3][3]]]}(function(t){for(var n=1/e(t),r=t[0][0],i=t[0][1],o=t[0][2],a=t[1][0],s=t[1][1],u=t[1][2],l=t[2][0],c=t[2][1],f=t[2][2],d=[[(s*f-u*c)*n,(o*c-i*f)*n,(i*u-o*s)*n,0],[(u*l-a*f)*n,(r*f-o*l)*n,(o*a-r*u)*n,0],[(a*c-s*l)*n,(l*i-r*c)*n,(r*s-i*a)*n,0]],h=[],p=0;p<3;p++){for(var m=0,g=0;g<3;g++)m+=t[3][g]*d[g][p];h.push(m)}return h.push(1),d.push(h),d}(s)))):l=[0,0,0,1];var f=a[3].slice(0,3),d=[];d.push(a[0].slice(0,3));var h=[];h.push(r(d[0])),d[0]=t(d[0]);var p=[];d.push(a[1].slice(0,3)),p.push(n(d[0],d[1])),d[1]=i(d[1],d[0],1,-p[0]),h.push(r(d[1])),d[1]=t(d[1]),p[0]/=h[1],d.push(a[2].slice(0,3)),p.push(n(d[0],d[2])),d[2]=i(d[2],d[0],1,-p[1]),p.push(n(d[1],d[2])),d[2]=i(d[2],d[1],1,-p[2]),h.push(r(d[2])),d[2]=t(d[2]),p[1]/=h[2],p[2]/=h[2];var m=function(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}(d[1],d[2]);if(n(d[0],m)<0)for(u=0;u<3;u++)h[u]*=-1,d[u][0]*=-1,d[u][1]*=-1,d[u][2]*=-1;var g,v,b=d[0][0]+d[1][1]+d[2][2]+1;return b>1e-4?(g=.5/Math.sqrt(b),v=[(d[2][1]-d[1][2])*g,(d[0][2]-d[2][0])*g,(d[1][0]-d[0][1])*g,.25/g]):d[0][0]>d[1][1]&&d[0][0]>d[2][2]?v=[.25*(g=2*Math.sqrt(1+d[0][0]-d[1][1]-d[2][2])),(d[0][1]+d[1][0])/g,(d[0][2]+d[2][0])/g,(d[2][1]-d[1][2])/g]:d[1][1]>d[2][2]?(g=2*Math.sqrt(1+d[1][1]-d[0][0]-d[2][2]),v=[(d[0][1]+d[1][0])/g,.25*g,(d[1][2]+d[2][1])/g,(d[0][2]-d[2][0])/g]):(g=2*Math.sqrt(1+d[2][2]-d[0][0]-d[1][1]),v=[(d[0][2]+d[2][0])/g,(d[1][2]+d[2][1])/g,.25*g,(d[1][0]-d[0][1])/g]),[f,h,p,v,l]}}();e.dot=n,e.makeMatrixDecomposition=function(e){return[s(a(e))]},e.transformListToMatrix=a}(r),function(e){function t(e,t){var n=e.exec(t);if(n)return[n=e.ignoreCase?n[0].toLowerCase():n[0],t.substr(n.length)]}function n(e,t){var n=e(t=t.replace(/^\s*/,""));if(n)return[n[0],n[1].replace(/^\s*/,"")]}function r(e,t,n,r,i){for(var o=[],a=[],s=[],u=function(e,t){for(var n=e,r=t;n&&r;)n>r?n%=r:r%=n;return e*t/(n+r)}(r.length,i.length),l=0;l<u;l++){var c=t(r[l%r.length],i[l%i.length]);if(!c)return;o.push(c[0]),a.push(c[1]),s.push(c[2])}return[o,a,function(t){var r=t.map((function(e,t){return s[t](e)})).join(n);return e?e(r):r}]}e.consumeToken=t,e.consumeTrimmed=n,e.consumeRepeated=function(e,r,i){e=n.bind(null,e);for(var o=[];;){var a=e(i);if(!a)return[o,i];if(o.push(a[0]),!(a=t(r,i=a[1]))||""==a[1])return[o,i];i=a[1]}},e.consumeParenthesised=function(e,t){for(var n=0,r=0;r<t.length&&(!/\s|,/.test(t[r])||0!=n);r++)if("("==t[r])n++;else if(")"==t[r]&&(0==--n&&r++,n<=0))break;var i=e(t.substr(0,r));return null==i?void 0:[i,t.substr(r)]},e.ignore=function(e){return function(t){var n=e(t);return n&&(n[0]=void 0),n}},e.optional=function(e,t){return function(n){return e(n)||[t,n]}},e.consumeList=function(t,n){for(var r=[],i=0;i<t.length;i++){var o=e.consumeTrimmed(t[i],n);if(!o||""==o[0])return;void 0!==o[0]&&r.push(o[0]),n=o[1]}if(""==n)return r},e.mergeNestedRepeated=r.bind(null,null),e.mergeWrappedNestedRepeated=r,e.mergeList=function(e,t,n){for(var r=[],i=[],o=[],a=0,s=0;s<n.length;s++)if("function"==typeof n[s]){var u=n[s](e[a],t[a++]);r.push(u[0]),i.push(u[1]),o.push(u[2])}else!function(e){r.push(!1),i.push(!1),o.push((function(){return n[e]}))}(s);return[r,i,function(e){for(var t="",n=0;n<e.length;n++)t+=o[n](e[n]);return t}]}}(r),function(e){function t(t){var n={inset:!1,lengths:[],color:null},r=e.consumeRepeated((function(t){var r=e.consumeToken(/^inset/i,t);return r?(n.inset=!0,r):(r=e.consumeLengthOrPercent(t))?(n.lengths.push(r[0]),r):(r=e.consumeColor(t))?(n.color=r[0],r):void 0}),/^/,t);if(r&&r[0].length)return[n,r[1]]}var n=function(t,n,r,i){function o(e){return{inset:e,color:[0,0,0,0],lengths:[{px:0},{px:0},{px:0},{px:0}]}}for(var a=[],s=[],u=0;u<r.length||u<i.length;u++){var l=r[u]||o(i[u].inset),c=i[u]||o(r[u].inset);a.push(l),s.push(c)}return e.mergeNestedRepeated(t,n,a,s)}.bind(null,(function(t,n){for(;t.lengths.length<Math.max(t.lengths.length,n.lengths.length);)t.lengths.push({px:0});for(;n.lengths.length<Math.max(t.lengths.length,n.lengths.length);)n.lengths.push({px:0});if(t.inset==n.inset&&!!t.color==!!n.color){for(var r,i=[],o=[[],0],a=[[],0],s=0;s<t.lengths.length;s++){var u=e.mergeDimensions(t.lengths[s],n.lengths[s],2==s);o[0].push(u[0]),a[0].push(u[1]),i.push(u[2])}if(t.color&&n.color){var l=e.mergeColors(t.color,n.color);o[1]=l[0],a[1]=l[1],r=l[2]}return[o,a,function(e){for(var n=t.inset?"inset ":" ",o=0;o<i.length;o++)n+=i[o](e[0][o])+" ";return r&&(n+=r(e[1])),n}]}}),", ");e.addPropertiesHandler((function(n){var r=e.consumeRepeated(t,/^,/,n);if(r&&""==r[1])return r[0]}),n,["box-shadow","text-shadow"])}(r),function(e,t){function n(e){return e.toFixed(3).replace(/0+$/,"").replace(/\.$/,"")}function r(e,t,n){return Math.min(t,Math.max(e,n))}function i(e){if(/^\s*[-+]?(\d*\.)?\d+\s*$/.test(e))return Number(e)}function o(e,t){return function(i,o){return[i,o,function(i){return n(r(e,t,i))}]}}function a(e){var t=e.trim().split(/\s*[\s,]\s*/);if(0!==t.length){for(var n=[],r=0;r<t.length;r++){var o=i(t[r]);if(void 0===o)return;n.push(o)}return n}}e.clamp=r,e.addPropertiesHandler(a,(function(e,t){if(e.length==t.length)return[e,t,function(e){return e.map(n).join(" ")}]}),["stroke-dasharray"]),e.addPropertiesHandler(i,o(0,1/0),["border-image-width","line-height"]),e.addPropertiesHandler(i,o(0,1),["opacity","shape-image-threshold"]),e.addPropertiesHandler(i,(function(e,t){if(0!=e)return o(0,1/0)(e,t)}),["flex-grow","flex-shrink"]),e.addPropertiesHandler(i,(function(e,t){return[e,t,function(e){return Math.round(r(1,1/0,e))}]}),["orphans","widows"]),e.addPropertiesHandler(i,(function(e,t){return[e,t,Math.round]}),["z-index"]),e.parseNumber=i,e.parseNumberList=a,e.mergeNumbers=function(e,t){return[e,t,n]},e.numberToString=n}(r),function(e,t){e.addPropertiesHandler(String,(function(e,t){if("visible"==e||"visible"==t)return[0,1,function(n){return n<=0?e:n>=1?t:"visible"}]}),["visibility"])}(r),function(e,t){function n(e){e=e.trim(),o.fillStyle="#000",o.fillStyle=e;var t=o.fillStyle;if(o.fillStyle="#fff",o.fillStyle=e,t==o.fillStyle){o.fillRect(0,0,1,1);var n=o.getImageData(0,0,1,1).data;o.clearRect(0,0,1,1);var r=n[3]/255;return[n[0]*r,n[1]*r,n[2]*r,r]}}function r(t,n){return[t,n,function(t){function n(e){return Math.max(0,Math.min(255,e))}if(t[3])for(var r=0;r<3;r++)t[r]=Math.round(n(t[r]/t[3]));return t[3]=e.numberToString(e.clamp(0,1,t[3])),"rgba("+t.join(",")+")"}]}var i=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");i.width=i.height=1;var o=i.getContext("2d");e.addPropertiesHandler(n,r,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","fill","flood-color","lighting-color","outline-color","stop-color","stroke","text-decoration-color"]),e.consumeColor=e.consumeParenthesised.bind(null,n),e.mergeColors=r}(r),function(e,t){function n(e){function t(){var t=a.exec(e);o=t?t[0]:void 0}function n(){if("("!==o)return function(){var e=Number(o);return t(),e}();t();var e=i();return")"!==o?NaN:(t(),e)}function r(){for(var e=n();"*"===o||"/"===o;){var r=o;t();var i=n();"*"===r?e*=i:e/=i}return e}function i(){for(var e=r();"+"===o||"-"===o;){var n=o;t();var i=r();"+"===n?e+=i:e-=i}return e}var o,a=/([\+\-\w\.]+|[\(\)\*\/])/g;return t(),i()}function r(e,t){if("0"==(t=t.trim().toLowerCase())&&"px".search(e)>=0)return{px:0};if(/^[^(]*$|^calc/.test(t)){t=t.replace(/calc\(/g,"(");var r={};t=t.replace(e,(function(e){return r[e]=null,"U"+e}));for(var i="U("+e.source+")",o=t.replace(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+i,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),a=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],s=0;s<a.length;)a[s].test(o)?(o=o.replace(a[s],"$1"),s=0):s++;if("D"==o){for(var u in r){var l=n(t.replace(new RegExp("U"+u,"g"),"").replace(new RegExp(i,"g"),"*0"));if(!isFinite(l))return;r[u]=l}return r}}}function i(e,t){return o(e,t,!0)}function o(t,n,r){var i,o=[];for(i in t)o.push(i);for(i in n)o.indexOf(i)<0&&o.push(i);return t=o.map((function(e){return t[e]||0})),n=o.map((function(e){return n[e]||0})),[t,n,function(t){var n=t.map((function(n,i){return 1==t.length&&r&&(n=Math.max(n,0)),e.numberToString(n)+o[i]})).join(" + ");return t.length>1?"calc("+n+")":n}]}var a="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",s=r.bind(null,new RegExp(a,"g")),u=r.bind(null,new RegExp(a+"|%","g")),l=r.bind(null,/deg|rad|grad|turn/g);e.parseLength=s,e.parseLengthOrPercent=u,e.consumeLengthOrPercent=e.consumeParenthesised.bind(null,u),e.parseAngle=l,e.mergeDimensions=o;var c=e.consumeParenthesised.bind(null,s),f=e.consumeRepeated.bind(void 0,c,/^/),d=e.consumeRepeated.bind(void 0,f,/^,/);e.consumeSizePairList=d;var h=e.mergeNestedRepeated.bind(void 0,i," "),p=e.mergeNestedRepeated.bind(void 0,h,",");e.mergeNonNegativeSizePair=h,e.addPropertiesHandler((function(e){var t=d(e);if(t&&""==t[1])return t[0]}),p,["background-size"]),e.addPropertiesHandler(u,i,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),e.addPropertiesHandler(u,o,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","stroke-dashoffset","text-indent","top","vertical-align","word-spacing"])}(r),function(e,t){function n(t){return e.consumeLengthOrPercent(t)||e.consumeToken(/^auto/,t)}function r(t){var r=e.consumeList([e.ignore(e.consumeToken.bind(null,/^rect/)),e.ignore(e.consumeToken.bind(null,/^\(/)),e.consumeRepeated.bind(null,n,/^,/),e.ignore(e.consumeToken.bind(null,/^\)/))],t);if(r&&4==r[0].length)return r[0]}var i=e.mergeWrappedNestedRepeated.bind(null,(function(e){return"rect("+e+")"}),(function(t,n){return"auto"==t||"auto"==n?[!0,!1,function(r){var i=r?t:n;if("auto"==i)return"auto";var o=e.mergeDimensions(i,i);return o[2](o[0])}]:e.mergeDimensions(t,n)}),", ");e.parseBox=r,e.mergeBoxes=i,e.addPropertiesHandler(r,i,["clip"])}(r),function(e,t){function n(e){return function(t){var n=0;return e.map((function(e){return e===l?t[n++]:e}))}}function r(e){return e}function i(t){if("none"==(t=t.toLowerCase().trim()))return[];for(var n,r=/\s*(\w+)\(([^)]*)\)/g,i=[],o=0;n=r.exec(t);){if(n.index!=o)return;o=n.index+n[0].length;var a=n[1],s=d[a];if(!s)return;var u=n[2].split(","),l=s[0];if(l.length<u.length)return;for(var h=[],p=0;p<l.length;p++){var m,g=u[p],v=l[p];if(void 0===(m=g?{A:function(t){return"0"==t.trim()?f:e.parseAngle(t)},N:e.parseNumber,T:e.parseLengthOrPercent,L:e.parseLength}[v.toUpperCase()](g):{a:f,n:h[0],t:c}[v]))return;h.push(m)}if(i.push({t:a,d:h}),r.lastIndex==t.length)return i}}function o(e){return e.toFixed(6).replace(".000000","")}function a(t,n){if(t.decompositionPair!==n){t.decompositionPair=n;var r=e.makeMatrixDecomposition(t)}if(n.decompositionPair!==t){n.decompositionPair=t;var i=e.makeMatrixDecomposition(n)}return null==r[0]||null==i[0]?[[!1],[!0],function(e){return e?n[0].d:t[0].d}]:(r[0].push(0),i[0].push(1),[r,i,function(t){var n=e.quat(r[0][3],i[0][3],t[5]);return e.composeMatrix(t[0],t[1],t[2],n,t[4]).map(o).join(",")}])}function s(e){return e.replace(/[xy]/,"")}function u(e){return e.replace(/(x|y|z|3d)?$/,"3d")}var l=null,c={px:0},f={deg:0},d={matrix:["NNNNNN",[l,l,0,0,l,l,0,0,0,0,1,0,l,l,0,1],r],matrix3d:["NNNNNNNNNNNNNNNN",r],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",n([l,l,1]),r],scalex:["N",n([l,1,1]),n([l,1])],scaley:["N",n([1,l,1]),n([1,l])],scalez:["N",n([1,1,l])],scale3d:["NNN",r],skew:["Aa",null,r],skewx:["A",null,n([l,f])],skewy:["A",null,n([f,l])],translate:["Tt",n([l,l,c]),r],translatex:["T",n([l,c,c]),n([l,c])],translatey:["T",n([c,l,c]),n([c,l])],translatez:["L",n([c,c,l])],translate3d:["TTL",r]};e.addPropertiesHandler(i,(function(t,n){var r=e.makeMatrixDecomposition&&!0,i=!1;if(!t.length||!n.length){t.length||(i=!0,t=n,n=[]);for(var o=0;o<t.length;o++){var l=t[o].t,c=t[o].d,f="scale"==l.substr(0,5)?1:0;n.push({t:l,d:c.map((function(e){if("number"==typeof e)return f;var t={};for(var n in e)t[n]=f;return t}))})}}var h=function(e,t){return"perspective"==e&&"perspective"==t||("matrix"==e||"matrix3d"==e)&&("matrix"==t||"matrix3d"==t)},p=[],m=[],g=[];if(t.length!=n.length){if(!r)return;p=[(x=a(t,n))[0]],m=[x[1]],g=[["matrix",[x[2]]]]}else for(o=0;o<t.length;o++){var v=t[o].t,b=n[o].t,_=t[o].d,y=n[o].d,T=d[v],E=d[b];if(h(v,b)){if(!r)return;var x=a([t[o]],[n[o]]);p.push(x[0]),m.push(x[1]),g.push(["matrix",[x[2]]])}else{if(v==b)l=v;else if(T[2]&&E[2]&&s(v)==s(b))l=s(v),_=T[2](_),y=E[2](y);else{if(!T[1]||!E[1]||u(v)!=u(b)){if(!r)return;p=[(x=a(t,n))[0]],m=[x[1]],g=[["matrix",[x[2]]]];break}l=u(v),_=T[1](_),y=E[1](y)}for(var w=[],A=[],S=[],k=0;k<_.length;k++)x=("number"==typeof _[k]?e.mergeNumbers:e.mergeDimensions)(_[k],y[k]),w[k]=x[0],A[k]=x[1],S.push(x[2]);p.push(w),m.push(A),g.push([l,S])}}if(i){var N=p;p=m,m=N}return[p,m,function(e){return e.map((function(e,t){var n=e.map((function(e,n){return g[t][1][n](e)})).join(",");return"matrix"==g[t][0]&&16==n.split(",").length&&(g[t][0]="matrix3d"),g[t][0]+"("+n+")"})).join(" ")}]}),["transform"]),e.transformToSvgMatrix=function(t){var n=e.transformListToMatrix(i(t));return"matrix("+o(n[0])+" "+o(n[1])+" "+o(n[4])+" "+o(n[5])+" "+o(n[12])+" "+o(n[13])+")"}}(r),function(e){function t(t){return t=100*Math.round(t/100),400===(t=e.clamp(100,900,t))?"normal":700===t?"bold":String(t)}e.addPropertiesHandler((function(e){var t=Number(e);if(!(isNaN(t)||t<100||t>900||t%100!=0))return t}),(function(e,n){return[e,n,t]}),["font-weight"])}(r),function(e){function t(e){var t={};for(var n in e)t[n]=-e[n];return t}function n(t){return e.consumeToken(/^(left|center|right|top|bottom)\b/i,t)||e.consumeLengthOrPercent(t)}function r(t,r){var i=e.consumeRepeated(n,/^/,r);if(i&&""==i[1]){var a=i[0];if(a[0]=a[0]||"center",a[1]=a[1]||"center",3==t&&(a[2]=a[2]||{px:0}),a.length==t){if(/top|bottom/.test(a[0])||/left|right/.test(a[1])){var s=a[0];a[0]=a[1],a[1]=s}if(/left|right|center|Object/.test(a[0])&&/top|bottom|center|Object/.test(a[1]))return a.map((function(e){return"object"==typeof e?e:o[e]}))}}}function i(r){var i=e.consumeRepeated(n,/^/,r);if(i){for(var a=i[0],s=[{"%":50},{"%":50}],u=0,l=!1,c=0;c<a.length;c++){var f=a[c];"string"==typeof f?(l=/bottom|right/.test(f),s[u={left:0,right:0,center:u,top:1,bottom:1}[f]]=o[f],"center"==f&&u++):(l&&((f=t(f))["%"]=(f["%"]||0)+100),s[u]=f,u++,l=!1)}return[s,i[1]]}}var o={left:{"%":0},center:{"%":50},right:{"%":100},top:{"%":0},bottom:{"%":100}},a=e.mergeNestedRepeated.bind(null,e.mergeDimensions," ");e.addPropertiesHandler(r.bind(null,3),a,["transform-origin"]),e.addPropertiesHandler(r.bind(null,2),a,["perspective-origin"]),e.consumePosition=i,e.mergeOffsetList=a;var s=e.mergeNestedRepeated.bind(null,a,", ");e.addPropertiesHandler((function(t){var n=e.consumeRepeated(i,/^,/,t);if(n&&""==n[1])return n[0]}),s,["background-position","object-position"])}(r),function(e){var t=e.consumeParenthesised.bind(null,e.parseLengthOrPercent),n=e.consumeRepeated.bind(void 0,t,/^/),r=e.mergeNestedRepeated.bind(void 0,e.mergeDimensions," "),i=e.mergeNestedRepeated.bind(void 0,r,",");e.addPropertiesHandler((function(r){var i=e.consumeToken(/^circle/,r);if(i&&i[0])return["circle"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),t,e.ignore(e.consumeToken.bind(void 0,/^at/)),e.consumePosition,e.ignore(e.consumeToken.bind(void 0,/^\)/))],i[1]));var o=e.consumeToken(/^ellipse/,r);if(o&&o[0])return["ellipse"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),n,e.ignore(e.consumeToken.bind(void 0,/^at/)),e.consumePosition,e.ignore(e.consumeToken.bind(void 0,/^\)/))],o[1]));var a=e.consumeToken(/^polygon/,r);return a&&a[0]?["polygon"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),e.optional(e.consumeToken.bind(void 0,/^nonzero\s*,|^evenodd\s*,/),"nonzero,"),e.consumeSizePairList,e.ignore(e.consumeToken.bind(void 0,/^\)/))],a[1])):void 0}),(function(t,n){if(t[0]===n[0])return"circle"==t[0]?e.mergeList(t.slice(1),n.slice(1),["circle(",e.mergeDimensions," at ",e.mergeOffsetList,")"]):"ellipse"==t[0]?e.mergeList(t.slice(1),n.slice(1),["ellipse(",e.mergeNonNegativeSizePair," at ",e.mergeOffsetList,")"]):"polygon"==t[0]&&t[1]==n[1]?e.mergeList(t.slice(2),n.slice(2),["polygon(",t[1],i,")"]):void 0}),["shape-outside"])}(r),function(e,t){function n(e,t){t.concat([e]).forEach((function(t){t in document.documentElement.style&&(r[e]=t),i[t]=e}))}var r={},i={};n("transform",["webkitTransform","msTransform"]),n("transformOrigin",["webkitTransformOrigin"]),n("perspective",["webkitPerspective"]),n("perspectiveOrigin",["webkitPerspectiveOrigin"]),e.propertyName=function(e){return r[e]||e},e.unprefixedPropertyName=function(e){return i[e]||e}}(r)}(),function(){if(void 0===document.createElement("div").animate([]).oncancel){if(window.performance&&performance.now)var e=function(){return performance.now()};else e=function(){return Date.now()};var t=function(e,t,n){this.target=e,this.currentTime=t,this.timelineTime=n,this.type="cancel",this.bubbles=!1,this.cancelable=!1,this.currentTarget=e,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()},n=window.Element.prototype.animate;window.Element.prototype.animate=function(r,i){var o=n.call(this,r,i);o._cancelHandlers=[],o.oncancel=null;var a=o.cancel;o.cancel=function(){a.call(this);var n=new t(this,null,e()),r=this._cancelHandlers.concat(this.oncancel?[this.oncancel]:[]);setTimeout((function(){r.forEach((function(e){e.call(n.target,n)}))}),0)};var s=o.addEventListener;o.addEventListener=function(e,t){"function"==typeof t&&"cancel"==e?this._cancelHandlers.push(t):s.call(this,e,t)};var u=o.removeEventListener;return o.removeEventListener=function(e,t){if("cancel"==e){var n=this._cancelHandlers.indexOf(t);n>=0&&this._cancelHandlers.splice(n,1)}else u.call(this,e,t)},o}}}(),function(e){var t=document.documentElement,n=null,r=!1;try{var i="0"==getComputedStyle(t).getPropertyValue("opacity")?"1":"0";(n=t.animate({opacity:[i,i]},{duration:1})).currentTime=0,r=getComputedStyle(t).getPropertyValue("opacity")==i}catch(e){}finally{n&&n.cancel()}if(!r){var o=window.Element.prototype.animate;window.Element.prototype.animate=function(t,n){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&t[Symbol.iterator]&&(t=Array.from(t)),Array.isArray(t)||null===t||(t=e.convertToArrayForm(t)),o.call(this,t,n)}}}(n);var n,r;var i,o,a,s;!function(e){e.LIBRARY_LOG_TAG="[FLUID]",e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(i||(i={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(o||(o={})),function(e){e.beforehide="beforehide",e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(a||(a={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(s||(s={})),window.NJStore=window.NJStore||[];const u=(()=>{const e=window.NJStore;return{set(t,n,r){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=r},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const r=t.key;r.key===n&&(delete e[r.id],delete t.key)}}})(),l={setData(e,t,n){u.set(e,t,n)},getData:(e,t)=>u.get(e,t),removeData(e,t){u.delete(e,t)}},c=l;class f{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r=[],i=document.querySelectorAll(n);for(let n=0;n<i.length;n++){const o=i[n];if(!o.key||o.key.key!==e.DATA_KEY){const a=new e(i[n],t);o.key||c.setData(i[n],e.DATA_KEY,a),r.push(a)}}return r}}class d{static getUidEvent(e,t){return t&&`${t}::${d.uidEvent++}`||e.uidEvent||d.uidEvent++}static getEvent(e){const t=d.getUidEvent(e);return e.uidEvent=t,d.EVENTREGISTRY[t]=d.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&d.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=r=>(d.fixEvent(r,e),n.oneOff&&d.off(e,r.type,t),t.apply(e,[r]));return n}static njDelegationHandler(e,t,n){const r=i=>{const o=e.querySelectorAll(t);for(let t=i.target;t&&t!==this;t=t.parentNode)for(let a=o.length;a>=0;a--)if(o[a]===t)return d.fixEvent(i,t),r.oneOff&&d.off(e,i.type,n),n.apply(t,[i]);return null};return r}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;const i=e[r];if(i.originalHandler===t&&i.delegationSelector===n)return e[r]}return null}static normalizeParams(e,t,n){const r="string"==typeof t,i=r?n:t;let a=e.replace(d.STRIPNAME_REGEX,"");const u=o[a];u&&(a=u);return"string"==typeof s[a]||(a=e),[r,i,a]}static addHandler(e,t,n,r,i){if("string"!=typeof t||null==e)return;n||(n=r,r=null);const o=d.getEvent(e);for(const a of t.split(" ")){const[t,s,u]=d.normalizeParams(a,n,r),l=o[u]||(o[u]={}),c=d.findHandler(l,s,t?n:null);if(c)return void(c.oneOff=c.oneOff&&i);const f=d.getUidEvent(s,a.replace(d.NAMESPACE_REGEX,"")),h=t?d.njDelegationHandler(e,n,r):d.njHandler(e,n);h.delegationSelector=t?n:null,h.originalHandler=s,h.oneOff=i,h.uidEvent=f,l[f]=h,e.addEventListener(u,h,t)}}static removeHandler(e,t,n,r,i){const o=d.findHandler(t[n],r,i);null!==o&&(e.removeEventListener(n,o,Boolean(i)),delete t[n][o.uidEvent])}static removeNamespacedHandlers(e,t,n,r){const i=t[n]||{};for(const o in i)if(Object.prototype.hasOwnProperty.call(i,o)&&o.indexOf(r)>-1){const r=i[o];d.removeHandler(e,t,n,r.originalHandler,r.delegationSelector)}}static on(e,t,n,r){d.addHandler(e,t,n,r,!1)}static one(e,t,n,r){d.addHandler(e,t,n,r,!0)}static off(e,t,n,r){if("string"!=typeof t||null==e)return;const[i,o,a]=d.normalizeParams(t,n,r),s=a!==t,u=d.getEvent(e);if(void 0!==o){if(!u||!u[a])return;return void d.removeHandler(e,u,a,o,i?n:null)}if("."===t.charAt(0))for(const n in u)Object.prototype.hasOwnProperty.call(u,n)&&d.removeNamespacedHandlers(e,u,n,t.substr(1));const l=u[a]||{};for(const n in l){if(!Object.prototype.hasOwnProperty.call(l,n))continue;const r=n.replace(d.STRIPUID_REGEX,"");if(!s||t.indexOf(r)>-1){const t=l[n];d.removeHandler(e,u,a,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const r=t.replace(d.STRIPNAME_REGEX,""),i="string"==typeof s[r];let o=null;return i?(o=document.createEvent("HTMLEvents"),o.initEvent(r,true,!0)):o=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(o,e,{get:()=>n[e]})})),e.dispatchEvent(o),o}}d.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,d.STRIPNAME_REGEX=/\..*/,d.KEYEVENT_REGEX=/^key/,d.STRIPUID_REGEX=/::\d+$/,d.EVENTREGISTRY={},d.uidEvent=1;const h=d;const p={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let n=0;n<e.attributes.length;n++){const r=e.attributes[n];if(-1!==r.nodeName.indexOf("data-")){const e=r.nodeName.substring(5).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=r.nodeValue}}return Object.keys(t).forEach((e=>{var n;t[e]="true"===(n=t[e])||"false"!==n&&("null"===n?null:n===Number(n).toString()?Number(n):""===n?null:n)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,n){for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n&&"[object Object]"===Object.prototype.toString.call(t[r])?e[r]=p.extend(e[r],t[r]):e[r]=t[r]);return e},extend(){let e={},t=!1,n=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],n++);n<arguments.length;n++)e=p.mergeExtended(e,n<0||arguments.length<=n?void 0:arguments[n],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},m=p;class g extends f{constructor(e,t){super(g,e),this.buttons=this.element.querySelectorAll(g.SELECTOR.button),this.items=this.element.querySelectorAll(g.SELECTOR.item),this.button=this.buttons[0],this.setOptions(t),this.element=e,this.setDefaultAriaAttribute(),this.setListeners(),c.setData(e,g.DATA_KEY,this)}open(){let e;const t=this.options.menuPosition,n=g.DURATION_PER_ITEM*this.items.length;m.toggleClass(this.button,g.OPEN_CLASS);const r=this.button.classList.contains(g.OPEN_CLASS);this.button.setAttribute("aria-expanded",r.toString());const i="top"===t||"bottom"===t?"translateY":"translateX",o="top"===t||"left"===t?"-":"";for(e=0;e<this.items.length;e++){const t=[{transform:`${i}(0)`,opacity:0},{transform:`${i}(${o}${(e+1)*g.ITEMS_HEIGHT+1}rem)`,opacity:1}],a=r?t:t.reverse(),s=n-g.DURATION_PER_ITEM*e,u=g.STAGGER_DELAY*e;this.items[e].animate(a,{duration:s,delay:u,fill:"forwards"})}}setListeners(){const e=g.EVENT.click;h.on(this.element,e,this.options.selector,(()=>this.open()))}setOptions(e){const t=this.element.getAttribute("data-placement");this.options={menuPosition:t},this.options=m.extend(this.options,e),["top","right","bottom","left"].indexOf(this.options.menuPosition)<0&&(this.options.menuPosition="top")}getOptions(){return this.options}setDefaultAriaAttribute(){this.button.setAttribute("aria-expanded","false")}dispose(){c.removeData(this.element,g.DATA_KEY),this.element=null}static getInstance(e){return c.getData(e,g.DATA_KEY)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,g.SELECTOR.default)}}g.NAME=`${i.KEY_PREFIX}-fab-menu`,g.DATA_KEY=`${i.KEY_PREFIX}.fab`,g.EVENT_KEY=`.${g.DATA_KEY}`,g.SELECTOR={default:`.${g.NAME}`,button:`.${i.KEY_PREFIX}-fab`,item:`.${i.KEY_PREFIX}-fab__item`},g.EVENT={click:`${a.click}${g.EVENT_KEY}`,mouseenter:`${a.mouseenter}${g.EVENT_KEY}`,mouseleave:`${a.mouseleave}${g.EVENT_KEY}`},g.DURATION_PER_ITEM=35,g.ITEMS_HEIGHT=3.8,g.OPEN_CLASS="active",g.STAGGER_DELAY=70;const v=g;return t=t.default})()));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Fab",[],t):"object"==typeof exports?exports.Fab=t():e.Fab=t()}(window,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>v});r={},function(e,t){function n(){this._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,this._iterations=1,this._duration=0,this._playbackRate=1,this._direction="normal",this._easing="linear",this._easingFunction=d}function r(){return e.isDeprecated("Invalid timing inputs","2016-03-02","TypeError exceptions will be thrown instead.",!0)}function i(t,r,i){var o=new n;return r&&(o.fill="both",o.duration="auto"),"number"!=typeof t||isNaN(t)?void 0!==t&&Object.getOwnPropertyNames(t).forEach((function(n){if("auto"!=t[n]){if(("number"==typeof o[n]||"duration"==n)&&("number"!=typeof t[n]||isNaN(t[n])))return;if("fill"==n&&-1==c.indexOf(t[n]))return;if("direction"==n&&-1==f.indexOf(t[n]))return;if("playbackRate"==n&&1!==t[n]&&e.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;o[n]=t[n]}})):o.duration=t,o}function o(e,t,n,r){return e<0||e>1||n<0||n>1?d:function(i){function o(e,t,n){return 3*e*(1-n)*(1-n)*n+3*t*(1-n)*n*n+n*n*n}if(i<=0){var a=0;return e>0?a=t/e:!t&&n>0&&(a=r/n),a*i}if(i>=1){var s=0;return n<1?s=(r-1)/(n-1):1==n&&e<1&&(s=(t-1)/(e-1)),1+s*(i-1)}for(var u=0,l=1;u<l;){var c=(u+l)/2,f=o(e,n,c);if(Math.abs(i-f)<1e-5)return o(t,r,c);f<i?u=c:l=c}return o(t,r,c)}}function a(e,t){return function(n){if(n>=1)return 1;var r=1/e;return(n+=t*r)-n%r}}function s(e){v||(v=document.createElement("div").style),v.animationTimingFunction="",v.animationTimingFunction=e;var t=v.animationTimingFunction;if(""==t&&r())throw new TypeError(e+" is not a valid value for easing");return t}function u(e){if("linear"==e)return d;var t=_.exec(e);if(t)return o.apply(this,t.slice(1).map(Number));var n=y.exec(e);if(n)return a(Number(n[1]),m);var r=T.exec(e);return r?a(Number(r[1]),{start:h,middle:p,end:m}[r[2]]):g[e]||d}function l(e,t,n){if(null==t)return E;var r=n.delay+e+n.endDelay;return t<Math.min(n.delay,r)?x:t>=Math.min(n.delay+e,r)?w:A}var c="backwards|forwards|both|none".split("|"),f="reverse|alternate|alternate-reverse".split("|"),d=function(e){return e};n.prototype={_setMember:function(t,n){this["_"+t]=n,this._effect&&(this._effect._timingInput[t]=n,this._effect._timing=e.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=e.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(e){this._setMember("delay",e)},get delay(){return this._delay},set endDelay(e){this._setMember("endDelay",e)},get endDelay(){return this._endDelay},set fill(e){this._setMember("fill",e)},get fill(){return this._fill},set iterationStart(e){if((isNaN(e)||e<0)&&r())throw new TypeError("iterationStart must be a non-negative number, received: "+e);this._setMember("iterationStart",e)},get iterationStart(){return this._iterationStart},set duration(e){if("auto"!=e&&(isNaN(e)||e<0)&&r())throw new TypeError("duration must be non-negative or auto, received: "+e);this._setMember("duration",e)},get duration(){return this._duration},set direction(e){this._setMember("direction",e)},get direction(){return this._direction},set easing(e){this._easingFunction=u(s(e)),this._setMember("easing",e)},get easing(){return this._easing},set iterations(e){if((isNaN(e)||e<0)&&r())throw new TypeError("iterations must be non-negative, received: "+e);this._setMember("iterations",e)},get iterations(){return this._iterations}};var h=1,p=.5,m=0,g={ease:o(.25,.1,.25,1),"ease-in":o(.42,0,1,1),"ease-out":o(0,0,.58,1),"ease-in-out":o(.42,0,.58,1),"step-start":a(1,h),"step-middle":a(1,p),"step-end":a(1,m)},v=null,b="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",_=new RegExp("cubic-bezier\\("+b+","+b+","+b+","+b+"\\)"),y=/steps\(\s*(\d+)\s*\)/,T=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,E=0,x=1,w=2,A=3;e.cloneTimingInput=function(e){if("number"==typeof e)return e;var t={};for(var n in e)t[n]=e[n];return t},e.makeTiming=i,e.numericTimingToObject=function(e){return"number"==typeof e&&(e=isNaN(e)?{duration:0}:{duration:e}),e},e.normalizeTimingInput=function(t,n){return i(t=e.numericTimingToObject(t),n)},e.calculateActiveDuration=function(e){return Math.abs(function(e){return 0===e.duration||0===e.iterations?0:e.duration*e.iterations}(e)/e.playbackRate)},e.calculateIterationProgress=function(e,t,n){var r=l(e,t,n),i=function(e,t,n,r,i){switch(r){case x:return"backwards"==t||"both"==t?0:null;case A:return n-i;case w:return"forwards"==t||"both"==t?e:null;case E:return null}}(e,n.fill,t,r,n.delay);if(null===i)return null;var o=function(e,t,n,r,i){var o=i;return 0===e?t!==x&&(o+=n):o+=r/e,o}(n.duration,r,n.iterations,i,n.iterationStart),a=function(e,t,n,r,i,o){var a=e===1/0?t%1:e%1;return 0!==a||n!==w||0===r||0===i&&0!==o||(a=1),a}(o,n.iterationStart,r,n.iterations,i,n.duration),s=function(e,t,n,r){return e===w&&t===1/0?1/0:1===n?Math.floor(r)-1:Math.floor(r)}(r,n.iterations,a,o),u=function(e,t,n){var r=e;if("normal"!==e&&"reverse"!==e){var i=t;"alternate-reverse"===e&&(i+=1),r="normal",i!==1/0&&i%2!=0&&(r="reverse")}return"normal"===r?n:1-n}(n.direction,s,a);return n._easingFunction(u)},e.calculatePhase=l,e.normalizeEasing=s,e.parseEasingFunction=u}(n={}),function(e,t){function n(e,t){return e in u&&u[e][t]||t}function r(e,t,r){if(!function(e){return"display"===e||0===e.lastIndexOf("animation",0)||0===e.lastIndexOf("transition",0)}(e)){var i=o[e];if(i)for(var s in a.style[e]=t,i){var u=i[s],l=a.style[u];r[u]=n(u,l)}else r[e]=n(e,t)}}function i(e){var t=[];for(var n in e)if(!(n in["easing","offset","composite"])){var r=e[n];Array.isArray(r)||(r=[r]);for(var i,o=r.length,a=0;a<o;a++)(i={}).offset="offset"in e?e.offset:1==o?1:a/(o-1),"easing"in e&&(i.easing=e.easing),"composite"in e&&(i.composite=e.composite),i[n]=r[a],t.push(i)}return t.sort((function(e,t){return e.offset-t.offset})),t}var o={background:["backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat","backgroundAttachment","backgroundOrigin","backgroundClip","backgroundColor"],border:["borderTopColor","borderTopStyle","borderTopWidth","borderRightColor","borderRightStyle","borderRightWidth","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeftColor","borderLeftStyle","borderLeftWidth"],borderBottom:["borderBottomWidth","borderBottomStyle","borderBottomColor"],borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderLeft:["borderLeftWidth","borderLeftStyle","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderRight:["borderRightWidth","borderRightStyle","borderRightColor"],borderTop:["borderTopWidth","borderTopStyle","borderTopColor"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],flex:["flexGrow","flexShrink","flexBasis"],font:["fontFamily","fontSize","fontStyle","fontVariant","fontWeight","lineHeight"],margin:["marginTop","marginRight","marginBottom","marginLeft"],outline:["outlineColor","outlineStyle","outlineWidth"],padding:["paddingTop","paddingRight","paddingBottom","paddingLeft"]},a=document.createElementNS("http://www.w3.org/1999/xhtml","div"),s={thin:"1px",medium:"3px",thick:"5px"},u={borderBottomWidth:s,borderLeftWidth:s,borderRightWidth:s,borderTopWidth:s,fontSize:{"xx-small":"60%","x-small":"75%",small:"89%",medium:"100%",large:"120%","x-large":"150%","xx-large":"200%"},fontWeight:{normal:"400",bold:"700"},outlineWidth:s,textShadow:{none:"0px 0px 0px transparent"},boxShadow:{none:"0px 0px 0px 0px transparent"}};e.convertToArrayForm=i,e.normalizeKeyframes=function(t){if(null==t)return[];window.Symbol&&Symbol.iterator&&Array.prototype.from&&t[Symbol.iterator]&&(t=Array.from(t)),Array.isArray(t)||(t=i(t));for(var n=t.map((function(t){var n={};for(var i in t){var o=t[i];if("offset"==i){if(null!=o){if(o=Number(o),!isFinite(o))throw new TypeError("Keyframe offsets must be numbers.");if(o<0||o>1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==i){if("add"==o||"accumulate"==o)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};if("replace"!=o)throw new TypeError("Invalid composite mode "+o+".")}else o="easing"==i?e.normalizeEasing(o):""+o;r(i,o,n)}return null==n.offset&&(n.offset=null),null==n.easing&&(n.easing="linear"),n})),o=!0,a=-1/0,s=0;s<n.length;s++){var u=n[s].offset;if(null!=u){if(u<a)throw new TypeError("Keyframes are not loosely sorted by offset. Sort or specify offsets.");a=u}else o=!1}return n=n.filter((function(e){return e.offset>=0&&e.offset<=1})),o||function(){var e=n.length;null==n[e-1].offset&&(n[e-1].offset=1),e>1&&null==n[0].offset&&(n[0].offset=0);for(var t=0,r=n[0].offset,i=1;i<e;i++){var o=n[i].offset;if(null!=o){for(var a=1;a<i-t;a++)n[t+a].offset=r+(o-r)*a/(i-t);t=i,r=o}}}(),n}}(n),function(e){var t={};e.isDeprecated=function(e,n,r,i){var o=i?"are":"is",a=new Date,s=new Date(n);return s.setMonth(s.getMonth()+3),!(a<s&&(e in t||console.warn("Web Animations: "+e+" "+o+" deprecated and will stop working on "+s.toDateString()+". "+r),t[e]=!0,1))},e.deprecated=function(t,n,r,i){var o=i?"are":"is";if(e.isDeprecated(t,n,r,i))throw new Error(t+" "+o+" no longer supported. "+r)}}(n),function(){if(document.documentElement.animate){var e=document.documentElement.animate([],0),t=!0;if(e&&(t=!1,"play|currentTime|pause|reverse|playbackRate|cancel|finish|startTime|playState".split("|").forEach((function(n){void 0===e[n]&&(t=!0)}))),!t)return}!function(e,t,n){t.convertEffectInput=function(n){var r=function(e){for(var t={},n=0;n<e.length;n++)for(var r in e[n])if("offset"!=r&&"easing"!=r&&"composite"!=r){var i={offset:e[n].offset,easing:e[n].easing,value:e[n][r]};t[r]=t[r]||[],t[r].push(i)}for(var o in t){var a=t[o];if(0!=a[0].offset||1!=a[a.length-1].offset)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"Partial keyframes are not supported"}}return t}(e.normalizeKeyframes(n)),i=function(n){var r=[];for(var i in n)for(var o=n[i],a=0;a<o.length-1;a++){var s=a,u=a+1,l=o[s].offset,c=o[u].offset,f=l,d=c;0==a&&(f=-1/0,0==c&&(u=s)),a==o.length-2&&(d=1/0,1==l&&(s=u)),r.push({applyFrom:f,applyTo:d,startOffset:o[s].offset,endOffset:o[u].offset,easingFunction:e.parseEasingFunction(o[s].easing),property:i,interpolation:t.propertyInterpolation(i,o[s].value,o[u].value)})}return r.sort((function(e,t){return e.startOffset-t.startOffset})),r}(r);return function(e,n){if(null!=n)i.filter((function(e){return n>=e.applyFrom&&n<e.applyTo})).forEach((function(r){var i=n-r.startOffset,o=r.endOffset-r.startOffset,a=0==o?0:r.easingFunction(i/o);t.apply(e,r.property,r.interpolation(a))}));else for(var o in r)"offset"!=o&&"easing"!=o&&"composite"!=o&&t.clear(e,o)}}}(n,r),function(e,t,n){function r(e){return e.replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}function i(e,t,n){o[n]=o[n]||[],o[n].push([e,t])}var o={};t.addPropertiesHandler=function(e,t,n){for(var o=0;o<n.length;o++)i(e,t,r(n[o]))};var a={backgroundColor:"transparent",backgroundPosition:"0% 0%",borderBottomColor:"currentColor",borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px",borderBottomWidth:"3px",borderLeftColor:"currentColor",borderLeftWidth:"3px",borderRightColor:"currentColor",borderRightWidth:"3px",borderSpacing:"2px",borderTopColor:"currentColor",borderTopLeftRadius:"0px",borderTopRightRadius:"0px",borderTopWidth:"3px",bottom:"auto",clip:"rect(0px, 0px, 0px, 0px)",color:"black",fontSize:"100%",fontWeight:"400",height:"auto",left:"auto",letterSpacing:"normal",lineHeight:"120%",marginBottom:"0px",marginLeft:"0px",marginRight:"0px",marginTop:"0px",maxHeight:"none",maxWidth:"none",minHeight:"0px",minWidth:"0px",opacity:"1.0",outlineColor:"invert",outlineOffset:"0px",outlineWidth:"3px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",paddingTop:"0px",right:"auto",strokeDasharray:"none",strokeDashoffset:"0px",textIndent:"0px",textShadow:"0px 0px 0px transparent",top:"auto",transform:"",verticalAlign:"0px",visibility:"visible",width:"auto",wordSpacing:"normal",zIndex:"auto"};t.propertyInterpolation=function(n,i,s){var u=n;/-/.test(n)&&!e.isDeprecated("Hyphenated property names","2016-03-22","Use camelCase instead.",!0)&&(u=r(n)),"initial"!=i&&"initial"!=s||("initial"==i&&(i=a[u]),"initial"==s&&(s=a[u]));for(var l=i==s?[]:o[u],c=0;l&&c<l.length;c++){var f=l[c][0](i),d=l[c][0](s);if(void 0!==f&&void 0!==d){var h=l[c][1](f,d);if(h){var p=t.Interpolation.apply(null,h);return function(e){return 0==e?i:1==e?s:p(e)}}}}return t.Interpolation(!1,!0,(function(e){return e?s:i}))}}(n,r),function(e,t,n){t.KeyframeEffect=function(n,r,i,o){var a,s=function(t){var n=e.calculateActiveDuration(t),r=function(r){return e.calculateIterationProgress(n,r,t)};return r._totalDuration=t.delay+n+t.endDelay,r}(e.normalizeTimingInput(i)),u=t.convertEffectInput(r),l=function(){u(n,a)};return l._update=function(e){return null!==(a=s(e))},l._clear=function(){u(n,null)},l._hasSameTarget=function(e){return n===e},l._target=n,l._totalDuration=s._totalDuration,l._id=o,l}}(n,r),function(e,t){function n(e,t,n){n.enumerable=!0,n.configurable=!0,Object.defineProperty(e,t,n)}function r(e){this._element=e,this._surrogateStyle=document.createElementNS("http://www.w3.org/1999/xhtml","div").style,this._style=e.style,this._length=0,this._isAnimatedProperty={},this._updateSvgTransformAttr=function(e,t){return!(!t.namespaceURI||-1==t.namespaceURI.indexOf("/svg"))&&(o in e||(e[o]=/Trident|MSIE|IEMobile|Edge|Android 4/i.test(e.navigator.userAgent)),e[o])}(window,e),this._savedTransformAttr=null;for(var t=0;t<this._style.length;t++){var n=this._style[t];this._surrogateStyle[n]=this._style[n]}this._updateIndices()}function i(e){if(!e._webAnimationsPatchedStyle){var t=new r(e);try{n(e,"style",{get:function(){return t}})}catch(t){e.style._set=function(t,n){e.style[t]=n},e.style._clear=function(t){e.style[t]=""}}e._webAnimationsPatchedStyle=e.style}}var o="_webAnimationsUpdateSvgTransformAttr",a={cssText:1,length:1,parentRule:1},s={getPropertyCSSValue:1,getPropertyPriority:1,getPropertyValue:1,item:1,removeProperty:1,setProperty:1},u={removeProperty:1,setProperty:1};for(var l in r.prototype={get cssText(){return this._surrogateStyle.cssText},set cssText(e){for(var t={},n=0;n<this._surrogateStyle.length;n++)t[this._surrogateStyle[n]]=!0;for(this._surrogateStyle.cssText=e,this._updateIndices(),n=0;n<this._surrogateStyle.length;n++)t[this._surrogateStyle[n]]=!0;for(var r in t)this._isAnimatedProperty[r]||this._style.setProperty(r,this._surrogateStyle.getPropertyValue(r))},get length(){return this._surrogateStyle.length},get parentRule(){return this._style.parentRule},_updateIndices:function(){for(;this._length<this._surrogateStyle.length;)Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,get:function(e){return function(){return this._surrogateStyle[e]}}(this._length)}),this._length++;for(;this._length>this._surrogateStyle.length;)this._length--,Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,value:void 0})},_set:function(t,n){this._style[t]=n,this._isAnimatedProperty[t]=!0,this._updateSvgTransformAttr&&"transform"==e.unprefixedPropertyName(t)&&(null==this._savedTransformAttr&&(this._savedTransformAttr=this._element.getAttribute("transform")),this._element.setAttribute("transform",e.transformToSvgMatrix(n)))},_clear:function(t){this._style[t]=this._surrogateStyle[t],this._updateSvgTransformAttr&&"transform"==e.unprefixedPropertyName(t)&&(this._savedTransformAttr?this._element.setAttribute("transform",this._savedTransformAttr):this._element.removeAttribute("transform"),this._savedTransformAttr=null),delete this._isAnimatedProperty[t]}},s)r.prototype[l]=function(e,t){return function(){var n=this._surrogateStyle[e].apply(this._surrogateStyle,arguments);return t&&(this._isAnimatedProperty[arguments[0]]||this._style[e].apply(this._style,arguments),this._updateIndices()),n}}(l,l in u);for(var c in document.documentElement.style)c in a||c in s||function(e){n(r.prototype,e,{get:function(){return this._surrogateStyle[e]},set:function(t){this._surrogateStyle[e]=t,this._updateIndices(),this._isAnimatedProperty&&!this._isAnimatedProperty[e]&&(this._style[e]=t)}})}(c);e.apply=function(t,n,r){i(t),t.style._set(e.propertyName(n),r)},e.clear=function(t,n){t._webAnimationsPatchedStyle&&t.style._clear(e.propertyName(n))}}(r),function(e){window.Element.prototype.animate=function(t,n){var r="";return n&&n.id&&(r=n.id),e.timeline._play(e.KeyframeEffect(this,t,n,r))}}(r),function(e,t){function n(e,t,r){if("number"==typeof e&&"number"==typeof t)return e*(1-r)+t*r;if("boolean"==typeof e&&"boolean"==typeof t)return r<.5?e:t;if(e.length==t.length){for(var i=[],o=0;o<e.length;o++)i.push(n(e[o],t[o],r));return i}throw"Mismatched interpolation arguments "+e+":"+t}e.Interpolation=function(e,t,r){return function(i){return r(n(e,t,i))}}}(r),function(e,t){var n=function(){function e(e,t){for(var n=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],r=0;r<4;r++)for(var i=0;i<4;i++)for(var o=0;o<4;o++)n[r][i]+=t[r][o]*e[o][i];return n}return function(t,n,r,i,o){for(var a=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],s=0;s<4;s++)a[s][3]=o[s];for(s=0;s<3;s++)for(var u=0;u<3;u++)a[3][s]+=t[u]*a[u][s];var l=i[0],c=i[1],f=i[2],d=i[3],h=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];h[0][0]=1-2*(c*c+f*f),h[0][1]=2*(l*c-f*d),h[0][2]=2*(l*f+c*d),h[1][0]=2*(l*c+f*d),h[1][1]=1-2*(l*l+f*f),h[1][2]=2*(c*f-l*d),h[2][0]=2*(l*f-c*d),h[2][1]=2*(c*f+l*d),h[2][2]=1-2*(l*l+c*c),a=e(a,h);var p=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];for(r[2]&&(p[2][1]=r[2],a=e(a,p)),r[1]&&(p[2][1]=0,p[2][0]=r[0],a=e(a,p)),r[0]&&(p[2][0]=0,p[1][0]=r[0],a=e(a,p)),s=0;s<3;s++)for(u=0;u<3;u++)a[s][u]*=n[s];return function(e){return 0==e[0][2]&&0==e[0][3]&&0==e[1][2]&&0==e[1][3]&&0==e[2][0]&&0==e[2][1]&&1==e[2][2]&&0==e[2][3]&&0==e[3][2]&&1==e[3][3]}(a)?[a[0][0],a[0][1],a[1][0],a[1][1],a[3][0],a[3][1]]:a[0].concat(a[1],a[2],a[3])}}();e.composeMatrix=n,e.quat=function(t,n,r){var i=e.dot(t,n);i=function(e,t,n){return Math.max(Math.min(e,n),t)}(i,-1,1);var o=[];if(1===i)o=t;else for(var a=Math.acos(i),s=1*Math.sin(r*a)/Math.sqrt(1-i*i),u=0;u<4;u++)o.push(t[u]*(Math.cos(r*a)-i*s)+n[u]*s);return o}}(r),function(e,t,n){e.sequenceNumber=0;var r=function(e,t,n){this.target=e,this.currentTime=t,this.timelineTime=n,this.type="finish",this.bubbles=!1,this.cancelable=!1,this.currentTarget=e,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()};t.Animation=function(t){this.id="",t&&t._id&&(this.id=t._id),this._sequenceNumber=e.sequenceNumber++,this._currentTime=0,this._startTime=null,this._paused=!1,this._playbackRate=1,this._inTimeline=!0,this._finishedFlag=!0,this.onfinish=null,this._finishHandlers=[],this._effect=t,this._inEffect=this._effect._update(0),this._idle=!0,this._currentTimePending=!1},t.Animation.prototype={_ensureAlive:function(){this.playbackRate<0&&0===this.currentTime?this._inEffect=this._effect._update(-1):this._inEffect=this._effect._update(this.currentTime),this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline=!0,t.timeline._animations.push(this))},_tickCurrentTime:function(e,t){e!=this._currentTime&&(this._currentTime=e,this._isFinished&&!t&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(e){e=+e,isNaN(e)||(t.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-e/this._playbackRate),this._currentTimePending=!1,this._currentTime!=e&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(e,!0),t.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(e){e=+e,isNaN(e)||this._paused||this._idle||(this._startTime=e,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),t.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(e){if(e!=this._playbackRate){var n=this.currentTime;this._playbackRate=e,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),t.applyDirtiedAnimation(this)),null!=n&&(this.currentTime=n)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished":"running"},_rewind:function(){if(this._playbackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to rewind negative playback rate animation with infinite duration","InvalidStateError");this._currentTime=this._totalDuration}},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),t.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0,this._startTime=null,this._paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1,t.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),t.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(e,t){"function"==typeof t&&"finish"==e&&this._finishHandlers.push(t)},removeEventListener:function(e,t){if("finish"==e){var n=this._finishHandlers.indexOf(t);n>=0&&this._finishHandlers.splice(n,1)}},_fireEvents:function(e){if(this._isFinished){if(!this._finishedFlag){var t=new r(this,this._currentTime,e),n=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout((function(){n.forEach((function(e){e.call(t.target,t)}))}),0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(e,t){this._idle||this._paused||(null==this._startTime?t&&(this.startTime=e-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((e-this._startTime)*this.playbackRate)),t&&(this._currentTimePending=!1,this._fireEvents(e))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var e=this._effect._target;return e._activeAnimations||(e._activeAnimations=[]),e._activeAnimations},_markTarget:function(){var e=this._targetAnimations();-1===e.indexOf(this)&&e.push(this)},_unmarkTarget:function(){var e=this._targetAnimations(),t=e.indexOf(this);-1!==t&&e.splice(t,1)}}}(n,r),function(e,t,n){function r(e){var t=l;l=[],e<m.currentTime&&(e=m.currentTime),m._animations.sort(i),m._animations=s(e,!0,m._animations)[0],t.forEach((function(t){t[1](e)})),a()}function i(e,t){return e._sequenceNumber-t._sequenceNumber}function o(){this._animations=[],this.currentTime=window.performance&&performance.now?performance.now():0}function a(){h.forEach((function(e){e()})),h.length=0}function s(e,n,r){p=!0,d=!1,t.timeline.currentTime=e,f=!1;var i=[],o=[],a=[],s=[];return r.forEach((function(t){t._tick(e,n),t._inEffect?(o.push(t._effect),t._markTarget()):(i.push(t._effect),t._unmarkTarget()),t._needsTick&&(f=!0);var r=t._inEffect||t._needsTick;t._inTimeline=r,r?a.push(t):s.push(t)})),h.push.apply(h,i),h.push.apply(h,o),f&&requestAnimationFrame((function(){})),p=!1,[a,s]}var u=window.requestAnimationFrame,l=[],c=0;window.requestAnimationFrame=function(e){var t=c++;return 0==l.length&&u(r),l.push([t,e]),t},window.cancelAnimationFrame=function(e){l.forEach((function(t){t[0]==e&&(t[1]=function(){})}))},o.prototype={_play:function(n){n._timing=e.normalizeTimingInput(n.timing);var r=new t.Animation(n);return r._idle=!1,r._timeline=this,this._animations.push(r),t.restart(),t.applyDirtiedAnimation(r),r}};var f=!1,d=!1;t.restart=function(){return f||(f=!0,requestAnimationFrame((function(){})),d=!0),d},t.applyDirtiedAnimation=function(e){if(!p){e._markTarget();var n=e._targetAnimations();n.sort(i),s(t.timeline.currentTime,!1,n.slice())[1].forEach((function(e){var t=m._animations.indexOf(e);-1!==t&&m._animations.splice(t,1)})),a()}};var h=[],p=!1,m=new o;t.timeline=m}(n,r),function(e,t){function n(e,t){for(var n=0,r=0;r<e.length;r++)n+=e[r]*t[r];return n}function r(e,t){return[e[0]*t[0]+e[4]*t[1]+e[8]*t[2]+e[12]*t[3],e[1]*t[0]+e[5]*t[1]+e[9]*t[2]+e[13]*t[3],e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]*t[3],e[3]*t[0]+e[7]*t[1]+e[11]*t[2]+e[15]*t[3],e[0]*t[4]+e[4]*t[5]+e[8]*t[6]+e[12]*t[7],e[1]*t[4]+e[5]*t[5]+e[9]*t[6]+e[13]*t[7],e[2]*t[4]+e[6]*t[5]+e[10]*t[6]+e[14]*t[7],e[3]*t[4]+e[7]*t[5]+e[11]*t[6]+e[15]*t[7],e[0]*t[8]+e[4]*t[9]+e[8]*t[10]+e[12]*t[11],e[1]*t[8]+e[5]*t[9]+e[9]*t[10]+e[13]*t[11],e[2]*t[8]+e[6]*t[9]+e[10]*t[10]+e[14]*t[11],e[3]*t[8]+e[7]*t[9]+e[11]*t[10]+e[15]*t[11],e[0]*t[12]+e[4]*t[13]+e[8]*t[14]+e[12]*t[15],e[1]*t[12]+e[5]*t[13]+e[9]*t[14]+e[13]*t[15],e[2]*t[12]+e[6]*t[13]+e[10]*t[14]+e[14]*t[15],e[3]*t[12]+e[7]*t[13]+e[11]*t[14]+e[15]*t[15]]}function i(e){var t=e.rad||0;return((e.deg||0)/360+(e.grad||0)/400+(e.turn||0))*(2*Math.PI)+t}function o(e){switch(e.t){case"rotatex":var t=i(e.d[0]);return[1,0,0,0,0,Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1];case"rotatey":return t=i(e.d[0]),[Math.cos(t),0,-Math.sin(t),0,0,1,0,0,Math.sin(t),0,Math.cos(t),0,0,0,0,1];case"rotate":case"rotatez":return t=i(e.d[0]),[Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1,0,0,0,0,1];case"rotate3d":var n=e.d[0],r=e.d[1],o=e.d[2],a=(t=i(e.d[3]),n*n+r*r+o*o);if(0===a)n=1,r=0,o=0;else if(1!==a){var s=Math.sqrt(a);n/=s,r/=s,o/=s}var u=Math.sin(t/2),l=u*Math.cos(t/2),c=u*u;return[1-2*(r*r+o*o)*c,2*(n*r*c+o*l),2*(n*o*c-r*l),0,2*(n*r*c-o*l),1-2*(n*n+o*o)*c,2*(r*o*c+n*l),0,2*(n*o*c+r*l),2*(r*o*c-n*l),1-2*(n*n+r*r)*c,0,0,0,0,1];case"scale":return[e.d[0],0,0,0,0,e.d[1],0,0,0,0,1,0,0,0,0,1];case"scalex":return[e.d[0],0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"scaley":return[1,0,0,0,0,e.d[0],0,0,0,0,1,0,0,0,0,1];case"scalez":return[1,0,0,0,0,1,0,0,0,0,e.d[0],0,0,0,0,1];case"scale3d":return[e.d[0],0,0,0,0,e.d[1],0,0,0,0,e.d[2],0,0,0,0,1];case"skew":var f=i(e.d[0]),d=i(e.d[1]);return[1,Math.tan(d),0,0,Math.tan(f),1,0,0,0,0,1,0,0,0,0,1];case"skewx":return t=i(e.d[0]),[1,0,0,0,Math.tan(t),1,0,0,0,0,1,0,0,0,0,1];case"skewy":return t=i(e.d[0]),[1,Math.tan(t),0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"translate":return[1,0,0,0,0,1,0,0,0,0,1,0,n=e.d[0].px||0,r=e.d[1].px||0,0,1];case"translatex":return[1,0,0,0,0,1,0,0,0,0,1,0,n=e.d[0].px||0,0,0,1];case"translatey":return[1,0,0,0,0,1,0,0,0,0,1,0,0,r=e.d[0].px||0,0,1];case"translatez":return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,o=e.d[0].px||0,1];case"translate3d":return[1,0,0,0,0,1,0,0,0,0,1,0,n=e.d[0].px||0,r=e.d[1].px||0,o=e.d[2].px||0,1];case"perspective":return[1,0,0,0,0,1,0,0,0,0,1,e.d[0].px?-1/e.d[0].px:0,0,0,0,1];case"matrix":return[e.d[0],e.d[1],0,0,e.d[2],e.d[3],0,0,0,0,1,0,e.d[4],e.d[5],0,1];case"matrix3d":return e.d}}function a(e){return 0===e.length?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:e.map(o).reduce(r)}var s=function(){function e(e){return e[0][0]*e[1][1]*e[2][2]+e[1][0]*e[2][1]*e[0][2]+e[2][0]*e[0][1]*e[1][2]-e[0][2]*e[1][1]*e[2][0]-e[1][2]*e[2][1]*e[0][0]-e[2][2]*e[0][1]*e[1][0]}function t(e){var t=r(e);return[e[0]/t,e[1]/t,e[2]/t]}function r(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2])}function i(e,t,n,r){return[n*e[0]+r*t[0],n*e[1]+r*t[1],n*e[2]+r*t[2]]}return function(o){var a=[o.slice(0,4),o.slice(4,8),o.slice(8,12),o.slice(12,16)];if(1!==a[3][3])return null;for(var s=[],u=0;u<4;u++)s.push(a[u].slice());for(u=0;u<3;u++)s[u][3]=0;if(0===e(s))return null;var l,c=[];a[0][3]||a[1][3]||a[2][3]?(c.push(a[0][3]),c.push(a[1][3]),c.push(a[2][3]),c.push(a[3][3]),l=function(e,t){for(var n=[],r=0;r<4;r++){for(var i=0,o=0;o<4;o++)i+=e[o]*t[o][r];n.push(i)}return n}(c,function(e){return[[e[0][0],e[1][0],e[2][0],e[3][0]],[e[0][1],e[1][1],e[2][1],e[3][1]],[e[0][2],e[1][2],e[2][2],e[3][2]],[e[0][3],e[1][3],e[2][3],e[3][3]]]}(function(t){for(var n=1/e(t),r=t[0][0],i=t[0][1],o=t[0][2],a=t[1][0],s=t[1][1],u=t[1][2],l=t[2][0],c=t[2][1],f=t[2][2],d=[[(s*f-u*c)*n,(o*c-i*f)*n,(i*u-o*s)*n,0],[(u*l-a*f)*n,(r*f-o*l)*n,(o*a-r*u)*n,0],[(a*c-s*l)*n,(l*i-r*c)*n,(r*s-i*a)*n,0]],h=[],p=0;p<3;p++){for(var m=0,g=0;g<3;g++)m+=t[3][g]*d[g][p];h.push(m)}return h.push(1),d.push(h),d}(s)))):l=[0,0,0,1];var f=a[3].slice(0,3),d=[];d.push(a[0].slice(0,3));var h=[];h.push(r(d[0])),d[0]=t(d[0]);var p=[];d.push(a[1].slice(0,3)),p.push(n(d[0],d[1])),d[1]=i(d[1],d[0],1,-p[0]),h.push(r(d[1])),d[1]=t(d[1]),p[0]/=h[1],d.push(a[2].slice(0,3)),p.push(n(d[0],d[2])),d[2]=i(d[2],d[0],1,-p[1]),p.push(n(d[1],d[2])),d[2]=i(d[2],d[1],1,-p[2]),h.push(r(d[2])),d[2]=t(d[2]),p[1]/=h[2],p[2]/=h[2];var m=function(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}(d[1],d[2]);if(n(d[0],m)<0)for(u=0;u<3;u++)h[u]*=-1,d[u][0]*=-1,d[u][1]*=-1,d[u][2]*=-1;var g,v,b=d[0][0]+d[1][1]+d[2][2]+1;return b>1e-4?(g=.5/Math.sqrt(b),v=[(d[2][1]-d[1][2])*g,(d[0][2]-d[2][0])*g,(d[1][0]-d[0][1])*g,.25/g]):d[0][0]>d[1][1]&&d[0][0]>d[2][2]?v=[.25*(g=2*Math.sqrt(1+d[0][0]-d[1][1]-d[2][2])),(d[0][1]+d[1][0])/g,(d[0][2]+d[2][0])/g,(d[2][1]-d[1][2])/g]:d[1][1]>d[2][2]?(g=2*Math.sqrt(1+d[1][1]-d[0][0]-d[2][2]),v=[(d[0][1]+d[1][0])/g,.25*g,(d[1][2]+d[2][1])/g,(d[0][2]-d[2][0])/g]):(g=2*Math.sqrt(1+d[2][2]-d[0][0]-d[1][1]),v=[(d[0][2]+d[2][0])/g,(d[1][2]+d[2][1])/g,.25*g,(d[1][0]-d[0][1])/g]),[f,h,p,v,l]}}();e.dot=n,e.makeMatrixDecomposition=function(e){return[s(a(e))]},e.transformListToMatrix=a}(r),function(e){function t(e,t){var n=e.exec(t);if(n)return[n=e.ignoreCase?n[0].toLowerCase():n[0],t.substr(n.length)]}function n(e,t){var n=e(t=t.replace(/^\s*/,""));if(n)return[n[0],n[1].replace(/^\s*/,"")]}function r(e,t,n,r,i){for(var o=[],a=[],s=[],u=function(e,t){for(var n=e,r=t;n&&r;)n>r?n%=r:r%=n;return e*t/(n+r)}(r.length,i.length),l=0;l<u;l++){var c=t(r[l%r.length],i[l%i.length]);if(!c)return;o.push(c[0]),a.push(c[1]),s.push(c[2])}return[o,a,function(t){var r=t.map((function(e,t){return s[t](e)})).join(n);return e?e(r):r}]}e.consumeToken=t,e.consumeTrimmed=n,e.consumeRepeated=function(e,r,i){e=n.bind(null,e);for(var o=[];;){var a=e(i);if(!a)return[o,i];if(o.push(a[0]),!(a=t(r,i=a[1]))||""==a[1])return[o,i];i=a[1]}},e.consumeParenthesised=function(e,t){for(var n=0,r=0;r<t.length&&(!/\s|,/.test(t[r])||0!=n);r++)if("("==t[r])n++;else if(")"==t[r]&&(0==--n&&r++,n<=0))break;var i=e(t.substr(0,r));return null==i?void 0:[i,t.substr(r)]},e.ignore=function(e){return function(t){var n=e(t);return n&&(n[0]=void 0),n}},e.optional=function(e,t){return function(n){return e(n)||[t,n]}},e.consumeList=function(t,n){for(var r=[],i=0;i<t.length;i++){var o=e.consumeTrimmed(t[i],n);if(!o||""==o[0])return;void 0!==o[0]&&r.push(o[0]),n=o[1]}if(""==n)return r},e.mergeNestedRepeated=r.bind(null,null),e.mergeWrappedNestedRepeated=r,e.mergeList=function(e,t,n){for(var r=[],i=[],o=[],a=0,s=0;s<n.length;s++)if("function"==typeof n[s]){var u=n[s](e[a],t[a++]);r.push(u[0]),i.push(u[1]),o.push(u[2])}else!function(e){r.push(!1),i.push(!1),o.push((function(){return n[e]}))}(s);return[r,i,function(e){for(var t="",n=0;n<e.length;n++)t+=o[n](e[n]);return t}]}}(r),function(e){function t(t){var n={inset:!1,lengths:[],color:null},r=e.consumeRepeated((function(t){var r=e.consumeToken(/^inset/i,t);return r?(n.inset=!0,r):(r=e.consumeLengthOrPercent(t))?(n.lengths.push(r[0]),r):(r=e.consumeColor(t))?(n.color=r[0],r):void 0}),/^/,t);if(r&&r[0].length)return[n,r[1]]}var n=function(t,n,r,i){function o(e){return{inset:e,color:[0,0,0,0],lengths:[{px:0},{px:0},{px:0},{px:0}]}}for(var a=[],s=[],u=0;u<r.length||u<i.length;u++){var l=r[u]||o(i[u].inset),c=i[u]||o(r[u].inset);a.push(l),s.push(c)}return e.mergeNestedRepeated(t,n,a,s)}.bind(null,(function(t,n){for(;t.lengths.length<Math.max(t.lengths.length,n.lengths.length);)t.lengths.push({px:0});for(;n.lengths.length<Math.max(t.lengths.length,n.lengths.length);)n.lengths.push({px:0});if(t.inset==n.inset&&!!t.color==!!n.color){for(var r,i=[],o=[[],0],a=[[],0],s=0;s<t.lengths.length;s++){var u=e.mergeDimensions(t.lengths[s],n.lengths[s],2==s);o[0].push(u[0]),a[0].push(u[1]),i.push(u[2])}if(t.color&&n.color){var l=e.mergeColors(t.color,n.color);o[1]=l[0],a[1]=l[1],r=l[2]}return[o,a,function(e){for(var n=t.inset?"inset ":" ",o=0;o<i.length;o++)n+=i[o](e[0][o])+" ";return r&&(n+=r(e[1])),n}]}}),", ");e.addPropertiesHandler((function(n){var r=e.consumeRepeated(t,/^,/,n);if(r&&""==r[1])return r[0]}),n,["box-shadow","text-shadow"])}(r),function(e,t){function n(e){return e.toFixed(3).replace(/0+$/,"").replace(/\.$/,"")}function r(e,t,n){return Math.min(t,Math.max(e,n))}function i(e){if(/^\s*[-+]?(\d*\.)?\d+\s*$/.test(e))return Number(e)}function o(e,t){return function(i,o){return[i,o,function(i){return n(r(e,t,i))}]}}function a(e){var t=e.trim().split(/\s*[\s,]\s*/);if(0!==t.length){for(var n=[],r=0;r<t.length;r++){var o=i(t[r]);if(void 0===o)return;n.push(o)}return n}}e.clamp=r,e.addPropertiesHandler(a,(function(e,t){if(e.length==t.length)return[e,t,function(e){return e.map(n).join(" ")}]}),["stroke-dasharray"]),e.addPropertiesHandler(i,o(0,1/0),["border-image-width","line-height"]),e.addPropertiesHandler(i,o(0,1),["opacity","shape-image-threshold"]),e.addPropertiesHandler(i,(function(e,t){if(0!=e)return o(0,1/0)(e,t)}),["flex-grow","flex-shrink"]),e.addPropertiesHandler(i,(function(e,t){return[e,t,function(e){return Math.round(r(1,1/0,e))}]}),["orphans","widows"]),e.addPropertiesHandler(i,(function(e,t){return[e,t,Math.round]}),["z-index"]),e.parseNumber=i,e.parseNumberList=a,e.mergeNumbers=function(e,t){return[e,t,n]},e.numberToString=n}(r),function(e,t){e.addPropertiesHandler(String,(function(e,t){if("visible"==e||"visible"==t)return[0,1,function(n){return n<=0?e:n>=1?t:"visible"}]}),["visibility"])}(r),function(e,t){function n(e){e=e.trim(),o.fillStyle="#000",o.fillStyle=e;var t=o.fillStyle;if(o.fillStyle="#fff",o.fillStyle=e,t==o.fillStyle){o.fillRect(0,0,1,1);var n=o.getImageData(0,0,1,1).data;o.clearRect(0,0,1,1);var r=n[3]/255;return[n[0]*r,n[1]*r,n[2]*r,r]}}function r(t,n){return[t,n,function(t){function n(e){return Math.max(0,Math.min(255,e))}if(t[3])for(var r=0;r<3;r++)t[r]=Math.round(n(t[r]/t[3]));return t[3]=e.numberToString(e.clamp(0,1,t[3])),"rgba("+t.join(",")+")"}]}var i=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");i.width=i.height=1;var o=i.getContext("2d");e.addPropertiesHandler(n,r,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","fill","flood-color","lighting-color","outline-color","stop-color","stroke","text-decoration-color"]),e.consumeColor=e.consumeParenthesised.bind(null,n),e.mergeColors=r}(r),function(e,t){function n(e){function t(){var t=a.exec(e);o=t?t[0]:void 0}function n(){if("("!==o)return function(){var e=Number(o);return t(),e}();t();var e=i();return")"!==o?NaN:(t(),e)}function r(){for(var e=n();"*"===o||"/"===o;){var r=o;t();var i=n();"*"===r?e*=i:e/=i}return e}function i(){for(var e=r();"+"===o||"-"===o;){var n=o;t();var i=r();"+"===n?e+=i:e-=i}return e}var o,a=/([\+\-\w\.]+|[\(\)\*\/])/g;return t(),i()}function r(e,t){if("0"==(t=t.trim().toLowerCase())&&"px".search(e)>=0)return{px:0};if(/^[^(]*$|^calc/.test(t)){t=t.replace(/calc\(/g,"(");var r={};t=t.replace(e,(function(e){return r[e]=null,"U"+e}));for(var i="U("+e.source+")",o=t.replace(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+i,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),a=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],s=0;s<a.length;)a[s].test(o)?(o=o.replace(a[s],"$1"),s=0):s++;if("D"==o){for(var u in r){var l=n(t.replace(new RegExp("U"+u,"g"),"").replace(new RegExp(i,"g"),"*0"));if(!isFinite(l))return;r[u]=l}return r}}}function i(e,t){return o(e,t,!0)}function o(t,n,r){var i,o=[];for(i in t)o.push(i);for(i in n)o.indexOf(i)<0&&o.push(i);return t=o.map((function(e){return t[e]||0})),n=o.map((function(e){return n[e]||0})),[t,n,function(t){var n=t.map((function(n,i){return 1==t.length&&r&&(n=Math.max(n,0)),e.numberToString(n)+o[i]})).join(" + ");return t.length>1?"calc("+n+")":n}]}var a="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",s=r.bind(null,new RegExp(a,"g")),u=r.bind(null,new RegExp(a+"|%","g")),l=r.bind(null,/deg|rad|grad|turn/g);e.parseLength=s,e.parseLengthOrPercent=u,e.consumeLengthOrPercent=e.consumeParenthesised.bind(null,u),e.parseAngle=l,e.mergeDimensions=o;var c=e.consumeParenthesised.bind(null,s),f=e.consumeRepeated.bind(void 0,c,/^/),d=e.consumeRepeated.bind(void 0,f,/^,/);e.consumeSizePairList=d;var h=e.mergeNestedRepeated.bind(void 0,i," "),p=e.mergeNestedRepeated.bind(void 0,h,",");e.mergeNonNegativeSizePair=h,e.addPropertiesHandler((function(e){var t=d(e);if(t&&""==t[1])return t[0]}),p,["background-size"]),e.addPropertiesHandler(u,i,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),e.addPropertiesHandler(u,o,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","stroke-dashoffset","text-indent","top","vertical-align","word-spacing"])}(r),function(e,t){function n(t){return e.consumeLengthOrPercent(t)||e.consumeToken(/^auto/,t)}function r(t){var r=e.consumeList([e.ignore(e.consumeToken.bind(null,/^rect/)),e.ignore(e.consumeToken.bind(null,/^\(/)),e.consumeRepeated.bind(null,n,/^,/),e.ignore(e.consumeToken.bind(null,/^\)/))],t);if(r&&4==r[0].length)return r[0]}var i=e.mergeWrappedNestedRepeated.bind(null,(function(e){return"rect("+e+")"}),(function(t,n){return"auto"==t||"auto"==n?[!0,!1,function(r){var i=r?t:n;if("auto"==i)return"auto";var o=e.mergeDimensions(i,i);return o[2](o[0])}]:e.mergeDimensions(t,n)}),", ");e.parseBox=r,e.mergeBoxes=i,e.addPropertiesHandler(r,i,["clip"])}(r),function(e,t){function n(e){return function(t){var n=0;return e.map((function(e){return e===l?t[n++]:e}))}}function r(e){return e}function i(t){if("none"==(t=t.toLowerCase().trim()))return[];for(var n,r=/\s*(\w+)\(([^)]*)\)/g,i=[],o=0;n=r.exec(t);){if(n.index!=o)return;o=n.index+n[0].length;var a=n[1],s=d[a];if(!s)return;var u=n[2].split(","),l=s[0];if(l.length<u.length)return;for(var h=[],p=0;p<l.length;p++){var m,g=u[p],v=l[p];if(void 0===(m=g?{A:function(t){return"0"==t.trim()?f:e.parseAngle(t)},N:e.parseNumber,T:e.parseLengthOrPercent,L:e.parseLength}[v.toUpperCase()](g):{a:f,n:h[0],t:c}[v]))return;h.push(m)}if(i.push({t:a,d:h}),r.lastIndex==t.length)return i}}function o(e){return e.toFixed(6).replace(".000000","")}function a(t,n){if(t.decompositionPair!==n){t.decompositionPair=n;var r=e.makeMatrixDecomposition(t)}if(n.decompositionPair!==t){n.decompositionPair=t;var i=e.makeMatrixDecomposition(n)}return null==r[0]||null==i[0]?[[!1],[!0],function(e){return e?n[0].d:t[0].d}]:(r[0].push(0),i[0].push(1),[r,i,function(t){var n=e.quat(r[0][3],i[0][3],t[5]);return e.composeMatrix(t[0],t[1],t[2],n,t[4]).map(o).join(",")}])}function s(e){return e.replace(/[xy]/,"")}function u(e){return e.replace(/(x|y|z|3d)?$/,"3d")}var l=null,c={px:0},f={deg:0},d={matrix:["NNNNNN",[l,l,0,0,l,l,0,0,0,0,1,0,l,l,0,1],r],matrix3d:["NNNNNNNNNNNNNNNN",r],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",n([l,l,1]),r],scalex:["N",n([l,1,1]),n([l,1])],scaley:["N",n([1,l,1]),n([1,l])],scalez:["N",n([1,1,l])],scale3d:["NNN",r],skew:["Aa",null,r],skewx:["A",null,n([l,f])],skewy:["A",null,n([f,l])],translate:["Tt",n([l,l,c]),r],translatex:["T",n([l,c,c]),n([l,c])],translatey:["T",n([c,l,c]),n([c,l])],translatez:["L",n([c,c,l])],translate3d:["TTL",r]};e.addPropertiesHandler(i,(function(t,n){var r=e.makeMatrixDecomposition&&!0,i=!1;if(!t.length||!n.length){t.length||(i=!0,t=n,n=[]);for(var o=0;o<t.length;o++){var l=t[o].t,c=t[o].d,f="scale"==l.substr(0,5)?1:0;n.push({t:l,d:c.map((function(e){if("number"==typeof e)return f;var t={};for(var n in e)t[n]=f;return t}))})}}var h=function(e,t){return"perspective"==e&&"perspective"==t||("matrix"==e||"matrix3d"==e)&&("matrix"==t||"matrix3d"==t)},p=[],m=[],g=[];if(t.length!=n.length){if(!r)return;p=[(x=a(t,n))[0]],m=[x[1]],g=[["matrix",[x[2]]]]}else for(o=0;o<t.length;o++){var v=t[o].t,b=n[o].t,_=t[o].d,y=n[o].d,T=d[v],E=d[b];if(h(v,b)){if(!r)return;var x=a([t[o]],[n[o]]);p.push(x[0]),m.push(x[1]),g.push(["matrix",[x[2]]])}else{if(v==b)l=v;else if(T[2]&&E[2]&&s(v)==s(b))l=s(v),_=T[2](_),y=E[2](y);else{if(!T[1]||!E[1]||u(v)!=u(b)){if(!r)return;p=[(x=a(t,n))[0]],m=[x[1]],g=[["matrix",[x[2]]]];break}l=u(v),_=T[1](_),y=E[1](y)}for(var w=[],A=[],S=[],k=0;k<_.length;k++)x=("number"==typeof _[k]?e.mergeNumbers:e.mergeDimensions)(_[k],y[k]),w[k]=x[0],A[k]=x[1],S.push(x[2]);p.push(w),m.push(A),g.push([l,S])}}if(i){var N=p;p=m,m=N}return[p,m,function(e){return e.map((function(e,t){var n=e.map((function(e,n){return g[t][1][n](e)})).join(",");return"matrix"==g[t][0]&&16==n.split(",").length&&(g[t][0]="matrix3d"),g[t][0]+"("+n+")"})).join(" ")}]}),["transform"]),e.transformToSvgMatrix=function(t){var n=e.transformListToMatrix(i(t));return"matrix("+o(n[0])+" "+o(n[1])+" "+o(n[4])+" "+o(n[5])+" "+o(n[12])+" "+o(n[13])+")"}}(r),function(e){function t(t){return t=100*Math.round(t/100),400===(t=e.clamp(100,900,t))?"normal":700===t?"bold":String(t)}e.addPropertiesHandler((function(e){var t=Number(e);if(!(isNaN(t)||t<100||t>900||t%100!=0))return t}),(function(e,n){return[e,n,t]}),["font-weight"])}(r),function(e){function t(e){var t={};for(var n in e)t[n]=-e[n];return t}function n(t){return e.consumeToken(/^(left|center|right|top|bottom)\b/i,t)||e.consumeLengthOrPercent(t)}function r(t,r){var i=e.consumeRepeated(n,/^/,r);if(i&&""==i[1]){var a=i[0];if(a[0]=a[0]||"center",a[1]=a[1]||"center",3==t&&(a[2]=a[2]||{px:0}),a.length==t){if(/top|bottom/.test(a[0])||/left|right/.test(a[1])){var s=a[0];a[0]=a[1],a[1]=s}if(/left|right|center|Object/.test(a[0])&&/top|bottom|center|Object/.test(a[1]))return a.map((function(e){return"object"==typeof e?e:o[e]}))}}}function i(r){var i=e.consumeRepeated(n,/^/,r);if(i){for(var a=i[0],s=[{"%":50},{"%":50}],u=0,l=!1,c=0;c<a.length;c++){var f=a[c];"string"==typeof f?(l=/bottom|right/.test(f),s[u={left:0,right:0,center:u,top:1,bottom:1}[f]]=o[f],"center"==f&&u++):(l&&((f=t(f))["%"]=(f["%"]||0)+100),s[u]=f,u++,l=!1)}return[s,i[1]]}}var o={left:{"%":0},center:{"%":50},right:{"%":100},top:{"%":0},bottom:{"%":100}},a=e.mergeNestedRepeated.bind(null,e.mergeDimensions," ");e.addPropertiesHandler(r.bind(null,3),a,["transform-origin"]),e.addPropertiesHandler(r.bind(null,2),a,["perspective-origin"]),e.consumePosition=i,e.mergeOffsetList=a;var s=e.mergeNestedRepeated.bind(null,a,", ");e.addPropertiesHandler((function(t){var n=e.consumeRepeated(i,/^,/,t);if(n&&""==n[1])return n[0]}),s,["background-position","object-position"])}(r),function(e){var t=e.consumeParenthesised.bind(null,e.parseLengthOrPercent),n=e.consumeRepeated.bind(void 0,t,/^/),r=e.mergeNestedRepeated.bind(void 0,e.mergeDimensions," "),i=e.mergeNestedRepeated.bind(void 0,r,",");e.addPropertiesHandler((function(r){var i=e.consumeToken(/^circle/,r);if(i&&i[0])return["circle"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),t,e.ignore(e.consumeToken.bind(void 0,/^at/)),e.consumePosition,e.ignore(e.consumeToken.bind(void 0,/^\)/))],i[1]));var o=e.consumeToken(/^ellipse/,r);if(o&&o[0])return["ellipse"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),n,e.ignore(e.consumeToken.bind(void 0,/^at/)),e.consumePosition,e.ignore(e.consumeToken.bind(void 0,/^\)/))],o[1]));var a=e.consumeToken(/^polygon/,r);return a&&a[0]?["polygon"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),e.optional(e.consumeToken.bind(void 0,/^nonzero\s*,|^evenodd\s*,/),"nonzero,"),e.consumeSizePairList,e.ignore(e.consumeToken.bind(void 0,/^\)/))],a[1])):void 0}),(function(t,n){if(t[0]===n[0])return"circle"==t[0]?e.mergeList(t.slice(1),n.slice(1),["circle(",e.mergeDimensions," at ",e.mergeOffsetList,")"]):"ellipse"==t[0]?e.mergeList(t.slice(1),n.slice(1),["ellipse(",e.mergeNonNegativeSizePair," at ",e.mergeOffsetList,")"]):"polygon"==t[0]&&t[1]==n[1]?e.mergeList(t.slice(2),n.slice(2),["polygon(",t[1],i,")"]):void 0}),["shape-outside"])}(r),function(e,t){function n(e,t){t.concat([e]).forEach((function(t){t in document.documentElement.style&&(r[e]=t),i[t]=e}))}var r={},i={};n("transform",["webkitTransform","msTransform"]),n("transformOrigin",["webkitTransformOrigin"]),n("perspective",["webkitPerspective"]),n("perspectiveOrigin",["webkitPerspectiveOrigin"]),e.propertyName=function(e){return r[e]||e},e.unprefixedPropertyName=function(e){return i[e]||e}}(r)}(),function(){if(void 0===document.createElement("div").animate([]).oncancel){if(window.performance&&performance.now)var e=function(){return performance.now()};else e=function(){return Date.now()};var t=function(e,t,n){this.target=e,this.currentTime=t,this.timelineTime=n,this.type="cancel",this.bubbles=!1,this.cancelable=!1,this.currentTarget=e,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()},n=window.Element.prototype.animate;window.Element.prototype.animate=function(r,i){var o=n.call(this,r,i);o._cancelHandlers=[],o.oncancel=null;var a=o.cancel;o.cancel=function(){a.call(this);var n=new t(this,null,e()),r=this._cancelHandlers.concat(this.oncancel?[this.oncancel]:[]);setTimeout((function(){r.forEach((function(e){e.call(n.target,n)}))}),0)};var s=o.addEventListener;o.addEventListener=function(e,t){"function"==typeof t&&"cancel"==e?this._cancelHandlers.push(t):s.call(this,e,t)};var u=o.removeEventListener;return o.removeEventListener=function(e,t){if("cancel"==e){var n=this._cancelHandlers.indexOf(t);n>=0&&this._cancelHandlers.splice(n,1)}else u.call(this,e,t)},o}}}(),function(e){var t=document.documentElement,n=null,r=!1;try{var i="0"==getComputedStyle(t).getPropertyValue("opacity")?"1":"0";(n=t.animate({opacity:[i,i]},{duration:1})).currentTime=0,r=getComputedStyle(t).getPropertyValue("opacity")==i}catch(e){}finally{n&&n.cancel()}if(!r){var o=window.Element.prototype.animate;window.Element.prototype.animate=function(t,n){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&t[Symbol.iterator]&&(t=Array.from(t)),Array.isArray(t)||null===t||(t=e.convertToArrayForm(t)),o.call(this,t,n)}}}(n);var n,r;var i,o,a,s;!function(e){e.LIBRARY_LOG_TAG="[FLUID]",e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(i||(i={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(o||(o={})),function(e){e.beforehide="beforehide",e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(a||(a={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(s||(s={})),window.NJStore=window.NJStore||[];const u=(()=>{const e=window.NJStore;return{set(t,n,r){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=r},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const r=t.key;r.key===n&&(delete e[r.id],delete t.key)}}})(),l={setData(e,t,n){u.set(e,t,n)},getData:(e,t)=>u.get(e,t),removeData(e,t){u.delete(e,t)}},c=l;class f{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r=[],i=document.querySelectorAll(n);for(let n=0;n<i.length;n++){const o=i[n];if(!o.key||o.key.key!==e.DATA_KEY){const a=new e(i[n],t);o.key||c.setData(i[n],e.DATA_KEY,a),r.push(a)}}return r}}class d{static getUidEvent(e,t){return t&&`${t}::${d.uidEvent++}`||e.uidEvent||d.uidEvent++}static getEvent(e){const t=d.getUidEvent(e);return e.uidEvent=t,d.EVENTREGISTRY[t]=d.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&d.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=r=>(d.fixEvent(r,e),n.oneOff&&d.off(e,r.type,t),t.apply(e,[r]));return n}static njDelegationHandler(e,t,n){const r=i=>{const o=e.querySelectorAll(t);for(let t=i.target;t&&t!==this;t=t.parentNode)for(let a=o.length;a>=0;a--)if(o[a]===t)return d.fixEvent(i,t),r.oneOff&&d.off(e,i.type,n),n.apply(t,[i]);return null};return r}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;const i=e[r];if(i.originalHandler===t&&i.delegationSelector===n)return e[r]}return null}static normalizeParams(e,t,n){const r="string"==typeof t,i=r?n:t;let a=e.replace(d.STRIPNAME_REGEX,"");const u=o[a];u&&(a=u);return"string"==typeof s[a]||(a=e),[r,i,a]}static addHandler(e,t,n,r,i){if("string"!=typeof t||null==e)return;n||(n=r,r=null);const o=d.getEvent(e);for(const a of t.split(" ")){const[t,s,u]=d.normalizeParams(a,n,r),l=o[u]||(o[u]={}),c=d.findHandler(l,s,t?n:null);if(c)return void(c.oneOff=c.oneOff&&i);const f=d.getUidEvent(s,a.replace(d.NAMESPACE_REGEX,"")),h=t?d.njDelegationHandler(e,n,r):d.njHandler(e,n);h.delegationSelector=t?n:null,h.originalHandler=s,h.oneOff=i,h.uidEvent=f,l[f]=h,e.addEventListener(u,h,t)}}static removeHandler(e,t,n,r,i){const o=d.findHandler(t[n],r,i);null!==o&&(e.removeEventListener(n,o,Boolean(i)),delete t[n][o.uidEvent])}static removeNamespacedHandlers(e,t,n,r){const i=t[n]||{};for(const o in i)if(Object.prototype.hasOwnProperty.call(i,o)&&o.indexOf(r)>-1){const r=i[o];d.removeHandler(e,t,n,r.originalHandler,r.delegationSelector)}}static on(e,t,n,r){d.addHandler(e,t,n,r,!1)}static one(e,t,n,r){d.addHandler(e,t,n,r,!0)}static off(e,t,n,r){if("string"!=typeof t||null==e)return;const[i,o,a]=d.normalizeParams(t,n,r),s=a!==t,u=d.getEvent(e);if(void 0!==o){if(!u||!u[a])return;return void d.removeHandler(e,u,a,o,i?n:null)}if("."===t.charAt(0))for(const n in u)Object.prototype.hasOwnProperty.call(u,n)&&d.removeNamespacedHandlers(e,u,n,t.substr(1));const l=u[a]||{};for(const n in l){if(!Object.prototype.hasOwnProperty.call(l,n))continue;const r=n.replace(d.STRIPUID_REGEX,"");if(!s||t.indexOf(r)>-1){const t=l[n];d.removeHandler(e,u,a,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const r=t.replace(d.STRIPNAME_REGEX,""),i="string"==typeof s[r],o=!0;let a=null;return i?(a=document.createEvent("HTMLEvents"),a.initEvent(r,o,!0)):a=new window.CustomEvent(t,{bubbles:o,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(a,e,{get:()=>n[e]})})),e.dispatchEvent(a),a}}d.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,d.STRIPNAME_REGEX=/\..*/,d.KEYEVENT_REGEX=/^key/,d.STRIPUID_REGEX=/::\d+$/,d.EVENTREGISTRY={},d.uidEvent=1;const h=d;const p={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let n=0;n<e.attributes.length;n++){const r=e.attributes[n];if(-1!==r.nodeName.indexOf("data-")){const e=r.nodeName.substring(5).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=r.nodeValue}}return Object.keys(t).forEach((e=>{var n;t[e]="true"===(n=t[e])||"false"!==n&&("null"===n?null:n===Number(n).toString()?Number(n):""===n?null:n)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,n){for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n&&"[object Object]"===Object.prototype.toString.call(t[r])?e[r]=p.extend(e[r],t[r]):e[r]=t[r]);return e},extend(){let e={},t=!1,n=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],n++);n<arguments.length;n++)e=p.mergeExtended(e,n<0||arguments.length<=n?void 0:arguments[n],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},m=p;class g extends f{constructor(e,t){super(g,e),this.buttons=this.element.querySelectorAll(g.SELECTOR.button),this.items=this.element.querySelectorAll(g.SELECTOR.item),this.button=this.buttons[0],this.setOptions(t),this.element=e,this.setDefaultAriaAttribute(),this.setListeners(),c.setData(e,g.DATA_KEY,this)}open(){let e;const t=this.options.menuPosition,n=g.DURATION_PER_ITEM*this.items.length;m.toggleClass(this.button,g.OPEN_CLASS);const r=this.button.classList.contains(g.OPEN_CLASS);this.button.setAttribute("aria-expanded",r.toString());const i="top"===t||"bottom"===t?"translateY":"translateX",o="top"===t||"left"===t?"-":"";for(e=0;e<this.items.length;e++){const t=[{transform:`${i}(0)`,opacity:0},{transform:`${i}(${o}${(e+1)*g.ITEMS_HEIGHT+1}rem)`,opacity:1}],a=r?t:t.reverse(),s=n-g.DURATION_PER_ITEM*e,u=g.STAGGER_DELAY*e;this.items[e].animate(a,{duration:s,delay:u,fill:"forwards"})}}setListeners(){const e=g.EVENT.click;h.on(this.element,e,this.options.selector,(()=>this.open()))}setOptions(e){const t=this.element.getAttribute("data-placement");this.options={menuPosition:t},this.options=m.extend(this.options,e),["top","right","bottom","left"].indexOf(this.options.menuPosition)<0&&(this.options.menuPosition="top")}getOptions(){return this.options}setDefaultAriaAttribute(){this.button.setAttribute("aria-expanded","false")}dispose(){c.removeData(this.element,g.DATA_KEY),this.element=null}static getInstance(e){return c.getData(e,g.DATA_KEY)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,g.SELECTOR.default)}}g.NAME=`${i.KEY_PREFIX}-fab-menu`,g.DATA_KEY=`${i.KEY_PREFIX}.fab`,g.EVENT_KEY=`.${g.DATA_KEY}`,g.SELECTOR={default:`.${g.NAME}`,button:`.${i.KEY_PREFIX}-fab`,item:`.${i.KEY_PREFIX}-fab__item`},g.EVENT={click:`${a.click}${g.EVENT_KEY}`,mouseenter:`${a.mouseenter}${g.EVENT_KEY}`,mouseleave:`${a.mouseleave}${g.EVENT_KEY}`},g.DURATION_PER_ITEM=35,g.ITEMS_HEIGHT=3.8,g.OPEN_CLASS="active",g.STAGGER_DELAY=70;const v=g;return t=t.default})()));
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Form",[],t):"object"==typeof exports?exports.Form=t():e.Form=t()}(window,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>N}),window.NJStore=window.NJStore||[];const n=(()=>{const e=window.NJStore;return{set(t,n,o){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=o},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const o=t.key;o.key===n&&(delete e[o.id],delete t.key)}}})(),o={setData(e,t,o){n.set(e,t,o)},getData:(e,t)=>n.get(e,t),removeData(e,t){n.delete(e,t)}},s=o;class r{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o=[],r=document.querySelectorAll(n);for(let n=0;n<r.length;n++){const i=r[n];if(!i.key||i.key.key!==e.DATA_KEY){const l=new e(r[n],t);i.key||s.setData(r[n],e.DATA_KEY,l),o.push(l)}}return o}}var i,l,a,c;!function(e){e.LIBRARY_LOG_TAG="[FLUID]",e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(i||(i={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(l||(l={})),function(e){e.beforehide="beforehide",e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(a||(a={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(c||(c={}));class u extends r{constructor(e){if(super(u,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),this.options={autocomplete:!0,limit:!1},this.onUserSelectItem=()=>{},this.onInputChange=()=>{this.list=this.dataList},this.onKeyDown=e=>{const t=this.element.querySelector(u.SELECTOR.list),n=this.element.querySelectorAll(`${u.SELECTOR.listGroup}> *`),o=parseInt(t.dataset.index,10),s=this.element.querySelector(u.SELECTOR.input),r=()=>{t.style.display="block",s.setAttribute("aria-expanded","true"),this.element.setAttribute("aria-expanded","true")},i=()=>{delete t.dataset.index,t.style.setProperty("display",""),s.setAttribute("aria-expanded","false"),this.element.setAttribute("aria-expanded","false")};switch(e.key){case"ArrowUp":e.preventDefault(),r(),t.dataset.index&&(t.dataset.index=(o-1<0?n.length-1:o-1).toString(),n[t.dataset.index].focus());break;case"ArrowDown":e.preventDefault(),r(),t.dataset.index?t.dataset.index=(o<n.length-1?o+1:0).toString():t.dataset.index="0",n[t.dataset.index].focus();break;case"Escape":i(),s.focus();break;case"Enter":i()}},this.onSelectListItem=e=>{const{name:t,value:n}=e.target.dataset,o=this.element.querySelector(u.SELECTOR.input);t&&(o.value=t),n&&(this.root.dataset.value=n,o.dataset.value=n),this.onUserSelectItem({name:t,value:n})},e.querySelector(u.SELECTOR.listGroup)){const t=e.querySelector(`${u.SELECTOR.listGroup}`).innerHTML;this.listFragment=document.createRange().createContextualFragment(t),this.root=e.parentElement.dataset.list||e.parentElement.dataset.options?e.parentElement:e,this.root.dataset.list&&(this.dataList=JSON.parse(this.root.dataset.list),this.list=this.dataList),this.root.dataset.options&&(this.options=Object.assign(Object.assign({},this.options),JSON.parse(this.root.dataset.options))),this.root[u.NAME.replace(/-/g,"_")]=this,e.querySelector(u.SELECTOR.list).addEventListener("click",this.onSelectListItem)}e.querySelector(u.SELECTOR.input).addEventListener("input",this.onInputChange),e.addEventListener("keydown",this.onKeyDown),s.setData(e,u.DATA_KEY,this)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,u.SELECTOR.default)}dispose(){this.element&&this.element.querySelector(u.SELECTOR.list)&&this.element.querySelector(u.SELECTOR.list).removeEventListener("click",this.onSelectListItem),this.element&&this.element.querySelector(u.SELECTOR.input)&&this.element.querySelector(u.SELECTOR.input).removeEventListener("input",this.onInputChange),this.element.removeEventListener("keydown",this.onKeyDown),s.removeData(this.element,u.DATA_KEY),this.dataList=null,this.currentList=null,this.element=null}set data(e){this.dataList=e}get data(){return this.dataList}get list(){return this.currentList}set list(e){const t=this.element.querySelector(u.SELECTOR.input).value;if(e&&e.length){const n=document.createDocumentFragment();this.currentList=[],e.forEach((e=>{let{name:o,value:s}=e;if((!this.options.autocomplete||u.compareText(o,t))&&(!this.options.limit||"number"==typeof this.options.limit&&n.children.length<this.options.limit)){const e=this.listFragment.firstElementChild;e.setAttribute("data-value",s),e.setAttribute("data-name",o),e.textContent=o,n.appendChild(this.listFragment.cloneNode(!0)),this.currentList.push({name:o,value:s})}})),this.element.querySelector(`${u.SELECTOR.listGroup}`).textContent="",this.element.querySelector(u.SELECTOR.listGroup).appendChild(n)}}static compareText(e,t){e=e.normalize("NFD").replace(/[\u0300-\u036f]/g,""),t=(t=t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")).replace(/\(|\)|\\/gi,"");const n=new RegExp(t,"gi");return-1!==e.search(n)}static getInstance(e){return s.getData(e,u.DATA_KEY)}}u.NAME=`${i.KEY_PREFIX}-form-autocomplete`,u.DATA_KEY=`${i.KEY_PREFIX}.autocomplete`,u.SELECTOR={default:`.${u.NAME}`,input:"input",list:`.${u.NAME}__list`,listGroup:`.${u.NAME}__list > :first-child`};const d=u;class h{static getUidEvent(e,t){return t&&`${t}::${h.uidEvent++}`||e.uidEvent||h.uidEvent++}static getEvent(e){const t=h.getUidEvent(e);return e.uidEvent=t,h.EVENTREGISTRY[t]=h.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&h.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=o=>(h.fixEvent(o,e),n.oneOff&&h.off(e,o.type,t),t.apply(e,[o]));return n}static njDelegationHandler(e,t,n){const o=s=>{const r=e.querySelectorAll(t);for(let t=s.target;t&&t!==this;t=t.parentNode)for(let i=r.length;i>=0;i--)if(r[i]===t)return h.fixEvent(s,t),o.oneOff&&h.off(e,s.type,n),n.apply(t,[s]);return null};return o}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;const s=e[o];if(s.originalHandler===t&&s.delegationSelector===n)return e[o]}return null}static normalizeParams(e,t,n){const o="string"==typeof t,s=o?n:t;let r=e.replace(h.STRIPNAME_REGEX,"");const i=l[r];i&&(r=i);return"string"==typeof c[r]||(r=e),[o,s,r]}static addHandler(e,t,n,o,s){if("string"!=typeof t||null==e)return;n||(n=o,o=null);const r=h.getEvent(e);for(const i of t.split(" ")){const[t,l,a]=h.normalizeParams(i,n,o),c=r[a]||(r[a]={}),u=h.findHandler(c,l,t?n:null);if(u)return void(u.oneOff=u.oneOff&&s);const d=h.getUidEvent(l,i.replace(h.NAMESPACE_REGEX,"")),p=t?h.njDelegationHandler(e,n,o):h.njHandler(e,n);p.delegationSelector=t?n:null,p.originalHandler=l,p.oneOff=s,p.uidEvent=d,c[d]=p,e.addEventListener(a,p,t)}}static removeHandler(e,t,n,o,s){const r=h.findHandler(t[n],o,s);null!==r&&(e.removeEventListener(n,r,Boolean(s)),delete t[n][r.uidEvent])}static removeNamespacedHandlers(e,t,n,o){const s=t[n]||{};for(const r in s)if(Object.prototype.hasOwnProperty.call(s,r)&&r.indexOf(o)>-1){const o=s[r];h.removeHandler(e,t,n,o.originalHandler,o.delegationSelector)}}static on(e,t,n,o){h.addHandler(e,t,n,o,!1)}static one(e,t,n,o){h.addHandler(e,t,n,o,!0)}static off(e,t,n,o){if("string"!=typeof t||null==e)return;const[s,r,i]=h.normalizeParams(t,n,o),l=i!==t,a=h.getEvent(e);if(void 0!==r){if(!a||!a[i])return;return void h.removeHandler(e,a,i,r,s?n:null)}if("."===t.charAt(0))for(const n in a)Object.prototype.hasOwnProperty.call(a,n)&&h.removeNamespacedHandlers(e,a,n,t.substr(1));const c=a[i]||{};for(const n in c){if(!Object.prototype.hasOwnProperty.call(c,n))continue;const o=n.replace(h.STRIPUID_REGEX,"");if(!l||t.indexOf(o)>-1){const t=c[n];h.removeHandler(e,a,i,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const o=t.replace(h.STRIPNAME_REGEX,""),s="string"==typeof c[o];let r=null;return s?(r=document.createEvent("HTMLEvents"),r.initEvent(o,true,!0)):r=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(r,e,{get:()=>n[e]})})),e.dispatchEvent(r),r}}h.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,h.STRIPNAME_REGEX=/\..*/,h.KEYEVENT_REGEX=/^key/,h.STRIPUID_REGEX=/::\d+$/,h.EVENTREGISTRY={},h.uidEvent=1;const p=h;const m={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let n=0;n<e.attributes.length;n++){const o=e.attributes[n];if(-1!==o.nodeName.indexOf("data-")){const e=o.nodeName.substring(5).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=o.nodeValue}}return Object.keys(t).forEach((e=>{var n;t[e]="true"===(n=t[e])||"false"!==n&&("null"===n?null:n===Number(n).toString()?Number(n):""===n?null:n)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,n){for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n&&"[object Object]"===Object.prototype.toString.call(t[o])?e[o]=m.extend(e[o],t[o]):e[o]=t[o]);return e},extend(){let e={},t=!1,n=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],n++);n<arguments.length;n++)e=m.mergeExtended(e,n<0||arguments.length<=n?void 0:arguments[n],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},E=m;class f extends r{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(f,e,E.extend(!0,f.DEFAULT_OPTIONS,t)),this.setListeners(),s.setData(e,f.DATA_KEY,this)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,f.SELECTOR.default)}static getInstance(e){return s.getData(e,f.DATA_KEY)}dispose(){s.removeData(this.element,f.DATA_KEY),this.element=null}setListeners(){const e=this.element.getElementsByClassName(f.INPUT_CLASS)[0],t=this.element.getElementsByClassName(f.REVEAL_BUTTON_CLASS)[0];p.on(t,"click",(()=>{this.element.classList.add("is-visible"),e.type="text"}));const n=this.element.getElementsByClassName(f.HIDE_BUTTON_CLASS)[0];p.on(n,"click",(()=>{this.element.classList.remove("is-visible"),e.type="password"}))}}f.NAME=`${i.KEY_PREFIX}-form-input-password`,f.DATA_KEY=`${i.KEY_PREFIX}.password-input`,f.SELECTOR={default:`.${f.NAME}`},f.INPUT_CLASS=`${i.KEY_PREFIX}-form-control`,f.REVEAL_BUTTON_CLASS=`${i.KEY_PREFIX}-form-control__password-off`,f.HIDE_BUTTON_CLASS=`${i.KEY_PREFIX}-form-control__password-on`,f.DEFAULT_OPTIONS={selector:f.SELECTOR};const g=f,S={describe:e=>void 0===e?"undefined":0===e.length?"(no matching elements)":`${e.outerHTML.split(">")[0]}>`,assert(e,t,n){if(t)throw void 0!==e&&(e.style.border="1px solid red"),console.error(n,e),n},isChar:e=>void 0===e.which||"number"==typeof e.which&&e.which>0&&(!e.ctrlKey&&!e.metaKey&&!e.altKey&&8!==e.which&&9!==e.which&&13!==e.which&&16!==e.which&&17!==e.which&&20!==e.which&&27!==e.which)};class v extends r{constructor(e,t){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{});for(const e in n)!{}.hasOwnProperty.call(n,e)?console.error(`${e} does not exist in properties`):this[e]=n[e]}addFormGroupFocus(){this.element&&!0==!this.element.disabled&&this.njFormGroup.classList.add(v.CLASS_NAME.isFocused)}removeFormGroupFocus(){this.njFormGroup.classList.remove(v.CLASS_NAME.isFocused)}addIsFilled(){this.njFormGroup.classList.add(v.CLASS_NAME.isFilled)}removeIsFilled(){this.njFormGroup.classList.remove(v.CLASS_NAME.isFilled)}findFormGroup(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=this.element.closest(v.SELECTOR.formGroup);return null===t&&e&&console.error(`Failed to find ${v.SELECTOR.formGroup} for ${S.describe(this.element)}`),t}}v.CLASS_NAME={njFormGroup:"nj-form-group",isFilled:"is-filled",isFocused:"is-focused"},v.SELECTOR={formGroup:`.${v.CLASS_NAME.njFormGroup}`};const L=v;class y extends L{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,E.extend(!0,y.DEFAULT_OPTIONS,n),o),this.njFormGroup=this.resolveNJFormGroup(),this.njFormGroup&&(this.resolveNJLabel(),this.resolveNJFormGroupSizing(),this.addFocusListener(),this.addChangeListener(),this.isEmpty()?this.removeIsFilled():this.addIsFilled())}dispose(){p.off(this.element,"focus"),p.off(this.element,"blur"),p.off(this.element,"keydown"),p.off(this.element,"keyup")}addFocusListener(){p.on(this.element,"focus",(()=>{this.addFormGroupFocus()})),p.on(this.element,"blur",(()=>{this.removeFormGroupFocus()}))}addChangeListener(){p.on(this.element,"keydown",(e=>{S.isChar(e)&&this.addIsFilled()})),p.on(this.element,"keyup",(()=>{if(this.isEmpty()?this.removeIsFilled():this.addIsFilled(),this.options.validate){void 0===this.element[0].checkValidity||this.element[0].checkValidity()?this.removeHasDanger():this.addHasDanger()}}))}addHasDanger(){this.njFormGroup.classList.add(y.CLASS_NAME.hasDanger)}removeHasDanger(){this.njFormGroup.classList.remove(y.CLASS_NAME.hasDanger)}isEmpty(){return null===this.element.value||void 0===this.element.value||""===this.element.value}resolveNJFormGroup(){return this.findFormGroup(this.options.njFormGroup.required)}outerElement(){return this.element}resolveNJLabel(){let e=this.njFormGroup.querySelectorAll(y.INPUT_SELECTOR.njLabelWildcard);0===e.length&&(e=this.findLabel(this.options.label.required),null!==e&&e.length>1&&e.forEach((e=>{e.classList.add(this.options.label.className)})))}findLabel(){let e,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=null,o=0,s=!1;do{e=this.options.label.selectors[o];try{n=this.njFormGroup.querySelectorAll(e)}catch(e){n=null}s=null!==n&&n.length>0,o++}while(!s&&o<this.options.label.selectors.length);return!s&&t&&console.error(`Failed to find ${y.INPUT_SELECTOR.njLabelWildcard} within nj-form-group for ${S.describe(this.element)}`),n}resolveNJFormGroupSizing(){if(this.options.convertInputSizeVariations)for(const e in y.FORM_CONTROL_SIZE_MARKERS)this.element.classList.contains(e)&&this.njFormGroup.classList.add(y.FORM_CONTROL_SIZE_MARKERS[e])}}y.CLASS_NAME={njFormGroup:"nj-form-group",njLabel:"nj-label",njLabelStatic:"nj-label-static",njLabelPlaceholder:"nj-label-placeholder",njLabelFloating:"nj-label-floating",hasDanger:"has-danger",isFilled:"is-filled",isFocused:"is-focused",inputGroup:"input-group"},y.INPUT_SELECTOR={njFormGroup:`.${y.CLASS_NAME.njFormGroup}`,njLabelWildcard:`label[class^='${y.CLASS_NAME.njLabel}'], label[class*=' ${y.CLASS_NAME.njLabel}']`},y.DEFAULT_OPTIONS={validate:!1,njFormGroup:{template:"span",templateClass:`${y.CLASS_NAME.njFormGroup}`},label:{required:!1,selectors:[".form-control-label",":scope > label"],className:y.CLASS_NAME.njLabelStatic},requiredClasses:[],convertInputSizeVariations:!0},y.FORM_CONTROL_SIZE_MARKERS={"form-control-lg":"nj-form-group-lg","form-control-sm":"nj-form-group-sm"};const A=y;class T extends A{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};super(e,t,E.extend(!0,T.DEFAULT_OPTIONS,n),{})}dispose(){super.dispose()}}T.DEFAULT_OPTIONS={requiredClasses:["nj-form-control"]};const O=T;class b extends O{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(b,e,E.extend(!0,b.DEFAULT_OPTIONS,t)),s.setData(e,b.DATA_KEY,this)}dispose(){super.dispose(),s.removeData(this.element,b.DATA_KEY),this.element=null}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,b.SELECTOR.default)}static getInstance(e){return s.getData(e,b.DATA_KEY)}static matches(e){return"text"===e.getAttribute("type")}}b.NAME=`${i.KEY_PREFIX}-form-input-text`,b.DATA_KEY=`${i.KEY_PREFIX}.text`,b.SELECTOR={default:"input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=file]):not([type=button]):not([type=submit]):not([type=reset]).nj-form-control",formGroup:O.SELECTOR.formGroup},b.DEFAULT_OPTIONS={njFormGroup:{required:!1}};const _=b;class C extends O{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(C,e,E.extend(!0,{},t)),s.setData(e,C.DATA_KEY,this)}dispose(){super.dispose(),s.removeData(this.element,C.DATA_KEY),this.element=null}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,C.SELECTOR.default)}static getInstance(e){return s.getData(e,C.DATA_KEY)}static matches(e){return"TEXTAREA"===e.tagName}}C.NAME=`${i.KEY_PREFIX}-form-input-textarea`,C.DATA_KEY=`${i.KEY_PREFIX}.textarea`,C.SELECTOR={default:"textarea.nj-form-control",formGroup:O.SELECTOR.formGroup};const F=C;class R{static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return[g.init(e),_.init(t),F.init(n),d.init()]}}R.TextInput=_,R.PasswordInput=g,R.TextareaInput=F,R.Autocomplete=d,R.SELECTOR={default:`${_.SELECTOR.default}, ${F.SELECTOR.default}, ${d.SELECTOR.default}`};const N=R;return t=t.default})()));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Form",[],t):"object"==typeof exports?exports.Form=t():e.Form=t()}(window,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>N}),window.NJStore=window.NJStore||[];const n=(()=>{const e=window.NJStore;return{set(t,n,o){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=o},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const o=t.key;o.key===n&&(delete e[o.id],delete t.key)}}})(),o={setData(e,t,o){n.set(e,t,o)},getData:(e,t)=>n.get(e,t),removeData(e,t){n.delete(e,t)}},s=o;class r{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o=[],r=document.querySelectorAll(n);for(let n=0;n<r.length;n++){const i=r[n];if(!i.key||i.key.key!==e.DATA_KEY){const l=new e(r[n],t);i.key||s.setData(r[n],e.DATA_KEY,l),o.push(l)}}return o}}var i,l,a,c;!function(e){e.LIBRARY_LOG_TAG="[FLUID]",e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(i||(i={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(l||(l={})),function(e){e.beforehide="beforehide",e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(a||(a={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(c||(c={}));class u extends r{constructor(e){if(super(u,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),this.options={autocomplete:!0,limit:!1},this.onUserSelectItem=()=>{},this.onInputChange=()=>{this.list=this.dataList},this.onKeyDown=e=>{const t=this.element.querySelector(u.SELECTOR.list),n=this.element.querySelectorAll(`${u.SELECTOR.listGroup}> *`),o=parseInt(t.dataset.index,10),s=this.element.querySelector(u.SELECTOR.input),r=()=>{t.style.display="block",s.setAttribute("aria-expanded","true"),this.element.setAttribute("aria-expanded","true")},i=()=>{delete t.dataset.index,t.style.setProperty("display",""),s.setAttribute("aria-expanded","false"),this.element.setAttribute("aria-expanded","false")};switch(e.key){case"ArrowUp":e.preventDefault(),r(),t.dataset.index&&(t.dataset.index=(o-1<0?n.length-1:o-1).toString(),n[t.dataset.index].focus());break;case"ArrowDown":e.preventDefault(),r(),t.dataset.index?t.dataset.index=(o<n.length-1?o+1:0).toString():t.dataset.index="0",n[t.dataset.index].focus();break;case"Escape":i(),s.focus();break;case"Enter":i()}},this.onSelectListItem=e=>{const{name:t,value:n}=e.target.dataset,o=this.element.querySelector(u.SELECTOR.input);t&&(o.value=t),n&&(this.root.dataset.value=n,o.dataset.value=n),this.onUserSelectItem({name:t,value:n})},e.querySelector(u.SELECTOR.listGroup)){const t=e.querySelector(`${u.SELECTOR.listGroup}`).innerHTML;this.listFragment=document.createRange().createContextualFragment(t),this.root=e.parentElement.dataset.list||e.parentElement.dataset.options?e.parentElement:e,this.root.dataset.list&&(this.dataList=JSON.parse(this.root.dataset.list),this.list=this.dataList),this.root.dataset.options&&(this.options=Object.assign(Object.assign({},this.options),JSON.parse(this.root.dataset.options))),this.root[u.NAME.replace(/-/g,"_")]=this,e.querySelector(u.SELECTOR.list).addEventListener("click",this.onSelectListItem)}e.querySelector(u.SELECTOR.input).addEventListener("input",this.onInputChange),e.addEventListener("keydown",this.onKeyDown),s.setData(e,u.DATA_KEY,this)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,u.SELECTOR.default)}dispose(){this.element&&this.element.querySelector(u.SELECTOR.list)&&this.element.querySelector(u.SELECTOR.list).removeEventListener("click",this.onSelectListItem),this.element&&this.element.querySelector(u.SELECTOR.input)&&this.element.querySelector(u.SELECTOR.input).removeEventListener("input",this.onInputChange),this.element.removeEventListener("keydown",this.onKeyDown),s.removeData(this.element,u.DATA_KEY),this.dataList=null,this.currentList=null,this.element=null}set data(e){this.dataList=e}get data(){return this.dataList}get list(){return this.currentList}set list(e){const t=this.element.querySelector(u.SELECTOR.input).value;if(e&&e.length){const n=document.createDocumentFragment();this.currentList=[],e.forEach((e=>{let{name:o,value:s}=e;if((!this.options.autocomplete||u.compareText(o,t))&&(!this.options.limit||"number"==typeof this.options.limit&&n.children.length<this.options.limit)){const e=this.listFragment.firstElementChild;e.setAttribute("data-value",s),e.setAttribute("data-name",o),e.textContent=o,n.appendChild(this.listFragment.cloneNode(!0)),this.currentList.push({name:o,value:s})}})),this.element.querySelector(`${u.SELECTOR.listGroup}`).textContent="",this.element.querySelector(u.SELECTOR.listGroup).appendChild(n)}}static compareText(e,t){e=e.normalize("NFD").replace(/[\u0300-\u036f]/g,""),t=(t=t.normalize("NFD").replace(/[\u0300-\u036f]/g,"")).replace(/\(|\)|\\/gi,"");const n=new RegExp(t,"gi");return-1!==e.search(n)}static getInstance(e){return s.getData(e,u.DATA_KEY)}}u.NAME=`${i.KEY_PREFIX}-form-autocomplete`,u.DATA_KEY=`${i.KEY_PREFIX}.autocomplete`,u.SELECTOR={default:`.${u.NAME}`,input:"input",list:`.${u.NAME}__list`,listGroup:`.${u.NAME}__list > :first-child`};const d=u;class h{static getUidEvent(e,t){return t&&`${t}::${h.uidEvent++}`||e.uidEvent||h.uidEvent++}static getEvent(e){const t=h.getUidEvent(e);return e.uidEvent=t,h.EVENTREGISTRY[t]=h.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&h.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=o=>(h.fixEvent(o,e),n.oneOff&&h.off(e,o.type,t),t.apply(e,[o]));return n}static njDelegationHandler(e,t,n){const o=s=>{const r=e.querySelectorAll(t);for(let t=s.target;t&&t!==this;t=t.parentNode)for(let i=r.length;i>=0;i--)if(r[i]===t)return h.fixEvent(s,t),o.oneOff&&h.off(e,s.type,n),n.apply(t,[s]);return null};return o}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;const s=e[o];if(s.originalHandler===t&&s.delegationSelector===n)return e[o]}return null}static normalizeParams(e,t,n){const o="string"==typeof t,s=o?n:t;let r=e.replace(h.STRIPNAME_REGEX,"");const i=l[r];i&&(r=i);return"string"==typeof c[r]||(r=e),[o,s,r]}static addHandler(e,t,n,o,s){if("string"!=typeof t||null==e)return;n||(n=o,o=null);const r=h.getEvent(e);for(const i of t.split(" ")){const[t,l,a]=h.normalizeParams(i,n,o),c=r[a]||(r[a]={}),u=h.findHandler(c,l,t?n:null);if(u)return void(u.oneOff=u.oneOff&&s);const d=h.getUidEvent(l,i.replace(h.NAMESPACE_REGEX,"")),p=t?h.njDelegationHandler(e,n,o):h.njHandler(e,n);p.delegationSelector=t?n:null,p.originalHandler=l,p.oneOff=s,p.uidEvent=d,c[d]=p,e.addEventListener(a,p,t)}}static removeHandler(e,t,n,o,s){const r=h.findHandler(t[n],o,s);null!==r&&(e.removeEventListener(n,r,Boolean(s)),delete t[n][r.uidEvent])}static removeNamespacedHandlers(e,t,n,o){const s=t[n]||{};for(const r in s)if(Object.prototype.hasOwnProperty.call(s,r)&&r.indexOf(o)>-1){const o=s[r];h.removeHandler(e,t,n,o.originalHandler,o.delegationSelector)}}static on(e,t,n,o){h.addHandler(e,t,n,o,!1)}static one(e,t,n,o){h.addHandler(e,t,n,o,!0)}static off(e,t,n,o){if("string"!=typeof t||null==e)return;const[s,r,i]=h.normalizeParams(t,n,o),l=i!==t,a=h.getEvent(e);if(void 0!==r){if(!a||!a[i])return;return void h.removeHandler(e,a,i,r,s?n:null)}if("."===t.charAt(0))for(const n in a)Object.prototype.hasOwnProperty.call(a,n)&&h.removeNamespacedHandlers(e,a,n,t.substr(1));const c=a[i]||{};for(const n in c){if(!Object.prototype.hasOwnProperty.call(c,n))continue;const o=n.replace(h.STRIPUID_REGEX,"");if(!l||t.indexOf(o)>-1){const t=c[n];h.removeHandler(e,a,i,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const o=t.replace(h.STRIPNAME_REGEX,""),s="string"==typeof c[o],r=!0;let i=null;return s?(i=document.createEvent("HTMLEvents"),i.initEvent(o,r,!0)):i=new window.CustomEvent(t,{bubbles:r,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(i,e,{get:()=>n[e]})})),e.dispatchEvent(i),i}}h.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,h.STRIPNAME_REGEX=/\..*/,h.KEYEVENT_REGEX=/^key/,h.STRIPUID_REGEX=/::\d+$/,h.EVENTREGISTRY={},h.uidEvent=1;const p=h;const m={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let n=0;n<e.attributes.length;n++){const o=e.attributes[n];if(-1!==o.nodeName.indexOf("data-")){const e=o.nodeName.substring(5).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=o.nodeValue}}return Object.keys(t).forEach((e=>{var n;t[e]="true"===(n=t[e])||"false"!==n&&("null"===n?null:n===Number(n).toString()?Number(n):""===n?null:n)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,n){for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n&&"[object Object]"===Object.prototype.toString.call(t[o])?e[o]=m.extend(e[o],t[o]):e[o]=t[o]);return e},extend(){let e={},t=!1,n=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],n++);n<arguments.length;n++)e=m.mergeExtended(e,n<0||arguments.length<=n?void 0:arguments[n],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},E=m;class f extends r{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(f,e,E.extend(!0,f.DEFAULT_OPTIONS,t)),this.setListeners(),s.setData(e,f.DATA_KEY,this)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,f.SELECTOR.default)}static getInstance(e){return s.getData(e,f.DATA_KEY)}dispose(){s.removeData(this.element,f.DATA_KEY),this.element=null}setListeners(){const e=this.element.getElementsByClassName(f.INPUT_CLASS)[0],t=this.element.getElementsByClassName(f.REVEAL_BUTTON_CLASS)[0];p.on(t,"click",(()=>{this.element.classList.add("is-visible"),e.type="text"}));const n=this.element.getElementsByClassName(f.HIDE_BUTTON_CLASS)[0];p.on(n,"click",(()=>{this.element.classList.remove("is-visible"),e.type="password"}))}}f.NAME=`${i.KEY_PREFIX}-form-input-password`,f.DATA_KEY=`${i.KEY_PREFIX}.password-input`,f.SELECTOR={default:`.${f.NAME}`},f.INPUT_CLASS=`${i.KEY_PREFIX}-form-control`,f.REVEAL_BUTTON_CLASS=`${i.KEY_PREFIX}-form-control__password-off`,f.HIDE_BUTTON_CLASS=`${i.KEY_PREFIX}-form-control__password-on`,f.DEFAULT_OPTIONS={selector:f.SELECTOR};const g=f,S={describe:e=>void 0===e?"undefined":0===e.length?"(no matching elements)":`${e.outerHTML.split(">")[0]}>`,assert(e,t,n){if(t)throw void 0!==e&&(e.style.border="1px solid red"),console.error(n,e),n},isChar:e=>void 0===e.which||"number"==typeof e.which&&e.which>0&&(!e.ctrlKey&&!e.metaKey&&!e.altKey&&8!==e.which&&9!==e.which&&13!==e.which&&16!==e.which&&17!==e.which&&20!==e.which&&27!==e.which)};class v extends r{constructor(e,t){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{});for(const e in n)!{}.hasOwnProperty.call(n,e)?console.error(`${e} does not exist in properties`):this[e]=n[e]}addFormGroupFocus(){this.element&&!0==!this.element.disabled&&this.njFormGroup.classList.add(v.CLASS_NAME.isFocused)}removeFormGroupFocus(){this.njFormGroup.classList.remove(v.CLASS_NAME.isFocused)}addIsFilled(){this.njFormGroup.classList.add(v.CLASS_NAME.isFilled)}removeIsFilled(){this.njFormGroup.classList.remove(v.CLASS_NAME.isFilled)}findFormGroup(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=this.element.closest(v.SELECTOR.formGroup);return null===t&&e&&console.error(`Failed to find ${v.SELECTOR.formGroup} for ${S.describe(this.element)}`),t}}v.CLASS_NAME={njFormGroup:"nj-form-group",isFilled:"is-filled",isFocused:"is-focused"},v.SELECTOR={formGroup:`.${v.CLASS_NAME.njFormGroup}`};const L=v;class y extends L{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,E.extend(!0,y.DEFAULT_OPTIONS,n),o),this.njFormGroup=this.resolveNJFormGroup(),this.njFormGroup&&(this.resolveNJLabel(),this.resolveNJFormGroupSizing(),this.addFocusListener(),this.addChangeListener(),this.isEmpty()?this.removeIsFilled():this.addIsFilled())}dispose(){p.off(this.element,"focus"),p.off(this.element,"blur"),p.off(this.element,"keydown"),p.off(this.element,"keyup")}addFocusListener(){p.on(this.element,"focus",(()=>{this.addFormGroupFocus()})),p.on(this.element,"blur",(()=>{this.removeFormGroupFocus()}))}addChangeListener(){p.on(this.element,"keydown",(e=>{S.isChar(e)&&this.addIsFilled()})),p.on(this.element,"keyup",(()=>{if(this.isEmpty()?this.removeIsFilled():this.addIsFilled(),this.options.validate){void 0===this.element[0].checkValidity||this.element[0].checkValidity()?this.removeHasDanger():this.addHasDanger()}}))}addHasDanger(){this.njFormGroup.classList.add(y.CLASS_NAME.hasDanger)}removeHasDanger(){this.njFormGroup.classList.remove(y.CLASS_NAME.hasDanger)}isEmpty(){return null===this.element.value||void 0===this.element.value||""===this.element.value}resolveNJFormGroup(){return this.findFormGroup(this.options.njFormGroup.required)}outerElement(){return this.element}resolveNJLabel(){let e=this.njFormGroup.querySelectorAll(y.INPUT_SELECTOR.njLabelWildcard);0===e.length&&(e=this.findLabel(this.options.label.required),null!==e&&e.length>1&&e.forEach((e=>{e.classList.add(this.options.label.className)})))}findLabel(){let e,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=null,o=0,s=!1;do{e=this.options.label.selectors[o];try{n=this.njFormGroup.querySelectorAll(e)}catch(e){n=null}s=null!==n&&n.length>0,o++}while(!s&&o<this.options.label.selectors.length);return!s&&t&&console.error(`Failed to find ${y.INPUT_SELECTOR.njLabelWildcard} within nj-form-group for ${S.describe(this.element)}`),n}resolveNJFormGroupSizing(){if(this.options.convertInputSizeVariations)for(const e in y.FORM_CONTROL_SIZE_MARKERS)this.element.classList.contains(e)&&this.njFormGroup.classList.add(y.FORM_CONTROL_SIZE_MARKERS[e])}}y.CLASS_NAME={njFormGroup:"nj-form-group",njLabel:"nj-label",njLabelStatic:"nj-label-static",njLabelPlaceholder:"nj-label-placeholder",njLabelFloating:"nj-label-floating",hasDanger:"has-danger",isFilled:"is-filled",isFocused:"is-focused",inputGroup:"input-group"},y.INPUT_SELECTOR={njFormGroup:`.${y.CLASS_NAME.njFormGroup}`,njLabelWildcard:`label[class^='${y.CLASS_NAME.njLabel}'], label[class*=' ${y.CLASS_NAME.njLabel}']`},y.DEFAULT_OPTIONS={validate:!1,njFormGroup:{template:"span",templateClass:`${y.CLASS_NAME.njFormGroup}`},label:{required:!1,selectors:[".form-control-label",":scope > label"],className:y.CLASS_NAME.njLabelStatic},requiredClasses:[],convertInputSizeVariations:!0},y.FORM_CONTROL_SIZE_MARKERS={"form-control-lg":"nj-form-group-lg","form-control-sm":"nj-form-group-sm"};const A=y;class T extends A{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};super(e,t,E.extend(!0,T.DEFAULT_OPTIONS,n),{})}dispose(){super.dispose()}}T.DEFAULT_OPTIONS={requiredClasses:["nj-form-control"]};const O=T;class b extends O{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(b,e,E.extend(!0,b.DEFAULT_OPTIONS,t)),s.setData(e,b.DATA_KEY,this)}dispose(){super.dispose(),s.removeData(this.element,b.DATA_KEY),this.element=null}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,b.SELECTOR.default)}static getInstance(e){return s.getData(e,b.DATA_KEY)}static matches(e){return"text"===e.getAttribute("type")}}b.NAME=`${i.KEY_PREFIX}-form-input-text`,b.DATA_KEY=`${i.KEY_PREFIX}.text`,b.SELECTOR={default:"input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=file]):not([type=button]):not([type=submit]):not([type=reset]).nj-form-control",formGroup:O.SELECTOR.formGroup},b.DEFAULT_OPTIONS={njFormGroup:{required:!1}};const _=b;class C extends O{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(C,e,E.extend(!0,{},t)),s.setData(e,C.DATA_KEY,this)}dispose(){super.dispose(),s.removeData(this.element,C.DATA_KEY),this.element=null}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,C.SELECTOR.default)}static getInstance(e){return s.getData(e,C.DATA_KEY)}static matches(e){return"TEXTAREA"===e.tagName}}C.NAME=`${i.KEY_PREFIX}-form-input-textarea`,C.DATA_KEY=`${i.KEY_PREFIX}.textarea`,C.SELECTOR={default:"textarea.nj-form-control",formGroup:O.SELECTOR.formGroup};const F=C;class R{static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return[g.init(e),_.init(t),F.init(n),d.init()]}}R.TextInput=_,R.PasswordInput=g,R.TextareaInput=F,R.Autocomplete=d,R.SELECTOR={default:`${_.SELECTOR.default}, ${F.SELECTOR.default}, ${d.SELECTOR.default}`};const N=R;return t=t.default})()));
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("InputNumber",[],t):"object"==typeof exports?exports.InputNumber=t():e.InputNumber=t()}(window,(()=>(()=>{"use strict";var e,t,n,i,o={d:(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},r={};o.d(r,{default:()=>h}),function(e){e.LIBRARY_LOG_TAG="[FLUID]",e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(e||(e={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(t||(t={})),function(e){e.beforehide="beforehide",e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(n||(n={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(i||(i={})),window.NJStore=window.NJStore||[];const s=(()=>{const e=window.NJStore;return{set(t,n,i){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=i},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const i=t.key;i.key===n&&(delete e[i.id],delete t.key)}}})(),l={setData(e,t,n){s.set(e,t,n)},getData:(e,t)=>s.get(e,t),removeData(e,t){s.delete(e,t)}},u=l;class a{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const i=[],o=document.querySelectorAll(n);for(let n=0;n<o.length;n++){const r=o[n];if(!r.key||r.key.key!==e.DATA_KEY){const s=new e(o[n],t);r.key||u.setData(o[n],e.DATA_KEY,s),i.push(s)}}return i}}class c{static getUidEvent(e,t){return t&&`${t}::${c.uidEvent++}`||e.uidEvent||c.uidEvent++}static getEvent(e){const t=c.getUidEvent(e);return e.uidEvent=t,c.EVENTREGISTRY[t]=c.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&c.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=i=>(c.fixEvent(i,e),n.oneOff&&c.off(e,i.type,t),t.apply(e,[i]));return n}static njDelegationHandler(e,t,n){const i=o=>{const r=e.querySelectorAll(t);for(let t=o.target;t&&t!==this;t=t.parentNode)for(let s=r.length;s>=0;s--)if(r[s]===t)return c.fixEvent(o,t),i.oneOff&&c.off(e,o.type,n),n.apply(t,[o]);return null};return i}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;const o=e[i];if(o.originalHandler===t&&o.delegationSelector===n)return e[i]}return null}static normalizeParams(e,n,o){const r="string"==typeof n,s=r?o:n;let l=e.replace(c.STRIPNAME_REGEX,"");const u=t[l];u&&(l=u);return"string"==typeof i[l]||(l=e),[r,s,l]}static addHandler(e,t,n,i,o){if("string"!=typeof t||null==e)return;n||(n=i,i=null);const r=c.getEvent(e);for(const s of t.split(" ")){const[t,l,u]=c.normalizeParams(s,n,i),a=r[u]||(r[u]={}),d=c.findHandler(a,l,t?n:null);if(d)return void(d.oneOff=d.oneOff&&o);const m=c.getUidEvent(l,s.replace(c.NAMESPACE_REGEX,"")),h=t?c.njDelegationHandler(e,n,i):c.njHandler(e,n);h.delegationSelector=t?n:null,h.originalHandler=l,h.oneOff=o,h.uidEvent=m,a[m]=h,e.addEventListener(u,h,t)}}static removeHandler(e,t,n,i,o){const r=c.findHandler(t[n],i,o);null!==r&&(e.removeEventListener(n,r,Boolean(o)),delete t[n][r.uidEvent])}static removeNamespacedHandlers(e,t,n,i){const o=t[n]||{};for(const r in o)if(Object.prototype.hasOwnProperty.call(o,r)&&r.indexOf(i)>-1){const i=o[r];c.removeHandler(e,t,n,i.originalHandler,i.delegationSelector)}}static on(e,t,n,i){c.addHandler(e,t,n,i,!1)}static one(e,t,n,i){c.addHandler(e,t,n,i,!0)}static off(e,t,n,i){if("string"!=typeof t||null==e)return;const[o,r,s]=c.normalizeParams(t,n,i),l=s!==t,u=c.getEvent(e);if(void 0!==r){if(!u||!u[s])return;return void c.removeHandler(e,u,s,r,o?n:null)}if("."===t.charAt(0))for(const n in u)Object.prototype.hasOwnProperty.call(u,n)&&c.removeNamespacedHandlers(e,u,n,t.substr(1));const a=u[s]||{};for(const n in a){if(!Object.prototype.hasOwnProperty.call(a,n))continue;const i=n.replace(c.STRIPUID_REGEX,"");if(!l||t.indexOf(i)>-1){const t=a[n];c.removeHandler(e,u,s,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const o=t.replace(c.STRIPNAME_REGEX,""),r="string"==typeof i[o];let s=null;return r?(s=document.createEvent("HTMLEvents"),s.initEvent(o,true,!0)):s=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(s,e,{get:()=>n[e]})})),e.dispatchEvent(s),s}}c.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,c.STRIPNAME_REGEX=/\..*/,c.KEYEVENT_REGEX=/^key/,c.STRIPUID_REGEX=/::\d+$/,c.EVENTREGISTRY={},c.uidEvent=1;const d=c;class m extends a{constructor(e){super(m,e),this.updateFieldSize=()=>{this.field.style.setProperty("--nj-fc-field-characters-length",`${this.field.value.length||1}`)},this.decrementValue=()=>{const e=Number(this.getClampedValue(this.valueAsNumber-this.step).toFixed(2));this.field.value=String(e),this.updateFieldSize(),this.disableButtonsIfNeeded(),this.updateLiveZone(),d.trigger(this.element,m.EVENT.decrement,{value:e})},this.incrementValue=()=>{const e=Number(this.getClampedValue(this.valueAsNumber+this.step).toFixed(2));this.field.value=String(e),this.updateFieldSize(),this.disableButtonsIfNeeded(),this.updateLiveZone(),d.trigger(this.element,m.EVENT.increment,{value:e})},u.setData(e,m.DATA_KEY,this),this.field=e.querySelector(m.SELECTOR.field),this.incrementButton=e.querySelector(m.SELECTOR.incrementButton),this.decrementButton=e.querySelector(m.SELECTOR.decrementButton),this.liveZone=e.querySelector(m.SELECTOR.liveZone),this.updateFieldSize(),this.disableButtonsIfNeeded(!1),d.on(this.decrementButton,m.EVENT.click,this.decrementValue),d.on(this.incrementButton,m.EVENT.click,this.incrementValue),d.on(this.field,"input",(()=>{null!==this.min&&this.valueAsNumber<this.min?this.field.value=String(this.min):null!==this.max&&this.valueAsNumber>this.max&&(this.field.value=String(this.max)),this.updateFieldSize(),this.disableButtonsIfNeeded(),this.updateLiveZone(),d.trigger(this.element,m.EVENT.onchange,{value:this.valueAsNumber})}))}dispose(){d.off(this.decrementButton,m.EVENT.click),d.off(this.incrementButton,m.EVENT.click),d.off(this.field,"input"),u.removeData(this.element,m.DATA_KEY),this.element=null}get valueAsNumber(){return Number(this.field.value)}get step(){return this.field.step?Number(this.field.step):1}get min(){return this.field.min?Number(this.field.min):null}get max(){return this.field.max?Number(this.field.max):null}disableButtonsIfNeeded(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=null!==this.max&&this.valueAsNumber>=this.max,n=null!==this.min&&this.valueAsNumber<=this.min;this.incrementButton.disabled=t,this.decrementButton.disabled=n,t&&e&&this.field.focus(),n&&e&&this.field.focus()}updateLiveZone(){var e;this.liveZoneTimeoutId&&clearTimeout(this.liveZoneTimeoutId);const t=this.element.querySelector("label").textContent,n=null!==(e=this.element.dataset.liveZoneFormat)&&void 0!==e?e:`${t} : {x}`;this.liveZone.innerHTML=`<p>${n.replace("{x}",this.field.value)}</p>`,this.liveZoneTimeoutId=setTimeout((()=>{this.liveZone.innerHTML=null}),m.LIVEZONE_TIMEOUT)}getClampedValue(e){return null!==this.min&&e<this.min&&(e=this.min),null!==this.max&&e>this.max&&(e=this.max),e}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,m.SELECTOR.default)}}m.NAME=`${e.KEY_PREFIX}-form-item--input-number`,m.DATA_KEY=`${e.KEY_PREFIX}.input-number`,m.EVENT_KEY=`.${m.DATA_KEY}`,m.LIVEZONE_TIMEOUT=5e3,m.SELECTOR={default:`.${m.NAME}`,field:`.${e.KEY_PREFIX}-form-item__field`,incrementButton:`.${e.KEY_PREFIX}-form-item__increment-button`,decrementButton:`.${e.KEY_PREFIX}-form-item__decrement-button`,liveZone:"[aria-live]"},m.EVENT={click:`${n.click}${m.EVENT_KEY}`,decrement:`${n.decrement}${m.EVENT_KEY}`,increment:`${n.increment}${m.EVENT_KEY}`,onchange:`${n.onchange}${m.EVENT_KEY}`};const h=m;return r=r.default})()));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("InputNumber",[],t):"object"==typeof exports?exports.InputNumber=t():e.InputNumber=t()}(window,(()=>(()=>{"use strict";var e,t,n,i,o={d:(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},r={};o.d(r,{default:()=>h}),function(e){e.LIBRARY_LOG_TAG="[FLUID]",e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(e||(e={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(t||(t={})),function(e){e.beforehide="beforehide",e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(n||(n={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(i||(i={})),window.NJStore=window.NJStore||[];const s=(()=>{const e=window.NJStore;return{set(t,n,i){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=i},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const i=t.key;i.key===n&&(delete e[i.id],delete t.key)}}})(),l={setData(e,t,n){s.set(e,t,n)},getData:(e,t)=>s.get(e,t),removeData(e,t){s.delete(e,t)}},u=l;class a{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const i=[],o=document.querySelectorAll(n);for(let n=0;n<o.length;n++){const r=o[n];if(!r.key||r.key.key!==e.DATA_KEY){const s=new e(o[n],t);r.key||u.setData(o[n],e.DATA_KEY,s),i.push(s)}}return i}}class c{static getUidEvent(e,t){return t&&`${t}::${c.uidEvent++}`||e.uidEvent||c.uidEvent++}static getEvent(e){const t=c.getUidEvent(e);return e.uidEvent=t,c.EVENTREGISTRY[t]=c.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&c.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=i=>(c.fixEvent(i,e),n.oneOff&&c.off(e,i.type,t),t.apply(e,[i]));return n}static njDelegationHandler(e,t,n){const i=o=>{const r=e.querySelectorAll(t);for(let t=o.target;t&&t!==this;t=t.parentNode)for(let s=r.length;s>=0;s--)if(r[s]===t)return c.fixEvent(o,t),i.oneOff&&c.off(e,o.type,n),n.apply(t,[o]);return null};return i}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const i in e){if(!Object.prototype.hasOwnProperty.call(e,i))continue;const o=e[i];if(o.originalHandler===t&&o.delegationSelector===n)return e[i]}return null}static normalizeParams(e,n,o){const r="string"==typeof n,s=r?o:n;let l=e.replace(c.STRIPNAME_REGEX,"");const u=t[l];u&&(l=u);return"string"==typeof i[l]||(l=e),[r,s,l]}static addHandler(e,t,n,i,o){if("string"!=typeof t||null==e)return;n||(n=i,i=null);const r=c.getEvent(e);for(const s of t.split(" ")){const[t,l,u]=c.normalizeParams(s,n,i),a=r[u]||(r[u]={}),d=c.findHandler(a,l,t?n:null);if(d)return void(d.oneOff=d.oneOff&&o);const m=c.getUidEvent(l,s.replace(c.NAMESPACE_REGEX,"")),h=t?c.njDelegationHandler(e,n,i):c.njHandler(e,n);h.delegationSelector=t?n:null,h.originalHandler=l,h.oneOff=o,h.uidEvent=m,a[m]=h,e.addEventListener(u,h,t)}}static removeHandler(e,t,n,i,o){const r=c.findHandler(t[n],i,o);null!==r&&(e.removeEventListener(n,r,Boolean(o)),delete t[n][r.uidEvent])}static removeNamespacedHandlers(e,t,n,i){const o=t[n]||{};for(const r in o)if(Object.prototype.hasOwnProperty.call(o,r)&&r.indexOf(i)>-1){const i=o[r];c.removeHandler(e,t,n,i.originalHandler,i.delegationSelector)}}static on(e,t,n,i){c.addHandler(e,t,n,i,!1)}static one(e,t,n,i){c.addHandler(e,t,n,i,!0)}static off(e,t,n,i){if("string"!=typeof t||null==e)return;const[o,r,s]=c.normalizeParams(t,n,i),l=s!==t,u=c.getEvent(e);if(void 0!==r){if(!u||!u[s])return;return void c.removeHandler(e,u,s,r,o?n:null)}if("."===t.charAt(0))for(const n in u)Object.prototype.hasOwnProperty.call(u,n)&&c.removeNamespacedHandlers(e,u,n,t.substr(1));const a=u[s]||{};for(const n in a){if(!Object.prototype.hasOwnProperty.call(a,n))continue;const i=n.replace(c.STRIPUID_REGEX,"");if(!l||t.indexOf(i)>-1){const t=a[n];c.removeHandler(e,u,s,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const o=t.replace(c.STRIPNAME_REGEX,""),r="string"==typeof i[o],s=!0;let l=null;return r?(l=document.createEvent("HTMLEvents"),l.initEvent(o,s,!0)):l=new window.CustomEvent(t,{bubbles:s,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(l,e,{get:()=>n[e]})})),e.dispatchEvent(l),l}}c.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,c.STRIPNAME_REGEX=/\..*/,c.KEYEVENT_REGEX=/^key/,c.STRIPUID_REGEX=/::\d+$/,c.EVENTREGISTRY={},c.uidEvent=1;const d=c;class m extends a{constructor(e){super(m,e),this.updateFieldSize=()=>{this.field.style.setProperty("--nj-fc-field-characters-length",`${this.field.value.length||1}`)},this.decrementValue=()=>{const e=Number(this.getClampedValue(this.valueAsNumber-this.step).toFixed(2));this.field.value=String(e),this.updateFieldSize(),this.disableButtonsIfNeeded(),this.updateLiveZone(),d.trigger(this.element,m.EVENT.decrement,{value:e})},this.incrementValue=()=>{const e=Number(this.getClampedValue(this.valueAsNumber+this.step).toFixed(2));this.field.value=String(e),this.updateFieldSize(),this.disableButtonsIfNeeded(),this.updateLiveZone(),d.trigger(this.element,m.EVENT.increment,{value:e})},u.setData(e,m.DATA_KEY,this),this.field=e.querySelector(m.SELECTOR.field),this.incrementButton=e.querySelector(m.SELECTOR.incrementButton),this.decrementButton=e.querySelector(m.SELECTOR.decrementButton),this.liveZone=e.querySelector(m.SELECTOR.liveZone),this.updateFieldSize(),this.disableButtonsIfNeeded(!1),d.on(this.decrementButton,m.EVENT.click,this.decrementValue),d.on(this.incrementButton,m.EVENT.click,this.incrementValue),d.on(this.field,"input",(()=>{null!==this.min&&this.valueAsNumber<this.min?this.field.value=String(this.min):null!==this.max&&this.valueAsNumber>this.max&&(this.field.value=String(this.max)),this.updateFieldSize(),this.disableButtonsIfNeeded(),this.updateLiveZone(),d.trigger(this.element,m.EVENT.onchange,{value:this.valueAsNumber})}))}dispose(){d.off(this.decrementButton,m.EVENT.click),d.off(this.incrementButton,m.EVENT.click),d.off(this.field,"input"),u.removeData(this.element,m.DATA_KEY),this.element=null}get valueAsNumber(){return Number(this.field.value)}get step(){return this.field.step?Number(this.field.step):1}get min(){return this.field.min?Number(this.field.min):null}get max(){return this.field.max?Number(this.field.max):null}disableButtonsIfNeeded(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=null!==this.max&&this.valueAsNumber>=this.max,n=null!==this.min&&this.valueAsNumber<=this.min;this.incrementButton.disabled=t,this.decrementButton.disabled=n,t&&e&&this.field.focus(),n&&e&&this.field.focus()}updateLiveZone(){var e;this.liveZoneTimeoutId&&clearTimeout(this.liveZoneTimeoutId);const t=this.element.querySelector("label").textContent,n=null!==(e=this.element.dataset.liveZoneFormat)&&void 0!==e?e:`${t} : {x}`;this.liveZone.innerHTML=`<p>${n.replace("{x}",this.field.value)}</p>`,this.liveZoneTimeoutId=setTimeout((()=>{this.liveZone.innerHTML=null}),m.LIVEZONE_TIMEOUT)}getClampedValue(e){return null!==this.min&&e<this.min&&(e=this.min),null!==this.max&&e>this.max&&(e=this.max),e}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,m.SELECTOR.default)}}m.NAME=`${e.KEY_PREFIX}-form-item--input-number`,m.DATA_KEY=`${e.KEY_PREFIX}.input-number`,m.EVENT_KEY=`.${m.DATA_KEY}`,m.LIVEZONE_TIMEOUT=5e3,m.SELECTOR={default:`.${m.NAME}`,field:`.${e.KEY_PREFIX}-form-item__field`,incrementButton:`.${e.KEY_PREFIX}-form-item__increment-button`,decrementButton:`.${e.KEY_PREFIX}-form-item__decrement-button`,liveZone:"[aria-live]"},m.EVENT={click:`${n.click}${m.EVENT_KEY}`,decrement:`${n.decrement}${m.EVENT_KEY}`,increment:`${n.increment}${m.EVENT_KEY}`,onchange:`${n.onchange}${m.EVENT_KEY}`};const h=m;return r=r.default})()));
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("Menu",[],e):"object"==typeof exports?exports.Menu=e():t.Menu=e()}(window,(()=>(()=>{"use strict";var t={d:(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},e={};t.d(e,{default:()=>at});const n=["top","right","bottom","left"],o=Math.min,i=Math.max,r=Math.round,l=Math.floor,c=t=>({x:t,y:t}),s={left:"right",right:"left",bottom:"top",top:"bottom"},a={start:"end",end:"start"};function f(t,e,n){return i(t,o(e,n))}function u(t,e){return"function"==typeof t?t(e):t}function d(t){return t.split("-")[0]}function p(t){return t.split("-")[1]}function m(t){return"x"===t?"y":"x"}function h(t){return"y"===t?"height":"width"}function g(t){return["top","bottom"].includes(d(t))?"y":"x"}function y(t){return m(g(t))}function x(t){return t.replace(/start|end/g,(t=>a[t]))}function w(t){return t.replace(/left|right|bottom|top/g,(t=>s[t]))}function v(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function b(t,e,n){let{reference:o,floating:i}=t;const r=g(e),l=y(e),c=h(l),s=d(e),a="y"===r,f=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,m=o[c]/2-i[c]/2;let x;switch(s){case"top":x={x:f,y:o.y-i.height};break;case"bottom":x={x:f,y:o.y+o.height};break;case"right":x={x:o.x+o.width,y:u};break;case"left":x={x:o.x-i.width,y:u};break;default:x={x:o.x,y:o.y}}switch(p(e)){case"start":x[l]-=m*(n&&a?-1:1);break;case"end":x[l]+=m*(n&&a?-1:1)}return x}async function R(t,e){var n;void 0===e&&(e={});const{x:o,y:i,platform:r,rects:l,elements:c,strategy:s}=t,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:p=!1,padding:m=0}=u(e,t),h=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(m),g=c[p?"floating"===d?"reference":"floating":d],y=v(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(g)))||n?g:g.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(c.floating)),boundary:a,rootBoundary:f,strategy:s})),x="floating"===d?{...l.floating,x:o,y:i}:l.reference,w=await(null==r.getOffsetParent?void 0:r.getOffsetParent(c.floating)),b=await(null==r.isElement?void 0:r.isElement(w))&&await(null==r.getScale?void 0:r.getScale(w))||{x:1,y:1},R=v(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:x,offsetParent:w,strategy:s}):x);return{top:(y.top-R.top+h.top)/b.y,bottom:(R.bottom-y.bottom+h.bottom)/b.y,left:(y.left-R.left+h.left)/b.x,right:(R.right-y.right+h.right)/b.x}}function O(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function E(t){return n.some((e=>t[e]>=0))}const T=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:r,placement:l,middlewareData:c}=e,s=await async function(t,e){const{placement:n,platform:o,elements:i}=t,r=await(null==o.isRTL?void 0:o.isRTL(i.floating)),l=d(n),c=p(n),s="y"===g(n),a=["left","top"].includes(l)?-1:1,f=r&&s?-1:1,m=u(e,t);let{mainAxis:h,crossAxis:y,alignmentAxis:x}="number"==typeof m?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return c&&"number"==typeof x&&(y="end"===c?-1*x:x),s?{x:y*f,y:h*a}:{x:h*a,y:y*f}}(e,t);return l===(null==(n=c.offset)?void 0:n.placement)&&null!=(o=c.arrow)&&o.alignmentOffset?{}:{x:i+s.x,y:r+s.y,data:{...s,placement:l}}}}};function L(t){return D(t)?(t.nodeName||"").toLowerCase():"#document"}function A(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function C(t){var e;return null==(e=(D(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function D(t){return t instanceof Node||t instanceof A(t).Node}function S(t){return t instanceof Element||t instanceof A(t).Element}function P(t){return t instanceof HTMLElement||t instanceof A(t).HTMLElement}function F(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof A(t).ShadowRoot)}function H(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=W(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function k(t){return["table","td","th"].includes(L(t))}function B(t){const e=M(),n=W(t);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function M(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function j(t){return["html","body","#document"].includes(L(t))}function W(t){return A(t).getComputedStyle(t)}function V(t){return S(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function N(t){if("html"===L(t))return t;const e=t.assignedSlot||t.parentNode||F(t)&&t.host||C(t);return F(e)?e.host:e}function z(t){const e=N(t);return j(e)?t.ownerDocument?t.ownerDocument.body:t.body:P(e)&&H(e)?e:z(e)}function I(t,e,n){var o;void 0===e&&(e=[]),void 0===n&&(n=!0);const i=z(t),r=i===(null==(o=t.ownerDocument)?void 0:o.body),l=A(i);return r?e.concat(l,l.visualViewport||[],H(i)?i:[],l.frameElement&&n?I(l.frameElement):[]):e.concat(i,I(i,[],n))}function $(t){const e=W(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=P(t),l=i?t.offsetWidth:n,c=i?t.offsetHeight:o,s=r(n)!==l||r(o)!==c;return s&&(n=l,o=c),{width:n,height:o,$:s}}function q(t){return S(t)?t:t.contextElement}function X(t){const e=q(t);if(!P(e))return c(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:l}=$(e);let s=(l?r(n.width):n.width)/o,a=(l?r(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const Y=c(0);function _(t){const e=A(t);return M()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Y}function G(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const i=t.getBoundingClientRect(),r=q(t);let l=c(1);e&&(o?S(o)&&(l=X(o)):l=X(t));const s=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==A(t))&&e}(r,n,o)?_(r):c(0);let a=(i.left+s.x)/l.x,f=(i.top+s.y)/l.y,u=i.width/l.x,d=i.height/l.y;if(r){const t=A(r),e=o&&S(o)?A(o):o;let n=t,i=n.frameElement;for(;i&&o&&e!==n;){const t=X(i),e=i.getBoundingClientRect(),o=W(i),r=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,l=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;a*=t.x,f*=t.y,u*=t.x,d*=t.y,a+=r,f+=l,n=A(i),i=n.frameElement}}return v({width:u,height:d,x:a,y:f})}const J=[":popover-open",":modal"];function K(t){return J.some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function Q(t){return G(C(t)).left+V(t).scrollLeft}function U(t,e,n){let o;if("viewport"===e)o=function(t,e){const n=A(t),o=C(t),i=n.visualViewport;let r=o.clientWidth,l=o.clientHeight,c=0,s=0;if(i){r=i.width,l=i.height;const t=M();(!t||t&&"fixed"===e)&&(c=i.offsetLeft,s=i.offsetTop)}return{width:r,height:l,x:c,y:s}}(t,n);else if("document"===e)o=function(t){const e=C(t),n=V(t),o=t.ownerDocument.body,r=i(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),l=i(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let c=-n.scrollLeft+Q(t);const s=-n.scrollTop;return"rtl"===W(o).direction&&(c+=i(e.clientWidth,o.clientWidth)-r),{width:r,height:l,x:c,y:s}}(C(t));else if(S(e))o=function(t,e){const n=G(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=P(t)?X(t):c(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:i*r.x,y:o*r.y}}(e,n);else{const n=_(t);o={...e,x:e.x-n.x,y:e.y-n.y}}return v(o)}function Z(t,e){const n=N(t);return!(n===e||!S(n)||j(n))&&("fixed"===W(n).position||Z(n,e))}function tt(t,e,n){const o=P(e),i=C(e),r="fixed"===n,l=G(t,!0,r,e);let s={scrollLeft:0,scrollTop:0};const a=c(0);if(o||!o&&!r)if(("body"!==L(e)||H(i))&&(s=V(e)),o){const t=G(e,!0,r,e);a.x=t.x+e.clientLeft,a.y=t.y+e.clientTop}else i&&(a.x=Q(i));return{x:l.left+s.scrollLeft-a.x,y:l.top+s.scrollTop-a.y,width:l.width,height:l.height}}function et(t,e){return P(t)&&"fixed"!==W(t).position?e?e(t):t.offsetParent:null}function nt(t,e){const n=A(t);if(!P(t)||K(t))return n;let o=et(t,e);for(;o&&k(o)&&"static"===W(o).position;)o=et(o,e);return o&&("html"===L(o)||"body"===L(o)&&"static"===W(o).position&&!B(o))?n:o||function(t){let e=N(t);for(;P(e)&&!j(e);){if(B(e))return e;e=N(e)}return null}(t)||n}const ot={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r="fixed"===i,l=C(o),s=!!e&&K(e.floating);if(o===l||s&&r)return n;let a={scrollLeft:0,scrollTop:0},f=c(1);const u=c(0),d=P(o);if((d||!d&&!r)&&(("body"!==L(o)||H(l))&&(a=V(o)),P(o))){const t=G(o);f=X(o),u.x=t.x+o.clientLeft,u.y=t.y+o.clientTop}return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-a.scrollLeft*f.x+u.x,y:n.y*f.y-a.scrollTop*f.y+u.y}},getDocumentElement:C,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:r,strategy:l}=t;const c=[..."clippingAncestors"===n?function(t,e){const n=e.get(t);if(n)return n;let o=I(t,[],!1).filter((t=>S(t)&&"body"!==L(t))),i=null;const r="fixed"===W(t).position;let l=r?N(t):t;for(;S(l)&&!j(l);){const e=W(l),n=B(l);n||"fixed"!==e.position||(i=null),(r?!n&&!i:!n&&"static"===e.position&&i&&["absolute","fixed"].includes(i.position)||H(l)&&!n&&Z(t,l))?o=o.filter((t=>t!==l)):i=e,l=N(l)}return e.set(t,o),o}(e,this._c):[].concat(n),r],s=c[0],a=c.reduce(((t,n)=>{const r=U(e,n,l);return t.top=i(r.top,t.top),t.right=o(r.right,t.right),t.bottom=o(r.bottom,t.bottom),t.left=i(r.left,t.left),t}),U(e,s,l));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:nt,getElementRects:async function(t){const e=this.getOffsetParent||nt,n=this.getDimensions;return{reference:tt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,...await n(t.floating)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=$(t);return{width:e,height:n}},getScale:X,isElement:S,isRTL:function(t){return"rtl"===W(t).direction}};function it(t,e,n,r){void 0===r&&(r={});const{ancestorScroll:c=!0,ancestorResize:s=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:f="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,d=q(t),p=c||s?[...d?I(d):[],...I(e)]:[];p.forEach((t=>{c&&t.addEventListener("scroll",n,{passive:!0}),s&&t.addEventListener("resize",n)}));const m=d&&f?function(t,e){let n,r=null;const c=C(t);function s(){var t;clearTimeout(n),null==(t=r)||t.disconnect(),r=null}return function a(f,u){void 0===f&&(f=!1),void 0===u&&(u=1),s();const{left:d,top:p,width:m,height:h}=t.getBoundingClientRect();if(f||e(),!m||!h)return;const g={rootMargin:-l(p)+"px "+-l(c.clientWidth-(d+m))+"px "+-l(c.clientHeight-(p+h))+"px "+-l(d)+"px",threshold:i(0,o(1,u))||1};let y=!0;function x(t){const e=t[0].intersectionRatio;if(e!==u){if(!y)return a();e?a(!1,e):n=setTimeout((()=>{a(!1,1e-7)}),100)}y=!1}try{r=new IntersectionObserver(x,{...g,root:c.ownerDocument})}catch(t){r=new IntersectionObserver(x,g)}r.observe(t)}(!0),s}(d,n):null;let h,g=-1,y=null;a&&(y=new ResizeObserver((t=>{let[o]=t;o&&o.target===d&&y&&(y.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame((()=>{var t;null==(t=y)||t.observe(e)}))),n()})),d&&!u&&y.observe(d),y.observe(e));let x=u?G(t):null;return u&&function e(){const o=G(t);!x||o.x===x.x&&o.y===x.y&&o.width===x.width&&o.height===x.height||n();x=o,h=requestAnimationFrame(e)}(),n(),()=>{var t;p.forEach((t=>{c&&t.removeEventListener("scroll",n),s&&t.removeEventListener("resize",n)})),null==m||m(),null==(t=y)||t.disconnect(),y=null,u&&cancelAnimationFrame(h)}}const rt=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:r=!0,crossAxis:l=!1,limiter:c={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...s}=u(t,e),a={x:n,y:o},p=await R(e,s),h=g(d(i)),y=m(h);let x=a[y],w=a[h];if(r){const t="y"===y?"bottom":"right";x=f(x+p["y"===y?"top":"left"],x,x-p[t])}if(l){const t="y"===h?"bottom":"right";w=f(w+p["y"===h?"top":"left"],w,w-p[t])}const v=c.fn({...e,[y]:x,[h]:w});return{...v,data:{x:v.x-n,y:v.y-o}}}}},lt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:l,initialPlacement:c,platform:s,elements:a}=e,{mainAxis:f=!0,crossAxis:m=!0,fallbackPlacements:g,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:O=!0,...E}=u(t,e);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const T=d(i),L=d(c)===c,A=await(null==s.isRTL?void 0:s.isRTL(a.floating)),C=g||(L||!O?[w(c)]:function(t){const e=w(t);return[x(t),e,x(e)]}(c));g||"none"===b||C.push(...function(t,e,n,o){const i=p(t);let r=function(t,e,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],l=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:l;default:return[]}}(d(t),"start"===n,o);return i&&(r=r.map((t=>t+"-"+i)),e&&(r=r.concat(r.map(x)))),r}(c,O,b,A));const D=[c,...C],S=await R(e,E),P=[];let F=(null==(o=r.flip)?void 0:o.overflows)||[];if(f&&P.push(S[T]),m){const t=function(t,e,n){void 0===n&&(n=!1);const o=p(t),i=y(t),r=h(i);let l="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[r]>e.floating[r]&&(l=w(l)),[l,w(l)]}(i,l,A);P.push(S[t[0]],S[t[1]])}if(F=[...F,{placement:i,overflows:P}],!P.every((t=>t<=0))){var H,k;const t=((null==(H=r.flip)?void 0:H.index)||0)+1,e=D[t];if(e)return{data:{index:t,overflows:F},reset:{placement:e}};let n=null==(k=F.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:k.placement;if(!n)switch(v){case"bestFit":{var B;const t=null==(B=F.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:B[0];t&&(n=t);break}case"initialPlacement":n=c}if(i!==n)return{reset:{placement:n}}}return{}}}},ct=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:o="referenceHidden",...i}=u(t,e);switch(o){case"referenceHidden":{const t=O(await R(e,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:E(t)}}}case"escaped":{const t=O(await R(e,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:t,escaped:E(t)}}}default:return{}}}}},st=(t,e,n)=>{const o=new Map,i={platform:ot,...n},r={...i.platform,_c:o};return(async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:l}=n,c=r.filter(Boolean),s=await(null==l.isRTL?void 0:l.isRTL(e));let a=await l.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:u}=b(a,o,s),d=o,p={},m=0;for(let n=0;n<c.length;n++){const{name:r,fn:h}=c[n],{x:g,y,data:x,reset:w}=await h({x:f,y:u,initialPlacement:o,placement:d,strategy:i,middlewareData:p,rects:a,platform:l,elements:{reference:t,floating:e}});f=null!=g?g:f,u=null!=y?y:u,p={...p,[r]:{...p[r],...x}},w&&m<=50&&(m++,"object"==typeof w&&(w.placement&&(d=w.placement),w.rects&&(a=!0===w.rects?await l.getElementRects({reference:t,floating:e,strategy:i}):w.rects),({x:f,y:u}=b(a,d,s))),n=-1)}return{x:f,y:u,placement:d,strategy:i,middlewareData:p}})(t,e,{...i,platform:r})};const at={openMenu:function(t,e,n,o){var i;let r;r="x"in t?{getBoundingClientRect:()=>({x:t.x,y:t.y,top:t.y,left:t.x,bottom:t.y,right:t.x,width:0,height:0}),parentElement:document.body}:t;const l=(t=>{const e=document.createElement("div");return e.className="nj-menu",e.appendChild(t),e})(e);let c=r.parentElement;"parent"!==n&&(c="string"==typeof n?null!==(i=document.getElementById(n))&&void 0!==i?i:c:n),c.appendChild(l);const s=it(r,l,(()=>{st(r,l,Object.assign(Object.assign({},o),{middleware:[(null==o?void 0:o.offsetOptions)&&T(o.offsetOptions),(null==o?void 0:o.flipOptions)&&lt(o.flipOptions),(null==o?void 0:o.shiftOptions)&&rt(o.shiftOptions),(null==o?void 0:o.hideOptions)&&ct(o.hideOptions)]})).then((t=>{let{x:e,y:n,middlewareData:i}=t;var r;Object.assign(l.style,{left:`${e}px`,top:`${n}px`}),(null===(r=null==o?void 0:o.hideOptions)||void 0===r?void 0:r.strategy)&&i.hide&&Object.assign(l.style,{visibility:i.hide[o.hideOptions.strategy]?"hidden":"visible"})}))}));return{menu:l,unmount:()=>{c.removeChild(l),s()}}}};return e=e.default})()));
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("Menu",[],e):"object"==typeof exports?exports.Menu=e():t.Menu=e()}(window,(()=>(()=>{"use strict";var t={d:(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},e={};t.d(e,{default:()=>at});const n=["top","right","bottom","left"],o=Math.min,i=Math.max,r=Math.round,l=Math.floor,c=t=>({x:t,y:t}),s={left:"right",right:"left",bottom:"top",top:"bottom"},a={start:"end",end:"start"};function f(t,e,n){return i(t,o(e,n))}function u(t,e){return"function"==typeof t?t(e):t}function d(t){return t.split("-")[0]}function p(t){return t.split("-")[1]}function h(t){return"x"===t?"y":"x"}function m(t){return"y"===t?"height":"width"}function g(t){return["top","bottom"].includes(d(t))?"y":"x"}function y(t){return h(g(t))}function x(t){return t.replace(/start|end/g,(t=>a[t]))}function w(t){return t.replace(/left|right|bottom|top/g,(t=>s[t]))}function v(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function b(t,e,n){let{reference:o,floating:i}=t;const r=g(e),l=y(e),c=m(l),s=d(e),a="y"===r,f=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,h=o[c]/2-i[c]/2;let x;switch(s){case"top":x={x:f,y:o.y-i.height};break;case"bottom":x={x:f,y:o.y+o.height};break;case"right":x={x:o.x+o.width,y:u};break;case"left":x={x:o.x-i.width,y:u};break;default:x={x:o.x,y:o.y}}switch(p(e)){case"start":x[l]-=h*(n&&a?-1:1);break;case"end":x[l]+=h*(n&&a?-1:1)}return x}async function R(t,e){var n;void 0===e&&(e={});const{x:o,y:i,platform:r,rects:l,elements:c,strategy:s}=t,{boundary:a="clippingAncestors",rootBoundary:f="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=u(e,t),m=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(h),g=c[p?"floating"===d?"reference":"floating":d],y=v(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(g)))||n?g:g.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(c.floating)),boundary:a,rootBoundary:f,strategy:s})),x="floating"===d?{x:o,y:i,width:l.floating.width,height:l.floating.height}:l.reference,w=await(null==r.getOffsetParent?void 0:r.getOffsetParent(c.floating)),b=await(null==r.isElement?void 0:r.isElement(w))&&await(null==r.getScale?void 0:r.getScale(w))||{x:1,y:1},R=v(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:x,offsetParent:w,strategy:s}):x);return{top:(y.top-R.top+m.top)/b.y,bottom:(R.bottom-y.bottom+m.bottom)/b.y,left:(y.left-R.left+m.left)/b.x,right:(R.right-y.right+m.right)/b.x}}function O(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function E(t){return n.some((e=>t[e]>=0))}const T=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:r,placement:l,middlewareData:c}=e,s=await async function(t,e){const{placement:n,platform:o,elements:i}=t,r=await(null==o.isRTL?void 0:o.isRTL(i.floating)),l=d(n),c=p(n),s="y"===g(n),a=["left","top"].includes(l)?-1:1,f=r&&s?-1:1,h=u(e,t);let{mainAxis:m,crossAxis:y,alignmentAxis:x}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...h};return c&&"number"==typeof x&&(y="end"===c?-1*x:x),s?{x:y*f,y:m*a}:{x:m*a,y:y*f}}(e,t);return l===(null==(n=c.offset)?void 0:n.placement)&&null!=(o=c.arrow)&&o.alignmentOffset?{}:{x:i+s.x,y:r+s.y,data:{...s,placement:l}}}}};function L(t){return D(t)?(t.nodeName||"").toLowerCase():"#document"}function A(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function C(t){var e;return null==(e=(D(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function D(t){return t instanceof Node||t instanceof A(t).Node}function S(t){return t instanceof Element||t instanceof A(t).Element}function P(t){return t instanceof HTMLElement||t instanceof A(t).HTMLElement}function F(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof A(t).ShadowRoot)}function H(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=W(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function k(t){return["table","td","th"].includes(L(t))}function B(t){const e=M(),n=W(t);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function M(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function j(t){return["html","body","#document"].includes(L(t))}function W(t){return A(t).getComputedStyle(t)}function V(t){return S(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function N(t){if("html"===L(t))return t;const e=t.assignedSlot||t.parentNode||F(t)&&t.host||C(t);return F(e)?e.host:e}function z(t){const e=N(t);return j(e)?t.ownerDocument?t.ownerDocument.body:t.body:P(e)&&H(e)?e:z(e)}function I(t,e,n){var o;void 0===e&&(e=[]),void 0===n&&(n=!0);const i=z(t),r=i===(null==(o=t.ownerDocument)?void 0:o.body),l=A(i);return r?e.concat(l,l.visualViewport||[],H(i)?i:[],l.frameElement&&n?I(l.frameElement):[]):e.concat(i,I(i,[],n))}function $(t){const e=W(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=P(t),l=i?t.offsetWidth:n,c=i?t.offsetHeight:o,s=r(n)!==l||r(o)!==c;return s&&(n=l,o=c),{width:n,height:o,$:s}}function q(t){return S(t)?t:t.contextElement}function X(t){const e=q(t);if(!P(e))return c(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:l}=$(e);let s=(l?r(n.width):n.width)/o,a=(l?r(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const Y=c(0);function _(t){const e=A(t);return M()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Y}function G(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const i=t.getBoundingClientRect(),r=q(t);let l=c(1);e&&(o?S(o)&&(l=X(o)):l=X(t));const s=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==A(t))&&e}(r,n,o)?_(r):c(0);let a=(i.left+s.x)/l.x,f=(i.top+s.y)/l.y,u=i.width/l.x,d=i.height/l.y;if(r){const t=A(r),e=o&&S(o)?A(o):o;let n=t,i=n.frameElement;for(;i&&o&&e!==n;){const t=X(i),e=i.getBoundingClientRect(),o=W(i),r=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,l=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;a*=t.x,f*=t.y,u*=t.x,d*=t.y,a+=r,f+=l,n=A(i),i=n.frameElement}}return v({width:u,height:d,x:a,y:f})}const J=[":popover-open",":modal"];function K(t){return J.some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function Q(t){return G(C(t)).left+V(t).scrollLeft}function U(t,e,n){let o;if("viewport"===e)o=function(t,e){const n=A(t),o=C(t),i=n.visualViewport;let r=o.clientWidth,l=o.clientHeight,c=0,s=0;if(i){r=i.width,l=i.height;const t=M();(!t||t&&"fixed"===e)&&(c=i.offsetLeft,s=i.offsetTop)}return{width:r,height:l,x:c,y:s}}(t,n);else if("document"===e)o=function(t){const e=C(t),n=V(t),o=t.ownerDocument.body,r=i(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),l=i(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let c=-n.scrollLeft+Q(t);const s=-n.scrollTop;return"rtl"===W(o).direction&&(c+=i(e.clientWidth,o.clientWidth)-r),{width:r,height:l,x:c,y:s}}(C(t));else if(S(e))o=function(t,e){const n=G(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=P(t)?X(t):c(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:i*r.x,y:o*r.y}}(e,n);else{const n=_(t);o={...e,x:e.x-n.x,y:e.y-n.y}}return v(o)}function Z(t,e){const n=N(t);return!(n===e||!S(n)||j(n))&&("fixed"===W(n).position||Z(n,e))}function tt(t,e,n){const o=P(e),i=C(e),r="fixed"===n,l=G(t,!0,r,e);let s={scrollLeft:0,scrollTop:0};const a=c(0);if(o||!o&&!r)if(("body"!==L(e)||H(i))&&(s=V(e)),o){const t=G(e,!0,r,e);a.x=t.x+e.clientLeft,a.y=t.y+e.clientTop}else i&&(a.x=Q(i));return{x:l.left+s.scrollLeft-a.x,y:l.top+s.scrollTop-a.y,width:l.width,height:l.height}}function et(t,e){return P(t)&&"fixed"!==W(t).position?e?e(t):t.offsetParent:null}function nt(t,e){const n=A(t);if(!P(t)||K(t))return n;let o=et(t,e);for(;o&&k(o)&&"static"===W(o).position;)o=et(o,e);return o&&("html"===L(o)||"body"===L(o)&&"static"===W(o).position&&!B(o))?n:o||function(t){let e=N(t);for(;P(e)&&!j(e);){if(B(e))return e;e=N(e)}return null}(t)||n}const ot={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r="fixed"===i,l=C(o),s=!!e&&K(e.floating);if(o===l||s&&r)return n;let a={scrollLeft:0,scrollTop:0},f=c(1);const u=c(0),d=P(o);if((d||!d&&!r)&&(("body"!==L(o)||H(l))&&(a=V(o)),P(o))){const t=G(o);f=X(o),u.x=t.x+o.clientLeft,u.y=t.y+o.clientTop}return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-a.scrollLeft*f.x+u.x,y:n.y*f.y-a.scrollTop*f.y+u.y}},getDocumentElement:C,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:r,strategy:l}=t;const c=[..."clippingAncestors"===n?function(t,e){const n=e.get(t);if(n)return n;let o=I(t,[],!1).filter((t=>S(t)&&"body"!==L(t))),i=null;const r="fixed"===W(t).position;let l=r?N(t):t;for(;S(l)&&!j(l);){const e=W(l),n=B(l);n||"fixed"!==e.position||(i=null),(r?!n&&!i:!n&&"static"===e.position&&i&&["absolute","fixed"].includes(i.position)||H(l)&&!n&&Z(t,l))?o=o.filter((t=>t!==l)):i=e,l=N(l)}return e.set(t,o),o}(e,this._c):[].concat(n),r],s=c[0],a=c.reduce(((t,n)=>{const r=U(e,n,l);return t.top=i(r.top,t.top),t.right=o(r.right,t.right),t.bottom=o(r.bottom,t.bottom),t.left=i(r.left,t.left),t}),U(e,s,l));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:nt,getElementRects:async function(t){const e=this.getOffsetParent||nt,n=this.getDimensions;return{reference:tt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,...await n(t.floating)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=$(t);return{width:e,height:n}},getScale:X,isElement:S,isRTL:function(t){return"rtl"===W(t).direction}};function it(t,e,n,r){void 0===r&&(r={});const{ancestorScroll:c=!0,ancestorResize:s=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:f="function"==typeof IntersectionObserver,animationFrame:u=!1}=r,d=q(t),p=c||s?[...d?I(d):[],...I(e)]:[];p.forEach((t=>{c&&t.addEventListener("scroll",n,{passive:!0}),s&&t.addEventListener("resize",n)}));const h=d&&f?function(t,e){let n,r=null;const c=C(t);function s(){var t;clearTimeout(n),null==(t=r)||t.disconnect(),r=null}return function a(f,u){void 0===f&&(f=!1),void 0===u&&(u=1),s();const{left:d,top:p,width:h,height:m}=t.getBoundingClientRect();if(f||e(),!h||!m)return;const g={rootMargin:-l(p)+"px "+-l(c.clientWidth-(d+h))+"px "+-l(c.clientHeight-(p+m))+"px "+-l(d)+"px",threshold:i(0,o(1,u))||1};let y=!0;function x(t){const e=t[0].intersectionRatio;if(e!==u){if(!y)return a();e?a(!1,e):n=setTimeout((()=>{a(!1,1e-7)}),100)}y=!1}try{r=new IntersectionObserver(x,{...g,root:c.ownerDocument})}catch(t){r=new IntersectionObserver(x,g)}r.observe(t)}(!0),s}(d,n):null;let m,g=-1,y=null;a&&(y=new ResizeObserver((t=>{let[o]=t;o&&o.target===d&&y&&(y.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame((()=>{var t;null==(t=y)||t.observe(e)}))),n()})),d&&!u&&y.observe(d),y.observe(e));let x=u?G(t):null;return u&&function e(){const o=G(t);!x||o.x===x.x&&o.y===x.y&&o.width===x.width&&o.height===x.height||n();x=o,m=requestAnimationFrame(e)}(),n(),()=>{var t;p.forEach((t=>{c&&t.removeEventListener("scroll",n),s&&t.removeEventListener("resize",n)})),null==h||h(),null==(t=y)||t.disconnect(),y=null,u&&cancelAnimationFrame(m)}}const rt=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:r=!0,crossAxis:l=!1,limiter:c={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...s}=u(t,e),a={x:n,y:o},p=await R(e,s),m=g(d(i)),y=h(m);let x=a[y],w=a[m];if(r){const t="y"===y?"bottom":"right";x=f(x+p["y"===y?"top":"left"],x,x-p[t])}if(l){const t="y"===m?"bottom":"right";w=f(w+p["y"===m?"top":"left"],w,w-p[t])}const v=c.fn({...e,[y]:x,[m]:w});return{...v,data:{x:v.x-n,y:v.y-o}}}}},lt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:l,initialPlacement:c,platform:s,elements:a}=e,{mainAxis:f=!0,crossAxis:h=!0,fallbackPlacements:g,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:O=!0,...E}=u(t,e);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const T=d(i),L=d(c)===c,A=await(null==s.isRTL?void 0:s.isRTL(a.floating)),C=g||(L||!O?[w(c)]:function(t){const e=w(t);return[x(t),e,x(e)]}(c));g||"none"===b||C.push(...function(t,e,n,o){const i=p(t);let r=function(t,e,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],l=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:l;default:return[]}}(d(t),"start"===n,o);return i&&(r=r.map((t=>t+"-"+i)),e&&(r=r.concat(r.map(x)))),r}(c,O,b,A));const D=[c,...C],S=await R(e,E),P=[];let F=(null==(o=r.flip)?void 0:o.overflows)||[];if(f&&P.push(S[T]),h){const t=function(t,e,n){void 0===n&&(n=!1);const o=p(t),i=y(t),r=m(i);let l="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[r]>e.floating[r]&&(l=w(l)),[l,w(l)]}(i,l,A);P.push(S[t[0]],S[t[1]])}if(F=[...F,{placement:i,overflows:P}],!P.every((t=>t<=0))){var H,k;const t=((null==(H=r.flip)?void 0:H.index)||0)+1,e=D[t];if(e)return{data:{index:t,overflows:F},reset:{placement:e}};let n=null==(k=F.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:k.placement;if(!n)switch(v){case"bestFit":{var B;const t=null==(B=F.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:B[0];t&&(n=t);break}case"initialPlacement":n=c}if(i!==n)return{reset:{placement:n}}}return{}}}},ct=function(t){return void 0===t&&(t={}),{name:"hide",options:t,async fn(e){const{rects:n}=e,{strategy:o="referenceHidden",...i}=u(t,e);switch(o){case"referenceHidden":{const t=O(await R(e,{...i,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:t,referenceHidden:E(t)}}}case"escaped":{const t=O(await R(e,{...i,altBoundary:!0}),n.floating);return{data:{escapedOffsets:t,escaped:E(t)}}}default:return{}}}}},st=(t,e,n)=>{const o=new Map,i={platform:ot,...n},r={...i.platform,_c:o};return(async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:l}=n,c=r.filter(Boolean),s=await(null==l.isRTL?void 0:l.isRTL(e));let a=await l.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:u}=b(a,o,s),d=o,p={},h=0;for(let n=0;n<c.length;n++){const{name:r,fn:m}=c[n],{x:g,y,data:x,reset:w}=await m({x:f,y:u,initialPlacement:o,placement:d,strategy:i,middlewareData:p,rects:a,platform:l,elements:{reference:t,floating:e}});f=null!=g?g:f,u=null!=y?y:u,p={...p,[r]:{...p[r],...x}},w&&h<=50&&(h++,"object"==typeof w&&(w.placement&&(d=w.placement),w.rects&&(a=!0===w.rects?await l.getElementRects({reference:t,floating:e,strategy:i}):w.rects),({x:f,y:u}=b(a,d,s))),n=-1)}return{x:f,y:u,placement:d,strategy:i,middlewareData:p}})(t,e,{...i,platform:r})};const at={openMenu:function(t,e,n,o){var i;let r;r="x"in t?{getBoundingClientRect:()=>({x:t.x,y:t.y,top:t.y,left:t.x,bottom:t.y,right:t.x,width:0,height:0}),parentElement:document.body}:t;const l=(t=>{const e=document.createElement("div");return e.className="nj-menu",e.appendChild(t),e})(e);let c=r.parentElement;"parent"!==n&&(c="string"==typeof n?null!==(i=document.getElementById(n))&&void 0!==i?i:c:n),c.appendChild(l);const s=it(r,l,(()=>{st(r,l,Object.assign(Object.assign({},o),{middleware:[(null==o?void 0:o.offsetOptions)&&T(o.offsetOptions),(null==o?void 0:o.flipOptions)&&lt(o.flipOptions),(null==o?void 0:o.shiftOptions)&&rt(o.shiftOptions),(null==o?void 0:o.hideOptions)&&ct(o.hideOptions)]})).then((t=>{let{x:e,y:n,middlewareData:i}=t;var r;Object.assign(l.style,{left:`${e}px`,top:`${n}px`}),(null===(r=null==o?void 0:o.hideOptions)||void 0===r?void 0:r.strategy)&&i.hide&&Object.assign(l.style,{visibility:i.hide[o.hideOptions.strategy]?"hidden":"visible"})}))}));return{menu:l,unmount:()=>{c.removeChild(l),s()}}}};return e=e.default})()));
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Modal",[],t):"object"==typeof exports?exports.Modal=t():e.Modal=t()}(window,(()=>(()=>{"use strict";var e,t,n,o,i={d:(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},s={};i.d(s,{default:()=>g}),function(e){e.LIBRARY_LOG_TAG="[FLUID]",e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(e||(e={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(t||(t={})),function(e){e.beforehide="beforehide",e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(n||(n={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(o||(o={})),window.NJStore=window.NJStore||[];const r=(()=>{const e=window.NJStore;return{set(t,n,o){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=o},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const o=t.key;o.key===n&&(delete e[o.id],delete t.key)}}})(),a={setData(e,t,n){r.set(e,t,n)},getData:(e,t)=>r.get(e,t),removeData(e,t){r.delete(e,t)}},l=a;class d{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o=[],i=document.querySelectorAll(n);for(let n=0;n<i.length;n++){const s=i[n];if(!s.key||s.key.key!==e.DATA_KEY){const r=new e(i[n],t);s.key||l.setData(i[n],e.DATA_KEY,r),o.push(r)}}return o}}class c{static getUidEvent(e,t){return t&&`${t}::${c.uidEvent++}`||e.uidEvent||c.uidEvent++}static getEvent(e){const t=c.getUidEvent(e);return e.uidEvent=t,c.EVENTREGISTRY[t]=c.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&c.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=o=>(c.fixEvent(o,e),n.oneOff&&c.off(e,o.type,t),t.apply(e,[o]));return n}static njDelegationHandler(e,t,n){const o=i=>{const s=e.querySelectorAll(t);for(let t=i.target;t&&t!==this;t=t.parentNode)for(let r=s.length;r>=0;r--)if(s[r]===t)return c.fixEvent(i,t),o.oneOff&&c.off(e,i.type,n),n.apply(t,[i]);return null};return o}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;const i=e[o];if(i.originalHandler===t&&i.delegationSelector===n)return e[o]}return null}static normalizeParams(e,n,i){const s="string"==typeof n,r=s?i:n;let a=e.replace(c.STRIPNAME_REGEX,"");const l=t[a];l&&(a=l);return"string"==typeof o[a]||(a=e),[s,r,a]}static addHandler(e,t,n,o,i){if("string"!=typeof t||null==e)return;n||(n=o,o=null);const s=c.getEvent(e);for(const r of t.split(" ")){const[t,a,l]=c.normalizeParams(r,n,o),d=s[l]||(s[l]={}),h=c.findHandler(d,a,t?n:null);if(h)return void(h.oneOff=h.oneOff&&i);const u=c.getUidEvent(a,r.replace(c.NAMESPACE_REGEX,"")),E=t?c.njDelegationHandler(e,n,o):c.njHandler(e,n);E.delegationSelector=t?n:null,E.originalHandler=a,E.oneOff=i,E.uidEvent=u,d[u]=E,e.addEventListener(l,E,t)}}static removeHandler(e,t,n,o,i){const s=c.findHandler(t[n],o,i);null!==s&&(e.removeEventListener(n,s,Boolean(i)),delete t[n][s.uidEvent])}static removeNamespacedHandlers(e,t,n,o){const i=t[n]||{};for(const s in i)if(Object.prototype.hasOwnProperty.call(i,s)&&s.indexOf(o)>-1){const o=i[s];c.removeHandler(e,t,n,o.originalHandler,o.delegationSelector)}}static on(e,t,n,o){c.addHandler(e,t,n,o,!1)}static one(e,t,n,o){c.addHandler(e,t,n,o,!0)}static off(e,t,n,o){if("string"!=typeof t||null==e)return;const[i,s,r]=c.normalizeParams(t,n,o),a=r!==t,l=c.getEvent(e);if(void 0!==s){if(!l||!l[r])return;return void c.removeHandler(e,l,r,s,i?n:null)}if("."===t.charAt(0))for(const n in l)Object.prototype.hasOwnProperty.call(l,n)&&c.removeNamespacedHandlers(e,l,n,t.substr(1));const d=l[r]||{};for(const n in d){if(!Object.prototype.hasOwnProperty.call(d,n))continue;const o=n.replace(c.STRIPUID_REGEX,"");if(!a||t.indexOf(o)>-1){const t=d[n];c.removeHandler(e,l,r,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const i=t.replace(c.STRIPNAME_REGEX,""),s="string"==typeof o[i];let r=null;return s?(r=document.createEvent("HTMLEvents"),r.initEvent(i,true,!0)):r=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(r,e,{get:()=>n[e]})})),e.dispatchEvent(r),r}}c.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,c.STRIPNAME_REGEX=/\..*/,c.KEYEVENT_REGEX=/^key/,c.STRIPUID_REGEX=/::\d+$/,c.EVENTREGISTRY={},c.uidEvent=1;const h=c;const u={TRANSITION_END:"transitionend",getUID(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},getSelectorFromElement(e){let t=e.getAttribute("data-target");if(!t||"#"===t){const n=e.getAttribute("href");t=n&&"#"!==n?n.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement(e){if(!e)return 0;let t=window.getComputedStyle(e).transitionDuration,n=window.getComputedStyle(e).transitionDelay;const o=parseFloat(t),i=parseFloat(n);return o||i?(t=t.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(t)+parseFloat(n))):0},reflow:e=>e.offsetHeight,triggerTransitionEnd(e){const t=new CustomEvent(u.TRANSITION_END,{});e.dispatchEvent(t)},isElement:e=>(e[0]||e).nodeType,emulateTransitionEnd(e,t){let n=!1;const o=t+5;e.addEventListener(u.TRANSITION_END,(function t(){n=!0,e.removeEventListener(u.TRANSITION_END,t)})),setTimeout((()=>{n||u.triggerTransitionEnd(e)}),o)},typeCheckConfig(e,t,n){for(const i in n)if(Object.prototype.hasOwnProperty.call(n,i)){const s=n[i],r=t[i],a=r&&u.isElement(r)?"element":(o=r,{}.toString.call(o).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(s).test(a))throw new Error(`${e.toUpperCase()}: Option "${i}" provided type "${a}" but expected type "${s}".`)}var o},makeArray:e=>null==e?[]:[].slice.call(e),findShadowRoot(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?u.findShadowRoot(e.parentElement):null},throttle(e,t,n,o,i){let s,r,a,l=null,d=0;const c=()=>{d=Date.now(),l=null,a=e.apply(r,s)};return()=>{const h=Date.now();d||n||(d=h);const u=t-(h-d);return r=i||this,s=arguments,u<=0?(clearTimeout(l),l=null,d=h,a=e.apply(r,s)):!l&&o&&(l=setTimeout(c,u)),a}},coerceBool:e=>Boolean(e)},E=u,m=['a[href]:not([tabindex^="-"]):not([data-trap-anchor])','area[href]:not([tabindex^="-"]):not([data-trap-anchor])','input:not([type="hidden"]):not([type="radio"]):not([disabled]):not([tabindex^="-"]):not([data-trap-anchor])','input[type="radio"]:not([disabled]):not([tabindex^="-"]):not([data-trap-anchor])','select:not([disabled]):not([tabindex^="-"]):not([data-trap-anchor])','textarea:not([disabled]):not([tabindex^="-"]):not([data-trap-anchor])','button:not([disabled]):not([tabindex^="-"]):not([data-trap-anchor])','iframe:not([tabindex^="-"]):not([data-trap-anchor])','audio[controls]:not([tabindex^="-"]):not([data-trap-anchor])','video[controls]:not([tabindex^="-"]):not([data-trap-anchor])','[contenteditable]:not([tabindex^="-"]):not([data-trap-anchor])','[tabindex]:not([tabindex^="-"]):not([data-trap-anchor])'];class p extends d{constructor(e){var t;super(p,e),this.backdrop=null,this.dialog=null,this.ignoreBackdropClick=null,this.isShown=!1,this.isTransitioning=!1,this.triggerElement=null,this.shouldManageOpeningState=p.SHOULD_MANAGE_OPENING_STATE,this.dialog=this.element.querySelector(p.SELECTOR.dialog);const{leadingFocusTrap:n,trailingFocusTrap:o}=this.createFocusElements();if(this.leadingFocusTrapAnchorElement=n,this.trailingFocusTrapAnchorElement=o,this.shouldFitViewportArea=this.element.classList.contains(p.CLASSNAME.fitViewport),p.CAN_MOVE_ELEMENTS_IN_DOM){this.targetedParentElement=this.element.parentElement;const e=this.element.dataset.appendto;if(e&&!this.shouldFitViewportArea){const t=document.querySelector(e);this.isNodeElement(t)?this.targetedParentElement=t:console.error(`${p.LOG_TAG} Invalid element: Anchor element '${e}' is not a valid node element. Check your selector for [data-appendto]. Appended to parent element instead.`)}const n=this.isNodeElement(this.targetedParentElement);if(this.shouldFitViewportArea||!n){n||console.error(`${p.LOG_TAG} Invalid element: Parent element is not a valid node element. Appended to body instead.`);const e=document.body;if(!this.isNodeElement(e))throw new Error(`${p.LOG_TAG} No body element found. Unable to attach modal`);this.targetedParentElement=e}this.targetedParentElement!==this.element.parentElement&&(null===(t=this.targetedParentElement)||void 0===t||t.appendChild(this.element))}else{const e=this.element.parentElement;if(!this.isNodeElement(e))throw new Error(`${p.LOG_TAG} Invalid modal's parent element. Unable to initialize modal`);this.targetedParentElement=e}l.setData(e,p.DATA_KEY,this),this.shouldManageOpeningState&&!p.hasInit&&(p.hasInit=!0,this.registerEvents())}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,p.SELECTOR.default)}static getInstance(e){return l.getData(e,p.DATA_KEY)}isNodeElement(e){return e&&e.nodeType===Node.ELEMENT_NODE}createFocusElements(){function e(e){const t=document.createElement("div");return t.setAttribute("tabindex","0"),t.setAttribute("aria-hidden","true"),t.setAttribute("data-trap-anchor",""),t.addEventListener("focusin",e),t}return{leadingFocusTrap:e((()=>{const e=this.element.querySelector(m.join(","));null==e||e.focus()})),trailingFocusTrap:e((()=>{const e=Array.from(this.element.querySelectorAll(m.join(","))).at(-1);null==e||e.focus()}))}}addFocusTrapElements(){this.element.prepend(this.leadingFocusTrapAnchorElement),this.element.append(this.trailingFocusTrapAnchorElement)}removeFocusTrapElements(){this.element.removeChild(this.trailingFocusTrapAnchorElement),this.element.removeChild(this.leadingFocusTrapAnchorElement)}hideModal(){this.element&&(this.element.classList.remove(p.CLASSNAME.visible),this.element.setAttribute("aria-hidden","true"),this.element.removeAttribute("aria-modal"),this.isTransitioning=!1,this.showBackdrop(),this.removeFocusTrapElements(),h.trigger(this.element,p.EVENT.hidden))}removeBackdrop(){this.backdrop&&(this.backdrop.parentNode.removeChild(this.backdrop),this.backdrop=null)}setEscapeEvent(){this.isShown?h.on(this.element,p.EVENT.keydownDismiss,(e=>{e.which===p.ESCAPE_KEYCODE&&this.hide(e,"keyboard")})):h.off(this.element,p.EVENT.keydownDismiss)}showBackdrop(e){var t;if(!this.element)return;const n=this.element.classList.contains(p.CLASSNAME.fade)?p.CLASSNAME.fade:"";if(this.isShown){if(this.backdrop=document.createElement("div"),this.backdrop.className=p.CLASSNAME.backdrop,this.shouldFitViewportArea&&this.backdrop.classList.add(p.CLASSNAME.backdropFitViewport),n&&this.backdrop.classList.add(n),null===(t=this.targetedParentElement)||void 0===t||t.appendChild(this.backdrop),h.on(this.element,p.EVENT.clickDismiss,(e=>{this.ignoreBackdropClick?this.ignoreBackdropClick=!1:e.target===e.currentTarget&&this.hide(null,"backdrop")})),n&&E.reflow(this.backdrop),this.backdrop.classList.add(p.CLASSNAME.show),!e)return;if(!n)return void e();const o=E.getTransitionDurationFromElement(this.backdrop);h.one(this.backdrop,E.TRANSITION_END,e),E.emulateTransitionEnd(this.backdrop,o)}else if(!this.isShown&&this.backdrop){this.backdrop.classList.remove(p.CLASSNAME.show);const t=()=>{this.removeBackdrop(),e&&e()};if(this.element.classList.contains(p.CLASSNAME.fade)){const e=E.getTransitionDurationFromElement(this.backdrop);h.one(this.backdrop,E.TRANSITION_END,t),E.emulateTransitionEnd(this.backdrop,e)}else t()}else e&&e()}showElement(){if(!this.element)return;h.trigger(this.element,p.EVENT.show);const e=this.element.classList.contains(p.CLASSNAME.fade);this.element.classList.add(p.CLASSNAME.visible),this.element.removeAttribute("aria-hidden"),this.element.scrollTop=0,e&&E.reflow(this.element),this.element.classList.add(p.CLASSNAME.show),document.activeElement&&(this.triggerElement=document.activeElement),this.addFocusTrapElements(),this.element.setAttribute("aria-modal","true");const t=()=>{const e=this.element.querySelector(m.join(","));null==e||e.focus(),this.isTransitioning=!1,h.trigger(this.element,p.EVENT.shown)};if(e){const e=E.getTransitionDurationFromElement(this.dialog);h.one(this.dialog,E.TRANSITION_END,t),E.emulateTransitionEnd(this.dialog,e)}else t()}dispose(){this.removeBackdrop(),l.removeData(this.element,p.DATA_KEY),h.off(document,p.EVENT.focusin),this.element=null,this.dialog=null,this.backdrop=null,this.isShown=null,this.ignoreBackdropClick=null,this.isTransitioning=null}hide(e,t){var n;if(e&&e.preventDefault(),!this.isShown||this.isTransitioning||!this.element)return;if(!this.shouldManageOpeningState&&t)return void h.trigger(this.element,p.EVENT.beforehide,{source:t});h.trigger(this.element,p.EVENT.hide),this.isShown=!1;const o=this.element.classList.contains(p.CLASSNAME.fade);if(o&&(this.isTransitioning=!0),this.setEscapeEvent(),h.off(document,p.EVENT.focusin),this.element.classList.remove(p.CLASSNAME.show),h.off(this.element,p.EVENT.clickDismiss),h.off(this.dialog,p.EVENT.mousedownDismiss),o){const e=E.getTransitionDurationFromElement(this.element);h.one(this.element,E.TRANSITION_END,(()=>this.hideModal())),E.emulateTransitionEnd(this.element,e)}else this.hideModal();this.triggerElement&&(null===(n=this.triggerElement)||void 0===n||n.focus())}show(){this.isShown||this.isTransitioning||!this.element||(this.element.classList.contains(p.CLASSNAME.fade)&&(this.isTransitioning=!0),this.isShown=!0,this.setEscapeEvent(),h.on(this.element,p.EVENT.clickDismiss,p.SELECTOR.dataDismiss,(e=>this.hide(e,"button"))),h.on(this.dialog,p.EVENT.mousedownDismiss,(()=>{h.one(this.element,p.EVENT.mouseupDismiss,(e=>{e.target.isEqualNode(this.element)&&(this.ignoreBackdropClick=!0)}))})),this.showBackdrop((()=>this.showElement())))}toggle(){this.isShown?this.hide():this.show()}registerEvents(){h.on(document,p.EVENT.clickDataApi,p.SELECTOR.dataToggle,(e=>{let t;const n=e.currentTarget;let o=e.target;o.getAttribute(p.SELECTOR.dataAttributeToggleName)!==p.SELECTOR.dataAttributeToggleValue&&(o=o.closest(p.SELECTOR.dataToggle));const i=E.getSelectorFromElement(o);i&&(t=document.querySelector(i)),"A"!==n.tagName&&"AREA"!==n.tagName||e.preventDefault();const s=p.getInstance(t);s&&s.toggle()}))}}p.LOG_TAG=`${e.LIBRARY_LOG_TAG}[MODAL]`,p.NAME=`${e.KEY_PREFIX}-modal`,p.DATA_KEY=`${e.KEY_PREFIX}.modal`,p.EVENT_KEY=`.${p.DATA_KEY}`,p.DATA_API_KEY=e.KEY_PREFIX,p.ESCAPE_KEYCODE=27,p.hasInit=!1,p.CLASSNAME={backdrop:`${e.KEY_PREFIX}-modal__backdrop`,backdropFitViewport:`${e.KEY_PREFIX}-modal__backdrop--fit-viewport`,fade:"fade",show:"show",visible:`${p.NAME}--visible`,fitViewport:`${p.NAME}--fit-viewport`},p.SELECTOR={default:`.${p.NAME}`,dataDismiss:'[data-dismiss="modal"]',dataToggle:'[data-toggle="modal"]',dataAttributeToggleName:"data-toggle",dataAttributeToggleValue:"modal",modalBody:`.${e.KEY_PREFIX}-modal__body`,dialog:`.${e.KEY_PREFIX}-modal__dialog`},p.EVENT={beforehide:`${n.beforehide}${p.EVENT_KEY}`,show:`${n.show}${p.EVENT_KEY}`,shown:`${n.shown}${p.EVENT_KEY}`,focusin:`${n.focusin}${p.EVENT_KEY}`,hide:`${n.hide}${p.EVENT_KEY}`,hidden:`${n.hidden}${p.EVENT_KEY}`,keydownDismiss:`${n.keydown}.dismiss${p.EVENT_KEY}`,clickDismiss:`${n.click}.dismiss${p.EVENT_KEY}`,clickDataApi:`${n.click}${p.EVENT_KEY}${p.DATA_API_KEY}`,mouseupDismiss:`${n.mouseup}.dismiss${p.EVENT_KEY}`,mousedownDismiss:`${n.mousedown}.dismiss${p.EVENT_KEY}`},p.CAN_MOVE_ELEMENTS_IN_DOM=!0,p.SHOULD_MANAGE_OPENING_STATE=!0;const g=p;return s=s.default})()));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Modal",[],t):"object"==typeof exports?exports.Modal=t():e.Modal=t()}(window,(()=>(()=>{"use strict";var e,t,n,o,i={d:(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},s={};i.d(s,{default:()=>g}),function(e){e.LIBRARY_LOG_TAG="[FLUID]",e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(e||(e={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(t||(t={})),function(e){e.beforehide="beforehide",e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(n||(n={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(o||(o={})),window.NJStore=window.NJStore||[];const r=(()=>{const e=window.NJStore;return{set(t,n,o){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=o},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const o=t.key;o.key===n&&(delete e[o.id],delete t.key)}}})(),a={setData(e,t,n){r.set(e,t,n)},getData:(e,t)=>r.get(e,t),removeData(e,t){r.delete(e,t)}},l=a;class d{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o=[],i=document.querySelectorAll(n);for(let n=0;n<i.length;n++){const s=i[n];if(!s.key||s.key.key!==e.DATA_KEY){const r=new e(i[n],t);s.key||l.setData(i[n],e.DATA_KEY,r),o.push(r)}}return o}}class c{static getUidEvent(e,t){return t&&`${t}::${c.uidEvent++}`||e.uidEvent||c.uidEvent++}static getEvent(e){const t=c.getUidEvent(e);return e.uidEvent=t,c.EVENTREGISTRY[t]=c.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&c.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=o=>(c.fixEvent(o,e),n.oneOff&&c.off(e,o.type,t),t.apply(e,[o]));return n}static njDelegationHandler(e,t,n){const o=i=>{const s=e.querySelectorAll(t);for(let t=i.target;t&&t!==this;t=t.parentNode)for(let r=s.length;r>=0;r--)if(s[r]===t)return c.fixEvent(i,t),o.oneOff&&c.off(e,i.type,n),n.apply(t,[i]);return null};return o}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;const i=e[o];if(i.originalHandler===t&&i.delegationSelector===n)return e[o]}return null}static normalizeParams(e,n,i){const s="string"==typeof n,r=s?i:n;let a=e.replace(c.STRIPNAME_REGEX,"");const l=t[a];l&&(a=l);return"string"==typeof o[a]||(a=e),[s,r,a]}static addHandler(e,t,n,o,i){if("string"!=typeof t||null==e)return;n||(n=o,o=null);const s=c.getEvent(e);for(const r of t.split(" ")){const[t,a,l]=c.normalizeParams(r,n,o),d=s[l]||(s[l]={}),h=c.findHandler(d,a,t?n:null);if(h)return void(h.oneOff=h.oneOff&&i);const u=c.getUidEvent(a,r.replace(c.NAMESPACE_REGEX,"")),E=t?c.njDelegationHandler(e,n,o):c.njHandler(e,n);E.delegationSelector=t?n:null,E.originalHandler=a,E.oneOff=i,E.uidEvent=u,d[u]=E,e.addEventListener(l,E,t)}}static removeHandler(e,t,n,o,i){const s=c.findHandler(t[n],o,i);null!==s&&(e.removeEventListener(n,s,Boolean(i)),delete t[n][s.uidEvent])}static removeNamespacedHandlers(e,t,n,o){const i=t[n]||{};for(const s in i)if(Object.prototype.hasOwnProperty.call(i,s)&&s.indexOf(o)>-1){const o=i[s];c.removeHandler(e,t,n,o.originalHandler,o.delegationSelector)}}static on(e,t,n,o){c.addHandler(e,t,n,o,!1)}static one(e,t,n,o){c.addHandler(e,t,n,o,!0)}static off(e,t,n,o){if("string"!=typeof t||null==e)return;const[i,s,r]=c.normalizeParams(t,n,o),a=r!==t,l=c.getEvent(e);if(void 0!==s){if(!l||!l[r])return;return void c.removeHandler(e,l,r,s,i?n:null)}if("."===t.charAt(0))for(const n in l)Object.prototype.hasOwnProperty.call(l,n)&&c.removeNamespacedHandlers(e,l,n,t.substr(1));const d=l[r]||{};for(const n in d){if(!Object.prototype.hasOwnProperty.call(d,n))continue;const o=n.replace(c.STRIPUID_REGEX,"");if(!a||t.indexOf(o)>-1){const t=d[n];c.removeHandler(e,l,r,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const i=t.replace(c.STRIPNAME_REGEX,""),s="string"==typeof o[i],r=!0;let a=null;return s?(a=document.createEvent("HTMLEvents"),a.initEvent(i,r,!0)):a=new window.CustomEvent(t,{bubbles:r,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(a,e,{get:()=>n[e]})})),e.dispatchEvent(a),a}}c.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,c.STRIPNAME_REGEX=/\..*/,c.KEYEVENT_REGEX=/^key/,c.STRIPUID_REGEX=/::\d+$/,c.EVENTREGISTRY={},c.uidEvent=1;const h=c;const u={TRANSITION_END:"transitionend",getUID(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},getSelectorFromElement(e){let t=e.getAttribute("data-target");if(!t||"#"===t){const n=e.getAttribute("href");t=n&&"#"!==n?n.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement(e){if(!e)return 0;let t=window.getComputedStyle(e).transitionDuration,n=window.getComputedStyle(e).transitionDelay;const o=parseFloat(t),i=parseFloat(n);return o||i?(t=t.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(t)+parseFloat(n))):0},reflow:e=>e.offsetHeight,triggerTransitionEnd(e){const t=new CustomEvent(u.TRANSITION_END,{});e.dispatchEvent(t)},isElement:e=>(e[0]||e).nodeType,emulateTransitionEnd(e,t){let n=!1;const o=t+5;e.addEventListener(u.TRANSITION_END,(function t(){n=!0,e.removeEventListener(u.TRANSITION_END,t)})),setTimeout((()=>{n||u.triggerTransitionEnd(e)}),o)},typeCheckConfig(e,t,n){for(const i in n)if(Object.prototype.hasOwnProperty.call(n,i)){const s=n[i],r=t[i],a=r&&u.isElement(r)?"element":(o=r,{}.toString.call(o).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(s).test(a))throw new Error(`${e.toUpperCase()}: Option "${i}" provided type "${a}" but expected type "${s}".`)}var o},makeArray:e=>null==e?[]:[].slice.call(e),findShadowRoot(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?u.findShadowRoot(e.parentElement):null},throttle(e,t,n,o,i){let s,r,a,l=null,d=0;const c=()=>{d=Date.now(),l=null,a=e.apply(r,s)};return()=>{const h=Date.now();d||n||(d=h);const u=t-(h-d);return r=i||this,s=arguments,u<=0?(clearTimeout(l),l=null,d=h,a=e.apply(r,s)):!l&&o&&(l=setTimeout(c,u)),a}},coerceBool:e=>Boolean(e)},E=u,m=['a[href]:not([tabindex^="-"]):not([data-trap-anchor])','area[href]:not([tabindex^="-"]):not([data-trap-anchor])','input:not([type="hidden"]):not([type="radio"]):not([disabled]):not([tabindex^="-"]):not([data-trap-anchor])','input[type="radio"]:not([disabled]):not([tabindex^="-"]):not([data-trap-anchor])','select:not([disabled]):not([tabindex^="-"]):not([data-trap-anchor])','textarea:not([disabled]):not([tabindex^="-"]):not([data-trap-anchor])','button:not([disabled]):not([tabindex^="-"]):not([data-trap-anchor])','iframe:not([tabindex^="-"]):not([data-trap-anchor])','audio[controls]:not([tabindex^="-"]):not([data-trap-anchor])','video[controls]:not([tabindex^="-"]):not([data-trap-anchor])','[contenteditable]:not([tabindex^="-"]):not([data-trap-anchor])','[tabindex]:not([tabindex^="-"]):not([data-trap-anchor])'];class p extends d{constructor(e){var t;super(p,e),this.backdrop=null,this.dialog=null,this.ignoreBackdropClick=null,this.isShown=!1,this.isTransitioning=!1,this.triggerElement=null,this.shouldManageOpeningState=p.SHOULD_MANAGE_OPENING_STATE,this.dialog=this.element.querySelector(p.SELECTOR.dialog);const{leadingFocusTrap:n,trailingFocusTrap:o}=this.createFocusElements();if(this.leadingFocusTrapAnchorElement=n,this.trailingFocusTrapAnchorElement=o,this.shouldFitViewportArea=this.element.classList.contains(p.CLASSNAME.fitViewport),p.CAN_MOVE_ELEMENTS_IN_DOM){this.targetedParentElement=this.element.parentElement;const e=this.element.dataset.appendto;if(e&&!this.shouldFitViewportArea){const t=document.querySelector(e);this.isNodeElement(t)?this.targetedParentElement=t:console.error(`${p.LOG_TAG} Invalid element: Anchor element '${e}' is not a valid node element. Check your selector for [data-appendto]. Appended to parent element instead.`)}const n=this.isNodeElement(this.targetedParentElement);if(this.shouldFitViewportArea||!n){n||console.error(`${p.LOG_TAG} Invalid element: Parent element is not a valid node element. Appended to body instead.`);const e=document.body;if(!this.isNodeElement(e))throw new Error(`${p.LOG_TAG} No body element found. Unable to attach modal`);this.targetedParentElement=e}this.targetedParentElement!==this.element.parentElement&&(null===(t=this.targetedParentElement)||void 0===t||t.appendChild(this.element))}else{const e=this.element.parentElement;if(!this.isNodeElement(e))throw new Error(`${p.LOG_TAG} Invalid modal's parent element. Unable to initialize modal`);this.targetedParentElement=e}l.setData(e,p.DATA_KEY,this),this.shouldManageOpeningState&&!p.hasInit&&(p.hasInit=!0,this.registerEvents())}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,p.SELECTOR.default)}static getInstance(e){return l.getData(e,p.DATA_KEY)}isNodeElement(e){return e&&e.nodeType===Node.ELEMENT_NODE}createFocusElements(){function e(e){const t=document.createElement("div");return t.setAttribute("tabindex","0"),t.setAttribute("aria-hidden","true"),t.setAttribute("data-trap-anchor",""),t.addEventListener("focusin",e),t}return{leadingFocusTrap:e((()=>{const e=this.element.querySelector(m.join(","));null==e||e.focus()})),trailingFocusTrap:e((()=>{const e=Array.from(this.element.querySelectorAll(m.join(","))).at(-1);null==e||e.focus()}))}}addFocusTrapElements(){this.element.prepend(this.leadingFocusTrapAnchorElement),this.element.append(this.trailingFocusTrapAnchorElement)}removeFocusTrapElements(){this.element.removeChild(this.trailingFocusTrapAnchorElement),this.element.removeChild(this.leadingFocusTrapAnchorElement)}hideModal(){this.element&&(this.element.classList.remove(p.CLASSNAME.visible),this.element.setAttribute("aria-hidden","true"),this.element.removeAttribute("aria-modal"),this.isTransitioning=!1,this.showBackdrop(),this.removeFocusTrapElements(),h.trigger(this.element,p.EVENT.hidden))}removeBackdrop(){this.backdrop&&(this.backdrop.parentNode.removeChild(this.backdrop),this.backdrop=null)}setEscapeEvent(){this.isShown?h.on(this.element,p.EVENT.keydownDismiss,(e=>{e.which===p.ESCAPE_KEYCODE&&this.hide(e,"keyboard")})):h.off(this.element,p.EVENT.keydownDismiss)}showBackdrop(e){var t;if(!this.element)return;const n=this.element.classList.contains(p.CLASSNAME.fade)?p.CLASSNAME.fade:"";if(this.isShown){if(this.backdrop=document.createElement("div"),this.backdrop.className=p.CLASSNAME.backdrop,this.shouldFitViewportArea&&this.backdrop.classList.add(p.CLASSNAME.backdropFitViewport),n&&this.backdrop.classList.add(n),null===(t=this.targetedParentElement)||void 0===t||t.appendChild(this.backdrop),h.on(this.element,p.EVENT.clickDismiss,(e=>{this.ignoreBackdropClick?this.ignoreBackdropClick=!1:e.target===e.currentTarget&&this.hide(null,"backdrop")})),n&&E.reflow(this.backdrop),this.backdrop.classList.add(p.CLASSNAME.show),!e)return;if(!n)return void e();const o=E.getTransitionDurationFromElement(this.backdrop);h.one(this.backdrop,E.TRANSITION_END,e),E.emulateTransitionEnd(this.backdrop,o)}else if(!this.isShown&&this.backdrop){this.backdrop.classList.remove(p.CLASSNAME.show);const t=()=>{this.removeBackdrop(),e&&e()};if(this.element.classList.contains(p.CLASSNAME.fade)){const e=E.getTransitionDurationFromElement(this.backdrop);h.one(this.backdrop,E.TRANSITION_END,t),E.emulateTransitionEnd(this.backdrop,e)}else t()}else e&&e()}showElement(){if(!this.element)return;h.trigger(this.element,p.EVENT.show);const e=this.element.classList.contains(p.CLASSNAME.fade);this.element.classList.add(p.CLASSNAME.visible),this.element.removeAttribute("aria-hidden"),this.element.scrollTop=0,e&&E.reflow(this.element),this.element.classList.add(p.CLASSNAME.show),document.activeElement&&(this.triggerElement=document.activeElement),this.addFocusTrapElements(),this.element.setAttribute("aria-modal","true");const t=()=>{const e=this.element.querySelector(m.join(","));null==e||e.focus(),this.isTransitioning=!1,h.trigger(this.element,p.EVENT.shown)};if(e){const e=E.getTransitionDurationFromElement(this.dialog);h.one(this.dialog,E.TRANSITION_END,t),E.emulateTransitionEnd(this.dialog,e)}else t()}dispose(){this.removeBackdrop(),l.removeData(this.element,p.DATA_KEY),h.off(document,p.EVENT.focusin),this.element=null,this.dialog=null,this.backdrop=null,this.isShown=null,this.ignoreBackdropClick=null,this.isTransitioning=null}hide(e,t){var n;if(e&&e.preventDefault(),!this.isShown||this.isTransitioning||!this.element)return;if(!this.shouldManageOpeningState&&t)return void h.trigger(this.element,p.EVENT.beforehide,{source:t});h.trigger(this.element,p.EVENT.hide),this.isShown=!1;const o=this.element.classList.contains(p.CLASSNAME.fade);if(o&&(this.isTransitioning=!0),this.setEscapeEvent(),h.off(document,p.EVENT.focusin),this.element.classList.remove(p.CLASSNAME.show),h.off(this.element,p.EVENT.clickDismiss),h.off(this.dialog,p.EVENT.mousedownDismiss),o){const e=E.getTransitionDurationFromElement(this.element);h.one(this.element,E.TRANSITION_END,(()=>this.hideModal())),E.emulateTransitionEnd(this.element,e)}else this.hideModal();this.triggerElement&&(null===(n=this.triggerElement)||void 0===n||n.focus())}show(){this.isShown||this.isTransitioning||!this.element||(this.element.classList.contains(p.CLASSNAME.fade)&&(this.isTransitioning=!0),this.isShown=!0,this.setEscapeEvent(),h.on(this.element,p.EVENT.clickDismiss,p.SELECTOR.dataDismiss,(e=>this.hide(e,"button"))),h.on(this.dialog,p.EVENT.mousedownDismiss,(()=>{h.one(this.element,p.EVENT.mouseupDismiss,(e=>{e.target.isEqualNode(this.element)&&(this.ignoreBackdropClick=!0)}))})),this.showBackdrop((()=>this.showElement())))}toggle(){this.isShown?this.hide():this.show()}registerEvents(){h.on(document,p.EVENT.clickDataApi,p.SELECTOR.dataToggle,(e=>{let t;const n=e.currentTarget;let o=e.target;o.getAttribute(p.SELECTOR.dataAttributeToggleName)!==p.SELECTOR.dataAttributeToggleValue&&(o=o.closest(p.SELECTOR.dataToggle));const i=E.getSelectorFromElement(o);i&&(t=document.querySelector(i)),"A"!==n.tagName&&"AREA"!==n.tagName||e.preventDefault();const s=p.getInstance(t);s&&s.toggle()}))}}p.LOG_TAG=`${e.LIBRARY_LOG_TAG}[MODAL]`,p.NAME=`${e.KEY_PREFIX}-modal`,p.DATA_KEY=`${e.KEY_PREFIX}.modal`,p.EVENT_KEY=`.${p.DATA_KEY}`,p.DATA_API_KEY=e.KEY_PREFIX,p.ESCAPE_KEYCODE=27,p.hasInit=!1,p.CLASSNAME={backdrop:`${e.KEY_PREFIX}-modal__backdrop`,backdropFitViewport:`${e.KEY_PREFIX}-modal__backdrop--fit-viewport`,fade:"fade",show:"show",visible:`${p.NAME}--visible`,fitViewport:`${p.NAME}--fit-viewport`},p.SELECTOR={default:`.${p.NAME}`,dataDismiss:'[data-dismiss="modal"]',dataToggle:'[data-toggle="modal"]',dataAttributeToggleName:"data-toggle",dataAttributeToggleValue:"modal",modalBody:`.${e.KEY_PREFIX}-modal__body`,dialog:`.${e.KEY_PREFIX}-modal__dialog`},p.EVENT={beforehide:`${n.beforehide}${p.EVENT_KEY}`,show:`${n.show}${p.EVENT_KEY}`,shown:`${n.shown}${p.EVENT_KEY}`,focusin:`${n.focusin}${p.EVENT_KEY}`,hide:`${n.hide}${p.EVENT_KEY}`,hidden:`${n.hidden}${p.EVENT_KEY}`,keydownDismiss:`${n.keydown}.dismiss${p.EVENT_KEY}`,clickDismiss:`${n.click}.dismiss${p.EVENT_KEY}`,clickDataApi:`${n.click}${p.EVENT_KEY}${p.DATA_API_KEY}`,mouseupDismiss:`${n.mouseup}.dismiss${p.EVENT_KEY}`,mousedownDismiss:`${n.mousedown}.dismiss${p.EVENT_KEY}`},p.CAN_MOVE_ELEMENTS_IN_DOM=!0,p.SHOULD_MANAGE_OPENING_STATE=!0;const g=p;return s=s.default})()));
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Navbar",[],t):"object"==typeof exports?exports.Navbar=t():e.Navbar=t()}(window,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var s in n)e.o(n,s)&&!e.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:n[s]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>N}),window.NJStore=window.NJStore||[];const n=(()=>{const e=window.NJStore;return{set(t,n,s){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=s},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const s=t.key;s.key===n&&(delete e[s.id],delete t.key)}}})(),s={setData(e,t,s){n.set(e,t,s)},getData:(e,t)=>n.get(e,t),removeData(e,t){n.delete(e,t)}};class o{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o=[],r=document.querySelectorAll(n);for(let n=0;n<r.length;n++){const i=r[n];if(!i.key||i.key.key!==e.DATA_KEY){const l=new e(r[n],t);i.key||s.setData(r[n],e.DATA_KEY,l),o.push(l)}}return o}}var r,i,l,a;!function(e){e.LIBRARY_LOG_TAG="[FLUID]",e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(r||(r={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(i||(i={})),function(e){e.beforehide="beforehide",e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(l||(l={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(a||(a={}));class c{static getUidEvent(e,t){return t&&`${t}::${c.uidEvent++}`||e.uidEvent||c.uidEvent++}static getEvent(e){const t=c.getUidEvent(e);return e.uidEvent=t,c.EVENTREGISTRY[t]=c.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&c.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=s=>(c.fixEvent(s,e),n.oneOff&&c.off(e,s.type,t),t.apply(e,[s]));return n}static njDelegationHandler(e,t,n){const s=o=>{const r=e.querySelectorAll(t);for(let t=o.target;t&&t!==this;t=t.parentNode)for(let i=r.length;i>=0;i--)if(r[i]===t)return c.fixEvent(o,t),s.oneOff&&c.off(e,o.type,n),n.apply(t,[o]);return null};return s}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const s in e){if(!Object.prototype.hasOwnProperty.call(e,s))continue;const o=e[s];if(o.originalHandler===t&&o.delegationSelector===n)return e[s]}return null}static normalizeParams(e,t,n){const s="string"==typeof t,o=s?n:t;let r=e.replace(c.STRIPNAME_REGEX,"");const l=i[r];l&&(r=l);return"string"==typeof a[r]||(r=e),[s,o,r]}static addHandler(e,t,n,s,o){if("string"!=typeof t||null==e)return;n||(n=s,s=null);const r=c.getEvent(e);for(const i of t.split(" ")){const[t,l,a]=c.normalizeParams(i,n,s),d=r[a]||(r[a]={}),u=c.findHandler(d,l,t?n:null);if(u)return void(u.oneOff=u.oneOff&&o);const h=c.getUidEvent(l,i.replace(c.NAMESPACE_REGEX,"")),E=t?c.njDelegationHandler(e,n,s):c.njHandler(e,n);E.delegationSelector=t?n:null,E.originalHandler=l,E.oneOff=o,E.uidEvent=h,d[h]=E,e.addEventListener(a,E,t)}}static removeHandler(e,t,n,s,o){const r=c.findHandler(t[n],s,o);null!==r&&(e.removeEventListener(n,r,Boolean(o)),delete t[n][r.uidEvent])}static removeNamespacedHandlers(e,t,n,s){const o=t[n]||{};for(const r in o)if(Object.prototype.hasOwnProperty.call(o,r)&&r.indexOf(s)>-1){const s=o[r];c.removeHandler(e,t,n,s.originalHandler,s.delegationSelector)}}static on(e,t,n,s){c.addHandler(e,t,n,s,!1)}static one(e,t,n,s){c.addHandler(e,t,n,s,!0)}static off(e,t,n,s){if("string"!=typeof t||null==e)return;const[o,r,i]=c.normalizeParams(t,n,s),l=i!==t,a=c.getEvent(e);if(void 0!==r){if(!a||!a[i])return;return void c.removeHandler(e,a,i,r,o?n:null)}if("."===t.charAt(0))for(const n in a)Object.prototype.hasOwnProperty.call(a,n)&&c.removeNamespacedHandlers(e,a,n,t.substr(1));const d=a[i]||{};for(const n in d){if(!Object.prototype.hasOwnProperty.call(d,n))continue;const s=n.replace(c.STRIPUID_REGEX,"");if(!l||t.indexOf(s)>-1){const t=d[n];c.removeHandler(e,a,i,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const s=t.replace(c.STRIPNAME_REGEX,""),o="string"==typeof a[s];let r=null;return o?(r=document.createEvent("HTMLEvents"),r.initEvent(s,true,!0)):r=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(r,e,{get:()=>n[e]})})),e.dispatchEvent(r),r}}c.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,c.STRIPNAME_REGEX=/\..*/,c.KEYEVENT_REGEX=/^key/,c.STRIPUID_REGEX=/::\d+$/,c.EVENTREGISTRY={},c.uidEvent=1;const d=c;const u={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let n=0;n<e.attributes.length;n++){const s=e.attributes[n];if(-1!==s.nodeName.indexOf("data-")){const e=s.nodeName.substring(5).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=s.nodeValue}}return Object.keys(t).forEach((e=>{var n;t[e]="true"===(n=t[e])||"false"!==n&&("null"===n?null:n===Number(n).toString()?Number(n):""===n?null:n)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,n){for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(n&&"[object Object]"===Object.prototype.toString.call(t[s])?e[s]=u.extend(e[s],t[s]):e[s]=t[s]);return e},extend(){let e={},t=!1,n=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],n++);n<arguments.length;n++)e=u.mergeExtended(e,n<0||arguments.length<=n?void 0:arguments[n],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},h=u;const E={TRANSITION_END:"transitionend",getUID(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},getSelectorFromElement(e){let t=e.getAttribute("data-target");if(!t||"#"===t){const n=e.getAttribute("href");t=n&&"#"!==n?n.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement(e){if(!e)return 0;let t=window.getComputedStyle(e).transitionDuration,n=window.getComputedStyle(e).transitionDelay;const s=parseFloat(t),o=parseFloat(n);return s||o?(t=t.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(t)+parseFloat(n))):0},reflow:e=>e.offsetHeight,triggerTransitionEnd(e){const t=new CustomEvent(E.TRANSITION_END,{});e.dispatchEvent(t)},isElement:e=>(e[0]||e).nodeType,emulateTransitionEnd(e,t){let n=!1;const s=t+5;e.addEventListener(E.TRANSITION_END,(function t(){n=!0,e.removeEventListener(E.TRANSITION_END,t)})),setTimeout((()=>{n||E.triggerTransitionEnd(e)}),s)},typeCheckConfig(e,t,n){for(const o in n)if(Object.prototype.hasOwnProperty.call(n,o)){const r=n[o],i=t[o],l=i&&E.isElement(i)?"element":(s=i,{}.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(r).test(l))throw new Error(`${e.toUpperCase()}: Option "${o}" provided type "${l}" but expected type "${r}".`)}var s},makeArray:e=>null==e?[]:[].slice.call(e),findShadowRoot(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?E.findShadowRoot(e.parentElement):null},throttle(e,t,n,s,o){let r,i,l,a=null,c=0;const d=()=>{c=Date.now(),a=null,l=e.apply(i,r)};return()=>{const u=Date.now();c||n||(c=u);const h=t-(u-c);return i=o||this,r=arguments,h<=0?(clearTimeout(a),a=null,c=u,l=e.apply(i,r)):!a&&s&&(a=setTimeout(d,h)),l}},coerceBool:e=>Boolean(e)},g=E;class p extends o{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(p,e,p.getOptions(t)),this.element=e,this.isTransitioning=!1,this.triggerArray=g.makeArray(document.querySelectorAll(`${p.SELECTOR.dataToggle}[href="#${e.id}"],${p.SELECTOR.dataToggle}[data-target="#${e.id}"]`));const n=g.makeArray(document.querySelectorAll(p.SELECTOR.dataToggle));for(let t=0,s=n.length;t<s;t++){const s=n[t],o=g.getSelectorFromElement(s),r=g.makeArray(document.querySelectorAll(o)).filter((t=>t===e));null!==o&&r.length&&(this.selector=o,this.triggerArray.push(s))}this.parent=this.options.parent?this.getParent():null,this.options.parent||this.addAriaAndCollapsedClass(this.element,this.triggerArray),this.options.toggle&&this.toggle(),s.setData(e,p.DATA_KEY,this),p.hasInit||(p.hasInit=!0,this.registerEvents())}toggle(){this.element.classList.contains(p.CLASS_NAME.show)?this.hide():this.show()}show(){if(this.isTransitioning||this.element.classList.contains(p.CLASS_NAME.show))return;let e,t;this.parent&&(e=g.makeArray(this.parent.querySelectorAll(p.SELECTOR.actives)).filter((e=>"string"==typeof this.options.parent?e.getAttribute("data-parent")===this.options.parent:e.classList.contains(p.CLASS_NAME.collapse))),0===e.length&&(e=null));const n=document.querySelector(this.selector);if(e){const o=e.filter((e=>n!==e));if(t=o[0]?s.getData(o[0],p.DATA_KEY):null,t&&t.isTransitioning)return}if(d.trigger(this.element,p.EVENT.show).defaultPrevented)return;e&&e.forEach((e=>{n!==e&&p.collapseInterface(e,"hide"),t||s.setData(e,p.DATA_KEY,null)}));const o=this.getDimension();this.element.classList.remove(p.CLASS_NAME.collapse),this.element.classList.add(p.CLASS_NAME.collapsing),this.element.style[o]=0,this.triggerArray.length&&this.triggerArray.forEach((e=>{e.classList.remove(p.CLASS_NAME.collapsed),e.setAttribute("aria-expanded","true")})),this.setTransitioning(!0);const r=`scroll${o[0].toUpperCase()+o.slice(1)}`,i=g.getTransitionDurationFromElement(this.element);d.one(this.element,g.TRANSITION_END,(()=>{this.element.classList.remove(p.CLASS_NAME.collapsing),this.element.classList.add(p.CLASS_NAME.collapse),this.element.classList.add(p.CLASS_NAME.show),this.element.style[o]="",this.setTransitioning(!1),d.trigger(this.element,p.EVENT.shown)})),g.emulateTransitionEnd(this.element,i),this.element.style[o]=`${this.element[r]}px`}hide(){if(this.isTransitioning||!this.element.classList.contains(p.CLASS_NAME.show))return;if(d.trigger(this.element,p.EVENT.hide).defaultPrevented)return;const e=this.getDimension();this.element.style[e]=`${this.element.getBoundingClientRect()[e]}px`,g.reflow(this.element),this.element.classList.add(p.CLASS_NAME.collapsing),this.element.classList.remove(p.CLASS_NAME.collapse),this.element.classList.remove(p.CLASS_NAME.show);const t=this.triggerArray.length;if(t>0)for(let e=0;e<t;e++){const t=this.triggerArray[e],n=g.getSelectorFromElement(t);if(null!==n){document.querySelector(n).classList.contains(p.CLASS_NAME.show)||(t.classList.add(p.CLASS_NAME.collapsed),t.setAttribute("aria-expanded","false"))}}this.setTransitioning(!0);this.element.style[e]="";const n=g.getTransitionDurationFromElement(this.element);d.one(this.element,g.TRANSITION_END,(()=>{this.setTransitioning(!1),this.element.classList.remove(p.CLASS_NAME.collapsing),this.element.classList.add(p.CLASS_NAME.collapse),d.trigger(this.element,p.EVENT.hidden)})),g.emulateTransitionEnd(this.element,n)}setTransitioning(e){this.isTransitioning=e}dispose(){s.removeData(this.element,p.DATA_KEY),this.options=null,this.parent=null,this.element=null,this.triggerArray=null,this.isTransitioning=null}getDimension(){return this.element.classList.contains(p.DIMENSION.width)?p.DIMENSION.width:p.DIMENSION.height}getParent(){let e;g.isElement(this.options.parent)?e=this.options.parent:this.options.parent&&(e=document.querySelector(this.options.parent));const t=`[data-toggle="collapse"][data-parent="${this.options.parent}"]`;return g.makeArray(e.querySelectorAll(t)).forEach((e=>{this.addAriaAndCollapsedClass(p.getTargetFromElement(e),[e])})),e}addAriaAndCollapsedClass(e,t){if(e){const n=e.classList.contains(p.CLASS_NAME.show);t.length&&t.forEach((e=>{n?e.classList.remove(p.CLASS_NAME.collapsed):e.classList.add(p.CLASS_NAME.collapsed),e.setAttribute("aria-expanded",n)}))}}static getOptions(e){return(e=Object.assign(Object.assign({},p.DEFAULT_OPTIONS),e)).toggle=Boolean(e.toggle),g.typeCheckConfig(p.NAME,e,p.DEFAULT_TYPE),e}static getTargetFromElement(e){const t=g.getSelectorFromElement(e);return t?document.querySelector(t):null}static collapseInterface(e,t){let n=s.getData(e,p.DATA_KEY);const o=Object.assign(Object.assign(Object.assign({},p.DEFAULT_OPTIONS),h.getDataAttributes(e)),"object"==typeof t&&t?t:{});if(!n&&o.toggle&&/show|hide/.test(t)&&(o.toggle=!1),n||(n=new p(e,o)),"string"==typeof t){if(void 0===n[t])throw new Error(`No method named "${t}"`);n[t]()}}static getInstance(e){return s.getData(e,p.DATA_KEY)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,p.SELECTOR.default)}registerEvents(){d.on(document,p.EVENT.clickDataApi,p.SELECTOR.dataToggle,(function(e){"A"===e.target.tagName&&e.preventDefault();const t=h.getDataAttributes(this),n=g.getSelectorFromElement(this);g.makeArray(document.querySelectorAll(n)).forEach((e=>{const n=p.getInstance(e);let s;n?(null===n.parent&&"string"==typeof t.parent&&(n.options.parent=t.parent,n.parent=n.getParent()),s="toggle"):s=t,p.collapseInterface(e,s)}))}))}}p.NAME=`${r.KEY_PREFIX}-collapse`,p.DATA_KEY=`${r.KEY_PREFIX}.collapse`,p.EVENT_KEY=`.${p.DATA_KEY}`,p.DATA_API_KEY=r.KEY_PREFIX,p.hasInit=!1,p.CLASS_NAME={show:"show",collapse:`${r.KEY_PREFIX}-collapse`,collapsing:`${r.KEY_PREFIX}-collapsing`,collapsed:`${r.KEY_PREFIX}-collapsed`},p.EVENT={show:`${l.show}${p.EVENT_KEY}`,shown:`${l.shown}${p.EVENT_KEY}`,hide:`${l.hide}${p.EVENT_KEY}`,hidden:`${l.hidden}${p.EVENT_KEY}`,clickDataApi:`${l.click}${p.EVENT_KEY}${p.DATA_API_KEY}`},p.DEFAULT_OPTIONS={toggle:!1,parent:""},p.DEFAULT_TYPE={toggle:"boolean",parent:"(string|element)"},p.DIMENSION={width:"width",height:"height"},p.SELECTOR={default:`.${p.CLASS_NAME.collapse}`,actives:`.${p.CLASS_NAME.show}, .${p.CLASS_NAME.collapsing}`,dataToggle:'[data-toggle="collapse"]'};const m=p,A={describe:e=>void 0===e?"undefined":0===e.length?"(no matching elements)":`${e.outerHTML.split(">")[0]}>`,assert(e,t,n){if(t)throw void 0!==e&&(e.style.border="1px solid red"),console.error(n,e),n},isChar:e=>void 0===e.which||"number"==typeof e.which&&e.which>0&&(!e.ctrlKey&&!e.metaKey&&!e.altKey&&8!==e.which&&9!==e.which&&13!==e.which&&16!==e.which&&17!==e.which&&20!==e.which&&27!==e.which)};class f extends o{constructor(e,t){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{});for(const e in n)!{}.hasOwnProperty.call(n,e)?console.error(`${e} does not exist in properties`):this[e]=n[e]}addFormGroupFocus(){this.element&&!0==!this.element.disabled&&this.njFormGroup.classList.add(f.CLASS_NAME.isFocused)}removeFormGroupFocus(){this.njFormGroup.classList.remove(f.CLASS_NAME.isFocused)}addIsFilled(){this.njFormGroup.classList.add(f.CLASS_NAME.isFilled)}removeIsFilled(){this.njFormGroup.classList.remove(f.CLASS_NAME.isFilled)}findFormGroup(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=this.element.closest(f.SELECTOR.formGroup);return null===t&&e&&console.error(`Failed to find ${f.SELECTOR.formGroup} for ${A.describe(this.element)}`),t}}f.CLASS_NAME={njFormGroup:"nj-form-group",isFilled:"is-filled",isFocused:"is-focused"},f.SELECTOR={formGroup:`.${f.CLASS_NAME.njFormGroup}`};const S=f;class y extends S{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(y,e,h.extend(!0,y.DEFAULT_OPTIONS,t)),this.triggerElement=this.element.parentElement.querySelector(`[data-toggle="collapse"][${y.SELECTOR.target}="#${this.element.id}"]`)||this.element.parentElement.querySelector(`[data-toggle="collapse"][href="#${this.element.id}"]`);const n=this.element.querySelector(`[data-dismiss="#${this.element.id}"]`);n&&n.addEventListener("click",this.dismissHandler.bind(this)),A.assert(e,!this.triggerElement,`Cannot find collapse trigger for ${A.describe(e)}`),A.assert(e,!this.element.classList.contains(m.CLASS_NAME.collapse),`${A.describe(e)} is expected to have the '${m.CLASS_NAME.collapse}' class. It is being targeted by ${A.describe(e)}`),this.input=this.element.querySelector(y.SELECTOR.anyInput),this.input&&(d.on(this.element,`${l.shown}.${m.DATA_KEY}`,(()=>{this.input.focus()})),d.on(this.input,"blur",(e=>{this.dismissHandler(e)})))}getElement(){return this.element}dispose(){s.removeData(this.element,y.DATA_KEY),this.element=null}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,y.SELECTOR.default)}static getInstance(e){const t=s.getData(e,y.DATA_KEY);return t||m.getInstance(e)}dismissHandler(e){e.preventDefault(),(e.target.closest(`[data-dismiss="#${this.element.id}"]`)||e.target.closest(`[href="#${this.element.id}"]`))&&d.trigger(this.triggerElement,l.click)}}y.NAME="collapseSearchBar",y.DATA_KEY=`${r.KEY_PREFIX}.${y.NAME}`,y.SELECTOR={default:`.${r.KEY_PREFIX}-navbar__search`,formGroup:S.SELECTOR.formGroup,anyInput:"input, select, textarea",target:"data-target"},y.DEFAULT_OPTIONS={njFormGroup:{required:!1}};const T=y;class v extends o{constructor(e){super(v,e),this.collapseSearchBarInstances=T.init(),this.registerEvents()}dispose(){this.collapseSearchBarInstances.length>0&&this.collapseSearchBarInstances.forEach((e=>{e.getElement()===this.element.querySelector(T.SELECTOR.default)&&e.dispose()})),s.removeData(this.element,v.DATA_KEY),this.element=null}handleCollapseShow(){this.element.classList.add(v.CLASS_NAME.shownCollapse)}handleCollapseHide(){this.element.classList.remove(v.CLASS_NAME.shownCollapse)}static getInstance(e){return s.getData(e,v.DATA_KEY)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,v.SELECTOR.default)}registerEvents(){d.on(this.element,m.EVENT.show,(()=>{this.handleCollapseShow()})),d.on(this.element,m.EVENT.hidden,(()=>{this.handleCollapseHide()}))}}v.NAME=`${r.KEY_PREFIX}-navbar`,v.DATA_KEY=`${r.KEY_PREFIX}.navbar`,v.CLASS_NAME={shownCollapse:`${v.NAME}--shown-collapse`},v.SELECTOR={default:`.${v.NAME}`};const N=v;return t=t.default})()));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Navbar",[],t):"object"==typeof exports?exports.Navbar=t():e.Navbar=t()}(window,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var s in n)e.o(n,s)&&!e.o(t,s)&&Object.defineProperty(t,s,{enumerable:!0,get:n[s]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>N}),window.NJStore=window.NJStore||[];const n=(()=>{const e=window.NJStore;return{set(t,n,s){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=s},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const s=t.key;s.key===n&&(delete e[s.id],delete t.key)}}})(),s={setData(e,t,s){n.set(e,t,s)},getData:(e,t)=>n.get(e,t),removeData(e,t){n.delete(e,t)}};class o{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o=[],r=document.querySelectorAll(n);for(let n=0;n<r.length;n++){const i=r[n];if(!i.key||i.key.key!==e.DATA_KEY){const l=new e(r[n],t);i.key||s.setData(r[n],e.DATA_KEY,l),o.push(l)}}return o}}var r,i,l,a;!function(e){e.LIBRARY_LOG_TAG="[FLUID]",e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(r||(r={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(i||(i={})),function(e){e.beforehide="beforehide",e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(l||(l={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(a||(a={}));class c{static getUidEvent(e,t){return t&&`${t}::${c.uidEvent++}`||e.uidEvent||c.uidEvent++}static getEvent(e){const t=c.getUidEvent(e);return e.uidEvent=t,c.EVENTREGISTRY[t]=c.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&c.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=s=>(c.fixEvent(s,e),n.oneOff&&c.off(e,s.type,t),t.apply(e,[s]));return n}static njDelegationHandler(e,t,n){const s=o=>{const r=e.querySelectorAll(t);for(let t=o.target;t&&t!==this;t=t.parentNode)for(let i=r.length;i>=0;i--)if(r[i]===t)return c.fixEvent(o,t),s.oneOff&&c.off(e,o.type,n),n.apply(t,[o]);return null};return s}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const s in e){if(!Object.prototype.hasOwnProperty.call(e,s))continue;const o=e[s];if(o.originalHandler===t&&o.delegationSelector===n)return e[s]}return null}static normalizeParams(e,t,n){const s="string"==typeof t,o=s?n:t;let r=e.replace(c.STRIPNAME_REGEX,"");const l=i[r];l&&(r=l);return"string"==typeof a[r]||(r=e),[s,o,r]}static addHandler(e,t,n,s,o){if("string"!=typeof t||null==e)return;n||(n=s,s=null);const r=c.getEvent(e);for(const i of t.split(" ")){const[t,l,a]=c.normalizeParams(i,n,s),d=r[a]||(r[a]={}),h=c.findHandler(d,l,t?n:null);if(h)return void(h.oneOff=h.oneOff&&o);const u=c.getUidEvent(l,i.replace(c.NAMESPACE_REGEX,"")),E=t?c.njDelegationHandler(e,n,s):c.njHandler(e,n);E.delegationSelector=t?n:null,E.originalHandler=l,E.oneOff=o,E.uidEvent=u,d[u]=E,e.addEventListener(a,E,t)}}static removeHandler(e,t,n,s,o){const r=c.findHandler(t[n],s,o);null!==r&&(e.removeEventListener(n,r,Boolean(o)),delete t[n][r.uidEvent])}static removeNamespacedHandlers(e,t,n,s){const o=t[n]||{};for(const r in o)if(Object.prototype.hasOwnProperty.call(o,r)&&r.indexOf(s)>-1){const s=o[r];c.removeHandler(e,t,n,s.originalHandler,s.delegationSelector)}}static on(e,t,n,s){c.addHandler(e,t,n,s,!1)}static one(e,t,n,s){c.addHandler(e,t,n,s,!0)}static off(e,t,n,s){if("string"!=typeof t||null==e)return;const[o,r,i]=c.normalizeParams(t,n,s),l=i!==t,a=c.getEvent(e);if(void 0!==r){if(!a||!a[i])return;return void c.removeHandler(e,a,i,r,o?n:null)}if("."===t.charAt(0))for(const n in a)Object.prototype.hasOwnProperty.call(a,n)&&c.removeNamespacedHandlers(e,a,n,t.substr(1));const d=a[i]||{};for(const n in d){if(!Object.prototype.hasOwnProperty.call(d,n))continue;const s=n.replace(c.STRIPUID_REGEX,"");if(!l||t.indexOf(s)>-1){const t=d[n];c.removeHandler(e,a,i,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const s=t.replace(c.STRIPNAME_REGEX,""),o="string"==typeof a[s],r=!0;let i=null;return o?(i=document.createEvent("HTMLEvents"),i.initEvent(s,r,!0)):i=new window.CustomEvent(t,{bubbles:r,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(i,e,{get:()=>n[e]})})),e.dispatchEvent(i),i}}c.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,c.STRIPNAME_REGEX=/\..*/,c.KEYEVENT_REGEX=/^key/,c.STRIPUID_REGEX=/::\d+$/,c.EVENTREGISTRY={},c.uidEvent=1;const d=c;const h={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let n=0;n<e.attributes.length;n++){const s=e.attributes[n];if(-1!==s.nodeName.indexOf("data-")){const e=s.nodeName.substring(5).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=s.nodeValue}}return Object.keys(t).forEach((e=>{var n;t[e]="true"===(n=t[e])||"false"!==n&&("null"===n?null:n===Number(n).toString()?Number(n):""===n?null:n)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,n){for(const s in t)Object.prototype.hasOwnProperty.call(t,s)&&(n&&"[object Object]"===Object.prototype.toString.call(t[s])?e[s]=h.extend(e[s],t[s]):e[s]=t[s]);return e},extend(){let e={},t=!1,n=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],n++);n<arguments.length;n++)e=h.mergeExtended(e,n<0||arguments.length<=n?void 0:arguments[n],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},u=h;const E={TRANSITION_END:"transitionend",getUID(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},getSelectorFromElement(e){let t=e.getAttribute("data-target");if(!t||"#"===t){const n=e.getAttribute("href");t=n&&"#"!==n?n.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement(e){if(!e)return 0;let t=window.getComputedStyle(e).transitionDuration,n=window.getComputedStyle(e).transitionDelay;const s=parseFloat(t),o=parseFloat(n);return s||o?(t=t.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(t)+parseFloat(n))):0},reflow:e=>e.offsetHeight,triggerTransitionEnd(e){const t=new CustomEvent(E.TRANSITION_END,{});e.dispatchEvent(t)},isElement:e=>(e[0]||e).nodeType,emulateTransitionEnd(e,t){let n=!1;const s=t+5;e.addEventListener(E.TRANSITION_END,(function t(){n=!0,e.removeEventListener(E.TRANSITION_END,t)})),setTimeout((()=>{n||E.triggerTransitionEnd(e)}),s)},typeCheckConfig(e,t,n){for(const o in n)if(Object.prototype.hasOwnProperty.call(n,o)){const r=n[o],i=t[o],l=i&&E.isElement(i)?"element":(s=i,{}.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(r).test(l))throw new Error(`${e.toUpperCase()}: Option "${o}" provided type "${l}" but expected type "${r}".`)}var s},makeArray:e=>null==e?[]:[].slice.call(e),findShadowRoot(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?E.findShadowRoot(e.parentElement):null},throttle(e,t,n,s,o){let r,i,l,a=null,c=0;const d=()=>{c=Date.now(),a=null,l=e.apply(i,r)};return()=>{const h=Date.now();c||n||(c=h);const u=t-(h-c);return i=o||this,r=arguments,u<=0?(clearTimeout(a),a=null,c=h,l=e.apply(i,r)):!a&&s&&(a=setTimeout(d,u)),l}},coerceBool:e=>Boolean(e)},g=E;class p extends o{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(p,e,p.getOptions(t)),this.element=e,this.isTransitioning=!1,this.triggerArray=g.makeArray(document.querySelectorAll(`${p.SELECTOR.dataToggle}[href="#${e.id}"],${p.SELECTOR.dataToggle}[data-target="#${e.id}"]`));const n=g.makeArray(document.querySelectorAll(p.SELECTOR.dataToggle));for(let t=0,s=n.length;t<s;t++){const s=n[t],o=g.getSelectorFromElement(s),r=g.makeArray(document.querySelectorAll(o)).filter((t=>t===e));null!==o&&r.length&&(this.selector=o,this.triggerArray.push(s))}this.parent=this.options.parent?this.getParent():null,this.options.parent||this.addAriaAndCollapsedClass(this.element,this.triggerArray),this.options.toggle&&this.toggle(),s.setData(e,p.DATA_KEY,this),p.hasInit||(p.hasInit=!0,this.registerEvents())}toggle(){this.element.classList.contains(p.CLASS_NAME.show)?this.hide():this.show()}show(){if(this.isTransitioning||this.element.classList.contains(p.CLASS_NAME.show))return;let e,t;this.parent&&(e=g.makeArray(this.parent.querySelectorAll(p.SELECTOR.actives)).filter((e=>"string"==typeof this.options.parent?e.getAttribute("data-parent")===this.options.parent:e.classList.contains(p.CLASS_NAME.collapse))),0===e.length&&(e=null));const n=document.querySelector(this.selector);if(e){const o=e.filter((e=>n!==e));if(t=o[0]?s.getData(o[0],p.DATA_KEY):null,t&&t.isTransitioning)return}if(d.trigger(this.element,p.EVENT.show).defaultPrevented)return;e&&e.forEach((e=>{n!==e&&p.collapseInterface(e,"hide"),t||s.setData(e,p.DATA_KEY,null)}));const o=this.getDimension();this.element.classList.remove(p.CLASS_NAME.collapse),this.element.classList.add(p.CLASS_NAME.collapsing),this.element.style[o]=0,this.triggerArray.length&&this.triggerArray.forEach((e=>{e.classList.remove(p.CLASS_NAME.collapsed),e.setAttribute("aria-expanded","true")})),this.setTransitioning(!0);const r=`scroll${o[0].toUpperCase()+o.slice(1)}`,i=g.getTransitionDurationFromElement(this.element);d.one(this.element,g.TRANSITION_END,(()=>{this.element.classList.remove(p.CLASS_NAME.collapsing),this.element.classList.add(p.CLASS_NAME.collapse),this.element.classList.add(p.CLASS_NAME.show),this.element.style[o]="",this.setTransitioning(!1),d.trigger(this.element,p.EVENT.shown)})),g.emulateTransitionEnd(this.element,i),this.element.style[o]=`${this.element[r]}px`}hide(){if(this.isTransitioning||!this.element.classList.contains(p.CLASS_NAME.show))return;if(d.trigger(this.element,p.EVENT.hide).defaultPrevented)return;const e=this.getDimension();this.element.style[e]=`${this.element.getBoundingClientRect()[e]}px`,g.reflow(this.element),this.element.classList.add(p.CLASS_NAME.collapsing),this.element.classList.remove(p.CLASS_NAME.collapse),this.element.classList.remove(p.CLASS_NAME.show);const t=this.triggerArray.length;if(t>0)for(let e=0;e<t;e++){const t=this.triggerArray[e],n=g.getSelectorFromElement(t);if(null!==n){document.querySelector(n).classList.contains(p.CLASS_NAME.show)||(t.classList.add(p.CLASS_NAME.collapsed),t.setAttribute("aria-expanded","false"))}}this.setTransitioning(!0);this.element.style[e]="";const n=g.getTransitionDurationFromElement(this.element);d.one(this.element,g.TRANSITION_END,(()=>{this.setTransitioning(!1),this.element.classList.remove(p.CLASS_NAME.collapsing),this.element.classList.add(p.CLASS_NAME.collapse),d.trigger(this.element,p.EVENT.hidden)})),g.emulateTransitionEnd(this.element,n)}setTransitioning(e){this.isTransitioning=e}dispose(){s.removeData(this.element,p.DATA_KEY),this.options=null,this.parent=null,this.element=null,this.triggerArray=null,this.isTransitioning=null}getDimension(){return this.element.classList.contains(p.DIMENSION.width)?p.DIMENSION.width:p.DIMENSION.height}getParent(){let e;g.isElement(this.options.parent)?e=this.options.parent:this.options.parent&&(e=document.querySelector(this.options.parent));const t=`[data-toggle="collapse"][data-parent="${this.options.parent}"]`;return g.makeArray(e.querySelectorAll(t)).forEach((e=>{this.addAriaAndCollapsedClass(p.getTargetFromElement(e),[e])})),e}addAriaAndCollapsedClass(e,t){if(e){const n=e.classList.contains(p.CLASS_NAME.show);t.length&&t.forEach((e=>{n?e.classList.remove(p.CLASS_NAME.collapsed):e.classList.add(p.CLASS_NAME.collapsed),e.setAttribute("aria-expanded",n)}))}}static getOptions(e){return(e=Object.assign(Object.assign({},p.DEFAULT_OPTIONS),e)).toggle=Boolean(e.toggle),g.typeCheckConfig(p.NAME,e,p.DEFAULT_TYPE),e}static getTargetFromElement(e){const t=g.getSelectorFromElement(e);return t?document.querySelector(t):null}static collapseInterface(e,t){let n=s.getData(e,p.DATA_KEY);const o=Object.assign(Object.assign(Object.assign({},p.DEFAULT_OPTIONS),u.getDataAttributes(e)),"object"==typeof t&&t?t:{});if(!n&&o.toggle&&/show|hide/.test(t)&&(o.toggle=!1),n||(n=new p(e,o)),"string"==typeof t){if(void 0===n[t])throw new Error(`No method named "${t}"`);n[t]()}}static getInstance(e){return s.getData(e,p.DATA_KEY)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,p.SELECTOR.default)}registerEvents(){d.on(document,p.EVENT.clickDataApi,p.SELECTOR.dataToggle,(function(e){"A"===e.target.tagName&&e.preventDefault();const t=u.getDataAttributes(this),n=g.getSelectorFromElement(this);g.makeArray(document.querySelectorAll(n)).forEach((e=>{const n=p.getInstance(e);let s;n?(null===n.parent&&"string"==typeof t.parent&&(n.options.parent=t.parent,n.parent=n.getParent()),s="toggle"):s=t,p.collapseInterface(e,s)}))}))}}p.NAME=`${r.KEY_PREFIX}-collapse`,p.DATA_KEY=`${r.KEY_PREFIX}.collapse`,p.EVENT_KEY=`.${p.DATA_KEY}`,p.DATA_API_KEY=r.KEY_PREFIX,p.hasInit=!1,p.CLASS_NAME={show:"show",collapse:`${r.KEY_PREFIX}-collapse`,collapsing:`${r.KEY_PREFIX}-collapsing`,collapsed:`${r.KEY_PREFIX}-collapsed`},p.EVENT={show:`${l.show}${p.EVENT_KEY}`,shown:`${l.shown}${p.EVENT_KEY}`,hide:`${l.hide}${p.EVENT_KEY}`,hidden:`${l.hidden}${p.EVENT_KEY}`,clickDataApi:`${l.click}${p.EVENT_KEY}${p.DATA_API_KEY}`},p.DEFAULT_OPTIONS={toggle:!1,parent:""},p.DEFAULT_TYPE={toggle:"boolean",parent:"(string|element)"},p.DIMENSION={width:"width",height:"height"},p.SELECTOR={default:`.${p.CLASS_NAME.collapse}`,actives:`.${p.CLASS_NAME.show}, .${p.CLASS_NAME.collapsing}`,dataToggle:'[data-toggle="collapse"]'};const m=p,A={describe:e=>void 0===e?"undefined":0===e.length?"(no matching elements)":`${e.outerHTML.split(">")[0]}>`,assert(e,t,n){if(t)throw void 0!==e&&(e.style.border="1px solid red"),console.error(n,e),n},isChar:e=>void 0===e.which||"number"==typeof e.which&&e.which>0&&(!e.ctrlKey&&!e.metaKey&&!e.altKey&&8!==e.which&&9!==e.which&&13!==e.which&&16!==e.which&&17!==e.which&&20!==e.which&&27!==e.which)};class f extends o{constructor(e,t){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{});for(const e in n)!{}.hasOwnProperty.call(n,e)?console.error(`${e} does not exist in properties`):this[e]=n[e]}addFormGroupFocus(){this.element&&!0==!this.element.disabled&&this.njFormGroup.classList.add(f.CLASS_NAME.isFocused)}removeFormGroupFocus(){this.njFormGroup.classList.remove(f.CLASS_NAME.isFocused)}addIsFilled(){this.njFormGroup.classList.add(f.CLASS_NAME.isFilled)}removeIsFilled(){this.njFormGroup.classList.remove(f.CLASS_NAME.isFilled)}findFormGroup(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=this.element.closest(f.SELECTOR.formGroup);return null===t&&e&&console.error(`Failed to find ${f.SELECTOR.formGroup} for ${A.describe(this.element)}`),t}}f.CLASS_NAME={njFormGroup:"nj-form-group",isFilled:"is-filled",isFocused:"is-focused"},f.SELECTOR={formGroup:`.${f.CLASS_NAME.njFormGroup}`};const S=f;class y extends S{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(y,e,u.extend(!0,y.DEFAULT_OPTIONS,t)),this.triggerElement=this.element.parentElement.querySelector(`[data-toggle="collapse"][${y.SELECTOR.target}="#${this.element.id}"]`)||this.element.parentElement.querySelector(`[data-toggle="collapse"][href="#${this.element.id}"]`);const n=this.element.querySelector(`[data-dismiss="#${this.element.id}"]`);n&&n.addEventListener("click",this.dismissHandler.bind(this)),A.assert(e,!this.triggerElement,`Cannot find collapse trigger for ${A.describe(e)}`),A.assert(e,!this.element.classList.contains(m.CLASS_NAME.collapse),`${A.describe(e)} is expected to have the '${m.CLASS_NAME.collapse}' class. It is being targeted by ${A.describe(e)}`),this.input=this.element.querySelector(y.SELECTOR.anyInput),this.input&&(d.on(this.element,`${l.shown}.${m.DATA_KEY}`,(()=>{this.input.focus()})),d.on(this.input,"blur",(e=>{this.dismissHandler(e)})))}getElement(){return this.element}dispose(){s.removeData(this.element,y.DATA_KEY),this.element=null}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,y.SELECTOR.default)}static getInstance(e){const t=s.getData(e,y.DATA_KEY);return t||m.getInstance(e)}dismissHandler(e){e.preventDefault(),(e.target.closest(`[data-dismiss="#${this.element.id}"]`)||e.target.closest(`[href="#${this.element.id}"]`))&&d.trigger(this.triggerElement,l.click)}}y.NAME="collapseSearchBar",y.DATA_KEY=`${r.KEY_PREFIX}.${y.NAME}`,y.SELECTOR={default:`.${r.KEY_PREFIX}-navbar__search`,formGroup:S.SELECTOR.formGroup,anyInput:"input, select, textarea",target:"data-target"},y.DEFAULT_OPTIONS={njFormGroup:{required:!1}};const T=y;class v extends o{constructor(e){super(v,e),this.collapseSearchBarInstances=T.init(),this.registerEvents()}dispose(){this.collapseSearchBarInstances.length>0&&this.collapseSearchBarInstances.forEach((e=>{e.getElement()===this.element.querySelector(T.SELECTOR.default)&&e.dispose()})),s.removeData(this.element,v.DATA_KEY),this.element=null}handleCollapseShow(){this.element.classList.add(v.CLASS_NAME.shownCollapse)}handleCollapseHide(){this.element.classList.remove(v.CLASS_NAME.shownCollapse)}static getInstance(e){return s.getData(e,v.DATA_KEY)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,v.SELECTOR.default)}registerEvents(){d.on(this.element,m.EVENT.show,(()=>{this.handleCollapseShow()})),d.on(this.element,m.EVENT.hidden,(()=>{this.handleCollapseHide()}))}}v.NAME=`${r.KEY_PREFIX}-navbar`,v.DATA_KEY=`${r.KEY_PREFIX}.navbar`,v.CLASS_NAME={shownCollapse:`${v.NAME}--shown-collapse`},v.SELECTOR={default:`.${v.NAME}`};const N=v;return t=t.default})()));
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Password",[],t):"object"==typeof exports?exports.Password=t():e.Password=t()}(window,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>m}),window.NJStore=window.NJStore||[];const n=(()=>{const e=window.NJStore;return{set(t,n,o){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=o},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const o=t.key;o.key===n&&(delete e[o.id],delete t.key)}}})(),o={setData(e,t,o){n.set(e,t,o)},getData:(e,t)=>n.get(e,t),removeData(e,t){n.delete(e,t)}},r=o;class s{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o=[],s=document.querySelectorAll(n);for(let n=0;n<s.length;n++){const i=s[n];if(!i.key||i.key.key!==e.DATA_KEY){const a=new e(s[n],t);i.key||r.setData(s[n],e.DATA_KEY,a),o.push(a)}}return o}}var i,a,l,c;!function(e){e.LIBRARY_LOG_TAG="[FLUID]",e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(i||(i={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(a||(a={})),function(e){e.beforehide="beforehide",e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(l||(l={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(c||(c={}));class d{static getUidEvent(e,t){return t&&`${t}::${d.uidEvent++}`||e.uidEvent||d.uidEvent++}static getEvent(e){const t=d.getUidEvent(e);return e.uidEvent=t,d.EVENTREGISTRY[t]=d.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&d.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=o=>(d.fixEvent(o,e),n.oneOff&&d.off(e,o.type,t),t.apply(e,[o]));return n}static njDelegationHandler(e,t,n){const o=r=>{const s=e.querySelectorAll(t);for(let t=r.target;t&&t!==this;t=t.parentNode)for(let i=s.length;i>=0;i--)if(s[i]===t)return d.fixEvent(r,t),o.oneOff&&d.off(e,r.type,n),n.apply(t,[r]);return null};return o}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;const r=e[o];if(r.originalHandler===t&&r.delegationSelector===n)return e[o]}return null}static normalizeParams(e,t,n){const o="string"==typeof t,r=o?n:t;let s=e.replace(d.STRIPNAME_REGEX,"");const i=a[s];i&&(s=i);return"string"==typeof c[s]||(s=e),[o,r,s]}static addHandler(e,t,n,o,r){if("string"!=typeof t||null==e)return;n||(n=o,o=null);const s=d.getEvent(e);for(const i of t.split(" ")){const[t,a,l]=d.normalizeParams(i,n,o),c=s[l]||(s[l]={}),u=d.findHandler(c,a,t?n:null);if(u)return void(u.oneOff=u.oneOff&&r);const p=d.getUidEvent(a,i.replace(d.NAMESPACE_REGEX,"")),f=t?d.njDelegationHandler(e,n,o):d.njHandler(e,n);f.delegationSelector=t?n:null,f.originalHandler=a,f.oneOff=r,f.uidEvent=p,c[p]=f,e.addEventListener(l,f,t)}}static removeHandler(e,t,n,o,r){const s=d.findHandler(t[n],o,r);null!==s&&(e.removeEventListener(n,s,Boolean(r)),delete t[n][s.uidEvent])}static removeNamespacedHandlers(e,t,n,o){const r=t[n]||{};for(const s in r)if(Object.prototype.hasOwnProperty.call(r,s)&&s.indexOf(o)>-1){const o=r[s];d.removeHandler(e,t,n,o.originalHandler,o.delegationSelector)}}static on(e,t,n,o){d.addHandler(e,t,n,o,!1)}static one(e,t,n,o){d.addHandler(e,t,n,o,!0)}static off(e,t,n,o){if("string"!=typeof t||null==e)return;const[r,s,i]=d.normalizeParams(t,n,o),a=i!==t,l=d.getEvent(e);if(void 0!==s){if(!l||!l[i])return;return void d.removeHandler(e,l,i,s,r?n:null)}if("."===t.charAt(0))for(const n in l)Object.prototype.hasOwnProperty.call(l,n)&&d.removeNamespacedHandlers(e,l,n,t.substr(1));const c=l[i]||{};for(const n in c){if(!Object.prototype.hasOwnProperty.call(c,n))continue;const o=n.replace(d.STRIPUID_REGEX,"");if(!a||t.indexOf(o)>-1){const t=c[n];d.removeHandler(e,l,i,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const o=t.replace(d.STRIPNAME_REGEX,""),r="string"==typeof c[o];let s=null;return r?(s=document.createEvent("HTMLEvents"),s.initEvent(o,true,!0)):s=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(s,e,{get:()=>n[e]})})),e.dispatchEvent(s),s}}d.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,d.STRIPNAME_REGEX=/\..*/,d.KEYEVENT_REGEX=/^key/,d.STRIPUID_REGEX=/::\d+$/,d.EVENTREGISTRY={},d.uidEvent=1;const u=d;const p={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let n=0;n<e.attributes.length;n++){const o=e.attributes[n];if(-1!==o.nodeName.indexOf("data-")){const e=o.nodeName.substring(5).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=o.nodeValue}}return Object.keys(t).forEach((e=>{var n;t[e]="true"===(n=t[e])||"false"!==n&&("null"===n?null:n===Number(n).toString()?Number(n):""===n?null:n)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,n){for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n&&"[object Object]"===Object.prototype.toString.call(t[o])?e[o]=p.extend(e[o],t[o]):e[o]=t[o]);return e},extend(){let e={},t=!1,n=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],n++);n<arguments.length;n++)e=p.mergeExtended(e,n<0||arguments.length<=n?void 0:arguments[n],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},f=p;class E extends s{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(E,e,f.extend(!0,E.DEFAULT_OPTIONS,t)),this.setListeners(),r.setData(e,E.DATA_KEY,this)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,E.SELECTOR.default)}static getInstance(e){return r.getData(e,E.DATA_KEY)}dispose(){r.removeData(this.element,E.DATA_KEY),this.element=null}setListeners(){if(!this.element)return;const e=this.element.getElementsByClassName(E.INPUT_CLASS)[0],t=this.element.getElementsByClassName(E.TOGGLE_BTN_CLASS)[0],n=t.querySelector("span"),o=this.element.getElementsByClassName(E.NOTICE_CLASS)[0],r=n.getAttribute("data-password-button-label-show"),s=n.getAttribute("data-password-button-label-hide"),i=o.getAttribute("data-password-notice-is-visible"),a=o.getAttribute("data-password-notice-is-hidden");r&&s&&i&&a||console.warn("[FLUID] Some of these required attributes are missing: [data-password-button-label-show], [data-password-button-label-hide], [data-password-notice-is-visible], [data-password-notice-is-hidden]"),n.innerHTML=r,this.element.classList.contains(E.VISIBILITY_CLASS)&&(e.type="text",t.setAttribute("aria-pressed","false"),n.innerHTML=s,o.innerHTML=i),t?u.on(t,"click keydown",(l=>{"keydown"===l.type&&"key"in l&&"Enter"!==l.key&&" "!==l.key||(l.preventDefault(),"text"===e.type?(e.type="password",this.element.classList.remove(E.VISIBILITY_CLASS),t.setAttribute("aria-pressed","false"),n.innerHTML=r,o.innerHTML=a):"password"===e.type&&(e.type="text",this.element.classList.add(E.VISIBILITY_CLASS),t.setAttribute("aria-pressed","true"),n.innerHTML=s,o.innerHTML=i))})):console.warn("Toggle password icon not found")}}E.NAME=`${i.KEY_PREFIX}-form-item--password`,E.DATA_KEY=`${i.KEY_PREFIX}.password-input`,E.SELECTOR={default:`.${E.NAME}`},E.INPUT_CLASS=`${i.KEY_PREFIX}-form-item__field`,E.TOGGLE_BTN_CLASS=`${i.KEY_PREFIX}-form-item__password-button`,E.NOTICE_CLASS=`${i.KEY_PREFIX}-form-item__password-notice`,E.VISIBILITY_CLASS=`${i.KEY_PREFIX}-form-item--visible`,E.DEFAULT_OPTIONS={selector:E.SELECTOR};const m=E;return t=t.default})()));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Password",[],t):"object"==typeof exports?exports.Password=t():e.Password=t()}(window,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>m}),window.NJStore=window.NJStore||[];const n=(()=>{const e=window.NJStore;return{set(t,n,o){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=o},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const o=t.key;o.key===n&&(delete e[o.id],delete t.key)}}})(),o={setData(e,t,o){n.set(e,t,o)},getData:(e,t)=>n.get(e,t),removeData(e,t){n.delete(e,t)}},r=o;class s{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o=[],s=document.querySelectorAll(n);for(let n=0;n<s.length;n++){const i=s[n];if(!i.key||i.key.key!==e.DATA_KEY){const a=new e(s[n],t);i.key||r.setData(s[n],e.DATA_KEY,a),o.push(a)}}return o}}var i,a,l,c;!function(e){e.LIBRARY_LOG_TAG="[FLUID]",e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(i||(i={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(a||(a={})),function(e){e.beforehide="beforehide",e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(l||(l={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(c||(c={}));class d{static getUidEvent(e,t){return t&&`${t}::${d.uidEvent++}`||e.uidEvent||d.uidEvent++}static getEvent(e){const t=d.getUidEvent(e);return e.uidEvent=t,d.EVENTREGISTRY[t]=d.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&d.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=o=>(d.fixEvent(o,e),n.oneOff&&d.off(e,o.type,t),t.apply(e,[o]));return n}static njDelegationHandler(e,t,n){const o=r=>{const s=e.querySelectorAll(t);for(let t=r.target;t&&t!==this;t=t.parentNode)for(let i=s.length;i>=0;i--)if(s[i]===t)return d.fixEvent(r,t),o.oneOff&&d.off(e,r.type,n),n.apply(t,[r]);return null};return o}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;const r=e[o];if(r.originalHandler===t&&r.delegationSelector===n)return e[o]}return null}static normalizeParams(e,t,n){const o="string"==typeof t,r=o?n:t;let s=e.replace(d.STRIPNAME_REGEX,"");const i=a[s];i&&(s=i);return"string"==typeof c[s]||(s=e),[o,r,s]}static addHandler(e,t,n,o,r){if("string"!=typeof t||null==e)return;n||(n=o,o=null);const s=d.getEvent(e);for(const i of t.split(" ")){const[t,a,l]=d.normalizeParams(i,n,o),c=s[l]||(s[l]={}),u=d.findHandler(c,a,t?n:null);if(u)return void(u.oneOff=u.oneOff&&r);const p=d.getUidEvent(a,i.replace(d.NAMESPACE_REGEX,"")),f=t?d.njDelegationHandler(e,n,o):d.njHandler(e,n);f.delegationSelector=t?n:null,f.originalHandler=a,f.oneOff=r,f.uidEvent=p,c[p]=f,e.addEventListener(l,f,t)}}static removeHandler(e,t,n,o,r){const s=d.findHandler(t[n],o,r);null!==s&&(e.removeEventListener(n,s,Boolean(r)),delete t[n][s.uidEvent])}static removeNamespacedHandlers(e,t,n,o){const r=t[n]||{};for(const s in r)if(Object.prototype.hasOwnProperty.call(r,s)&&s.indexOf(o)>-1){const o=r[s];d.removeHandler(e,t,n,o.originalHandler,o.delegationSelector)}}static on(e,t,n,o){d.addHandler(e,t,n,o,!1)}static one(e,t,n,o){d.addHandler(e,t,n,o,!0)}static off(e,t,n,o){if("string"!=typeof t||null==e)return;const[r,s,i]=d.normalizeParams(t,n,o),a=i!==t,l=d.getEvent(e);if(void 0!==s){if(!l||!l[i])return;return void d.removeHandler(e,l,i,s,r?n:null)}if("."===t.charAt(0))for(const n in l)Object.prototype.hasOwnProperty.call(l,n)&&d.removeNamespacedHandlers(e,l,n,t.substr(1));const c=l[i]||{};for(const n in c){if(!Object.prototype.hasOwnProperty.call(c,n))continue;const o=n.replace(d.STRIPUID_REGEX,"");if(!a||t.indexOf(o)>-1){const t=c[n];d.removeHandler(e,l,i,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const o=t.replace(d.STRIPNAME_REGEX,""),r="string"==typeof c[o],s=!0;let i=null;return r?(i=document.createEvent("HTMLEvents"),i.initEvent(o,s,!0)):i=new window.CustomEvent(t,{bubbles:s,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(i,e,{get:()=>n[e]})})),e.dispatchEvent(i),i}}d.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,d.STRIPNAME_REGEX=/\..*/,d.KEYEVENT_REGEX=/^key/,d.STRIPUID_REGEX=/::\d+$/,d.EVENTREGISTRY={},d.uidEvent=1;const u=d;const p={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let n=0;n<e.attributes.length;n++){const o=e.attributes[n];if(-1!==o.nodeName.indexOf("data-")){const e=o.nodeName.substring(5).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=o.nodeValue}}return Object.keys(t).forEach((e=>{var n;t[e]="true"===(n=t[e])||"false"!==n&&("null"===n?null:n===Number(n).toString()?Number(n):""===n?null:n)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,n){for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n&&"[object Object]"===Object.prototype.toString.call(t[o])?e[o]=p.extend(e[o],t[o]):e[o]=t[o]);return e},extend(){let e={},t=!1,n=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],n++);n<arguments.length;n++)e=p.mergeExtended(e,n<0||arguments.length<=n?void 0:arguments[n],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},f=p;class E extends s{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(E,e,f.extend(!0,E.DEFAULT_OPTIONS,t)),this.setListeners(),r.setData(e,E.DATA_KEY,this)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,E.SELECTOR.default)}static getInstance(e){return r.getData(e,E.DATA_KEY)}dispose(){r.removeData(this.element,E.DATA_KEY),this.element=null}setListeners(){if(!this.element)return;const e=this.element.getElementsByClassName(E.INPUT_CLASS)[0],t=this.element.getElementsByClassName(E.TOGGLE_BTN_CLASS)[0],n=t.querySelector("span"),o=this.element.getElementsByClassName(E.NOTICE_CLASS)[0],r=n.getAttribute("data-password-button-label-show"),s=n.getAttribute("data-password-button-label-hide"),i=o.getAttribute("data-password-notice-is-visible"),a=o.getAttribute("data-password-notice-is-hidden");r&&s&&i&&a||console.warn("[FLUID] Some of these required attributes are missing: [data-password-button-label-show], [data-password-button-label-hide], [data-password-notice-is-visible], [data-password-notice-is-hidden]"),n.innerHTML=r,this.element.classList.contains(E.VISIBILITY_CLASS)&&(e.type="text",t.setAttribute("aria-pressed","false"),n.innerHTML=s,o.innerHTML=i),t?u.on(t,"click keydown",(l=>{"keydown"===l.type&&"key"in l&&"Enter"!==l.key&&" "!==l.key||(l.preventDefault(),"text"===e.type?(e.type="password",this.element.classList.remove(E.VISIBILITY_CLASS),t.setAttribute("aria-pressed","false"),n.innerHTML=r,o.innerHTML=a):"password"===e.type&&(e.type="text",this.element.classList.add(E.VISIBILITY_CLASS),t.setAttribute("aria-pressed","true"),n.innerHTML=s,o.innerHTML=i))})):console.warn("Toggle password icon not found")}}E.NAME=`${i.KEY_PREFIX}-form-item--password`,E.DATA_KEY=`${i.KEY_PREFIX}.password-input`,E.SELECTOR={default:`.${E.NAME}`},E.INPUT_CLASS=`${i.KEY_PREFIX}-form-item__field`,E.TOGGLE_BTN_CLASS=`${i.KEY_PREFIX}-form-item__password-button`,E.NOTICE_CLASS=`${i.KEY_PREFIX}-form-item__password-notice`,E.VISIBILITY_CLASS=`${i.KEY_PREFIX}-form-item--visible`,E.DEFAULT_OPTIONS={selector:E.SELECTOR};const m=E;return t=t.default})()));
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Radio",[],t):"object"==typeof exports?exports.Radio=t():e.Radio=t()}(window,(()=>(()=>{"use strict";var e,t,o,n,r={d:(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},s={};r.d(s,{default:()=>L}),function(e){e.LIBRARY_LOG_TAG="[FLUID]",e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(e||(e={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(t||(t={})),function(e){e.beforehide="beforehide",e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(o||(o={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(n||(n={}));class l{static getUidEvent(e,t){return t&&`${t}::${l.uidEvent++}`||e.uidEvent||l.uidEvent++}static getEvent(e){const t=l.getUidEvent(e);return e.uidEvent=t,l.EVENTREGISTRY[t]=l.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&l.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const o=n=>(l.fixEvent(n,e),o.oneOff&&l.off(e,n.type,t),t.apply(e,[n]));return o}static njDelegationHandler(e,t,o){const n=r=>{const s=e.querySelectorAll(t);for(let t=r.target;t&&t!==this;t=t.parentNode)for(let i=s.length;i>=0;i--)if(s[i]===t)return l.fixEvent(r,t),n.oneOff&&l.off(e,r.type,o),o.apply(t,[r]);return null};return n}static findHandler(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;const r=e[n];if(r.originalHandler===t&&r.delegationSelector===o)return e[n]}return null}static normalizeParams(e,o,r){const s="string"==typeof o,i=s?r:o;let a=e.replace(l.STRIPNAME_REGEX,"");const c=t[a];c&&(a=c);return"string"==typeof n[a]||(a=e),[s,i,a]}static addHandler(e,t,o,n,r){if("string"!=typeof t||null==e)return;o||(o=n,n=null);const s=l.getEvent(e);for(const i of t.split(" ")){const[t,a,c]=l.normalizeParams(i,o,n),d=s[c]||(s[c]={}),u=l.findHandler(d,a,t?o:null);if(u)return void(u.oneOff=u.oneOff&&r);const h=l.getUidEvent(a,i.replace(l.NAMESPACE_REGEX,"")),m=t?l.njDelegationHandler(e,o,n):l.njHandler(e,o);m.delegationSelector=t?o:null,m.originalHandler=a,m.oneOff=r,m.uidEvent=h,d[h]=m,e.addEventListener(c,m,t)}}static removeHandler(e,t,o,n,r){const s=l.findHandler(t[o],n,r);null!==s&&(e.removeEventListener(o,s,Boolean(r)),delete t[o][s.uidEvent])}static removeNamespacedHandlers(e,t,o,n){const r=t[o]||{};for(const s in r)if(Object.prototype.hasOwnProperty.call(r,s)&&s.indexOf(n)>-1){const n=r[s];l.removeHandler(e,t,o,n.originalHandler,n.delegationSelector)}}static on(e,t,o,n){l.addHandler(e,t,o,n,!1)}static one(e,t,o,n){l.addHandler(e,t,o,n,!0)}static off(e,t,o,n){if("string"!=typeof t||null==e)return;const[r,s,i]=l.normalizeParams(t,o,n),a=i!==t,c=l.getEvent(e);if(void 0!==s){if(!c||!c[i])return;return void l.removeHandler(e,c,i,s,r?o:null)}if("."===t.charAt(0))for(const o in c)Object.prototype.hasOwnProperty.call(c,o)&&l.removeNamespacedHandlers(e,c,o,t.substr(1));const d=c[i]||{};for(const o in d){if(!Object.prototype.hasOwnProperty.call(d,o))continue;const n=o.replace(l.STRIPUID_REGEX,"");if(!a||t.indexOf(n)>-1){const t=d[o];l.removeHandler(e,c,i,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,o){if("string"!=typeof t||null==e)return null;const r=t.replace(l.STRIPNAME_REGEX,""),s="string"==typeof n[r];let i=null;return s?(i=document.createEvent("HTMLEvents"),i.initEvent(r,true,!0)):i=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==o&&Object.keys(o).forEach((e=>{Object.defineProperty(i,e,{get:()=>o[e]})})),e.dispatchEvent(i),i}}l.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,l.STRIPNAME_REGEX=/\..*/,l.KEYEVENT_REGEX=/^key/,l.STRIPUID_REGEX=/::\d+$/,l.EVENTREGISTRY={},l.uidEvent=1;const i=l;const a={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let o=0;o<e.attributes.length;o++){const n=e.attributes[o];if(-1!==n.nodeName.indexOf("data-")){const e=n.nodeName.substring(5).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=n.nodeValue}}return Object.keys(t).forEach((e=>{var o;t[e]="true"===(o=t[e])||"false"!==o&&("null"===o?null:o===Number(o).toString()?Number(o):""===o?null:o)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,o){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(o&&"[object Object]"===Object.prototype.toString.call(t[n])?e[n]=a.extend(e[n],t[n]):e[n]=t[n]);return e},extend(){let e={},t=!1,o=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],o++);o<arguments.length;o++)e=a.mergeExtended(e,o<0||arguments.length<=o?void 0:arguments[o],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},c=a,d={describe:e=>void 0===e?"undefined":0===e.length?"(no matching elements)":`${e.outerHTML.split(">")[0]}>`,assert(e,t,o){if(t)throw void 0!==e&&(e.style.border="1px solid red"),console.error(o,e),o},isChar:e=>void 0===e.which||"number"==typeof e.which&&e.which>0&&(!e.ctrlKey&&!e.metaKey&&!e.altKey&&8!==e.which&&9!==e.which&&13!==e.which&&16!==e.which&&17!==e.which&&20!==e.which&&27!==e.which)};window.NJStore=window.NJStore||[];const u=(()=>{const e=window.NJStore;return{set(t,o,n){void 0===t.key&&(t.key={key:o,id:e.length}),e[t.key.id]=n},get:(t,o)=>(t.key&&o&&void 0===o.id&&(o=t.key),o&&void 0!==o.id?e[o.id]:null),delete(t,o){if(void 0===t.key)return;const n=t.key;n.key===o&&(delete e[n.id],delete t.key)}}})(),h={setData(e,t,o){u.set(e,t,o)},getData:(e,t)=>u.get(e,t),removeData(e,t){u.delete(e,t)}},m=h;class p{constructor(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=o,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;const n=[],r=document.querySelectorAll(o);for(let o=0;o<r.length;o++){const s=r[o];if(!s.key||s.key.key!==e.DATA_KEY){const l=new e(r[o],t);s.key||m.setData(r[o],e.DATA_KEY,l),n.push(l)}}return n}}class E extends p{constructor(e,t){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{});for(const e in o)!{}.hasOwnProperty.call(o,e)?console.error(`${e} does not exist in properties`):this[e]=o[e]}addFormGroupFocus(){this.element&&!0==!this.element.disabled&&this.njFormGroup.classList.add(E.CLASS_NAME.isFocused)}removeFormGroupFocus(){this.njFormGroup.classList.remove(E.CLASS_NAME.isFocused)}addIsFilled(){this.njFormGroup.classList.add(E.CLASS_NAME.isFilled)}removeIsFilled(){this.njFormGroup.classList.remove(E.CLASS_NAME.isFilled)}findFormGroup(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=this.element.closest(E.SELECTOR.formGroup);return null===t&&e&&console.error(`Failed to find ${E.SELECTOR.formGroup} for ${d.describe(this.element)}`),t}}E.CLASS_NAME={njFormGroup:"nj-form-group",isFilled:"is-filled",isFocused:"is-focused"},E.SELECTOR={formGroup:`.${E.CLASS_NAME.njFormGroup}`};const f=E;class g extends f{constructor(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,c.extend(!0,g.DEFAULT_OPTIONS,o),n),this.njFormGroup=this.resolveNJFormGroup(),this.njFormGroup&&(this.resolveNJLabel(),this.resolveNJFormGroupSizing(),this.addFocusListener(),this.addChangeListener(),this.isEmpty()?this.removeIsFilled():this.addIsFilled())}dispose(){i.off(this.element,"focus"),i.off(this.element,"blur"),i.off(this.element,"keydown"),i.off(this.element,"keyup")}addFocusListener(){i.on(this.element,"focus",(()=>{this.addFormGroupFocus()})),i.on(this.element,"blur",(()=>{this.removeFormGroupFocus()}))}addChangeListener(){i.on(this.element,"keydown",(e=>{d.isChar(e)&&this.addIsFilled()})),i.on(this.element,"keyup",(()=>{if(this.isEmpty()?this.removeIsFilled():this.addIsFilled(),this.options.validate){void 0===this.element[0].checkValidity||this.element[0].checkValidity()?this.removeHasDanger():this.addHasDanger()}}))}addHasDanger(){this.njFormGroup.classList.add(g.CLASS_NAME.hasDanger)}removeHasDanger(){this.njFormGroup.classList.remove(g.CLASS_NAME.hasDanger)}isEmpty(){return null===this.element.value||void 0===this.element.value||""===this.element.value}resolveNJFormGroup(){return this.findFormGroup(this.options.njFormGroup.required)}outerElement(){return this.element}resolveNJLabel(){let e=this.njFormGroup.querySelectorAll(g.INPUT_SELECTOR.njLabelWildcard);0===e.length&&(e=this.findLabel(this.options.label.required),null!==e&&e.length>1&&e.forEach((e=>{e.classList.add(this.options.label.className)})))}findLabel(){let e,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],o=null,n=0,r=!1;do{e=this.options.label.selectors[n];try{o=this.njFormGroup.querySelectorAll(e)}catch(e){o=null}r=null!==o&&o.length>0,n++}while(!r&&n<this.options.label.selectors.length);return!r&&t&&console.error(`Failed to find ${g.INPUT_SELECTOR.njLabelWildcard} within nj-form-group for ${d.describe(this.element)}`),o}resolveNJFormGroupSizing(){if(this.options.convertInputSizeVariations)for(const e in g.FORM_CONTROL_SIZE_MARKERS)this.element.classList.contains(e)&&this.njFormGroup.classList.add(g.FORM_CONTROL_SIZE_MARKERS[e])}}g.CLASS_NAME={njFormGroup:"nj-form-group",njLabel:"nj-label",njLabelStatic:"nj-label-static",njLabelPlaceholder:"nj-label-placeholder",njLabelFloating:"nj-label-floating",hasDanger:"has-danger",isFilled:"is-filled",isFocused:"is-focused",inputGroup:"input-group"},g.INPUT_SELECTOR={njFormGroup:`.${g.CLASS_NAME.njFormGroup}`,njLabelWildcard:`label[class^='${g.CLASS_NAME.njLabel}'], label[class*=' ${g.CLASS_NAME.njLabel}']`},g.DEFAULT_OPTIONS={validate:!1,njFormGroup:{template:"span",templateClass:`${g.CLASS_NAME.njFormGroup}`},label:{required:!1,selectors:[".form-control-label",":scope > label"],className:g.CLASS_NAME.njLabelStatic},requiredClasses:[],convertInputSizeVariations:!0},g.FORM_CONTROL_SIZE_MARKERS={"form-control-lg":"nj-form-group-lg","form-control-sm":"nj-form-group-sm"};const v=g;class b extends v{constructor(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,c.extend(!0,b.DEFAULT_OPTIONS,o),n),this.decorateMarkup()}decorateMarkup(){const e=c.createHtmlNode(this.options.template),t=`.${Array.from(e.classList).join(".")}`;this.element.parentNode.querySelector(t)||this.element.parentNode.appendChild(e)}outerElement(){return this.element.parentElement.closest(this.outerClass)}rejectWithoutRequiredStructure(){d.assert(this.element,"label"===this.element.parentElement.tagName.toLowerCase(),`${this.constructor.name}'s ${d.describe(this.element)} parent element should be <label>.`),d.assert(this.element,!this.outerElement().classList.contains(this.outerClass),`${this.constructor.name}'s ${d.describe(this.element)} outer element should have class ${this.outerClass}.`)}addFocusListener(){const e=this.element.closest(b.SELECTOR.label);i.on(e,"mouseenter",(()=>{this.addFormGroupFocus()})),i.on(e,"mouseleave",(()=>{this.removeFormGroupFocus()}))}addChangeListener(){i.on(this.element,"change",(()=>{this.element.blur()}))}}b.SELECTOR={formGroup:v.SELECTOR.formGroup,label:"label"},b.DEFAULT_OPTIONS={label:{required:!1}};const y=b;class S extends y{constructor(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{inputType:"radio",outerClass:`${e.KEY_PREFIX}-radio`};super(S,t,c.extend(!0,S.DEFAULT_OPTIONS,o),n),m.setData(t,S.DATA_KEY,this);const r=t.parentNode.parentNode;m.setData(r,S.DATA_KEY,this)}dispose(){m.removeData(this.element,S.DATA_KEY),this.element=null}matches(){return"radio"===this.element.getAttribute("type")}static getInstance(e){return m.getData(e,S.DATA_KEY)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,S.SELECTOR.default)}}S.NAME=`${e.KEY_PREFIX}-radio`,S.DATA_KEY=`${e.KEY_PREFIX}.radio`,S.SELECTOR={default:`.${S.NAME} > label > input[type=radio]`,formGroup:y.SELECTOR.formGroup,label:y.SELECTOR.label},S.DEFAULT_OPTIONS={template:`<span class="${e.KEY_PREFIX}-radio__decorator"></span>`,njFormGroup:{required:!1}};const L=S;return s=s.default})()));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Radio",[],t):"object"==typeof exports?exports.Radio=t():e.Radio=t()}(window,(()=>(()=>{"use strict";var e,t,o,n,r={d:(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},s={};r.d(s,{default:()=>L}),function(e){e.LIBRARY_LOG_TAG="[FLUID]",e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(e||(e={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(t||(t={})),function(e){e.beforehide="beforehide",e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(o||(o={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(n||(n={}));class l{static getUidEvent(e,t){return t&&`${t}::${l.uidEvent++}`||e.uidEvent||l.uidEvent++}static getEvent(e){const t=l.getUidEvent(e);return e.uidEvent=t,l.EVENTREGISTRY[t]=l.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&l.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const o=n=>(l.fixEvent(n,e),o.oneOff&&l.off(e,n.type,t),t.apply(e,[n]));return o}static njDelegationHandler(e,t,o){const n=r=>{const s=e.querySelectorAll(t);for(let t=r.target;t&&t!==this;t=t.parentNode)for(let i=s.length;i>=0;i--)if(s[i]===t)return l.fixEvent(r,t),n.oneOff&&l.off(e,r.type,o),o.apply(t,[r]);return null};return n}static findHandler(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;const r=e[n];if(r.originalHandler===t&&r.delegationSelector===o)return e[n]}return null}static normalizeParams(e,o,r){const s="string"==typeof o,i=s?r:o;let a=e.replace(l.STRIPNAME_REGEX,"");const c=t[a];c&&(a=c);return"string"==typeof n[a]||(a=e),[s,i,a]}static addHandler(e,t,o,n,r){if("string"!=typeof t||null==e)return;o||(o=n,n=null);const s=l.getEvent(e);for(const i of t.split(" ")){const[t,a,c]=l.normalizeParams(i,o,n),d=s[c]||(s[c]={}),u=l.findHandler(d,a,t?o:null);if(u)return void(u.oneOff=u.oneOff&&r);const h=l.getUidEvent(a,i.replace(l.NAMESPACE_REGEX,"")),m=t?l.njDelegationHandler(e,o,n):l.njHandler(e,o);m.delegationSelector=t?o:null,m.originalHandler=a,m.oneOff=r,m.uidEvent=h,d[h]=m,e.addEventListener(c,m,t)}}static removeHandler(e,t,o,n,r){const s=l.findHandler(t[o],n,r);null!==s&&(e.removeEventListener(o,s,Boolean(r)),delete t[o][s.uidEvent])}static removeNamespacedHandlers(e,t,o,n){const r=t[o]||{};for(const s in r)if(Object.prototype.hasOwnProperty.call(r,s)&&s.indexOf(n)>-1){const n=r[s];l.removeHandler(e,t,o,n.originalHandler,n.delegationSelector)}}static on(e,t,o,n){l.addHandler(e,t,o,n,!1)}static one(e,t,o,n){l.addHandler(e,t,o,n,!0)}static off(e,t,o,n){if("string"!=typeof t||null==e)return;const[r,s,i]=l.normalizeParams(t,o,n),a=i!==t,c=l.getEvent(e);if(void 0!==s){if(!c||!c[i])return;return void l.removeHandler(e,c,i,s,r?o:null)}if("."===t.charAt(0))for(const o in c)Object.prototype.hasOwnProperty.call(c,o)&&l.removeNamespacedHandlers(e,c,o,t.substr(1));const d=c[i]||{};for(const o in d){if(!Object.prototype.hasOwnProperty.call(d,o))continue;const n=o.replace(l.STRIPUID_REGEX,"");if(!a||t.indexOf(n)>-1){const t=d[o];l.removeHandler(e,c,i,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,o){if("string"!=typeof t||null==e)return null;const r=t.replace(l.STRIPNAME_REGEX,""),s="string"==typeof n[r],i=!0;let a=null;return s?(a=document.createEvent("HTMLEvents"),a.initEvent(r,i,!0)):a=new window.CustomEvent(t,{bubbles:i,cancelable:!0}),void 0!==o&&Object.keys(o).forEach((e=>{Object.defineProperty(a,e,{get:()=>o[e]})})),e.dispatchEvent(a),a}}l.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,l.STRIPNAME_REGEX=/\..*/,l.KEYEVENT_REGEX=/^key/,l.STRIPUID_REGEX=/::\d+$/,l.EVENTREGISTRY={},l.uidEvent=1;const i=l;const a={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let o=0;o<e.attributes.length;o++){const n=e.attributes[o];if(-1!==n.nodeName.indexOf("data-")){const e=n.nodeName.substring(5).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=n.nodeValue}}return Object.keys(t).forEach((e=>{var o;t[e]="true"===(o=t[e])||"false"!==o&&("null"===o?null:o===Number(o).toString()?Number(o):""===o?null:o)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,o){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(o&&"[object Object]"===Object.prototype.toString.call(t[n])?e[n]=a.extend(e[n],t[n]):e[n]=t[n]);return e},extend(){let e={},t=!1,o=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],o++);o<arguments.length;o++)e=a.mergeExtended(e,o<0||arguments.length<=o?void 0:arguments[o],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},c=a,d={describe:e=>void 0===e?"undefined":0===e.length?"(no matching elements)":`${e.outerHTML.split(">")[0]}>`,assert(e,t,o){if(t)throw void 0!==e&&(e.style.border="1px solid red"),console.error(o,e),o},isChar:e=>void 0===e.which||"number"==typeof e.which&&e.which>0&&(!e.ctrlKey&&!e.metaKey&&!e.altKey&&8!==e.which&&9!==e.which&&13!==e.which&&16!==e.which&&17!==e.which&&20!==e.which&&27!==e.which)};window.NJStore=window.NJStore||[];const u=(()=>{const e=window.NJStore;return{set(t,o,n){void 0===t.key&&(t.key={key:o,id:e.length}),e[t.key.id]=n},get:(t,o)=>(t.key&&o&&void 0===o.id&&(o=t.key),o&&void 0!==o.id?e[o.id]:null),delete(t,o){if(void 0===t.key)return;const n=t.key;n.key===o&&(delete e[n.id],delete t.key)}}})(),h={setData(e,t,o){u.set(e,t,o)},getData:(e,t)=>u.get(e,t),removeData(e,t){u.delete(e,t)}},m=h;class p{constructor(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=o,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;const n=[],r=document.querySelectorAll(o);for(let o=0;o<r.length;o++){const s=r[o];if(!s.key||s.key.key!==e.DATA_KEY){const l=new e(r[o],t);s.key||m.setData(r[o],e.DATA_KEY,l),n.push(l)}}return n}}class E extends p{constructor(e,t){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{});for(const e in o)!{}.hasOwnProperty.call(o,e)?console.error(`${e} does not exist in properties`):this[e]=o[e]}addFormGroupFocus(){this.element&&!0==!this.element.disabled&&this.njFormGroup.classList.add(E.CLASS_NAME.isFocused)}removeFormGroupFocus(){this.njFormGroup.classList.remove(E.CLASS_NAME.isFocused)}addIsFilled(){this.njFormGroup.classList.add(E.CLASS_NAME.isFilled)}removeIsFilled(){this.njFormGroup.classList.remove(E.CLASS_NAME.isFilled)}findFormGroup(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=this.element.closest(E.SELECTOR.formGroup);return null===t&&e&&console.error(`Failed to find ${E.SELECTOR.formGroup} for ${d.describe(this.element)}`),t}}E.CLASS_NAME={njFormGroup:"nj-form-group",isFilled:"is-filled",isFocused:"is-focused"},E.SELECTOR={formGroup:`.${E.CLASS_NAME.njFormGroup}`};const f=E;class g extends f{constructor(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,c.extend(!0,g.DEFAULT_OPTIONS,o),n),this.njFormGroup=this.resolveNJFormGroup(),this.njFormGroup&&(this.resolveNJLabel(),this.resolveNJFormGroupSizing(),this.addFocusListener(),this.addChangeListener(),this.isEmpty()?this.removeIsFilled():this.addIsFilled())}dispose(){i.off(this.element,"focus"),i.off(this.element,"blur"),i.off(this.element,"keydown"),i.off(this.element,"keyup")}addFocusListener(){i.on(this.element,"focus",(()=>{this.addFormGroupFocus()})),i.on(this.element,"blur",(()=>{this.removeFormGroupFocus()}))}addChangeListener(){i.on(this.element,"keydown",(e=>{d.isChar(e)&&this.addIsFilled()})),i.on(this.element,"keyup",(()=>{if(this.isEmpty()?this.removeIsFilled():this.addIsFilled(),this.options.validate){void 0===this.element[0].checkValidity||this.element[0].checkValidity()?this.removeHasDanger():this.addHasDanger()}}))}addHasDanger(){this.njFormGroup.classList.add(g.CLASS_NAME.hasDanger)}removeHasDanger(){this.njFormGroup.classList.remove(g.CLASS_NAME.hasDanger)}isEmpty(){return null===this.element.value||void 0===this.element.value||""===this.element.value}resolveNJFormGroup(){return this.findFormGroup(this.options.njFormGroup.required)}outerElement(){return this.element}resolveNJLabel(){let e=this.njFormGroup.querySelectorAll(g.INPUT_SELECTOR.njLabelWildcard);0===e.length&&(e=this.findLabel(this.options.label.required),null!==e&&e.length>1&&e.forEach((e=>{e.classList.add(this.options.label.className)})))}findLabel(){let e,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],o=null,n=0,r=!1;do{e=this.options.label.selectors[n];try{o=this.njFormGroup.querySelectorAll(e)}catch(e){o=null}r=null!==o&&o.length>0,n++}while(!r&&n<this.options.label.selectors.length);return!r&&t&&console.error(`Failed to find ${g.INPUT_SELECTOR.njLabelWildcard} within nj-form-group for ${d.describe(this.element)}`),o}resolveNJFormGroupSizing(){if(this.options.convertInputSizeVariations)for(const e in g.FORM_CONTROL_SIZE_MARKERS)this.element.classList.contains(e)&&this.njFormGroup.classList.add(g.FORM_CONTROL_SIZE_MARKERS[e])}}g.CLASS_NAME={njFormGroup:"nj-form-group",njLabel:"nj-label",njLabelStatic:"nj-label-static",njLabelPlaceholder:"nj-label-placeholder",njLabelFloating:"nj-label-floating",hasDanger:"has-danger",isFilled:"is-filled",isFocused:"is-focused",inputGroup:"input-group"},g.INPUT_SELECTOR={njFormGroup:`.${g.CLASS_NAME.njFormGroup}`,njLabelWildcard:`label[class^='${g.CLASS_NAME.njLabel}'], label[class*=' ${g.CLASS_NAME.njLabel}']`},g.DEFAULT_OPTIONS={validate:!1,njFormGroup:{template:"span",templateClass:`${g.CLASS_NAME.njFormGroup}`},label:{required:!1,selectors:[".form-control-label",":scope > label"],className:g.CLASS_NAME.njLabelStatic},requiredClasses:[],convertInputSizeVariations:!0},g.FORM_CONTROL_SIZE_MARKERS={"form-control-lg":"nj-form-group-lg","form-control-sm":"nj-form-group-sm"};const v=g;class b extends v{constructor(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,c.extend(!0,b.DEFAULT_OPTIONS,o),n),this.decorateMarkup()}decorateMarkup(){const e=c.createHtmlNode(this.options.template),t=`.${Array.from(e.classList).join(".")}`;this.element.parentNode.querySelector(t)||this.element.parentNode.appendChild(e)}outerElement(){return this.element.parentElement.closest(this.outerClass)}rejectWithoutRequiredStructure(){d.assert(this.element,"label"===this.element.parentElement.tagName.toLowerCase(),`${this.constructor.name}'s ${d.describe(this.element)} parent element should be <label>.`),d.assert(this.element,!this.outerElement().classList.contains(this.outerClass),`${this.constructor.name}'s ${d.describe(this.element)} outer element should have class ${this.outerClass}.`)}addFocusListener(){const e=this.element.closest(b.SELECTOR.label);i.on(e,"mouseenter",(()=>{this.addFormGroupFocus()})),i.on(e,"mouseleave",(()=>{this.removeFormGroupFocus()}))}addChangeListener(){i.on(this.element,"change",(()=>{this.element.blur()}))}}b.SELECTOR={formGroup:v.SELECTOR.formGroup,label:"label"},b.DEFAULT_OPTIONS={label:{required:!1}};const y=b;class S extends y{constructor(t){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{inputType:"radio",outerClass:`${e.KEY_PREFIX}-radio`};super(S,t,c.extend(!0,S.DEFAULT_OPTIONS,o),n),m.setData(t,S.DATA_KEY,this);const r=t.parentNode.parentNode;m.setData(r,S.DATA_KEY,this)}dispose(){m.removeData(this.element,S.DATA_KEY),this.element=null}matches(){return"radio"===this.element.getAttribute("type")}static getInstance(e){return m.getData(e,S.DATA_KEY)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,S.SELECTOR.default)}}S.NAME=`${e.KEY_PREFIX}-radio`,S.DATA_KEY=`${e.KEY_PREFIX}.radio`,S.SELECTOR={default:`.${S.NAME} > label > input[type=radio]`,formGroup:y.SELECTOR.formGroup,label:y.SELECTOR.label},S.DEFAULT_OPTIONS={template:`<span class="${e.KEY_PREFIX}-radio__decorator"></span>`,njFormGroup:{required:!1}};const L=S;return s=s.default})()));
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Search",[],t):"object"==typeof exports?exports.Search=t():e.Search=t()}(window,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>E}),window.NJStore=window.NJStore||[];const n=(()=>{const e=window.NJStore;return{set(t,n,o){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=o},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const o=t.key;o.key===n&&(delete e[o.id],delete t.key)}}})(),o={setData(e,t,o){n.set(e,t,o)},getData:(e,t)=>n.get(e,t),removeData(e,t){n.delete(e,t)}},r=o;class s{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o=[],s=document.querySelectorAll(n);for(let n=0;n<s.length;n++){const i=s[n];if(!i.key||i.key.key!==e.DATA_KEY){const l=new e(s[n],t);i.key||r.setData(s[n],e.DATA_KEY,l),o.push(l)}}return o}}var i,l,c,a;!function(e){e.LIBRARY_LOG_TAG="[FLUID]",e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(i||(i={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(l||(l={})),function(e){e.beforehide="beforehide",e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(c||(c={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(a||(a={}));class u{static getUidEvent(e,t){return t&&`${t}::${u.uidEvent++}`||e.uidEvent||u.uidEvent++}static getEvent(e){const t=u.getUidEvent(e);return e.uidEvent=t,u.EVENTREGISTRY[t]=u.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&u.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=o=>(u.fixEvent(o,e),n.oneOff&&u.off(e,o.type,t),t.apply(e,[o]));return n}static njDelegationHandler(e,t,n){const o=r=>{const s=e.querySelectorAll(t);for(let t=r.target;t&&t!==this;t=t.parentNode)for(let i=s.length;i>=0;i--)if(s[i]===t)return u.fixEvent(r,t),o.oneOff&&u.off(e,r.type,n),n.apply(t,[r]);return null};return o}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;const r=e[o];if(r.originalHandler===t&&r.delegationSelector===n)return e[o]}return null}static normalizeParams(e,t,n){const o="string"==typeof t,r=o?n:t;let s=e.replace(u.STRIPNAME_REGEX,"");const i=l[s];i&&(s=i);return"string"==typeof a[s]||(s=e),[o,r,s]}static addHandler(e,t,n,o,r){if("string"!=typeof t||null==e)return;n||(n=o,o=null);const s=u.getEvent(e);for(const i of t.split(" ")){const[t,l,c]=u.normalizeParams(i,n,o),a=s[c]||(s[c]={}),d=u.findHandler(a,l,t?n:null);if(d)return void(d.oneOff=d.oneOff&&r);const f=u.getUidEvent(l,i.replace(u.NAMESPACE_REGEX,"")),E=t?u.njDelegationHandler(e,n,o):u.njHandler(e,n);E.delegationSelector=t?n:null,E.originalHandler=l,E.oneOff=r,E.uidEvent=f,a[f]=E,e.addEventListener(c,E,t)}}static removeHandler(e,t,n,o,r){const s=u.findHandler(t[n],o,r);null!==s&&(e.removeEventListener(n,s,Boolean(r)),delete t[n][s.uidEvent])}static removeNamespacedHandlers(e,t,n,o){const r=t[n]||{};for(const s in r)if(Object.prototype.hasOwnProperty.call(r,s)&&s.indexOf(o)>-1){const o=r[s];u.removeHandler(e,t,n,o.originalHandler,o.delegationSelector)}}static on(e,t,n,o){u.addHandler(e,t,n,o,!1)}static one(e,t,n,o){u.addHandler(e,t,n,o,!0)}static off(e,t,n,o){if("string"!=typeof t||null==e)return;const[r,s,i]=u.normalizeParams(t,n,o),l=i!==t,c=u.getEvent(e);if(void 0!==s){if(!c||!c[i])return;return void u.removeHandler(e,c,i,s,r?n:null)}if("."===t.charAt(0))for(const n in c)Object.prototype.hasOwnProperty.call(c,n)&&u.removeNamespacedHandlers(e,c,n,t.substr(1));const a=c[i]||{};for(const n in a){if(!Object.prototype.hasOwnProperty.call(a,n))continue;const o=n.replace(u.STRIPUID_REGEX,"");if(!l||t.indexOf(o)>-1){const t=a[n];u.removeHandler(e,c,i,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const o=t.replace(u.STRIPNAME_REGEX,""),r="string"==typeof a[o];let s=null;return r?(s=document.createEvent("HTMLEvents"),s.initEvent(o,true,!0)):s=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(s,e,{get:()=>n[e]})})),e.dispatchEvent(s),s}}u.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,u.STRIPNAME_REGEX=/\..*/,u.KEYEVENT_REGEX=/^key/,u.STRIPUID_REGEX=/::\d+$/,u.EVENTREGISTRY={},u.uidEvent=1;const d=u;class f extends s{constructor(e){super(f,e),r.setData(e,f.DATA_KEY,this),this.root=e,this.field=e.querySelector(f.SELECTOR.field),this.clearButton=e.querySelector(f.SELECTOR.clearButton),this.toggleClearButtonIfNeeded(),this.toggleInertAttribute(),this.setListeners()}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,f.SELECTOR.default)}dispose(){d.off(this.clearButton,"click"),d.off(this.field,"input"),r.removeData(this.element,f.DATA_KEY),this.element=null}static getInstance(e){return r.getData(e,f.DATA_KEY)}setListeners(){d.on(this.clearButton,"click",(()=>{this.field.value=null,this.toggleClearButtonIfNeeded()})),d.on(this.field,"input",(()=>{this.toggleClearButtonIfNeeded()}))}toggleClearButtonIfNeeded(){const e=`${f.NAME}__clear-button--hidden`;this.field.value&&0!==this.field.value.length?this.clearButton.classList.remove(e):this.clearButton.classList.add(e)}toggleInertAttribute(){this.root.inert=this.root.classList.contains(`${f.NAME}--disabled`)||!0===this.field.disabled}}f.NAME=`${i.KEY_PREFIX}-search`,f.DATA_KEY=`${i.KEY_PREFIX}.search`,f.EVENT_KEY=`.${f.DATA_KEY}`,f.SELECTOR={default:`.${f.NAME}`,field:`.${f.NAME}__field`,clearButton:`.${f.NAME}__clear-button`};const E=f;return t=t.default})()));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Search",[],t):"object"==typeof exports?exports.Search=t():e.Search=t()}(window,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>E}),window.NJStore=window.NJStore||[];const n=(()=>{const e=window.NJStore;return{set(t,n,o){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=o},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const o=t.key;o.key===n&&(delete e[o.id],delete t.key)}}})(),o={setData(e,t,o){n.set(e,t,o)},getData:(e,t)=>n.get(e,t),removeData(e,t){n.delete(e,t)}},r=o;class s{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o=[],s=document.querySelectorAll(n);for(let n=0;n<s.length;n++){const i=s[n];if(!i.key||i.key.key!==e.DATA_KEY){const l=new e(s[n],t);i.key||r.setData(s[n],e.DATA_KEY,l),o.push(l)}}return o}}var i,l,c,a;!function(e){e.LIBRARY_LOG_TAG="[FLUID]",e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(i||(i={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(l||(l={})),function(e){e.beforehide="beforehide",e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(c||(c={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(a||(a={}));class u{static getUidEvent(e,t){return t&&`${t}::${u.uidEvent++}`||e.uidEvent||u.uidEvent++}static getEvent(e){const t=u.getUidEvent(e);return e.uidEvent=t,u.EVENTREGISTRY[t]=u.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&u.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=o=>(u.fixEvent(o,e),n.oneOff&&u.off(e,o.type,t),t.apply(e,[o]));return n}static njDelegationHandler(e,t,n){const o=r=>{const s=e.querySelectorAll(t);for(let t=r.target;t&&t!==this;t=t.parentNode)for(let i=s.length;i>=0;i--)if(s[i]===t)return u.fixEvent(r,t),o.oneOff&&u.off(e,r.type,n),n.apply(t,[r]);return null};return o}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;const r=e[o];if(r.originalHandler===t&&r.delegationSelector===n)return e[o]}return null}static normalizeParams(e,t,n){const o="string"==typeof t,r=o?n:t;let s=e.replace(u.STRIPNAME_REGEX,"");const i=l[s];i&&(s=i);return"string"==typeof a[s]||(s=e),[o,r,s]}static addHandler(e,t,n,o,r){if("string"!=typeof t||null==e)return;n||(n=o,o=null);const s=u.getEvent(e);for(const i of t.split(" ")){const[t,l,c]=u.normalizeParams(i,n,o),a=s[c]||(s[c]={}),d=u.findHandler(a,l,t?n:null);if(d)return void(d.oneOff=d.oneOff&&r);const f=u.getUidEvent(l,i.replace(u.NAMESPACE_REGEX,"")),E=t?u.njDelegationHandler(e,n,o):u.njHandler(e,n);E.delegationSelector=t?n:null,E.originalHandler=l,E.oneOff=r,E.uidEvent=f,a[f]=E,e.addEventListener(c,E,t)}}static removeHandler(e,t,n,o,r){const s=u.findHandler(t[n],o,r);null!==s&&(e.removeEventListener(n,s,Boolean(r)),delete t[n][s.uidEvent])}static removeNamespacedHandlers(e,t,n,o){const r=t[n]||{};for(const s in r)if(Object.prototype.hasOwnProperty.call(r,s)&&s.indexOf(o)>-1){const o=r[s];u.removeHandler(e,t,n,o.originalHandler,o.delegationSelector)}}static on(e,t,n,o){u.addHandler(e,t,n,o,!1)}static one(e,t,n,o){u.addHandler(e,t,n,o,!0)}static off(e,t,n,o){if("string"!=typeof t||null==e)return;const[r,s,i]=u.normalizeParams(t,n,o),l=i!==t,c=u.getEvent(e);if(void 0!==s){if(!c||!c[i])return;return void u.removeHandler(e,c,i,s,r?n:null)}if("."===t.charAt(0))for(const n in c)Object.prototype.hasOwnProperty.call(c,n)&&u.removeNamespacedHandlers(e,c,n,t.substr(1));const a=c[i]||{};for(const n in a){if(!Object.prototype.hasOwnProperty.call(a,n))continue;const o=n.replace(u.STRIPUID_REGEX,"");if(!l||t.indexOf(o)>-1){const t=a[n];u.removeHandler(e,c,i,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const o=t.replace(u.STRIPNAME_REGEX,""),r="string"==typeof a[o],s=!0;let i=null;return r?(i=document.createEvent("HTMLEvents"),i.initEvent(o,s,!0)):i=new window.CustomEvent(t,{bubbles:s,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(i,e,{get:()=>n[e]})})),e.dispatchEvent(i),i}}u.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,u.STRIPNAME_REGEX=/\..*/,u.KEYEVENT_REGEX=/^key/,u.STRIPUID_REGEX=/::\d+$/,u.EVENTREGISTRY={},u.uidEvent=1;const d=u;class f extends s{constructor(e){super(f,e),r.setData(e,f.DATA_KEY,this),this.root=e,this.field=e.querySelector(f.SELECTOR.field),this.clearButton=e.querySelector(f.SELECTOR.clearButton),this.toggleClearButtonIfNeeded(),this.toggleInertAttribute(),this.setListeners()}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,f.SELECTOR.default)}dispose(){d.off(this.clearButton,"click"),d.off(this.field,"input"),r.removeData(this.element,f.DATA_KEY),this.element=null}static getInstance(e){return r.getData(e,f.DATA_KEY)}setListeners(){d.on(this.clearButton,"click",(()=>{this.field.value=null,this.toggleClearButtonIfNeeded(),this.field.focus()})),d.on(this.field,"input",(()=>{this.toggleClearButtonIfNeeded()}))}toggleClearButtonIfNeeded(){const e=`${f.NAME}__clear-button--hidden`;this.field.value&&0!==this.field.value.length?this.clearButton.classList.remove(e):this.clearButton.classList.add(e)}toggleInertAttribute(){this.root.inert=this.root.classList.contains(`${f.NAME}--disabled`)||!0===this.field.disabled}}f.NAME=`${i.KEY_PREFIX}-search`,f.DATA_KEY=`${i.KEY_PREFIX}.search`,f.EVENT_KEY=`.${f.DATA_KEY}`,f.SELECTOR={default:`.${f.NAME}`,field:`.${f.NAME}__field`,clearButton:`.${f.NAME}__clear-button`};const E=f;return t=t.default})()));
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("SegmentedControl",[],t):"object"==typeof exports?exports.SegmentedControl=t():e.SegmentedControl=t()}(window,(()=>(()=>{"use strict";var e,t,n,o,r={d:(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},s={};r.d(s,{default:()=>f}),function(e){e.LIBRARY_LOG_TAG="[FLUID]",e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(e||(e={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(t||(t={})),function(e){e.beforehide="beforehide",e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(n||(n={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(o||(o={})),window.NJStore=window.NJStore||[];const i=(()=>{const e=window.NJStore;return{set(t,n,o){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=o},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const o=t.key;o.key===n&&(delete e[o.id],delete t.key)}}})(),l={setData(e,t,n){i.set(e,t,n)},getData:(e,t)=>i.get(e,t),removeData(e,t){i.delete(e,t)}},c=l;class a{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o=[],r=document.querySelectorAll(n);for(let n=0;n<r.length;n++){const s=r[n];if(!s.key||s.key.key!==e.DATA_KEY){const i=new e(r[n],t);s.key||c.setData(r[n],e.DATA_KEY,i),o.push(i)}}return o}}class u{static getUidEvent(e,t){return t&&`${t}::${u.uidEvent++}`||e.uidEvent||u.uidEvent++}static getEvent(e){const t=u.getUidEvent(e);return e.uidEvent=t,u.EVENTREGISTRY[t]=u.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&u.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=o=>(u.fixEvent(o,e),n.oneOff&&u.off(e,o.type,t),t.apply(e,[o]));return n}static njDelegationHandler(e,t,n){const o=r=>{const s=e.querySelectorAll(t);for(let t=r.target;t&&t!==this;t=t.parentNode)for(let i=s.length;i>=0;i--)if(s[i]===t)return u.fixEvent(r,t),o.oneOff&&u.off(e,r.type,n),n.apply(t,[r]);return null};return o}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;const r=e[o];if(r.originalHandler===t&&r.delegationSelector===n)return e[o]}return null}static normalizeParams(e,n,r){const s="string"==typeof n,i=s?r:n;let l=e.replace(u.STRIPNAME_REGEX,"");const c=t[l];c&&(l=c);return"string"==typeof o[l]||(l=e),[s,i,l]}static addHandler(e,t,n,o,r){if("string"!=typeof t||null==e)return;n||(n=o,o=null);const s=u.getEvent(e);for(const i of t.split(" ")){const[t,l,c]=u.normalizeParams(i,n,o),a=s[c]||(s[c]={}),d=u.findHandler(a,l,t?n:null);if(d)return void(d.oneOff=d.oneOff&&r);const E=u.getUidEvent(l,i.replace(u.NAMESPACE_REGEX,"")),f=t?u.njDelegationHandler(e,n,o):u.njHandler(e,n);f.delegationSelector=t?n:null,f.originalHandler=l,f.oneOff=r,f.uidEvent=E,a[E]=f,e.addEventListener(c,f,t)}}static removeHandler(e,t,n,o,r){const s=u.findHandler(t[n],o,r);null!==s&&(e.removeEventListener(n,s,Boolean(r)),delete t[n][s.uidEvent])}static removeNamespacedHandlers(e,t,n,o){const r=t[n]||{};for(const s in r)if(Object.prototype.hasOwnProperty.call(r,s)&&s.indexOf(o)>-1){const o=r[s];u.removeHandler(e,t,n,o.originalHandler,o.delegationSelector)}}static on(e,t,n,o){u.addHandler(e,t,n,o,!1)}static one(e,t,n,o){u.addHandler(e,t,n,o,!0)}static off(e,t,n,o){if("string"!=typeof t||null==e)return;const[r,s,i]=u.normalizeParams(t,n,o),l=i!==t,c=u.getEvent(e);if(void 0!==s){if(!c||!c[i])return;return void u.removeHandler(e,c,i,s,r?n:null)}if("."===t.charAt(0))for(const n in c)Object.prototype.hasOwnProperty.call(c,n)&&u.removeNamespacedHandlers(e,c,n,t.substr(1));const a=c[i]||{};for(const n in a){if(!Object.prototype.hasOwnProperty.call(a,n))continue;const o=n.replace(u.STRIPUID_REGEX,"");if(!l||t.indexOf(o)>-1){const t=a[n];u.removeHandler(e,c,i,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const r=t.replace(u.STRIPNAME_REGEX,""),s="string"==typeof o[r];let i=null;return s?(i=document.createEvent("HTMLEvents"),i.initEvent(r,true,!0)):i=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(i,e,{get:()=>n[e]})})),e.dispatchEvent(i),i}}u.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,u.STRIPNAME_REGEX=/\..*/,u.KEYEVENT_REGEX=/^key/,u.STRIPUID_REGEX=/::\d+$/,u.EVENTREGISTRY={},u.uidEvent=1;const d=u;class E extends a{constructor(e){super(E,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),this.select=e=>{this.buttons.forEach(((t,n)=>{t&&(e===n?(t.classList.add(E.CLASS_NAME.buttonSelected),this.value=t.getAttribute("data-value"),d.trigger(this.element,E.EVENT.onchange,{value:this.value}),this.element.setAttribute("data-value",this.value),t.setAttribute("aria-pressed","true"),setTimeout((()=>{this.computeSelectedTransition(t)}))):(t.classList.remove(E.CLASS_NAME.buttonSelected),t.setAttribute("aria-pressed","false")))}))},this.computeSelectedTransition=e=>{const t=e.getBoundingClientRect();if(this.element){const e=this.element.getBoundingClientRect(),n=this.element.style;n.setProperty("--nj-sc-btn-selected-width",`${t.width}px`),n.setProperty("--nj-sc-btn-selected-right",e.right-t.right+"px")}},this.element=e,c.setData(e,E.DATA_KEY,this),this.buttons=e.querySelectorAll(E.CLASS_NAME.button),this.value=this.element.getAttribute("data-value"),setTimeout((()=>{this.buttons.forEach(((e,t)=>{const n=e.getAttribute("data-value");this.value&&this.value===n&&this.select(t),e.addEventListener("click",(()=>this.select(t)))}))}),100)}dispose(){this.buttons.forEach(((e,t)=>{e.removeEventListener("click",(()=>this.select(t)))})),c.removeData(this.element,E.DATA_KEY)}static getInstance(e){return c.getData(e,E.DATA_KEY)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,E.SELECTOR.default)}}E.NAME=`${e.KEY_PREFIX}-segmented-control`,E.DATA_KEY=`${e.KEY_PREFIX}.segmented-control`,E.EVENT_KEY=`.${E.DATA_KEY}`,E.CLASS_NAME={component:`.${E.NAME}`,button:`.${E.NAME}-btn`,buttonSelected:`${E.NAME}-btn--selected`},E.SELECTOR={default:`.${E.NAME}`},E.EVENT={onchange:`${n.onchange}${E.EVENT_KEY}`};const f=E;return s=s.default})()));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("SegmentedControl",[],t):"object"==typeof exports?exports.SegmentedControl=t():e.SegmentedControl=t()}(window,(()=>(()=>{"use strict";var e,t,n,o,r={d:(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},s={};r.d(s,{default:()=>f}),function(e){e.LIBRARY_LOG_TAG="[FLUID]",e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(e||(e={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(t||(t={})),function(e){e.beforehide="beforehide",e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(n||(n={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(o||(o={})),window.NJStore=window.NJStore||[];const i=(()=>{const e=window.NJStore;return{set(t,n,o){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=o},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const o=t.key;o.key===n&&(delete e[o.id],delete t.key)}}})(),l={setData(e,t,n){i.set(e,t,n)},getData:(e,t)=>i.get(e,t),removeData(e,t){i.delete(e,t)}},c=l;class a{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o=[],r=document.querySelectorAll(n);for(let n=0;n<r.length;n++){const s=r[n];if(!s.key||s.key.key!==e.DATA_KEY){const i=new e(r[n],t);s.key||c.setData(r[n],e.DATA_KEY,i),o.push(i)}}return o}}class u{static getUidEvent(e,t){return t&&`${t}::${u.uidEvent++}`||e.uidEvent||u.uidEvent++}static getEvent(e){const t=u.getUidEvent(e);return e.uidEvent=t,u.EVENTREGISTRY[t]=u.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&u.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=o=>(u.fixEvent(o,e),n.oneOff&&u.off(e,o.type,t),t.apply(e,[o]));return n}static njDelegationHandler(e,t,n){const o=r=>{const s=e.querySelectorAll(t);for(let t=r.target;t&&t!==this;t=t.parentNode)for(let i=s.length;i>=0;i--)if(s[i]===t)return u.fixEvent(r,t),o.oneOff&&u.off(e,r.type,n),n.apply(t,[r]);return null};return o}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;const r=e[o];if(r.originalHandler===t&&r.delegationSelector===n)return e[o]}return null}static normalizeParams(e,n,r){const s="string"==typeof n,i=s?r:n;let l=e.replace(u.STRIPNAME_REGEX,"");const c=t[l];c&&(l=c);return"string"==typeof o[l]||(l=e),[s,i,l]}static addHandler(e,t,n,o,r){if("string"!=typeof t||null==e)return;n||(n=o,o=null);const s=u.getEvent(e);for(const i of t.split(" ")){const[t,l,c]=u.normalizeParams(i,n,o),a=s[c]||(s[c]={}),d=u.findHandler(a,l,t?n:null);if(d)return void(d.oneOff=d.oneOff&&r);const E=u.getUidEvent(l,i.replace(u.NAMESPACE_REGEX,"")),f=t?u.njDelegationHandler(e,n,o):u.njHandler(e,n);f.delegationSelector=t?n:null,f.originalHandler=l,f.oneOff=r,f.uidEvent=E,a[E]=f,e.addEventListener(c,f,t)}}static removeHandler(e,t,n,o,r){const s=u.findHandler(t[n],o,r);null!==s&&(e.removeEventListener(n,s,Boolean(r)),delete t[n][s.uidEvent])}static removeNamespacedHandlers(e,t,n,o){const r=t[n]||{};for(const s in r)if(Object.prototype.hasOwnProperty.call(r,s)&&s.indexOf(o)>-1){const o=r[s];u.removeHandler(e,t,n,o.originalHandler,o.delegationSelector)}}static on(e,t,n,o){u.addHandler(e,t,n,o,!1)}static one(e,t,n,o){u.addHandler(e,t,n,o,!0)}static off(e,t,n,o){if("string"!=typeof t||null==e)return;const[r,s,i]=u.normalizeParams(t,n,o),l=i!==t,c=u.getEvent(e);if(void 0!==s){if(!c||!c[i])return;return void u.removeHandler(e,c,i,s,r?n:null)}if("."===t.charAt(0))for(const n in c)Object.prototype.hasOwnProperty.call(c,n)&&u.removeNamespacedHandlers(e,c,n,t.substr(1));const a=c[i]||{};for(const n in a){if(!Object.prototype.hasOwnProperty.call(a,n))continue;const o=n.replace(u.STRIPUID_REGEX,"");if(!l||t.indexOf(o)>-1){const t=a[n];u.removeHandler(e,c,i,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const r=t.replace(u.STRIPNAME_REGEX,""),s="string"==typeof o[r],i=!0;let l=null;return s?(l=document.createEvent("HTMLEvents"),l.initEvent(r,i,!0)):l=new window.CustomEvent(t,{bubbles:i,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(l,e,{get:()=>n[e]})})),e.dispatchEvent(l),l}}u.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,u.STRIPNAME_REGEX=/\..*/,u.KEYEVENT_REGEX=/^key/,u.STRIPUID_REGEX=/::\d+$/,u.EVENTREGISTRY={},u.uidEvent=1;const d=u;class E extends a{constructor(e){super(E,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),this.select=e=>{this.buttons.forEach(((t,n)=>{t&&(e===n?(t.classList.add(E.CLASS_NAME.buttonSelected),this.value=t.getAttribute("data-value"),d.trigger(this.element,E.EVENT.onchange,{value:this.value}),this.element.setAttribute("data-value",this.value),t.setAttribute("aria-pressed","true"),setTimeout((()=>{this.computeSelectedTransition(t)}))):(t.classList.remove(E.CLASS_NAME.buttonSelected),t.setAttribute("aria-pressed","false")))}))},this.computeSelectedTransition=e=>{const t=e.getBoundingClientRect();if(this.element){const e=this.element.getBoundingClientRect(),n=this.element.style;n.setProperty("--nj-sc-btn-selected-width",`${t.width}px`),n.setProperty("--nj-sc-btn-selected-right",e.right-t.right+"px")}},this.element=e,c.setData(e,E.DATA_KEY,this),this.buttons=e.querySelectorAll(E.CLASS_NAME.button),this.value=this.element.getAttribute("data-value"),setTimeout((()=>{this.buttons.forEach(((e,t)=>{const n=e.getAttribute("data-value");this.value&&this.value===n&&this.select(t),e.addEventListener("click",(()=>this.select(t)))}))}),100)}dispose(){this.buttons.forEach(((e,t)=>{e.removeEventListener("click",(()=>this.select(t)))})),c.removeData(this.element,E.DATA_KEY)}static getInstance(e){return c.getData(e,E.DATA_KEY)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,E.SELECTOR.default)}}E.NAME=`${e.KEY_PREFIX}-segmented-control`,E.DATA_KEY=`${e.KEY_PREFIX}.segmented-control`,E.EVENT_KEY=`.${E.DATA_KEY}`,E.CLASS_NAME={component:`.${E.NAME}`,button:`.${E.NAME}-btn`,buttonSelected:`${E.NAME}-btn--selected`},E.SELECTOR={default:`.${E.NAME}`},E.EVENT={onchange:`${n.onchange}${E.EVENT_KEY}`};const f=E;return s=s.default})()));
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("SelectInput",[],t):"object"==typeof exports?exports.SelectInput=t():e.SelectInput=t()}(window,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>h}),window.NJStore=window.NJStore||[];const n=(()=>{const e=window.NJStore;return{set(t,n,o){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=o},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const o=t.key;o.key===n&&(delete e[o.id],delete t.key)}}})(),o={setData(e,t,o){n.set(e,t,o)},getData:(e,t)=>n.get(e,t),removeData(e,t){n.delete(e,t)}},s=o;class i{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o=[],i=document.querySelectorAll(n);for(let n=0;n<i.length;n++){const l=i[n];if(!l.key||l.key.key!==e.DATA_KEY){const r=new e(i[n],t);l.key||s.setData(i[n],e.DATA_KEY,r),o.push(r)}}return o}}var l,r,d,c;!function(e){e.LIBRARY_LOG_TAG="[FLUID]",e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(l||(l={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(r||(r={})),function(e){e.beforehide="beforehide",e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(d||(d={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(c||(c={}));class a{static getUidEvent(e,t){return t&&`${t}::${a.uidEvent++}`||e.uidEvent||a.uidEvent++}static getEvent(e){const t=a.getUidEvent(e);return e.uidEvent=t,a.EVENTREGISTRY[t]=a.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&a.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=o=>(a.fixEvent(o,e),n.oneOff&&a.off(e,o.type,t),t.apply(e,[o]));return n}static njDelegationHandler(e,t,n){const o=s=>{const i=e.querySelectorAll(t);for(let t=s.target;t&&t!==this;t=t.parentNode)for(let l=i.length;l>=0;l--)if(i[l]===t)return a.fixEvent(s,t),o.oneOff&&a.off(e,s.type,n),n.apply(t,[s]);return null};return o}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;const s=e[o];if(s.originalHandler===t&&s.delegationSelector===n)return e[o]}return null}static normalizeParams(e,t,n){const o="string"==typeof t,s=o?n:t;let i=e.replace(a.STRIPNAME_REGEX,"");const l=r[i];l&&(i=l);return"string"==typeof c[i]||(i=e),[o,s,i]}static addHandler(e,t,n,o,s){if("string"!=typeof t||null==e)return;n||(n=o,o=null);const i=a.getEvent(e);for(const l of t.split(" ")){const[t,r,d]=a.normalizeParams(l,n,o),c=i[d]||(i[d]={}),u=a.findHandler(c,r,t?n:null);if(u)return void(u.oneOff=u.oneOff&&s);const E=a.getUidEvent(r,l.replace(a.NAMESPACE_REGEX,"")),h=t?a.njDelegationHandler(e,n,o):a.njHandler(e,n);h.delegationSelector=t?n:null,h.originalHandler=r,h.oneOff=s,h.uidEvent=E,c[E]=h,e.addEventListener(d,h,t)}}static removeHandler(e,t,n,o,s){const i=a.findHandler(t[n],o,s);null!==i&&(e.removeEventListener(n,i,Boolean(s)),delete t[n][i.uidEvent])}static removeNamespacedHandlers(e,t,n,o){const s=t[n]||{};for(const i in s)if(Object.prototype.hasOwnProperty.call(s,i)&&i.indexOf(o)>-1){const o=s[i];a.removeHandler(e,t,n,o.originalHandler,o.delegationSelector)}}static on(e,t,n,o){a.addHandler(e,t,n,o,!1)}static one(e,t,n,o){a.addHandler(e,t,n,o,!0)}static off(e,t,n,o){if("string"!=typeof t||null==e)return;const[s,i,l]=a.normalizeParams(t,n,o),r=l!==t,d=a.getEvent(e);if(void 0!==i){if(!d||!d[l])return;return void a.removeHandler(e,d,l,i,s?n:null)}if("."===t.charAt(0))for(const n in d)Object.prototype.hasOwnProperty.call(d,n)&&a.removeNamespacedHandlers(e,d,n,t.substr(1));const c=d[l]||{};for(const n in c){if(!Object.prototype.hasOwnProperty.call(c,n))continue;const o=n.replace(a.STRIPUID_REGEX,"");if(!r||t.indexOf(o)>-1){const t=c[n];a.removeHandler(e,d,l,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const o=t.replace(a.STRIPNAME_REGEX,""),s="string"==typeof c[o];let i=null;return s?(i=document.createEvent("HTMLEvents"),i.initEvent(o,true,!0)):i=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(i,e,{get:()=>n[e]})})),e.dispatchEvent(i),i}}a.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,a.STRIPNAME_REGEX=/\..*/,a.KEYEVENT_REGEX=/^key/,a.STRIPUID_REGEX=/::\d+$/,a.EVENTREGISTRY={},a.uidEvent=1;const u=a;class E extends i{static getInstance(e){return s.getData(e,E.DATA_KEY)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,E.SELECTOR.default)}constructor(e){super(E,e),s.setData(e,E.DATA_KEY,this),this.buttonEl=this.element.querySelector(E.SELECTOR.button),this.labelEl=this.element.querySelector(E.SELECTOR.label),this.listEl=this.element.querySelector(E.SELECTOR.options),this.inputEl=this.element.querySelector(E.SELECTOR.input),this.optionElements=Array.from(this.element.querySelectorAll(E.SELECTOR.option)),this.addToggleEvent(),this.addEscapeEvent(),this.addBlurEvent(),this.addUpDownEvent(),this.addClickEvent(),this.addShortcutEvents()}updateOptionsAndListeners(){this.optionElements=Array.from(this.element.querySelectorAll(E.SELECTOR.option)),this.addClickEvent()}get isOpen(){return!this.listEl.hasAttribute("hidden")}set isOpen(e){e?(this.listEl.removeAttribute("hidden"),this.buttonEl.setAttribute("aria-expanded","true"),this.buttonEl.setAttribute("tabindex","-1"),this.element.classList.add(E.CLASS_NAME.isOpen),this.listEl.focus(),this.focusedIndex=this.selectedIndex,-1===this.focusedIndex&&this.listEl.scrollTo({top:0}),this.optionElements.forEach(((e,t)=>{const n="nj-list-deprecated__item--active";t===this.focusedIndex?e.classList.add(n):e.classList.remove(n)})),u.trigger(this.element,E.EVENT.open)):(this.listEl.setAttribute("hidden","hidden"),this.buttonEl.setAttribute("aria-expanded","false"),this.buttonEl.removeAttribute("tabindex"),this.element.classList.remove(E.CLASS_NAME.isOpen),this.focusedIndex=-1,u.trigger(this.element,E.EVENT.close))}get selectedIndex(){return this.optionElements.findIndex((e=>"true"===e.getAttribute("aria-selected")))}set selectedIndex(e){this.optionElements.forEach(((t,n)=>{t.setAttribute("aria-selected",String(n===e))})),this.inputEl.value=this.selectedOptionLabel,this.buttonEl.setAttribute("aria-label",`${this.labelEl.textContent} - ${this.selectedOptionLabel}`),u.trigger(this.element,E.EVENT.onchange,{value:this.selectedOptionLabel,option:this.optionElements[e]})}get focusedIndex(){return this.optionElements.findIndex((e=>document.activeElement===e))}set focusedIndex(e){-1!==e&&this.optionElements[e].focus()}get selectedOptionLabel(){if(-1!==this.selectedIndex){return this.optionElements[this.selectedIndex].textContent}return""}get selectedOptionValue(){var e;if(-1!==this.selectedIndex){const t=this.optionElements[this.selectedIndex];return null!==(e=t.getAttribute(E.ATTRIBUTE.value))&&void 0!==e?e:t.textContent}return""}dispose(){s.removeData(this.element,E.DATA_KEY),this.element=null}addToggleEvent(){u.on(this.buttonEl,d.click,(()=>{this.isOpen=!this.isOpen}))}addEscapeEvent(){u.on(this.listEl,d.keydown,(e=>{e.keyCode===E.ESCAPE_KEYCODE&&(this.isOpen=!1,this.buttonEl.focus())}))}addBlurEvent(){u.on(this.element,d.focusout,(e=>{this.element.contains(e.relatedTarget)||(this.isOpen=!1)}))}addUpDownEvent(){u.on(this.listEl,d.keydown,(e=>{e.keyCode===E.UP_KEYCODE&&(e.preventDefault(),this.focusedIndex=Math.max(0,this.focusedIndex-1)),e.keyCode===E.DOWN_KEYCODE&&(e.preventDefault(),this.focusedIndex=Math.min(this.optionElements.length-1,this.focusedIndex+1))}))}addClickEvent(){this.optionElements.forEach(((e,t)=>{u.on(e,d.click,(()=>{this.selectedIndex=t,this.isOpen=!1,this.buttonEl.focus()})),u.on(e,d.keydown,(e=>{e.keyCode===E.ENTER_KEYCODE&&(e.preventDefault(),this.selectedIndex=this.focusedIndex,this.isOpen=!1,this.buttonEl.focus())}))}))}addShortcutEvents(){const e=/^[\d\p{Letter}]$/u;u.on(this.listEl,d.keydown,(t=>{if(e.test(t.key)){const e=this.optionElements.findIndex((e=>e.textContent[0].toLowerCase()===t.key.toLowerCase()));-1!==e&&(this.focusedIndex=e)}}))}}E.NAME=`${l.KEY_PREFIX}-form-item--custom-list`,E.DATA_KEY=`${l.KEY_PREFIX}.custom-list`,E.EVENT_KEY=`.${E.DATA_KEY}`,E.ESCAPE_KEYCODE=27,E.ENTER_KEYCODE=13,E.UP_KEYCODE=38,E.DOWN_KEYCODE=40,E.CLASS_NAME={isOpen:`${l.KEY_PREFIX}-form-item--open`},E.ATTRIBUTE={value:"data-value"},E.SELECTOR={default:`.${E.NAME}`,label:`.${l.KEY_PREFIX}-form-item__label`,button:`.${l.KEY_PREFIX}-form-item__custom-list-button`,input:`.${l.KEY_PREFIX}-form-item__field`,options:`.${l.KEY_PREFIX}-form-item__list`,option:`.${l.KEY_PREFIX}-list-deprecated__item`},E.EVENT={onchange:`${d.onchange}${E.EVENT_KEY}`,open:`${d.show}${E.EVENT_KEY}`,close:`${d.hide}${E.EVENT_KEY}`};const h=E;return t=t.default})()));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("SelectInput",[],t):"object"==typeof exports?exports.SelectInput=t():e.SelectInput=t()}(window,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var o in n)e.o(n,o)&&!e.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:n[o]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>h}),window.NJStore=window.NJStore||[];const n=(()=>{const e=window.NJStore;return{set(t,n,o){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=o},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const o=t.key;o.key===n&&(delete e[o.id],delete t.key)}}})(),o={setData(e,t,o){n.set(e,t,o)},getData:(e,t)=>n.get(e,t),removeData(e,t){n.delete(e,t)}},s=o;class i{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o=[],i=document.querySelectorAll(n);for(let n=0;n<i.length;n++){const l=i[n];if(!l.key||l.key.key!==e.DATA_KEY){const r=new e(i[n],t);l.key||s.setData(i[n],e.DATA_KEY,r),o.push(r)}}return o}}var l,r,d,c;!function(e){e.LIBRARY_LOG_TAG="[FLUID]",e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(l||(l={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(r||(r={})),function(e){e.beforehide="beforehide",e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(d||(d={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(c||(c={}));class a{static getUidEvent(e,t){return t&&`${t}::${a.uidEvent++}`||e.uidEvent||a.uidEvent++}static getEvent(e){const t=a.getUidEvent(e);return e.uidEvent=t,a.EVENTREGISTRY[t]=a.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&a.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=o=>(a.fixEvent(o,e),n.oneOff&&a.off(e,o.type,t),t.apply(e,[o]));return n}static njDelegationHandler(e,t,n){const o=s=>{const i=e.querySelectorAll(t);for(let t=s.target;t&&t!==this;t=t.parentNode)for(let l=i.length;l>=0;l--)if(i[l]===t)return a.fixEvent(s,t),o.oneOff&&a.off(e,s.type,n),n.apply(t,[s]);return null};return o}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;const s=e[o];if(s.originalHandler===t&&s.delegationSelector===n)return e[o]}return null}static normalizeParams(e,t,n){const o="string"==typeof t,s=o?n:t;let i=e.replace(a.STRIPNAME_REGEX,"");const l=r[i];l&&(i=l);return"string"==typeof c[i]||(i=e),[o,s,i]}static addHandler(e,t,n,o,s){if("string"!=typeof t||null==e)return;n||(n=o,o=null);const i=a.getEvent(e);for(const l of t.split(" ")){const[t,r,d]=a.normalizeParams(l,n,o),c=i[d]||(i[d]={}),u=a.findHandler(c,r,t?n:null);if(u)return void(u.oneOff=u.oneOff&&s);const E=a.getUidEvent(r,l.replace(a.NAMESPACE_REGEX,"")),h=t?a.njDelegationHandler(e,n,o):a.njHandler(e,n);h.delegationSelector=t?n:null,h.originalHandler=r,h.oneOff=s,h.uidEvent=E,c[E]=h,e.addEventListener(d,h,t)}}static removeHandler(e,t,n,o,s){const i=a.findHandler(t[n],o,s);null!==i&&(e.removeEventListener(n,i,Boolean(s)),delete t[n][i.uidEvent])}static removeNamespacedHandlers(e,t,n,o){const s=t[n]||{};for(const i in s)if(Object.prototype.hasOwnProperty.call(s,i)&&i.indexOf(o)>-1){const o=s[i];a.removeHandler(e,t,n,o.originalHandler,o.delegationSelector)}}static on(e,t,n,o){a.addHandler(e,t,n,o,!1)}static one(e,t,n,o){a.addHandler(e,t,n,o,!0)}static off(e,t,n,o){if("string"!=typeof t||null==e)return;const[s,i,l]=a.normalizeParams(t,n,o),r=l!==t,d=a.getEvent(e);if(void 0!==i){if(!d||!d[l])return;return void a.removeHandler(e,d,l,i,s?n:null)}if("."===t.charAt(0))for(const n in d)Object.prototype.hasOwnProperty.call(d,n)&&a.removeNamespacedHandlers(e,d,n,t.substr(1));const c=d[l]||{};for(const n in c){if(!Object.prototype.hasOwnProperty.call(c,n))continue;const o=n.replace(a.STRIPUID_REGEX,"");if(!r||t.indexOf(o)>-1){const t=c[n];a.removeHandler(e,d,l,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const o=t.replace(a.STRIPNAME_REGEX,""),s="string"==typeof c[o],i=!0;let l=null;return s?(l=document.createEvent("HTMLEvents"),l.initEvent(o,i,!0)):l=new window.CustomEvent(t,{bubbles:i,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(l,e,{get:()=>n[e]})})),e.dispatchEvent(l),l}}a.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,a.STRIPNAME_REGEX=/\..*/,a.KEYEVENT_REGEX=/^key/,a.STRIPUID_REGEX=/::\d+$/,a.EVENTREGISTRY={},a.uidEvent=1;const u=a;class E extends i{static getInstance(e){return s.getData(e,E.DATA_KEY)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,E.SELECTOR.default)}constructor(e){super(E,e),s.setData(e,E.DATA_KEY,this),this.buttonEl=this.element.querySelector(E.SELECTOR.button),this.labelEl=this.element.querySelector(E.SELECTOR.label),this.listEl=this.element.querySelector(E.SELECTOR.options),this.inputEl=this.element.querySelector(E.SELECTOR.input),this.optionElements=Array.from(this.element.querySelectorAll(E.SELECTOR.option)),this.addToggleEvent(),this.addEscapeEvent(),this.addBlurEvent(),this.addUpDownEvent(),this.addClickEvent(),this.addShortcutEvents()}updateOptionsAndListeners(){this.optionElements=Array.from(this.element.querySelectorAll(E.SELECTOR.option)),this.addClickEvent()}get isOpen(){return!this.listEl.hasAttribute("hidden")}set isOpen(e){e?(this.listEl.removeAttribute("hidden"),this.buttonEl.setAttribute("aria-expanded","true"),this.buttonEl.setAttribute("tabindex","-1"),this.element.classList.add(E.CLASS_NAME.isOpen),this.listEl.focus(),this.focusedIndex=this.selectedIndex,-1===this.focusedIndex&&this.listEl.scrollTo({top:0}),this.optionElements.forEach(((e,t)=>{const n="nj-list-deprecated__item--active";t===this.focusedIndex?e.classList.add(n):e.classList.remove(n)})),u.trigger(this.element,E.EVENT.open)):(this.listEl.setAttribute("hidden","hidden"),this.buttonEl.setAttribute("aria-expanded","false"),this.buttonEl.removeAttribute("tabindex"),this.element.classList.remove(E.CLASS_NAME.isOpen),this.focusedIndex=-1,u.trigger(this.element,E.EVENT.close))}get selectedIndex(){return this.optionElements.findIndex((e=>"true"===e.getAttribute("aria-selected")))}set selectedIndex(e){this.optionElements.forEach(((t,n)=>{t.setAttribute("aria-selected",String(n===e))})),this.inputEl.value=this.selectedOptionLabel,this.buttonEl.setAttribute("aria-label",`${this.labelEl.textContent} - ${this.selectedOptionLabel}`),u.trigger(this.element,E.EVENT.onchange,{value:this.selectedOptionLabel,option:this.optionElements[e]})}get focusedIndex(){return this.optionElements.findIndex((e=>document.activeElement===e))}set focusedIndex(e){-1!==e&&this.optionElements[e].focus()}get selectedOptionLabel(){if(-1!==this.selectedIndex){return this.optionElements[this.selectedIndex].textContent}return""}get selectedOptionValue(){var e;if(-1!==this.selectedIndex){const t=this.optionElements[this.selectedIndex];return null!==(e=t.getAttribute(E.ATTRIBUTE.value))&&void 0!==e?e:t.textContent}return""}dispose(){s.removeData(this.element,E.DATA_KEY),this.element=null}addToggleEvent(){u.on(this.buttonEl,d.click,(()=>{this.isOpen=!this.isOpen}))}addEscapeEvent(){u.on(this.listEl,d.keydown,(e=>{e.keyCode===E.ESCAPE_KEYCODE&&(this.isOpen=!1,this.buttonEl.focus())}))}addBlurEvent(){u.on(this.element,d.focusout,(e=>{this.element.contains(e.relatedTarget)||(this.isOpen=!1)}))}addUpDownEvent(){u.on(this.listEl,d.keydown,(e=>{e.keyCode===E.UP_KEYCODE&&(e.preventDefault(),this.focusedIndex=Math.max(0,this.focusedIndex-1)),e.keyCode===E.DOWN_KEYCODE&&(e.preventDefault(),this.focusedIndex=Math.min(this.optionElements.length-1,this.focusedIndex+1))}))}addClickEvent(){this.optionElements.forEach(((e,t)=>{u.on(e,d.click,(()=>{this.selectedIndex=t,this.isOpen=!1,this.buttonEl.focus()})),u.on(e,d.keydown,(e=>{e.keyCode===E.ENTER_KEYCODE&&(e.preventDefault(),this.selectedIndex=this.focusedIndex,this.isOpen=!1,this.buttonEl.focus())}))}))}addShortcutEvents(){const e=/^[\d\p{Letter}]$/u;u.on(this.listEl,d.keydown,(t=>{if(e.test(t.key)){const e=this.optionElements.findIndex((e=>e.textContent[0].toLowerCase()===t.key.toLowerCase()));-1!==e&&(this.focusedIndex=e)}}))}}E.NAME=`${l.KEY_PREFIX}-form-item--custom-list`,E.DATA_KEY=`${l.KEY_PREFIX}.custom-list`,E.EVENT_KEY=`.${E.DATA_KEY}`,E.ESCAPE_KEYCODE=27,E.ENTER_KEYCODE=13,E.UP_KEYCODE=38,E.DOWN_KEYCODE=40,E.CLASS_NAME={isOpen:`${l.KEY_PREFIX}-form-item--open`},E.ATTRIBUTE={value:"data-value"},E.SELECTOR={default:`.${E.NAME}`,label:`.${l.KEY_PREFIX}-form-item__label`,button:`.${l.KEY_PREFIX}-form-item__custom-list-button`,input:`.${l.KEY_PREFIX}-form-item__field`,options:`.${l.KEY_PREFIX}-form-item__list`,option:`.${l.KEY_PREFIX}-list-deprecated__item`},E.EVENT={onchange:`${d.onchange}${E.EVENT_KEY}`,open:`${d.show}${E.EVENT_KEY}`,close:`${d.hide}${E.EVENT_KEY}`};const h=E;return t=t.default})()));
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Select",[],t):"object"==typeof exports?exports.Select=t():e.Select=t()}(window,(()=>(()=>{"use strict";var e={d:(t,o)=>{for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>S}),window.NJStore=window.NJStore||[];const o=(()=>{const e=window.NJStore;return{set(t,o,n){void 0===t.key&&(t.key={key:o,id:e.length}),e[t.key.id]=n},get:(t,o)=>(t.key&&o&&void 0===o.id&&(o=t.key),o&&void 0!==o.id?e[o.id]:null),delete(t,o){if(void 0===t.key)return;const n=t.key;n.key===o&&(delete e[n.id],delete t.key)}}})(),n={setData(e,t,n){o.set(e,t,n)},getData:(e,t)=>o.get(e,t),removeData(e,t){o.delete(e,t)}},r=n;class s{constructor(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=o,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;const n=[],s=document.querySelectorAll(o);for(let o=0;o<s.length;o++){const l=s[o];if(!l.key||l.key.key!==e.DATA_KEY){const i=new e(s[o],t);l.key||r.setData(s[o],e.DATA_KEY,i),n.push(i)}}return n}}const l={describe:e=>void 0===e?"undefined":0===e.length?"(no matching elements)":`${e.outerHTML.split(">")[0]}>`,assert(e,t,o){if(t)throw void 0!==e&&(e.style.border="1px solid red"),console.error(o,e),o},isChar:e=>void 0===e.which||"number"==typeof e.which&&e.which>0&&(!e.ctrlKey&&!e.metaKey&&!e.altKey&&8!==e.which&&9!==e.which&&13!==e.which&&16!==e.which&&17!==e.which&&20!==e.which&&27!==e.which)};class i extends s{constructor(e,t){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{});for(const e in o)!{}.hasOwnProperty.call(o,e)?console.error(`${e} does not exist in properties`):this[e]=o[e]}addFormGroupFocus(){this.element&&!0==!this.element.disabled&&this.njFormGroup.classList.add(i.CLASS_NAME.isFocused)}removeFormGroupFocus(){this.njFormGroup.classList.remove(i.CLASS_NAME.isFocused)}addIsFilled(){this.njFormGroup.classList.add(i.CLASS_NAME.isFilled)}removeIsFilled(){this.njFormGroup.classList.remove(i.CLASS_NAME.isFilled)}findFormGroup(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=this.element.closest(i.SELECTOR.formGroup);return null===t&&e&&console.error(`Failed to find ${i.SELECTOR.formGroup} for ${l.describe(this.element)}`),t}}i.CLASS_NAME={njFormGroup:"nj-form-group",isFilled:"is-filled",isFocused:"is-focused"},i.SELECTOR={formGroup:`.${i.CLASS_NAME.njFormGroup}`};const a=i;var c,d,u,h;!function(e){e.LIBRARY_LOG_TAG="[FLUID]",e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(c||(c={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(d||(d={})),function(e){e.beforehide="beforehide",e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(u||(u={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(h||(h={}));class m{static getUidEvent(e,t){return t&&`${t}::${m.uidEvent++}`||e.uidEvent||m.uidEvent++}static getEvent(e){const t=m.getUidEvent(e);return e.uidEvent=t,m.EVENTREGISTRY[t]=m.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&m.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const o=n=>(m.fixEvent(n,e),o.oneOff&&m.off(e,n.type,t),t.apply(e,[n]));return o}static njDelegationHandler(e,t,o){const n=r=>{const s=e.querySelectorAll(t);for(let t=r.target;t&&t!==this;t=t.parentNode)for(let l=s.length;l>=0;l--)if(s[l]===t)return m.fixEvent(r,t),n.oneOff&&m.off(e,r.type,o),o.apply(t,[r]);return null};return n}static findHandler(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;const r=e[n];if(r.originalHandler===t&&r.delegationSelector===o)return e[n]}return null}static normalizeParams(e,t,o){const n="string"==typeof t,r=n?o:t;let s=e.replace(m.STRIPNAME_REGEX,"");const l=d[s];l&&(s=l);return"string"==typeof h[s]||(s=e),[n,r,s]}static addHandler(e,t,o,n,r){if("string"!=typeof t||null==e)return;o||(o=n,n=null);const s=m.getEvent(e);for(const l of t.split(" ")){const[t,i,a]=m.normalizeParams(l,o,n),c=s[a]||(s[a]={}),d=m.findHandler(c,i,t?o:null);if(d)return void(d.oneOff=d.oneOff&&r);const u=m.getUidEvent(i,l.replace(m.NAMESPACE_REGEX,"")),h=t?m.njDelegationHandler(e,o,n):m.njHandler(e,o);h.delegationSelector=t?o:null,h.originalHandler=i,h.oneOff=r,h.uidEvent=u,c[u]=h,e.addEventListener(a,h,t)}}static removeHandler(e,t,o,n,r){const s=m.findHandler(t[o],n,r);null!==s&&(e.removeEventListener(o,s,Boolean(r)),delete t[o][s.uidEvent])}static removeNamespacedHandlers(e,t,o,n){const r=t[o]||{};for(const s in r)if(Object.prototype.hasOwnProperty.call(r,s)&&s.indexOf(n)>-1){const n=r[s];m.removeHandler(e,t,o,n.originalHandler,n.delegationSelector)}}static on(e,t,o,n){m.addHandler(e,t,o,n,!1)}static one(e,t,o,n){m.addHandler(e,t,o,n,!0)}static off(e,t,o,n){if("string"!=typeof t||null==e)return;const[r,s,l]=m.normalizeParams(t,o,n),i=l!==t,a=m.getEvent(e);if(void 0!==s){if(!a||!a[l])return;return void m.removeHandler(e,a,l,s,r?o:null)}if("."===t.charAt(0))for(const o in a)Object.prototype.hasOwnProperty.call(a,o)&&m.removeNamespacedHandlers(e,a,o,t.substr(1));const c=a[l]||{};for(const o in c){if(!Object.prototype.hasOwnProperty.call(c,o))continue;const n=o.replace(m.STRIPUID_REGEX,"");if(!i||t.indexOf(n)>-1){const t=c[o];m.removeHandler(e,a,l,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,o){if("string"!=typeof t||null==e)return null;const n=t.replace(m.STRIPNAME_REGEX,""),r="string"==typeof h[n];let s=null;return r?(s=document.createEvent("HTMLEvents"),s.initEvent(n,true,!0)):s=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==o&&Object.keys(o).forEach((e=>{Object.defineProperty(s,e,{get:()=>o[e]})})),e.dispatchEvent(s),s}}m.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,m.STRIPNAME_REGEX=/\..*/,m.KEYEVENT_REGEX=/^key/,m.STRIPUID_REGEX=/::\d+$/,m.EVENTREGISTRY={},m.uidEvent=1;const p=m;const f={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let o=0;o<e.attributes.length;o++){const n=e.attributes[o];if(-1!==n.nodeName.indexOf("data-")){const e=n.nodeName.substring(5).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=n.nodeValue}}return Object.keys(t).forEach((e=>{var o;t[e]="true"===(o=t[e])||"false"!==o&&("null"===o?null:o===Number(o).toString()?Number(o):""===o?null:o)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,o){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(o&&"[object Object]"===Object.prototype.toString.call(t[n])?e[n]=f.extend(e[n],t[n]):e[n]=t[n]);return e},extend(){let e={},t=!1,o=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],o++);o<arguments.length;o++)e=f.mergeExtended(e,o<0||arguments.length<=o?void 0:arguments[o],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},E=f;class g extends a{constructor(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,E.extend(!0,g.DEFAULT_OPTIONS,o),n),this.njFormGroup=this.resolveNJFormGroup(),this.njFormGroup&&(this.resolveNJLabel(),this.resolveNJFormGroupSizing(),this.addFocusListener(),this.addChangeListener(),this.isEmpty()?this.removeIsFilled():this.addIsFilled())}dispose(){p.off(this.element,"focus"),p.off(this.element,"blur"),p.off(this.element,"keydown"),p.off(this.element,"keyup")}addFocusListener(){p.on(this.element,"focus",(()=>{this.addFormGroupFocus()})),p.on(this.element,"blur",(()=>{this.removeFormGroupFocus()}))}addChangeListener(){p.on(this.element,"keydown",(e=>{l.isChar(e)&&this.addIsFilled()})),p.on(this.element,"keyup",(()=>{if(this.isEmpty()?this.removeIsFilled():this.addIsFilled(),this.options.validate){void 0===this.element[0].checkValidity||this.element[0].checkValidity()?this.removeHasDanger():this.addHasDanger()}}))}addHasDanger(){this.njFormGroup.classList.add(g.CLASS_NAME.hasDanger)}removeHasDanger(){this.njFormGroup.classList.remove(g.CLASS_NAME.hasDanger)}isEmpty(){return null===this.element.value||void 0===this.element.value||""===this.element.value}resolveNJFormGroup(){return this.findFormGroup(this.options.njFormGroup.required)}outerElement(){return this.element}resolveNJLabel(){let e=this.njFormGroup.querySelectorAll(g.INPUT_SELECTOR.njLabelWildcard);0===e.length&&(e=this.findLabel(this.options.label.required),null!==e&&e.length>1&&e.forEach((e=>{e.classList.add(this.options.label.className)})))}findLabel(){let e,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],o=null,n=0,r=!1;do{e=this.options.label.selectors[n];try{o=this.njFormGroup.querySelectorAll(e)}catch(e){o=null}r=null!==o&&o.length>0,n++}while(!r&&n<this.options.label.selectors.length);return!r&&t&&console.error(`Failed to find ${g.INPUT_SELECTOR.njLabelWildcard} within nj-form-group for ${l.describe(this.element)}`),o}resolveNJFormGroupSizing(){if(this.options.convertInputSizeVariations)for(const e in g.FORM_CONTROL_SIZE_MARKERS)this.element.classList.contains(e)&&this.njFormGroup.classList.add(g.FORM_CONTROL_SIZE_MARKERS[e])}}g.CLASS_NAME={njFormGroup:"nj-form-group",njLabel:"nj-label",njLabelStatic:"nj-label-static",njLabelPlaceholder:"nj-label-placeholder",njLabelFloating:"nj-label-floating",hasDanger:"has-danger",isFilled:"is-filled",isFocused:"is-focused",inputGroup:"input-group"},g.INPUT_SELECTOR={njFormGroup:`.${g.CLASS_NAME.njFormGroup}`,njLabelWildcard:`label[class^='${g.CLASS_NAME.njLabel}'], label[class*=' ${g.CLASS_NAME.njLabel}']`},g.DEFAULT_OPTIONS={validate:!1,njFormGroup:{template:"span",templateClass:`${g.CLASS_NAME.njFormGroup}`},label:{required:!1,selectors:[".form-control-label",":scope > label"],className:g.CLASS_NAME.njLabelStatic},requiredClasses:[],convertInputSizeVariations:!0},g.FORM_CONTROL_SIZE_MARKERS={"form-control-lg":"nj-form-group-lg","form-control-sm":"nj-form-group-sm"};const v=g;class y extends v{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(y,e,E.extend(!0,y.DEFAULT_OPTIONS,t)),this.addIsFilled(),r.setData(e,y.DATA_KEY,this)}dispose(){r.removeData(this.element,y.DATA_KEY),this.element=null}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,y.SELECTOR.default)}static getInstance(e){return r.getData(e,y.DATA_KEY)}static matches(e){return"SELECT"===e.tagName}}y.NAME=`${c.KEY_PREFIX}-select`,y.DATA_KEY=`${c.KEY_PREFIX}.select`,y.SELECTOR={default:"select.nj-form-control",formGroup:v.SELECTOR.formGroup},y.DEFAULT_OPTIONS={requiredClasses:["form-control||custom-select"]};const S=y;return t=t.default})()));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Select",[],t):"object"==typeof exports?exports.Select=t():e.Select=t()}(window,(()=>(()=>{"use strict";var e={d:(t,o)=>{for(var n in o)e.o(o,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:o[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>S}),window.NJStore=window.NJStore||[];const o=(()=>{const e=window.NJStore;return{set(t,o,n){void 0===t.key&&(t.key={key:o,id:e.length}),e[t.key.id]=n},get:(t,o)=>(t.key&&o&&void 0===o.id&&(o=t.key),o&&void 0!==o.id?e[o.id]:null),delete(t,o){if(void 0===t.key)return;const n=t.key;n.key===o&&(delete e[n.id],delete t.key)}}})(),n={setData(e,t,n){o.set(e,t,n)},getData:(e,t)=>o.get(e,t),removeData(e,t){o.delete(e,t)}},r=n;class s{constructor(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=o,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;const n=[],s=document.querySelectorAll(o);for(let o=0;o<s.length;o++){const l=s[o];if(!l.key||l.key.key!==e.DATA_KEY){const i=new e(s[o],t);l.key||r.setData(s[o],e.DATA_KEY,i),n.push(i)}}return n}}const l={describe:e=>void 0===e?"undefined":0===e.length?"(no matching elements)":`${e.outerHTML.split(">")[0]}>`,assert(e,t,o){if(t)throw void 0!==e&&(e.style.border="1px solid red"),console.error(o,e),o},isChar:e=>void 0===e.which||"number"==typeof e.which&&e.which>0&&(!e.ctrlKey&&!e.metaKey&&!e.altKey&&8!==e.which&&9!==e.which&&13!==e.which&&16!==e.which&&17!==e.which&&20!==e.which&&27!==e.which)};class i extends s{constructor(e,t){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:{});for(const e in o)!{}.hasOwnProperty.call(o,e)?console.error(`${e} does not exist in properties`):this[e]=o[e]}addFormGroupFocus(){this.element&&!0==!this.element.disabled&&this.njFormGroup.classList.add(i.CLASS_NAME.isFocused)}removeFormGroupFocus(){this.njFormGroup.classList.remove(i.CLASS_NAME.isFocused)}addIsFilled(){this.njFormGroup.classList.add(i.CLASS_NAME.isFilled)}removeIsFilled(){this.njFormGroup.classList.remove(i.CLASS_NAME.isFilled)}findFormGroup(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=this.element.closest(i.SELECTOR.formGroup);return null===t&&e&&console.error(`Failed to find ${i.SELECTOR.formGroup} for ${l.describe(this.element)}`),t}}i.CLASS_NAME={njFormGroup:"nj-form-group",isFilled:"is-filled",isFocused:"is-focused"},i.SELECTOR={formGroup:`.${i.CLASS_NAME.njFormGroup}`};const a=i;var c,d,u,h;!function(e){e.LIBRARY_LOG_TAG="[FLUID]",e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(c||(c={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(d||(d={})),function(e){e.beforehide="beforehide",e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(u||(u={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(h||(h={}));class m{static getUidEvent(e,t){return t&&`${t}::${m.uidEvent++}`||e.uidEvent||m.uidEvent++}static getEvent(e){const t=m.getUidEvent(e);return e.uidEvent=t,m.EVENTREGISTRY[t]=m.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&m.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const o=n=>(m.fixEvent(n,e),o.oneOff&&m.off(e,n.type,t),t.apply(e,[n]));return o}static njDelegationHandler(e,t,o){const n=r=>{const s=e.querySelectorAll(t);for(let t=r.target;t&&t!==this;t=t.parentNode)for(let l=s.length;l>=0;l--)if(s[l]===t)return m.fixEvent(r,t),n.oneOff&&m.off(e,r.type,o),o.apply(t,[r]);return null};return n}static findHandler(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const n in e){if(!Object.prototype.hasOwnProperty.call(e,n))continue;const r=e[n];if(r.originalHandler===t&&r.delegationSelector===o)return e[n]}return null}static normalizeParams(e,t,o){const n="string"==typeof t,r=n?o:t;let s=e.replace(m.STRIPNAME_REGEX,"");const l=d[s];l&&(s=l);return"string"==typeof h[s]||(s=e),[n,r,s]}static addHandler(e,t,o,n,r){if("string"!=typeof t||null==e)return;o||(o=n,n=null);const s=m.getEvent(e);for(const l of t.split(" ")){const[t,i,a]=m.normalizeParams(l,o,n),c=s[a]||(s[a]={}),d=m.findHandler(c,i,t?o:null);if(d)return void(d.oneOff=d.oneOff&&r);const u=m.getUidEvent(i,l.replace(m.NAMESPACE_REGEX,"")),h=t?m.njDelegationHandler(e,o,n):m.njHandler(e,o);h.delegationSelector=t?o:null,h.originalHandler=i,h.oneOff=r,h.uidEvent=u,c[u]=h,e.addEventListener(a,h,t)}}static removeHandler(e,t,o,n,r){const s=m.findHandler(t[o],n,r);null!==s&&(e.removeEventListener(o,s,Boolean(r)),delete t[o][s.uidEvent])}static removeNamespacedHandlers(e,t,o,n){const r=t[o]||{};for(const s in r)if(Object.prototype.hasOwnProperty.call(r,s)&&s.indexOf(n)>-1){const n=r[s];m.removeHandler(e,t,o,n.originalHandler,n.delegationSelector)}}static on(e,t,o,n){m.addHandler(e,t,o,n,!1)}static one(e,t,o,n){m.addHandler(e,t,o,n,!0)}static off(e,t,o,n){if("string"!=typeof t||null==e)return;const[r,s,l]=m.normalizeParams(t,o,n),i=l!==t,a=m.getEvent(e);if(void 0!==s){if(!a||!a[l])return;return void m.removeHandler(e,a,l,s,r?o:null)}if("."===t.charAt(0))for(const o in a)Object.prototype.hasOwnProperty.call(a,o)&&m.removeNamespacedHandlers(e,a,o,t.substr(1));const c=a[l]||{};for(const o in c){if(!Object.prototype.hasOwnProperty.call(c,o))continue;const n=o.replace(m.STRIPUID_REGEX,"");if(!i||t.indexOf(n)>-1){const t=c[o];m.removeHandler(e,a,l,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,o){if("string"!=typeof t||null==e)return null;const n=t.replace(m.STRIPNAME_REGEX,""),r="string"==typeof h[n],s=!0;let l=null;return r?(l=document.createEvent("HTMLEvents"),l.initEvent(n,s,!0)):l=new window.CustomEvent(t,{bubbles:s,cancelable:!0}),void 0!==o&&Object.keys(o).forEach((e=>{Object.defineProperty(l,e,{get:()=>o[e]})})),e.dispatchEvent(l),l}}m.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,m.STRIPNAME_REGEX=/\..*/,m.KEYEVENT_REGEX=/^key/,m.STRIPUID_REGEX=/::\d+$/,m.EVENTREGISTRY={},m.uidEvent=1;const p=m;const f={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let o=0;o<e.attributes.length;o++){const n=e.attributes[o];if(-1!==n.nodeName.indexOf("data-")){const e=n.nodeName.substring(5).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=n.nodeValue}}return Object.keys(t).forEach((e=>{var o;t[e]="true"===(o=t[e])||"false"!==o&&("null"===o?null:o===Number(o).toString()?Number(o):""===o?null:o)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,o){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&(o&&"[object Object]"===Object.prototype.toString.call(t[n])?e[n]=f.extend(e[n],t[n]):e[n]=t[n]);return e},extend(){let e={},t=!1,o=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],o++);o<arguments.length;o++)e=f.mergeExtended(e,o<0||arguments.length<=o?void 0:arguments[o],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},E=f;class g extends a{constructor(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};super(e,t,E.extend(!0,g.DEFAULT_OPTIONS,o),n),this.njFormGroup=this.resolveNJFormGroup(),this.njFormGroup&&(this.resolveNJLabel(),this.resolveNJFormGroupSizing(),this.addFocusListener(),this.addChangeListener(),this.isEmpty()?this.removeIsFilled():this.addIsFilled())}dispose(){p.off(this.element,"focus"),p.off(this.element,"blur"),p.off(this.element,"keydown"),p.off(this.element,"keyup")}addFocusListener(){p.on(this.element,"focus",(()=>{this.addFormGroupFocus()})),p.on(this.element,"blur",(()=>{this.removeFormGroupFocus()}))}addChangeListener(){p.on(this.element,"keydown",(e=>{l.isChar(e)&&this.addIsFilled()})),p.on(this.element,"keyup",(()=>{if(this.isEmpty()?this.removeIsFilled():this.addIsFilled(),this.options.validate){void 0===this.element[0].checkValidity||this.element[0].checkValidity()?this.removeHasDanger():this.addHasDanger()}}))}addHasDanger(){this.njFormGroup.classList.add(g.CLASS_NAME.hasDanger)}removeHasDanger(){this.njFormGroup.classList.remove(g.CLASS_NAME.hasDanger)}isEmpty(){return null===this.element.value||void 0===this.element.value||""===this.element.value}resolveNJFormGroup(){return this.findFormGroup(this.options.njFormGroup.required)}outerElement(){return this.element}resolveNJLabel(){let e=this.njFormGroup.querySelectorAll(g.INPUT_SELECTOR.njLabelWildcard);0===e.length&&(e=this.findLabel(this.options.label.required),null!==e&&e.length>1&&e.forEach((e=>{e.classList.add(this.options.label.className)})))}findLabel(){let e,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],o=null,n=0,r=!1;do{e=this.options.label.selectors[n];try{o=this.njFormGroup.querySelectorAll(e)}catch(e){o=null}r=null!==o&&o.length>0,n++}while(!r&&n<this.options.label.selectors.length);return!r&&t&&console.error(`Failed to find ${g.INPUT_SELECTOR.njLabelWildcard} within nj-form-group for ${l.describe(this.element)}`),o}resolveNJFormGroupSizing(){if(this.options.convertInputSizeVariations)for(const e in g.FORM_CONTROL_SIZE_MARKERS)this.element.classList.contains(e)&&this.njFormGroup.classList.add(g.FORM_CONTROL_SIZE_MARKERS[e])}}g.CLASS_NAME={njFormGroup:"nj-form-group",njLabel:"nj-label",njLabelStatic:"nj-label-static",njLabelPlaceholder:"nj-label-placeholder",njLabelFloating:"nj-label-floating",hasDanger:"has-danger",isFilled:"is-filled",isFocused:"is-focused",inputGroup:"input-group"},g.INPUT_SELECTOR={njFormGroup:`.${g.CLASS_NAME.njFormGroup}`,njLabelWildcard:`label[class^='${g.CLASS_NAME.njLabel}'], label[class*=' ${g.CLASS_NAME.njLabel}']`},g.DEFAULT_OPTIONS={validate:!1,njFormGroup:{template:"span",templateClass:`${g.CLASS_NAME.njFormGroup}`},label:{required:!1,selectors:[".form-control-label",":scope > label"],className:g.CLASS_NAME.njLabelStatic},requiredClasses:[],convertInputSizeVariations:!0},g.FORM_CONTROL_SIZE_MARKERS={"form-control-lg":"nj-form-group-lg","form-control-sm":"nj-form-group-sm"};const v=g;class y extends v{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(y,e,E.extend(!0,y.DEFAULT_OPTIONS,t)),this.addIsFilled(),r.setData(e,y.DATA_KEY,this)}dispose(){r.removeData(this.element,y.DATA_KEY),this.element=null}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,y.SELECTOR.default)}static getInstance(e){return r.getData(e,y.DATA_KEY)}static matches(e){return"SELECT"===e.tagName}}y.NAME=`${c.KEY_PREFIX}-select`,y.DATA_KEY=`${c.KEY_PREFIX}.select`,y.SELECTOR={default:"select.nj-form-control",formGroup:v.SELECTOR.formGroup},y.DEFAULT_OPTIONS={requiredClasses:["form-control||custom-select"]};const S=y;return t=t.default})()));
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Sidebar",[],t):"object"==typeof exports?exports.Sidebar=t():e.Sidebar=t()}(window,(()=>(()=>{"use strict";var e,t,n,o,r={d:(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},s={};r.d(s,{default:()=>f}),function(e){e.LIBRARY_LOG_TAG="[FLUID]",e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(e||(e={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(t||(t={})),function(e){e.beforehide="beforehide",e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(n||(n={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(o||(o={})),window.NJStore=window.NJStore||[];const i=(()=>{const e=window.NJStore;return{set(t,n,o){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=o},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const o=t.key;o.key===n&&(delete e[o.id],delete t.key)}}})(),l={setData(e,t,n){i.set(e,t,n)},getData:(e,t)=>i.get(e,t),removeData(e,t){i.delete(e,t)}};class a{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o=[],r=document.querySelectorAll(n);for(let n=0;n<r.length;n++){const s=r[n];if(!s.key||s.key.key!==e.DATA_KEY){const i=new e(r[n],t);s.key||l.setData(r[n],e.DATA_KEY,i),o.push(i)}}return o}}class c{static getUidEvent(e,t){return t&&`${t}::${c.uidEvent++}`||e.uidEvent||c.uidEvent++}static getEvent(e){const t=c.getUidEvent(e);return e.uidEvent=t,c.EVENTREGISTRY[t]=c.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&c.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=o=>(c.fixEvent(o,e),n.oneOff&&c.off(e,o.type,t),t.apply(e,[o]));return n}static njDelegationHandler(e,t,n){const o=r=>{const s=e.querySelectorAll(t);for(let t=r.target;t&&t!==this;t=t.parentNode)for(let i=s.length;i>=0;i--)if(s[i]===t)return c.fixEvent(r,t),o.oneOff&&c.off(e,r.type,n),n.apply(t,[r]);return null};return o}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;const r=e[o];if(r.originalHandler===t&&r.delegationSelector===n)return e[o]}return null}static normalizeParams(e,n,r){const s="string"==typeof n,i=s?r:n;let l=e.replace(c.STRIPNAME_REGEX,"");const a=t[l];a&&(l=a);return"string"==typeof o[l]||(l=e),[s,i,l]}static addHandler(e,t,n,o,r){if("string"!=typeof t||null==e)return;n||(n=o,o=null);const s=c.getEvent(e);for(const i of t.split(" ")){const[t,l,a]=c.normalizeParams(i,n,o),d=s[a]||(s[a]={}),u=c.findHandler(d,l,t?n:null);if(u)return void(u.oneOff=u.oneOff&&r);const E=c.getUidEvent(l,i.replace(c.NAMESPACE_REGEX,"")),g=t?c.njDelegationHandler(e,n,o):c.njHandler(e,n);g.delegationSelector=t?n:null,g.originalHandler=l,g.oneOff=r,g.uidEvent=E,d[E]=g,e.addEventListener(a,g,t)}}static removeHandler(e,t,n,o,r){const s=c.findHandler(t[n],o,r);null!==s&&(e.removeEventListener(n,s,Boolean(r)),delete t[n][s.uidEvent])}static removeNamespacedHandlers(e,t,n,o){const r=t[n]||{};for(const s in r)if(Object.prototype.hasOwnProperty.call(r,s)&&s.indexOf(o)>-1){const o=r[s];c.removeHandler(e,t,n,o.originalHandler,o.delegationSelector)}}static on(e,t,n,o){c.addHandler(e,t,n,o,!1)}static one(e,t,n,o){c.addHandler(e,t,n,o,!0)}static off(e,t,n,o){if("string"!=typeof t||null==e)return;const[r,s,i]=c.normalizeParams(t,n,o),l=i!==t,a=c.getEvent(e);if(void 0!==s){if(!a||!a[i])return;return void c.removeHandler(e,a,i,s,r?n:null)}if("."===t.charAt(0))for(const n in a)Object.prototype.hasOwnProperty.call(a,n)&&c.removeNamespacedHandlers(e,a,n,t.substr(1));const d=a[i]||{};for(const n in d){if(!Object.prototype.hasOwnProperty.call(d,n))continue;const o=n.replace(c.STRIPUID_REGEX,"");if(!l||t.indexOf(o)>-1){const t=d[n];c.removeHandler(e,a,i,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const r=t.replace(c.STRIPNAME_REGEX,""),s="string"==typeof o[r];let i=null;return s?(i=document.createEvent("HTMLEvents"),i.initEvent(r,true,!0)):i=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(i,e,{get:()=>n[e]})})),e.dispatchEvent(i),i}}c.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,c.STRIPNAME_REGEX=/\..*/,c.KEYEVENT_REGEX=/^key/,c.STRIPUID_REGEX=/::\d+$/,c.EVENTREGISTRY={},c.uidEvent=1;const d=c;const u={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let n=0;n<e.attributes.length;n++){const o=e.attributes[n];if(-1!==o.nodeName.indexOf("data-")){const e=o.nodeName.substring(5).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=o.nodeValue}}return Object.keys(t).forEach((e=>{var n;t[e]="true"===(n=t[e])||"false"!==n&&("null"===n?null:n===Number(n).toString()?Number(n):""===n?null:n)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,n){for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n&&"[object Object]"===Object.prototype.toString.call(t[o])?e[o]=u.extend(e[o],t[o]):e[o]=t[o]);return e},extend(){let e={},t=!1,n=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],n++);n<arguments.length;n++)e=u.mergeExtended(e,n<0||arguments.length<=n?void 0:arguments[n],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},E=u;const g={TRANSITION_END:"transitionend",getUID(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},getSelectorFromElement(e){let t=e.getAttribute("data-target");if(!t||"#"===t){const n=e.getAttribute("href");t=n&&"#"!==n?n.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement(e){if(!e)return 0;let t=window.getComputedStyle(e).transitionDuration,n=window.getComputedStyle(e).transitionDelay;const o=parseFloat(t),r=parseFloat(n);return o||r?(t=t.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(t)+parseFloat(n))):0},reflow:e=>e.offsetHeight,triggerTransitionEnd(e){const t=new CustomEvent(g.TRANSITION_END,{});e.dispatchEvent(t)},isElement:e=>(e[0]||e).nodeType,emulateTransitionEnd(e,t){let n=!1;const o=t+5;e.addEventListener(g.TRANSITION_END,(function t(){n=!0,e.removeEventListener(g.TRANSITION_END,t)})),setTimeout((()=>{n||g.triggerTransitionEnd(e)}),o)},typeCheckConfig(e,t,n){for(const r in n)if(Object.prototype.hasOwnProperty.call(n,r)){const s=n[r],i=t[r],l=i&&g.isElement(i)?"element":(o=i,{}.toString.call(o).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(s).test(l))throw new Error(`${e.toUpperCase()}: Option "${r}" provided type "${l}" but expected type "${s}".`)}var o},makeArray:e=>null==e?[]:[].slice.call(e),findShadowRoot(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?g.findShadowRoot(e.parentElement):null},throttle(e,t,n,o,r){let s,i,l,a=null,c=0;const d=()=>{c=Date.now(),a=null,l=e.apply(i,s)};return()=>{const u=Date.now();c||n||(c=u);const E=t-(u-c);return i=r||this,s=arguments,E<=0?(clearTimeout(a),a=null,c=u,l=e.apply(i,s)):!a&&o&&(a=setTimeout(d,E)),l}},coerceBool:e=>Boolean(e)},m=g;class h extends a{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(h,e,h.getOptions(t)),this.closeOnInteractOut=e=>{e.key&&"Escape"!==e.key||!e.key&&e.target.closest(h.SELECTOR.default)||this.open()},this.element=e,this.isTransitioning=!1,this.triggerArray=m.makeArray(document.querySelectorAll(`${h.SELECTOR.dataToggle}[href="#${e.id}"],${h.SELECTOR.dataToggle}[data-target="#${e.id}"]`));const n=m.makeArray(document.querySelectorAll(h.SELECTOR.dataToggle));for(let t=0,o=n.length;t<o;t++){const o=n[t],r=m.getSelectorFromElement(o),s=m.makeArray(document.querySelectorAll(r)).filter((t=>t===e));null!==r&&s.length&&(this.selector=r,this.triggerArray.push(o))}l.setData(e,h.DATA_KEY,this),this.options.toggle&&this.toggle(),l.setData(e,h.DATA_KEY,this),h.hasInit||(h.hasInit=!0,this.registerEvents()),"true"!==e.dataset.closeOnInteractOut&&e.dataset.closeOnInteractOut||(document.addEventListener("click",this.closeOnInteractOut),document.addEventListener("keydown",this.closeOnInteractOut))}toggle(){this.element.classList.contains(h.CLASS_NAME.folded)?this.close():this.open()}open(){if(this.isTransitioning||this.element.classList.contains(h.CLASS_NAME.folded))return;let e;document.querySelector(this.selector);if(d.trigger(this.element,h.EVENT.show).defaultPrevented)return;this.element.classList.remove(h.CLASS_NAME.folded),this.element.classList.add(h.CLASS_NAME.folding),this.triggerArray.length&&this.triggerArray.forEach((e=>{e.classList.remove(h.CLASS_NAME.folded),e.setAttribute("aria-folded","true")})),this.setTransitioning(!0);const t=m.getTransitionDurationFromElement(this.element);d.one(this.element,m.TRANSITION_END,(()=>{this.element.classList.remove(h.CLASS_NAME.folding),this.element.classList.add(h.CLASS_NAME.folded),this.element.parentElement&&this.element.parentElement.tagName.toLowerCase()===h.NAME&&this.element.parentElement.setAttribute("folded",""),this.setTransitioning(!1),d.trigger(this.element,h.EVENT.shown)})),m.emulateTransitionEnd(this.element,t)}close(){if(this.isTransitioning||!this.element.classList.contains(h.CLASS_NAME.folded))return;if(d.trigger(this.element,h.EVENT.hide).defaultPrevented)return;m.reflow(this.element),this.element.classList.add(h.CLASS_NAME.folding),this.element.classList.remove(h.CLASS_NAME.folded);const e=this.triggerArray.length;if(e>0)for(let t=0;t<e;t++){const e=this.triggerArray[t],n=m.getSelectorFromElement(e);if(null!==n){document.querySelector(n).classList.contains(h.CLASS_NAME.folded)||(e.classList.remove(h.CLASS_NAME.folded),e.setAttribute("aria-folded","false"))}}this.setTransitioning(!0);const t=m.getTransitionDurationFromElement(this.element);d.one(this.element,m.TRANSITION_END,(()=>{this.element.parentElement&&this.element.parentElement.tagName.toLowerCase()===h.NAME&&this.element.parentElement.removeAttribute("folded"),this.setTransitioning(!1),this.element.classList.remove(h.CLASS_NAME.folding),d.trigger(this.element,h.EVENT.hidden)})),m.emulateTransitionEnd(this.element,t)}setTransitioning(e){this.isTransitioning=e}dispose(){document.removeEventListener("click",this.closeOnInteractOut),document.removeEventListener("keydown",this.closeOnInteractOut),d.off(document,h.EVENT.clickDataApi,h.SELECTOR.dataToggle),l.removeData(this.element,h.DATA_KEY),this.options=null,this.element=null,this.triggerArray=null,this.isTransitioning=null}addAriaAndExpandedClass(e,t){if(e){const n=e.classList.contains(h.CLASS_NAME.folded);t.length&&t.forEach((e=>{n?e.classList.remove(h.CLASS_NAME.folded):e.classList.add(h.CLASS_NAME.folded),e.setAttribute("aria-folded",n)}))}}static getOptions(e){return(e=Object.assign(Object.assign({},h.DEFAULT_OPTIONS),e)).toggle=Boolean(e.toggle),m.typeCheckConfig(h.NAME,e,h.DEFAULT_TYPE),e}static getTargetFromElement(e){const t=m.getSelectorFromElement(e);return t?document.querySelector(t):null}static expandInterface(e,t){let n=l.getData(e,h.DATA_KEY);const o=Object.assign(Object.assign(Object.assign({},h.DEFAULT_OPTIONS),E.getDataAttributes(e)),"object"==typeof t&&t?t:{});if(!n&&o.toggle&&/show|hide/.test(t)&&(o.toggle=!1),n||(n=new h(e,o)),"string"==typeof t){if(void 0===n[t])throw new Error(`No method named "${t}"`);n[t]()}}static getInstance(e){return l.getData(e,h.DATA_KEY)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,h.SELECTOR.default)}registerEvents(){d.on(document,h.EVENT.clickDataApi,h.SELECTOR.dataToggle,(function(e){"A"===e.target.tagName&&e.preventDefault();const t=E.getDataAttributes(this),n=m.getSelectorFromElement(this);m.makeArray(document.querySelectorAll(n)).forEach((e=>{const n=h.getInstance(e)?"toggle":t;h.expandInterface(e,n)}))}))}}h.NAME=`${e.KEY_PREFIX}-sidebar`,h.DATA_KEY=`${e.KEY_PREFIX}.sidebar`,h.EVENT_KEY=`.${h.DATA_KEY}`,h.DATA_API_KEY=e.KEY_PREFIX,h.hasInit=!1,h.CLASS_NAME={folding:`${e.KEY_PREFIX}-sidebar--folding`,folded:`${e.KEY_PREFIX}-sidebar--folded`},h.EVENT={show:`${n.show}${h.EVENT_KEY}`,shown:`${n.shown}${h.EVENT_KEY}`,hide:`${n.hide}${h.EVENT_KEY}`,hidden:`${n.hidden}${h.EVENT_KEY}`,clickDataApi:`${n.click}${h.EVENT_KEY}${h.DATA_API_KEY}`},h.DEFAULT_OPTIONS={folded:!1},h.DEFAULT_TYPE={folded:"boolean"},h.SELECTOR={default:`.${h.NAME}`,actives:`.${h.CLASS_NAME.folding}, .${h.NAME}`,dataToggle:'[data-toggle="sidebar"]'};const f=h;return s=s.default})()));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Sidebar",[],t):"object"==typeof exports?exports.Sidebar=t():e.Sidebar=t()}(window,(()=>(()=>{"use strict";var e,t,n,o,r={d:(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},s={};r.d(s,{default:()=>f}),function(e){e.LIBRARY_LOG_TAG="[FLUID]",e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(e||(e={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(t||(t={})),function(e){e.beforehide="beforehide",e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(n||(n={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(o||(o={})),window.NJStore=window.NJStore||[];const i=(()=>{const e=window.NJStore;return{set(t,n,o){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=o},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const o=t.key;o.key===n&&(delete e[o.id],delete t.key)}}})(),l={setData(e,t,n){i.set(e,t,n)},getData:(e,t)=>i.get(e,t),removeData(e,t){i.delete(e,t)}};class a{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o=[],r=document.querySelectorAll(n);for(let n=0;n<r.length;n++){const s=r[n];if(!s.key||s.key.key!==e.DATA_KEY){const i=new e(r[n],t);s.key||l.setData(r[n],e.DATA_KEY,i),o.push(i)}}return o}}class c{static getUidEvent(e,t){return t&&`${t}::${c.uidEvent++}`||e.uidEvent||c.uidEvent++}static getEvent(e){const t=c.getUidEvent(e);return e.uidEvent=t,c.EVENTREGISTRY[t]=c.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&c.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=o=>(c.fixEvent(o,e),n.oneOff&&c.off(e,o.type,t),t.apply(e,[o]));return n}static njDelegationHandler(e,t,n){const o=r=>{const s=e.querySelectorAll(t);for(let t=r.target;t&&t!==this;t=t.parentNode)for(let i=s.length;i>=0;i--)if(s[i]===t)return c.fixEvent(r,t),o.oneOff&&c.off(e,r.type,n),n.apply(t,[r]);return null};return o}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const o in e){if(!Object.prototype.hasOwnProperty.call(e,o))continue;const r=e[o];if(r.originalHandler===t&&r.delegationSelector===n)return e[o]}return null}static normalizeParams(e,n,r){const s="string"==typeof n,i=s?r:n;let l=e.replace(c.STRIPNAME_REGEX,"");const a=t[l];a&&(l=a);return"string"==typeof o[l]||(l=e),[s,i,l]}static addHandler(e,t,n,o,r){if("string"!=typeof t||null==e)return;n||(n=o,o=null);const s=c.getEvent(e);for(const i of t.split(" ")){const[t,l,a]=c.normalizeParams(i,n,o),d=s[a]||(s[a]={}),u=c.findHandler(d,l,t?n:null);if(u)return void(u.oneOff=u.oneOff&&r);const E=c.getUidEvent(l,i.replace(c.NAMESPACE_REGEX,"")),g=t?c.njDelegationHandler(e,n,o):c.njHandler(e,n);g.delegationSelector=t?n:null,g.originalHandler=l,g.oneOff=r,g.uidEvent=E,d[E]=g,e.addEventListener(a,g,t)}}static removeHandler(e,t,n,o,r){const s=c.findHandler(t[n],o,r);null!==s&&(e.removeEventListener(n,s,Boolean(r)),delete t[n][s.uidEvent])}static removeNamespacedHandlers(e,t,n,o){const r=t[n]||{};for(const s in r)if(Object.prototype.hasOwnProperty.call(r,s)&&s.indexOf(o)>-1){const o=r[s];c.removeHandler(e,t,n,o.originalHandler,o.delegationSelector)}}static on(e,t,n,o){c.addHandler(e,t,n,o,!1)}static one(e,t,n,o){c.addHandler(e,t,n,o,!0)}static off(e,t,n,o){if("string"!=typeof t||null==e)return;const[r,s,i]=c.normalizeParams(t,n,o),l=i!==t,a=c.getEvent(e);if(void 0!==s){if(!a||!a[i])return;return void c.removeHandler(e,a,i,s,r?n:null)}if("."===t.charAt(0))for(const n in a)Object.prototype.hasOwnProperty.call(a,n)&&c.removeNamespacedHandlers(e,a,n,t.substr(1));const d=a[i]||{};for(const n in d){if(!Object.prototype.hasOwnProperty.call(d,n))continue;const o=n.replace(c.STRIPUID_REGEX,"");if(!l||t.indexOf(o)>-1){const t=d[n];c.removeHandler(e,a,i,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const r=t.replace(c.STRIPNAME_REGEX,""),s="string"==typeof o[r],i=!0;let l=null;return s?(l=document.createEvent("HTMLEvents"),l.initEvent(r,i,!0)):l=new window.CustomEvent(t,{bubbles:i,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(l,e,{get:()=>n[e]})})),e.dispatchEvent(l),l}}c.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,c.STRIPNAME_REGEX=/\..*/,c.KEYEVENT_REGEX=/^key/,c.STRIPUID_REGEX=/::\d+$/,c.EVENTREGISTRY={},c.uidEvent=1;const d=c;const u={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let n=0;n<e.attributes.length;n++){const o=e.attributes[n];if(-1!==o.nodeName.indexOf("data-")){const e=o.nodeName.substring(5).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=o.nodeValue}}return Object.keys(t).forEach((e=>{var n;t[e]="true"===(n=t[e])||"false"!==n&&("null"===n?null:n===Number(n).toString()?Number(n):""===n?null:n)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,n){for(const o in t)Object.prototype.hasOwnProperty.call(t,o)&&(n&&"[object Object]"===Object.prototype.toString.call(t[o])?e[o]=u.extend(e[o],t[o]):e[o]=t[o]);return e},extend(){let e={},t=!1,n=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],n++);n<arguments.length;n++)e=u.mergeExtended(e,n<0||arguments.length<=n?void 0:arguments[n],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},E=u;const g={TRANSITION_END:"transitionend",getUID(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},getSelectorFromElement(e){let t=e.getAttribute("data-target");if(!t||"#"===t){const n=e.getAttribute("href");t=n&&"#"!==n?n.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement(e){if(!e)return 0;let t=window.getComputedStyle(e).transitionDuration,n=window.getComputedStyle(e).transitionDelay;const o=parseFloat(t),r=parseFloat(n);return o||r?(t=t.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(t)+parseFloat(n))):0},reflow:e=>e.offsetHeight,triggerTransitionEnd(e){const t=new CustomEvent(g.TRANSITION_END,{});e.dispatchEvent(t)},isElement:e=>(e[0]||e).nodeType,emulateTransitionEnd(e,t){let n=!1;const o=t+5;e.addEventListener(g.TRANSITION_END,(function t(){n=!0,e.removeEventListener(g.TRANSITION_END,t)})),setTimeout((()=>{n||g.triggerTransitionEnd(e)}),o)},typeCheckConfig(e,t,n){for(const r in n)if(Object.prototype.hasOwnProperty.call(n,r)){const s=n[r],i=t[r],l=i&&g.isElement(i)?"element":(o=i,{}.toString.call(o).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(s).test(l))throw new Error(`${e.toUpperCase()}: Option "${r}" provided type "${l}" but expected type "${s}".`)}var o},makeArray:e=>null==e?[]:[].slice.call(e),findShadowRoot(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?g.findShadowRoot(e.parentElement):null},throttle(e,t,n,o,r){let s,i,l,a=null,c=0;const d=()=>{c=Date.now(),a=null,l=e.apply(i,s)};return()=>{const u=Date.now();c||n||(c=u);const E=t-(u-c);return i=r||this,s=arguments,E<=0?(clearTimeout(a),a=null,c=u,l=e.apply(i,s)):!a&&o&&(a=setTimeout(d,E)),l}},coerceBool:e=>Boolean(e)},m=g;class h extends a{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(h,e,h.getOptions(t)),this.closeOnInteractOut=e=>{e.key&&"Escape"!==e.key||!e.key&&e.target.closest(h.SELECTOR.default)||this.open()},this.element=e,this.isTransitioning=!1,this.triggerArray=m.makeArray(document.querySelectorAll(`${h.SELECTOR.dataToggle}[href="#${e.id}"],${h.SELECTOR.dataToggle}[data-target="#${e.id}"]`));const n=m.makeArray(document.querySelectorAll(h.SELECTOR.dataToggle));for(let t=0,o=n.length;t<o;t++){const o=n[t],r=m.getSelectorFromElement(o),s=m.makeArray(document.querySelectorAll(r)).filter((t=>t===e));null!==r&&s.length&&(this.selector=r,this.triggerArray.push(o))}l.setData(e,h.DATA_KEY,this),this.options.toggle&&this.toggle(),l.setData(e,h.DATA_KEY,this),h.hasInit||(h.hasInit=!0,this.registerEvents()),"true"!==e.dataset.closeOnInteractOut&&e.dataset.closeOnInteractOut||(document.addEventListener("click",this.closeOnInteractOut),document.addEventListener("keydown",this.closeOnInteractOut))}toggle(){this.element.classList.contains(h.CLASS_NAME.folded)?this.close():this.open()}open(){if(this.isTransitioning||this.element.classList.contains(h.CLASS_NAME.folded))return;let e;document.querySelector(this.selector);if(d.trigger(this.element,h.EVENT.show).defaultPrevented)return;this.element.classList.remove(h.CLASS_NAME.folded),this.element.classList.add(h.CLASS_NAME.folding),this.triggerArray.length&&this.triggerArray.forEach((e=>{e.classList.remove(h.CLASS_NAME.folded),e.setAttribute("aria-folded","true")})),this.setTransitioning(!0);const t=m.getTransitionDurationFromElement(this.element);d.one(this.element,m.TRANSITION_END,(()=>{this.element.classList.remove(h.CLASS_NAME.folding),this.element.classList.add(h.CLASS_NAME.folded),this.element.parentElement&&this.element.parentElement.tagName.toLowerCase()===h.NAME&&this.element.parentElement.setAttribute("folded",""),this.setTransitioning(!1),d.trigger(this.element,h.EVENT.shown)})),m.emulateTransitionEnd(this.element,t)}close(){if(this.isTransitioning||!this.element.classList.contains(h.CLASS_NAME.folded))return;if(d.trigger(this.element,h.EVENT.hide).defaultPrevented)return;m.reflow(this.element),this.element.classList.add(h.CLASS_NAME.folding),this.element.classList.remove(h.CLASS_NAME.folded);const e=this.triggerArray.length;if(e>0)for(let t=0;t<e;t++){const e=this.triggerArray[t],n=m.getSelectorFromElement(e);if(null!==n){document.querySelector(n).classList.contains(h.CLASS_NAME.folded)||(e.classList.remove(h.CLASS_NAME.folded),e.setAttribute("aria-folded","false"))}}this.setTransitioning(!0);const t=m.getTransitionDurationFromElement(this.element);d.one(this.element,m.TRANSITION_END,(()=>{this.element.parentElement&&this.element.parentElement.tagName.toLowerCase()===h.NAME&&this.element.parentElement.removeAttribute("folded"),this.setTransitioning(!1),this.element.classList.remove(h.CLASS_NAME.folding),d.trigger(this.element,h.EVENT.hidden)})),m.emulateTransitionEnd(this.element,t)}setTransitioning(e){this.isTransitioning=e}dispose(){document.removeEventListener("click",this.closeOnInteractOut),document.removeEventListener("keydown",this.closeOnInteractOut),d.off(document,h.EVENT.clickDataApi,h.SELECTOR.dataToggle),l.removeData(this.element,h.DATA_KEY),this.options=null,this.element=null,this.triggerArray=null,this.isTransitioning=null}addAriaAndExpandedClass(e,t){if(e){const n=e.classList.contains(h.CLASS_NAME.folded);t.length&&t.forEach((e=>{n?e.classList.remove(h.CLASS_NAME.folded):e.classList.add(h.CLASS_NAME.folded),e.setAttribute("aria-folded",n)}))}}static getOptions(e){return(e=Object.assign(Object.assign({},h.DEFAULT_OPTIONS),e)).toggle=Boolean(e.toggle),m.typeCheckConfig(h.NAME,e,h.DEFAULT_TYPE),e}static getTargetFromElement(e){const t=m.getSelectorFromElement(e);return t?document.querySelector(t):null}static expandInterface(e,t){let n=l.getData(e,h.DATA_KEY);const o=Object.assign(Object.assign(Object.assign({},h.DEFAULT_OPTIONS),E.getDataAttributes(e)),"object"==typeof t&&t?t:{});if(!n&&o.toggle&&/show|hide/.test(t)&&(o.toggle=!1),n||(n=new h(e,o)),"string"==typeof t){if(void 0===n[t])throw new Error(`No method named "${t}"`);n[t]()}}static getInstance(e){return l.getData(e,h.DATA_KEY)}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,h.SELECTOR.default)}registerEvents(){d.on(document,h.EVENT.clickDataApi,h.SELECTOR.dataToggle,(function(e){"A"===e.target.tagName&&e.preventDefault();const t=E.getDataAttributes(this),n=m.getSelectorFromElement(this);m.makeArray(document.querySelectorAll(n)).forEach((e=>{const n=h.getInstance(e)?"toggle":t;h.expandInterface(e,n)}))}))}}h.NAME=`${e.KEY_PREFIX}-sidebar`,h.DATA_KEY=`${e.KEY_PREFIX}.sidebar`,h.EVENT_KEY=`.${h.DATA_KEY}`,h.DATA_API_KEY=e.KEY_PREFIX,h.hasInit=!1,h.CLASS_NAME={folding:`${e.KEY_PREFIX}-sidebar--folding`,folded:`${e.KEY_PREFIX}-sidebar--folded`},h.EVENT={show:`${n.show}${h.EVENT_KEY}`,shown:`${n.shown}${h.EVENT_KEY}`,hide:`${n.hide}${h.EVENT_KEY}`,hidden:`${n.hidden}${h.EVENT_KEY}`,clickDataApi:`${n.click}${h.EVENT_KEY}${h.DATA_API_KEY}`},h.DEFAULT_OPTIONS={folded:!1},h.DEFAULT_TYPE={folded:"boolean"},h.SELECTOR={default:`.${h.NAME}`,actives:`.${h.CLASS_NAME.folding}, .${h.NAME}`,dataToggle:'[data-toggle="sidebar"]'};const f=h;return s=s.default})()));
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("Slider",[],e):"object"==typeof exports?exports.Slider=e():t.Slider=e()}(window,(()=>(()=>{"use strict";var t={d:(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},e={};t.d(e,{default:()=>Ot}),window.NJStore=window.NJStore||[];const n=(()=>{const t=window.NJStore;return{set(e,n,o){void 0===e.key&&(e.key={key:n,id:t.length}),t[e.key.id]=o},get:(e,n)=>(e.key&&n&&void 0===n.id&&(n=e.key),n&&void 0!==n.id?t[n.id]:null),delete(e,n){if(void 0===e.key)return;const o=e.key;o.key===n&&(delete t[o.id],delete e.key)}}})(),o={setData(t,e,o){n.set(t,e,o)},getData:(t,e)=>n.get(t,e),removeData(t,e){n.delete(t,e)}},i=o;class r{constructor(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!e||e instanceof Element||console.error(Error(`${e} is not an HTML Element`)),this.options=n,this.element=e}static init(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o=[],r=document.querySelectorAll(n);for(let n=0;n<r.length;n++){const l=r[n];if(!l.key||l.key.key!==t.DATA_KEY){const s=new t(r[n],e);l.key||i.setData(r[n],t.DATA_KEY,s),o.push(s)}}return o}}var l,s,a,c;!function(t){t.LIBRARY_LOG_TAG="[FLUID]",t.KEY_PREFIX="nj",t.DATA_API_KEY=".data-api"}(l||(l={})),function(t){t.mouseenter="mouseover",t.mouseleave="mouseout"}(s||(s={})),function(t){t.beforehide="beforehide",t.click="click",t.close="close",t.closed="closed",t.hide="hide",t.hidden="hidden",t.input="input",t.keydown="keydown",t.keyup="keyup",t.onchange="onchange",t.show="show",t.shown="shown",t.inserted="inserted",t.focusin="focusin",t.focusout="focusout",t.mouseenter="mouseenter",t.mouseleave="mouseleave",t.mouseup="mouseup",t.mousedown="mousedown",t.decrement="decrement",t.increment="increment"}(a||(a={})),function(t){t.click="click",t.dblclick="dblclick",t.mouseup="mouseup",t.mousedown="mousedown",t.contextmenu="contextmenu",t.mousewheel="mousewheel",t.DOMMouseScroll="DOMMouseScroll",t.mouseover="mouseover",t.mouseout="mouseout",t.mousemove="mousemove",t.selectstart="selectstart",t.selectend="selectend",t.keydown="keydown",t.keypress="keypress",t.keyup="keyup",t.orientationchange="orientationchange",t.touchstart="touchstart",t.touchmove="touchmove",t.touchend="touchend",t.touchcancel="touchcancel",t.pointerdown="pointerdown",t.pointermove="pointermove",t.pointerup="pointerup",t.pointerleave="pointerleave",t.pointercancel="pointercancel",t.gesturestart="gesturestart",t.gesturechange="gesturechange",t.gestureend="gestureend",t.focus="focus",t.blur="blur",t.change="change",t.reset="reset",t.select="select",t.submit="submit",t.focusin="focusin",t.focusout="focusout",t.load="load",t.unload="unload",t.beforeunload="beforeunload",t.resize="resize",t.move="move",t.DOMContentLoaded="DOMContentLoaded",t.readystatechange="readystatechange",t.error="error",t.abort="abort",t.scroll="scroll"}(c||(c={}));class u{static getUidEvent(t,e){return e&&`${e}::${u.uidEvent++}`||t.uidEvent||u.uidEvent++}static getEvent(t){const e=u.getUidEvent(t);return t.uidEvent=e,u.EVENTREGISTRY[e]=u.EVENTREGISTRY[e]||{}}static fixEvent(t,e){null===t.which&&u.KEYEVENT_REGEX.test(t.type)&&(t.which=null!==t.charCode?t.charCode:t.keyCode),t.delegateTarget=e}static njHandler(t,e){const n=o=>(u.fixEvent(o,t),n.oneOff&&u.off(t,o.type,e),e.apply(t,[o]));return n}static njDelegationHandler(t,e,n){const o=i=>{const r=t.querySelectorAll(e);for(let e=i.target;e&&e!==this;e=e.parentNode)for(let l=r.length;l>=0;l--)if(r[l]===e)return u.fixEvent(i,e),o.oneOff&&u.off(t,i.type,n),n.apply(e,[i]);return null};return o}static findHandler(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;const i=t[o];if(i.originalHandler===e&&i.delegationSelector===n)return t[o]}return null}static normalizeParams(t,e,n){const o="string"==typeof e,i=o?n:e;let r=t.replace(u.STRIPNAME_REGEX,"");const l=s[r];l&&(r=l);return"string"==typeof c[r]||(r=t),[o,i,r]}static addHandler(t,e,n,o,i){if("string"!=typeof e||null==t)return;n||(n=o,o=null);const r=u.getEvent(t);for(const l of e.split(" ")){const[e,s,a]=u.normalizeParams(l,n,o),c=r[a]||(r[a]={}),d=u.findHandler(c,s,e?n:null);if(d)return void(d.oneOff=d.oneOff&&i);const f=u.getUidEvent(s,l.replace(u.NAMESPACE_REGEX,"")),p=e?u.njDelegationHandler(t,n,o):u.njHandler(t,n);p.delegationSelector=e?n:null,p.originalHandler=s,p.oneOff=i,p.uidEvent=f,c[f]=p,t.addEventListener(a,p,e)}}static removeHandler(t,e,n,o,i){const r=u.findHandler(e[n],o,i);null!==r&&(t.removeEventListener(n,r,Boolean(i)),delete e[n][r.uidEvent])}static removeNamespacedHandlers(t,e,n,o){const i=e[n]||{};for(const r in i)if(Object.prototype.hasOwnProperty.call(i,r)&&r.indexOf(o)>-1){const o=i[r];u.removeHandler(t,e,n,o.originalHandler,o.delegationSelector)}}static on(t,e,n,o){u.addHandler(t,e,n,o,!1)}static one(t,e,n,o){u.addHandler(t,e,n,o,!0)}static off(t,e,n,o){if("string"!=typeof e||null==t)return;const[i,r,l]=u.normalizeParams(e,n,o),s=l!==e,a=u.getEvent(t);if(void 0!==r){if(!a||!a[l])return;return void u.removeHandler(t,a,l,r,i?n:null)}if("."===e.charAt(0))for(const n in a)Object.prototype.hasOwnProperty.call(a,n)&&u.removeNamespacedHandlers(t,a,n,e.substr(1));const c=a[l]||{};for(const n in c){if(!Object.prototype.hasOwnProperty.call(c,n))continue;const o=n.replace(u.STRIPUID_REGEX,"");if(!s||e.indexOf(o)>-1){const e=c[n];u.removeHandler(t,a,l,e.originalHandler,e.delegationSelector)}}}static trigger(t,e,n){if("string"!=typeof e||null==t)return null;const o=e.replace(u.STRIPNAME_REGEX,""),i="string"==typeof c[o];let r=null;return i?(r=document.createEvent("HTMLEvents"),r.initEvent(o,true,!0)):r=new window.CustomEvent(e,{bubbles:true,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((t=>{Object.defineProperty(r,t,{get:()=>n[t]})})),t.dispatchEvent(r),r}}u.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,u.STRIPNAME_REGEX=/\..*/,u.KEYEVENT_REGEX=/^key/,u.STRIPUID_REGEX=/::\d+$/,u.EVENTREGISTRY={},u.uidEvent=1;const d=u;const f={getDataAttributes(t){if(null==t)return{};let e={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))e=Object.assign({},t.dataset);else for(let n=0;n<t.attributes.length;n++){const o=t.attributes[n];if(-1!==o.nodeName.indexOf("data-")){const t=o.nodeName.substring(5).replace(/-./g,(t=>t.charAt(1).toUpperCase()));e[t]=o.nodeValue}}return Object.keys(e).forEach((t=>{var n;e[t]="true"===(n=e[t])||"false"!==n&&("null"===n?null:n===Number(n).toString()?Number(n):""===n?null:n)})),e},toggleClass(t,e){null!=t&&(t.classList.contains(e)?t.classList.remove(e):t.classList.add(e))},mergeExtended(t,e,n){for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n&&"[object Object]"===Object.prototype.toString.call(e[o])?t[o]=f.extend(t[o],e[o]):t[o]=e[o]);return t},extend(){let t={},e=!1,n=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(e=arguments.length<=0?void 0:arguments[0],n++);n<arguments.length;n++)t=f.mergeExtended(t,n<0||arguments.length<=n?void 0:arguments[n],e);return t},createHtmlNode:t=>(new DOMParser).parseFromString(t,"text/html").body.firstChild},p=f;const h={TRANSITION_END:"transitionend",getUID(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},getSelectorFromElement(t){let e=t.getAttribute("data-target");if(!e||"#"===e){const n=t.getAttribute("href");e=n&&"#"!==n?n.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement(t){if(!t)return 0;let e=window.getComputedStyle(t).transitionDuration,n=window.getComputedStyle(t).transitionDelay;const o=parseFloat(e),i=parseFloat(n);return o||i?(e=e.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(e)+parseFloat(n))):0},reflow:t=>t.offsetHeight,triggerTransitionEnd(t){const e=new CustomEvent(h.TRANSITION_END,{});t.dispatchEvent(e)},isElement:t=>(t[0]||t).nodeType,emulateTransitionEnd(t,e){let n=!1;const o=e+5;t.addEventListener(h.TRANSITION_END,(function e(){n=!0,t.removeEventListener(h.TRANSITION_END,e)})),setTimeout((()=>{n||h.triggerTransitionEnd(t)}),o)},typeCheckConfig(t,e,n){for(const i in n)if(Object.prototype.hasOwnProperty.call(n,i)){const r=n[i],l=e[i],s=l&&h.isElement(l)?"element":(o=l,{}.toString.call(o).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(r).test(s))throw new Error(`${t.toUpperCase()}: Option "${i}" provided type "${s}" but expected type "${r}".`)}var o},makeArray:t=>null==t?[]:[].slice.call(t),findShadowRoot(t){if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?h.findShadowRoot(t.parentElement):null},throttle(t,e,n,o,i){let r,l,s,a=null,c=0;const u=()=>{c=Date.now(),a=null,s=t.apply(l,r)};return()=>{const d=Date.now();c||n||(c=d);const f=e-(d-c);return l=i||this,r=arguments,f<=0?(clearTimeout(a),a=null,c=d,s=t.apply(l,r)):!a&&o&&(a=setTimeout(u,f)),s}},coerceBool:t=>Boolean(t)},m=h,g=Math.min,y=Math.max,E=Math.round,v=Math.floor,w=t=>({x:t,y:t}),b={left:"right",right:"left",bottom:"top",top:"bottom"},x={start:"end",end:"start"};function T(t,e){return"function"==typeof t?t(e):t}function O(t){return t.split("-")[0]}function R(t){return t.split("-")[1]}function A(t){return"y"===t?"height":"width"}function S(t){return["top","bottom"].includes(O(t))?"y":"x"}function D(t){return"x"===S(t)?"y":"x"}function L(t){return t.replace(/start|end/g,(t=>x[t]))}function P(t){return t.replace(/left|right|bottom|top/g,(t=>b[t]))}function C(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function N(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function _(t,e,n){let{reference:o,floating:i}=t;const r=S(e),l=D(e),s=A(l),a=O(e),c="y"===r,u=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,f=o[s]/2-i[s]/2;let p;switch(a){case"top":p={x:u,y:o.y-i.height};break;case"bottom":p={x:u,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-i.width,y:d};break;default:p={x:o.x,y:o.y}}switch(R(e)){case"start":p[l]-=f*(n&&c?-1:1);break;case"end":p[l]+=f*(n&&c?-1:1)}return p}async function k(t,e){var n;void 0===e&&(e={});const{x:o,y:i,platform:r,rects:l,elements:s,strategy:a}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=T(e,t),h=C(p),m=s[f?"floating"===d?"reference":"floating":d],g=N(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(m)))||n?m:m.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:a})),y="floating"===d?{...l.floating,x:o,y:i}:l.reference,E=await(null==r.getOffsetParent?void 0:r.getOffsetParent(s.floating)),v=await(null==r.isElement?void 0:r.isElement(E))&&await(null==r.getScale?void 0:r.getScale(E))||{x:1,y:1},w=N(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:E,strategy:a}):y);return{top:(g.top-w.top+h.top)/v.y,bottom:(w.bottom-g.bottom+h.bottom)/v.y,left:(g.left-w.left+h.left)/v.x,right:(w.right-g.right+h.right)/v.x}}function H(t){return F(t)?(t.nodeName||"").toLowerCase():"#document"}function j(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function I(t){var e;return null==(e=(F(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function F(t){return t instanceof Node||t instanceof j(t).Node}function M(t){return t instanceof Element||t instanceof j(t).Element}function V(t){return t instanceof HTMLElement||t instanceof j(t).HTMLElement}function $(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof j(t).ShadowRoot)}function Y(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=G(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function B(t){return["table","td","th"].includes(H(t))}function U(t){const e=z(),n=G(t);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function z(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function X(t){return["html","body","#document"].includes(H(t))}function G(t){return j(t).getComputedStyle(t)}function W(t){return M(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function K(t){if("html"===H(t))return t;const e=t.assignedSlot||t.parentNode||$(t)&&t.host||I(t);return $(e)?e.host:e}function q(t){const e=K(t);return X(e)?t.ownerDocument?t.ownerDocument.body:t.body:V(e)&&Y(e)?e:q(e)}function J(t,e,n){var o;void 0===e&&(e=[]),void 0===n&&(n=!0);const i=q(t),r=i===(null==(o=t.ownerDocument)?void 0:o.body),l=j(i);return r?e.concat(l,l.visualViewport||[],Y(i)?i:[],l.frameElement&&n?J(l.frameElement):[]):e.concat(i,J(i,[],n))}function Q(t){const e=G(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=V(t),r=i?t.offsetWidth:n,l=i?t.offsetHeight:o,s=E(n)!==r||E(o)!==l;return s&&(n=r,o=l),{width:n,height:o,$:s}}function Z(t){return M(t)?t:t.contextElement}function tt(t){const e=Z(t);if(!V(e))return w(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=Q(e);let l=(r?E(n.width):n.width)/o,s=(r?E(n.height):n.height)/i;return l&&Number.isFinite(l)||(l=1),s&&Number.isFinite(s)||(s=1),{x:l,y:s}}const et=w(0);function nt(t){const e=j(t);return z()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:et}function ot(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const i=t.getBoundingClientRect(),r=Z(t);let l=w(1);e&&(o?M(o)&&(l=tt(o)):l=tt(t));const s=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==j(t))&&e}(r,n,o)?nt(r):w(0);let a=(i.left+s.x)/l.x,c=(i.top+s.y)/l.y,u=i.width/l.x,d=i.height/l.y;if(r){const t=j(r),e=o&&M(o)?j(o):o;let n=t,i=n.frameElement;for(;i&&o&&e!==n;){const t=tt(i),e=i.getBoundingClientRect(),o=G(i),r=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,l=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;a*=t.x,c*=t.y,u*=t.x,d*=t.y,a+=r,c+=l,n=j(i),i=n.frameElement}}return N({width:u,height:d,x:a,y:c})}const it=[":popover-open",":modal"];function rt(t){return it.some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function lt(t){return ot(I(t)).left+W(t).scrollLeft}function st(t,e,n){let o;if("viewport"===e)o=function(t,e){const n=j(t),o=I(t),i=n.visualViewport;let r=o.clientWidth,l=o.clientHeight,s=0,a=0;if(i){r=i.width,l=i.height;const t=z();(!t||t&&"fixed"===e)&&(s=i.offsetLeft,a=i.offsetTop)}return{width:r,height:l,x:s,y:a}}(t,n);else if("document"===e)o=function(t){const e=I(t),n=W(t),o=t.ownerDocument.body,i=y(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=y(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let l=-n.scrollLeft+lt(t);const s=-n.scrollTop;return"rtl"===G(o).direction&&(l+=y(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:l,y:s}}(I(t));else if(M(e))o=function(t,e){const n=ot(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=V(t)?tt(t):w(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:i*r.x,y:o*r.y}}(e,n);else{const n=nt(t);o={...e,x:e.x-n.x,y:e.y-n.y}}return N(o)}function at(t,e){const n=K(t);return!(n===e||!M(n)||X(n))&&("fixed"===G(n).position||at(n,e))}function ct(t,e,n){const o=V(e),i=I(e),r="fixed"===n,l=ot(t,!0,r,e);let s={scrollLeft:0,scrollTop:0};const a=w(0);if(o||!o&&!r)if(("body"!==H(e)||Y(i))&&(s=W(e)),o){const t=ot(e,!0,r,e);a.x=t.x+e.clientLeft,a.y=t.y+e.clientTop}else i&&(a.x=lt(i));return{x:l.left+s.scrollLeft-a.x,y:l.top+s.scrollTop-a.y,width:l.width,height:l.height}}function ut(t,e){return V(t)&&"fixed"!==G(t).position?e?e(t):t.offsetParent:null}function dt(t,e){const n=j(t);if(!V(t)||rt(t))return n;let o=ut(t,e);for(;o&&B(o)&&"static"===G(o).position;)o=ut(o,e);return o&&("html"===H(o)||"body"===H(o)&&"static"===G(o).position&&!U(o))?n:o||function(t){let e=K(t);for(;V(e)&&!X(e);){if(U(e))return e;e=K(e)}return null}(t)||n}const ft={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r="fixed"===i,l=I(o),s=!!e&&rt(e.floating);if(o===l||s&&r)return n;let a={scrollLeft:0,scrollTop:0},c=w(1);const u=w(0),d=V(o);if((d||!d&&!r)&&(("body"!==H(o)||Y(l))&&(a=W(o)),V(o))){const t=ot(o);c=tt(o),u.x=t.x+o.clientLeft,u.y=t.y+o.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+u.x,y:n.y*c.y-a.scrollTop*c.y+u.y}},getDocumentElement:I,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const r=[..."clippingAncestors"===n?function(t,e){const n=e.get(t);if(n)return n;let o=J(t,[],!1).filter((t=>M(t)&&"body"!==H(t))),i=null;const r="fixed"===G(t).position;let l=r?K(t):t;for(;M(l)&&!X(l);){const e=G(l),n=U(l);n||"fixed"!==e.position||(i=null),(r?!n&&!i:!n&&"static"===e.position&&i&&["absolute","fixed"].includes(i.position)||Y(l)&&!n&&at(t,l))?o=o.filter((t=>t!==l)):i=e,l=K(l)}return e.set(t,o),o}(e,this._c):[].concat(n),o],l=r[0],s=r.reduce(((t,n)=>{const o=st(e,n,i);return t.top=y(o.top,t.top),t.right=g(o.right,t.right),t.bottom=g(o.bottom,t.bottom),t.left=y(o.left,t.left),t}),st(e,l,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:dt,getElementRects:async function(t){const e=this.getOffsetParent||dt,n=this.getDimensions;return{reference:ct(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,...await n(t.floating)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=Q(t);return{width:e,height:n}},getScale:tt,isElement:M,isRTL:function(t){return"rtl"===G(t).direction}};function pt(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:a=!1}=o,c=Z(t),u=i||r?[...c?J(c):[],...J(e)]:[];u.forEach((t=>{i&&t.addEventListener("scroll",n,{passive:!0}),r&&t.addEventListener("resize",n)}));const d=c&&s?function(t,e){let n,o=null;const i=I(t);function r(){var t;clearTimeout(n),null==(t=o)||t.disconnect(),o=null}return function l(s,a){void 0===s&&(s=!1),void 0===a&&(a=1),r();const{left:c,top:u,width:d,height:f}=t.getBoundingClientRect();if(s||e(),!d||!f)return;const p={rootMargin:-v(u)+"px "+-v(i.clientWidth-(c+d))+"px "+-v(i.clientHeight-(u+f))+"px "+-v(c)+"px",threshold:y(0,g(1,a))||1};let h=!0;function m(t){const e=t[0].intersectionRatio;if(e!==a){if(!h)return l();e?l(!1,e):n=setTimeout((()=>{l(!1,1e-7)}),100)}h=!1}try{o=new IntersectionObserver(m,{...p,root:i.ownerDocument})}catch(t){o=new IntersectionObserver(m,p)}o.observe(t)}(!0),r}(c,n):null;let f,p=-1,h=null;l&&(h=new ResizeObserver((t=>{let[o]=t;o&&o.target===c&&h&&(h.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var t;null==(t=h)||t.observe(e)}))),n()})),c&&!a&&h.observe(c),h.observe(e));let m=a?ot(t):null;return a&&function e(){const o=ot(t);!m||o.x===m.x&&o.y===m.y&&o.width===m.width&&o.height===m.height||n();m=o,f=requestAnimationFrame(e)}(),n(),()=>{var t;u.forEach((t=>{i&&t.removeEventListener("scroll",n),r&&t.removeEventListener("resize",n)})),null==d||d(),null==(t=h)||t.disconnect(),h=null,a&&cancelAnimationFrame(f)}}const ht=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:l,initialPlacement:s,platform:a,elements:c}=e,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=T(t,e);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const y=O(i),E=O(s)===s,v=await(null==a.isRTL?void 0:a.isRTL(c.floating)),w=f||(E||!m?[P(s)]:function(t){const e=P(t);return[L(t),e,L(e)]}(s));f||"none"===h||w.push(...function(t,e,n,o){const i=R(t);let r=function(t,e,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],l=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:l;default:return[]}}(O(t),"start"===n,o);return i&&(r=r.map((t=>t+"-"+i)),e&&(r=r.concat(r.map(L)))),r}(s,m,h,v));const b=[s,...w],x=await k(e,g),S=[];let C=(null==(o=r.flip)?void 0:o.overflows)||[];if(u&&S.push(x[y]),d){const t=function(t,e,n){void 0===n&&(n=!1);const o=R(t),i=D(t),r=A(i);let l="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[r]>e.floating[r]&&(l=P(l)),[l,P(l)]}(i,l,v);S.push(x[t[0]],x[t[1]])}if(C=[...C,{placement:i,overflows:S}],!S.every((t=>t<=0))){var N,_;const t=((null==(N=r.flip)?void 0:N.index)||0)+1,e=b[t];if(e)return{data:{index:t,overflows:C},reset:{placement:e}};let n=null==(_=C.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:_.placement;if(!n)switch(p){case"bestFit":{var H;const t=null==(H=C.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:H[0];t&&(n=t);break}case"initialPlacement":n=s}if(i!==n)return{reset:{placement:n}}}return{}}}},mt=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:r,platform:l,elements:s,middlewareData:a}=e,{element:c,padding:u=0}=T(t,e)||{};if(null==c)return{};const d=C(u),f={x:n,y:o},p=D(i),h=A(p),m=await l.getDimensions(c),E="y"===p,v=E?"top":"left",w=E?"bottom":"right",b=E?"clientHeight":"clientWidth",x=r.reference[h]+r.reference[p]-f[p]-r.floating[h],O=f[p]-r.reference[p],S=await(null==l.getOffsetParent?void 0:l.getOffsetParent(c));let L=S?S[b]:0;L&&await(null==l.isElement?void 0:l.isElement(S))||(L=s.floating[b]||r.floating[h]);const P=x/2-O/2,N=L/2-m[h]/2-1,_=g(d[v],N),k=g(d[w],N),H=_,j=L-m[h]-k,I=L/2-m[h]/2+P,F=y(H,g(I,j));const M=!a.arrow&&null!=R(i)&&I!==F&&r.reference[h]/2-(I<H?_:k)-m[h]/2<0,V=M?I<H?I-H:I-j:0;return{[p]:f[p]+V,data:{[p]:F,centerOffset:I-F-V,...M&&{alignmentOffset:V}},reset:M}}}),gt=(t,e,n)=>{const o=new Map,i={platform:ft,...n},r={...i.platform,_c:o};return(async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:l}=n,s=r.filter(Boolean),a=await(null==l.isRTL?void 0:l.isRTL(e));let c=await l.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:d}=_(c,o,a),f=o,p={},h=0;for(let n=0;n<s.length;n++){const{name:r,fn:m}=s[n],{x:g,y,data:E,reset:v}=await m({x:u,y:d,initialPlacement:o,placement:f,strategy:i,middlewareData:p,rects:c,platform:l,elements:{reference:t,floating:e}});u=null!=g?g:u,d=null!=y?y:d,p={...p,[r]:{...p[r],...E}},v&&h<=50&&(h++,"object"==typeof v&&(v.placement&&(f=v.placement),v.rects&&(c=!0===v.rects?await l.getElementRects({reference:t,floating:e,strategy:i}):v.rects),({x:u,y:d}=_(c,f,a))),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:p}})(t,e,{...i,platform:r})},yt={hasArrow:!0,isColorInverse:!1,placement:"top",isContentHtml:!1},Et={element:"nj-tooltip",modifier:{withoutArrow:"nj-tooltip--without-arrow",inverse:"nj-tooltip--inverse",placed:t=>`nj-tooltip--${t}`}},vt={element:"nj-tooltip__arrow",modifier:{center:"nj-tooltip__arrow--center"}},wt={element:"nj-tooltip__inner"};class bt{constructor(t,e,n){var o;this._isDisplayed=!1,this.anchorElement=t,this.anchorParentElement=t.parentElement,this.createTooltipElement(),Object.defineProperty(this.anchorElement,"_njTooltip",{value:this,writable:!0});const i=null!=e?e:t.dataset.tooltipContent;this.options=Object.assign({},yt,null!=n?n:{},t.dataset?this.getOptionsFromDataset(t.dataset):{}),this.updateTooltipModifiers(this.options),this.setContent(i,this.options.isContentHtml),"string"==typeof(null===(o=t.dataset)||void 0===o?void 0:o.tooltipAlways)&&this.show()}createTooltipElement(){const t=document.createElement("div");t.className=Et.element,t.role="tooltip",t.id=m.getUID("tooltip-");const e=document.createElement("div");e.className=`${vt.element} ${vt.modifier.center}`,e.ariaHidden="true";const n=document.createElement("div");n.className=wt.element,t.appendChild(e),t.appendChild(n),this.tooltipElement=t,this.arrowElement=e,this.innerElement=n}getOptionsFromDataset(t){const e={};return"string"==typeof t.tooltipArrow&&(e.hasArrow="true"===t.tooltipArrow),"string"==typeof t.tooltipInverse&&(e.isColorInverse="true"===t.tooltipInverse),"string"==typeof t.tooltipPlacement&&(e.placement=t.tooltipPlacement),"string"==typeof t.tooltipHtml&&(e.isContentHtml="true"===t.tooltipHtml),e}updateTooltipModifiers(t){"boolean"==typeof t.hasArrow&&(t.hasArrow?this.tooltipElement.classList.remove(Et.modifier.withoutArrow):this.tooltipElement.classList.add(Et.modifier.withoutArrow)),"boolean"==typeof t.isColorInverse&&(t.isColorInverse?this.tooltipElement.classList.add(Et.modifier.inverse):this.tooltipElement.classList.remove(Et.modifier.inverse)),"string"==typeof t.placement&&(this.tooltipElement.classList.remove(Et.modifier.placed("top")),this.tooltipElement.classList.remove(Et.modifier.placed("right")),this.tooltipElement.classList.remove(Et.modifier.placed("bottom")),this.tooltipElement.classList.remove(Et.modifier.placed("left")),this.tooltipElement.classList.add(Et.modifier.placed(t.placement)))}show(){this._isDisplayed||(this.anchorParentElement.appendChild(this.tooltipElement),this.anchorElement.setAttribute("aria-describedby",this.tooltipElement.id),this._isDisplayed=!0,this.cleanupFunction=pt(this.anchorElement,this.tooltipElement,(()=>{gt(this.anchorElement,this.tooltipElement,{placement:this.options.placement,middleware:[ht(),this.options.hasArrow&&mt({element:this.arrowElement})]}).then((t=>{let{x:e,y:n,placement:o}=t;Object.assign(this.tooltipElement.style,{left:`${e}px`,top:`${n}px`}),this.updateTooltipModifiers({placement:o})}))})))}hide(){var t,e;this._isDisplayed&&(null===(t=this.cleanupFunction)||void 0===t||t.call(this),this.cleanupFunction=null,null===(e=this.anchorElement.parentElement)||void 0===e||e.removeChild(this.tooltipElement),this.anchorElement.removeAttribute("aria-describedby"),this._isDisplayed=!1)}setContent(t){"string"==typeof t?(arguments.length>1&&void 0!==arguments[1]?arguments[1]:yt.isContentHtml)?this.innerElement.innerHTML=t:this.innerElement.innerText=t:this.innerElement.appendChild(t)}updateOptions(t){this.options=Object.assign(Object.assign({},this.options),t),this.updateTooltipModifiers(this.options)}}const xt=(t,e,n)=>new bt(t,e,n);class Tt extends r{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(super(Tt,t,Tt.getOptions(t,e)),this.dataId=Number(String(Math.random()).slice(2))+Date.now(),this.currentProgress=0,this.input=this.element.querySelector(Tt.SELECTOR.input),this.element.setAttribute("data-id",this.dataId.toString()),this.refreshProgressValue(),this.setListeners(),this.options.tooltip){const t=document.createElement("div");t.className="nj-slider__tooltip-anchor",this.element.appendChild(t);const e={parentElement:this.element,setAttribute:(t,e)=>{this.input.setAttribute(t,e)},removeAttribute:t=>{this.input.removeAttribute(t)},contextElement:t,getBoundingClientRect:()=>{const{x:t,y:e,width:n,height:o,top:i,left:r,right:l,bottom:s}=this.input.getBoundingClientRect(),a=this.currentProgress*(-1*Tt.THUMB_WIDTH);return{x:n*this.currentProgress+a+t,y:e,width:Tt.THUMB_WIDTH,height:o,top:i,left:n*this.currentProgress+a+r,right:l,bottom:s}}};this.tooltip=xt(e,this.input.value,{hasArrow:!1,placement:"top"}),this.tooltip.show(),this.setTooltipListeners()}i.setData(t,Tt.DATA_KEY,this)}setListeners(){d.on(this.element,"input change keyup",(()=>{this.refreshProgressValue()}))}setTooltipListeners(){d.on(this.element,"input change keyup",(()=>{this.refreshTooltipValue()}));let t=!1;d.on(document,"resize",(()=>{t||(this.refreshTooltipValue(),t=!0,setTimeout((()=>{t=!1}),100))}))}refreshProgressValue(){const t=document.querySelector(`[data-id='${this.dataId}']`);if(t){const e=parseFloat(this.input.max)||Tt.PERCENT_CONV,n=parseFloat(this.input.min)||0,o=parseFloat(this.input.value);this.currentProgress=(o-n)/(e-n);const i=Tt.PERCENT_CONV*this.currentProgress;t.style.setProperty("--nj-slider-track-position",`${i}% 100%`),t.style.setProperty("--nj-slider-anchor-left",`calc(${i}% + ${this.currentProgress} * -20px + 10px)`)}}refreshTooltipValue(){this.tooltip.setContent(this.input.value)}static getOptions(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e=Object.assign(Object.assign(Object.assign({},Tt.DEFAULT_OPTIONS),p.getDataAttributes(t)),"object"==typeof e&&e?e:{}),m.typeCheckConfig(Tt.NAME,e,Tt.DEFAULT_TYPE),e}dispose(){var t;null===(t=this.tooltip)||void 0===t||t.hide(),d.off(this.element,"input change keyup"),d.off(document,"resize"),i.removeData(this.element,Tt.DATA_KEY),this.element=null}static getInstance(t){return i.getData(t,Tt.DATA_KEY)}static init(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,t,Tt.SELECTOR.default)}}Tt.NAME=`${l.KEY_PREFIX}-slider`,Tt.DATA_KEY=`${l.KEY_PREFIX}.slider`,Tt.CLASS_NAME=`${l.KEY_PREFIX}-slider`,Tt.SELECTOR={default:`.${Tt.CLASS_NAME}`,input:"input",label:"label"},Tt.THUMB_WIDTH=16,Tt.DEFAULT_TYPE={tooltip:"boolean"},Tt.DEFAULT_OPTIONS={tooltip:!1},Tt.PERCENT_CONV=100,Tt.PSEUDO_ELEMS=["webkit-slider-runnable","moz-range","ms"];const Ot=Tt;return e=e.default})()));
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("Slider",[],e):"object"==typeof exports?exports.Slider=e():t.Slider=e()}(window,(()=>(()=>{"use strict";var t={d:(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},e={};t.d(e,{default:()=>Ot}),window.NJStore=window.NJStore||[];const n=(()=>{const t=window.NJStore;return{set(e,n,o){void 0===e.key&&(e.key={key:n,id:t.length}),t[e.key.id]=o},get:(e,n)=>(e.key&&n&&void 0===n.id&&(n=e.key),n&&void 0!==n.id?t[n.id]:null),delete(e,n){if(void 0===e.key)return;const o=e.key;o.key===n&&(delete t[o.id],delete e.key)}}})(),o={setData(t,e,o){n.set(t,e,o)},getData:(t,e)=>n.get(t,e),removeData(t,e){n.delete(t,e)}},i=o;class r{constructor(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!e||e instanceof Element||console.error(Error(`${e} is not an HTML Element`)),this.options=n,this.element=e}static init(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const o=[],r=document.querySelectorAll(n);for(let n=0;n<r.length;n++){const l=r[n];if(!l.key||l.key.key!==t.DATA_KEY){const s=new t(r[n],e);l.key||i.setData(r[n],t.DATA_KEY,s),o.push(s)}}return o}}var l,s,a,c;!function(t){t.LIBRARY_LOG_TAG="[FLUID]",t.KEY_PREFIX="nj",t.DATA_API_KEY=".data-api"}(l||(l={})),function(t){t.mouseenter="mouseover",t.mouseleave="mouseout"}(s||(s={})),function(t){t.beforehide="beforehide",t.click="click",t.close="close",t.closed="closed",t.hide="hide",t.hidden="hidden",t.input="input",t.keydown="keydown",t.keyup="keyup",t.onchange="onchange",t.show="show",t.shown="shown",t.inserted="inserted",t.focusin="focusin",t.focusout="focusout",t.mouseenter="mouseenter",t.mouseleave="mouseleave",t.mouseup="mouseup",t.mousedown="mousedown",t.decrement="decrement",t.increment="increment"}(a||(a={})),function(t){t.click="click",t.dblclick="dblclick",t.mouseup="mouseup",t.mousedown="mousedown",t.contextmenu="contextmenu",t.mousewheel="mousewheel",t.DOMMouseScroll="DOMMouseScroll",t.mouseover="mouseover",t.mouseout="mouseout",t.mousemove="mousemove",t.selectstart="selectstart",t.selectend="selectend",t.keydown="keydown",t.keypress="keypress",t.keyup="keyup",t.orientationchange="orientationchange",t.touchstart="touchstart",t.touchmove="touchmove",t.touchend="touchend",t.touchcancel="touchcancel",t.pointerdown="pointerdown",t.pointermove="pointermove",t.pointerup="pointerup",t.pointerleave="pointerleave",t.pointercancel="pointercancel",t.gesturestart="gesturestart",t.gesturechange="gesturechange",t.gestureend="gestureend",t.focus="focus",t.blur="blur",t.change="change",t.reset="reset",t.select="select",t.submit="submit",t.focusin="focusin",t.focusout="focusout",t.load="load",t.unload="unload",t.beforeunload="beforeunload",t.resize="resize",t.move="move",t.DOMContentLoaded="DOMContentLoaded",t.readystatechange="readystatechange",t.error="error",t.abort="abort",t.scroll="scroll"}(c||(c={}));class u{static getUidEvent(t,e){return e&&`${e}::${u.uidEvent++}`||t.uidEvent||u.uidEvent++}static getEvent(t){const e=u.getUidEvent(t);return t.uidEvent=e,u.EVENTREGISTRY[e]=u.EVENTREGISTRY[e]||{}}static fixEvent(t,e){null===t.which&&u.KEYEVENT_REGEX.test(t.type)&&(t.which=null!==t.charCode?t.charCode:t.keyCode),t.delegateTarget=e}static njHandler(t,e){const n=o=>(u.fixEvent(o,t),n.oneOff&&u.off(t,o.type,e),e.apply(t,[o]));return n}static njDelegationHandler(t,e,n){const o=i=>{const r=t.querySelectorAll(e);for(let e=i.target;e&&e!==this;e=e.parentNode)for(let l=r.length;l>=0;l--)if(r[l]===e)return u.fixEvent(i,e),o.oneOff&&u.off(t,i.type,n),n.apply(e,[i]);return null};return o}static findHandler(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;const i=t[o];if(i.originalHandler===e&&i.delegationSelector===n)return t[o]}return null}static normalizeParams(t,e,n){const o="string"==typeof e,i=o?n:e;let r=t.replace(u.STRIPNAME_REGEX,"");const l=s[r];l&&(r=l);return"string"==typeof c[r]||(r=t),[o,i,r]}static addHandler(t,e,n,o,i){if("string"!=typeof e||null==t)return;n||(n=o,o=null);const r=u.getEvent(t);for(const l of e.split(" ")){const[e,s,a]=u.normalizeParams(l,n,o),c=r[a]||(r[a]={}),d=u.findHandler(c,s,e?n:null);if(d)return void(d.oneOff=d.oneOff&&i);const f=u.getUidEvent(s,l.replace(u.NAMESPACE_REGEX,"")),p=e?u.njDelegationHandler(t,n,o):u.njHandler(t,n);p.delegationSelector=e?n:null,p.originalHandler=s,p.oneOff=i,p.uidEvent=f,c[f]=p,t.addEventListener(a,p,e)}}static removeHandler(t,e,n,o,i){const r=u.findHandler(e[n],o,i);null!==r&&(t.removeEventListener(n,r,Boolean(i)),delete e[n][r.uidEvent])}static removeNamespacedHandlers(t,e,n,o){const i=e[n]||{};for(const r in i)if(Object.prototype.hasOwnProperty.call(i,r)&&r.indexOf(o)>-1){const o=i[r];u.removeHandler(t,e,n,o.originalHandler,o.delegationSelector)}}static on(t,e,n,o){u.addHandler(t,e,n,o,!1)}static one(t,e,n,o){u.addHandler(t,e,n,o,!0)}static off(t,e,n,o){if("string"!=typeof e||null==t)return;const[i,r,l]=u.normalizeParams(e,n,o),s=l!==e,a=u.getEvent(t);if(void 0!==r){if(!a||!a[l])return;return void u.removeHandler(t,a,l,r,i?n:null)}if("."===e.charAt(0))for(const n in a)Object.prototype.hasOwnProperty.call(a,n)&&u.removeNamespacedHandlers(t,a,n,e.substr(1));const c=a[l]||{};for(const n in c){if(!Object.prototype.hasOwnProperty.call(c,n))continue;const o=n.replace(u.STRIPUID_REGEX,"");if(!s||e.indexOf(o)>-1){const e=c[n];u.removeHandler(t,a,l,e.originalHandler,e.delegationSelector)}}}static trigger(t,e,n){if("string"!=typeof e||null==t)return null;const o=e.replace(u.STRIPNAME_REGEX,""),i="string"==typeof c[o],r=!0;let l=null;return i?(l=document.createEvent("HTMLEvents"),l.initEvent(o,r,!0)):l=new window.CustomEvent(e,{bubbles:r,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((t=>{Object.defineProperty(l,t,{get:()=>n[t]})})),t.dispatchEvent(l),l}}u.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,u.STRIPNAME_REGEX=/\..*/,u.KEYEVENT_REGEX=/^key/,u.STRIPUID_REGEX=/::\d+$/,u.EVENTREGISTRY={},u.uidEvent=1;const d=u;const f={getDataAttributes(t){if(null==t)return{};let e={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))e=Object.assign({},t.dataset);else for(let n=0;n<t.attributes.length;n++){const o=t.attributes[n];if(-1!==o.nodeName.indexOf("data-")){const t=o.nodeName.substring(5).replace(/-./g,(t=>t.charAt(1).toUpperCase()));e[t]=o.nodeValue}}return Object.keys(e).forEach((t=>{var n;e[t]="true"===(n=e[t])||"false"!==n&&("null"===n?null:n===Number(n).toString()?Number(n):""===n?null:n)})),e},toggleClass(t,e){null!=t&&(t.classList.contains(e)?t.classList.remove(e):t.classList.add(e))},mergeExtended(t,e,n){for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n&&"[object Object]"===Object.prototype.toString.call(e[o])?t[o]=f.extend(t[o],e[o]):t[o]=e[o]);return t},extend(){let t={},e=!1,n=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(e=arguments.length<=0?void 0:arguments[0],n++);n<arguments.length;n++)t=f.mergeExtended(t,n<0||arguments.length<=n?void 0:arguments[n],e);return t},createHtmlNode:t=>(new DOMParser).parseFromString(t,"text/html").body.firstChild},p=f;const h={TRANSITION_END:"transitionend",getUID(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},getSelectorFromElement(t){let e=t.getAttribute("data-target");if(!e||"#"===e){const n=t.getAttribute("href");e=n&&"#"!==n?n.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement(t){if(!t)return 0;let e=window.getComputedStyle(t).transitionDuration,n=window.getComputedStyle(t).transitionDelay;const o=parseFloat(e),i=parseFloat(n);return o||i?(e=e.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(e)+parseFloat(n))):0},reflow:t=>t.offsetHeight,triggerTransitionEnd(t){const e=new CustomEvent(h.TRANSITION_END,{});t.dispatchEvent(e)},isElement:t=>(t[0]||t).nodeType,emulateTransitionEnd(t,e){let n=!1;const o=e+5;t.addEventListener(h.TRANSITION_END,(function e(){n=!0,t.removeEventListener(h.TRANSITION_END,e)})),setTimeout((()=>{n||h.triggerTransitionEnd(t)}),o)},typeCheckConfig(t,e,n){for(const i in n)if(Object.prototype.hasOwnProperty.call(n,i)){const r=n[i],l=e[i],s=l&&h.isElement(l)?"element":(o=l,{}.toString.call(o).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(r).test(s))throw new Error(`${t.toUpperCase()}: Option "${i}" provided type "${s}" but expected type "${r}".`)}var o},makeArray:t=>null==t?[]:[].slice.call(t),findShadowRoot(t){if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?h.findShadowRoot(t.parentElement):null},throttle(t,e,n,o,i){let r,l,s,a=null,c=0;const u=()=>{c=Date.now(),a=null,s=t.apply(l,r)};return()=>{const d=Date.now();c||n||(c=d);const f=e-(d-c);return l=i||this,r=arguments,f<=0?(clearTimeout(a),a=null,c=d,s=t.apply(l,r)):!a&&o&&(a=setTimeout(u,f)),s}},coerceBool:t=>Boolean(t)},m=h,g=Math.min,y=Math.max,E=Math.round,v=Math.floor,w=t=>({x:t,y:t}),b={left:"right",right:"left",bottom:"top",top:"bottom"},x={start:"end",end:"start"};function T(t,e){return"function"==typeof t?t(e):t}function O(t){return t.split("-")[0]}function R(t){return t.split("-")[1]}function A(t){return"y"===t?"height":"width"}function S(t){return["top","bottom"].includes(O(t))?"y":"x"}function D(t){return"x"===S(t)?"y":"x"}function L(t){return t.replace(/start|end/g,(t=>x[t]))}function P(t){return t.replace(/left|right|bottom|top/g,(t=>b[t]))}function C(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function N(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function _(t,e,n){let{reference:o,floating:i}=t;const r=S(e),l=D(e),s=A(l),a=O(e),c="y"===r,u=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,f=o[s]/2-i[s]/2;let p;switch(a){case"top":p={x:u,y:o.y-i.height};break;case"bottom":p={x:u,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:d};break;case"left":p={x:o.x-i.width,y:d};break;default:p={x:o.x,y:o.y}}switch(R(e)){case"start":p[l]-=f*(n&&c?-1:1);break;case"end":p[l]+=f*(n&&c?-1:1)}return p}async function k(t,e){var n;void 0===e&&(e={});const{x:o,y:i,platform:r,rects:l,elements:s,strategy:a}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=T(e,t),h=C(p),m=s[f?"floating"===d?"reference":"floating":d],g=N(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(m)))||n?m:m.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:a})),y="floating"===d?{x:o,y:i,width:l.floating.width,height:l.floating.height}:l.reference,E=await(null==r.getOffsetParent?void 0:r.getOffsetParent(s.floating)),v=await(null==r.isElement?void 0:r.isElement(E))&&await(null==r.getScale?void 0:r.getScale(E))||{x:1,y:1},w=N(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:E,strategy:a}):y);return{top:(g.top-w.top+h.top)/v.y,bottom:(w.bottom-g.bottom+h.bottom)/v.y,left:(g.left-w.left+h.left)/v.x,right:(w.right-g.right+h.right)/v.x}}function H(t){return F(t)?(t.nodeName||"").toLowerCase():"#document"}function j(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function I(t){var e;return null==(e=(F(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function F(t){return t instanceof Node||t instanceof j(t).Node}function M(t){return t instanceof Element||t instanceof j(t).Element}function V(t){return t instanceof HTMLElement||t instanceof j(t).HTMLElement}function $(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof j(t).ShadowRoot)}function Y(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=G(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function B(t){return["table","td","th"].includes(H(t))}function U(t){const e=z(),n=G(t);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function z(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function X(t){return["html","body","#document"].includes(H(t))}function G(t){return j(t).getComputedStyle(t)}function W(t){return M(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function K(t){if("html"===H(t))return t;const e=t.assignedSlot||t.parentNode||$(t)&&t.host||I(t);return $(e)?e.host:e}function q(t){const e=K(t);return X(e)?t.ownerDocument?t.ownerDocument.body:t.body:V(e)&&Y(e)?e:q(e)}function J(t,e,n){var o;void 0===e&&(e=[]),void 0===n&&(n=!0);const i=q(t),r=i===(null==(o=t.ownerDocument)?void 0:o.body),l=j(i);return r?e.concat(l,l.visualViewport||[],Y(i)?i:[],l.frameElement&&n?J(l.frameElement):[]):e.concat(i,J(i,[],n))}function Q(t){const e=G(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=V(t),r=i?t.offsetWidth:n,l=i?t.offsetHeight:o,s=E(n)!==r||E(o)!==l;return s&&(n=r,o=l),{width:n,height:o,$:s}}function Z(t){return M(t)?t:t.contextElement}function tt(t){const e=Z(t);if(!V(e))return w(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=Q(e);let l=(r?E(n.width):n.width)/o,s=(r?E(n.height):n.height)/i;return l&&Number.isFinite(l)||(l=1),s&&Number.isFinite(s)||(s=1),{x:l,y:s}}const et=w(0);function nt(t){const e=j(t);return z()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:et}function ot(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const i=t.getBoundingClientRect(),r=Z(t);let l=w(1);e&&(o?M(o)&&(l=tt(o)):l=tt(t));const s=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==j(t))&&e}(r,n,o)?nt(r):w(0);let a=(i.left+s.x)/l.x,c=(i.top+s.y)/l.y,u=i.width/l.x,d=i.height/l.y;if(r){const t=j(r),e=o&&M(o)?j(o):o;let n=t,i=n.frameElement;for(;i&&o&&e!==n;){const t=tt(i),e=i.getBoundingClientRect(),o=G(i),r=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,l=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;a*=t.x,c*=t.y,u*=t.x,d*=t.y,a+=r,c+=l,n=j(i),i=n.frameElement}}return N({width:u,height:d,x:a,y:c})}const it=[":popover-open",":modal"];function rt(t){return it.some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function lt(t){return ot(I(t)).left+W(t).scrollLeft}function st(t,e,n){let o;if("viewport"===e)o=function(t,e){const n=j(t),o=I(t),i=n.visualViewport;let r=o.clientWidth,l=o.clientHeight,s=0,a=0;if(i){r=i.width,l=i.height;const t=z();(!t||t&&"fixed"===e)&&(s=i.offsetLeft,a=i.offsetTop)}return{width:r,height:l,x:s,y:a}}(t,n);else if("document"===e)o=function(t){const e=I(t),n=W(t),o=t.ownerDocument.body,i=y(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=y(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let l=-n.scrollLeft+lt(t);const s=-n.scrollTop;return"rtl"===G(o).direction&&(l+=y(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:l,y:s}}(I(t));else if(M(e))o=function(t,e){const n=ot(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=V(t)?tt(t):w(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:i*r.x,y:o*r.y}}(e,n);else{const n=nt(t);o={...e,x:e.x-n.x,y:e.y-n.y}}return N(o)}function at(t,e){const n=K(t);return!(n===e||!M(n)||X(n))&&("fixed"===G(n).position||at(n,e))}function ct(t,e,n){const o=V(e),i=I(e),r="fixed"===n,l=ot(t,!0,r,e);let s={scrollLeft:0,scrollTop:0};const a=w(0);if(o||!o&&!r)if(("body"!==H(e)||Y(i))&&(s=W(e)),o){const t=ot(e,!0,r,e);a.x=t.x+e.clientLeft,a.y=t.y+e.clientTop}else i&&(a.x=lt(i));return{x:l.left+s.scrollLeft-a.x,y:l.top+s.scrollTop-a.y,width:l.width,height:l.height}}function ut(t,e){return V(t)&&"fixed"!==G(t).position?e?e(t):t.offsetParent:null}function dt(t,e){const n=j(t);if(!V(t)||rt(t))return n;let o=ut(t,e);for(;o&&B(o)&&"static"===G(o).position;)o=ut(o,e);return o&&("html"===H(o)||"body"===H(o)&&"static"===G(o).position&&!U(o))?n:o||function(t){let e=K(t);for(;V(e)&&!X(e);){if(U(e))return e;e=K(e)}return null}(t)||n}const ft={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r="fixed"===i,l=I(o),s=!!e&&rt(e.floating);if(o===l||s&&r)return n;let a={scrollLeft:0,scrollTop:0},c=w(1);const u=w(0),d=V(o);if((d||!d&&!r)&&(("body"!==H(o)||Y(l))&&(a=W(o)),V(o))){const t=ot(o);c=tt(o),u.x=t.x+o.clientLeft,u.y=t.y+o.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-a.scrollLeft*c.x+u.x,y:n.y*c.y-a.scrollTop*c.y+u.y}},getDocumentElement:I,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const r=[..."clippingAncestors"===n?function(t,e){const n=e.get(t);if(n)return n;let o=J(t,[],!1).filter((t=>M(t)&&"body"!==H(t))),i=null;const r="fixed"===G(t).position;let l=r?K(t):t;for(;M(l)&&!X(l);){const e=G(l),n=U(l);n||"fixed"!==e.position||(i=null),(r?!n&&!i:!n&&"static"===e.position&&i&&["absolute","fixed"].includes(i.position)||Y(l)&&!n&&at(t,l))?o=o.filter((t=>t!==l)):i=e,l=K(l)}return e.set(t,o),o}(e,this._c):[].concat(n),o],l=r[0],s=r.reduce(((t,n)=>{const o=st(e,n,i);return t.top=y(o.top,t.top),t.right=g(o.right,t.right),t.bottom=g(o.bottom,t.bottom),t.left=y(o.left,t.left),t}),st(e,l,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:dt,getElementRects:async function(t){const e=this.getOffsetParent||dt,n=this.getDimensions;return{reference:ct(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,...await n(t.floating)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=Q(t);return{width:e,height:n}},getScale:tt,isElement:M,isRTL:function(t){return"rtl"===G(t).direction}};function pt(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:a=!1}=o,c=Z(t),u=i||r?[...c?J(c):[],...J(e)]:[];u.forEach((t=>{i&&t.addEventListener("scroll",n,{passive:!0}),r&&t.addEventListener("resize",n)}));const d=c&&s?function(t,e){let n,o=null;const i=I(t);function r(){var t;clearTimeout(n),null==(t=o)||t.disconnect(),o=null}return function l(s,a){void 0===s&&(s=!1),void 0===a&&(a=1),r();const{left:c,top:u,width:d,height:f}=t.getBoundingClientRect();if(s||e(),!d||!f)return;const p={rootMargin:-v(u)+"px "+-v(i.clientWidth-(c+d))+"px "+-v(i.clientHeight-(u+f))+"px "+-v(c)+"px",threshold:y(0,g(1,a))||1};let h=!0;function m(t){const e=t[0].intersectionRatio;if(e!==a){if(!h)return l();e?l(!1,e):n=setTimeout((()=>{l(!1,1e-7)}),100)}h=!1}try{o=new IntersectionObserver(m,{...p,root:i.ownerDocument})}catch(t){o=new IntersectionObserver(m,p)}o.observe(t)}(!0),r}(c,n):null;let f,p=-1,h=null;l&&(h=new ResizeObserver((t=>{let[o]=t;o&&o.target===c&&h&&(h.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame((()=>{var t;null==(t=h)||t.observe(e)}))),n()})),c&&!a&&h.observe(c),h.observe(e));let m=a?ot(t):null;return a&&function e(){const o=ot(t);!m||o.x===m.x&&o.y===m.y&&o.width===m.width&&o.height===m.height||n();m=o,f=requestAnimationFrame(e)}(),n(),()=>{var t;u.forEach((t=>{i&&t.removeEventListener("scroll",n),r&&t.removeEventListener("resize",n)})),null==d||d(),null==(t=h)||t.disconnect(),h=null,a&&cancelAnimationFrame(f)}}const ht=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:l,initialPlacement:s,platform:a,elements:c}=e,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...g}=T(t,e);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const y=O(i),E=O(s)===s,v=await(null==a.isRTL?void 0:a.isRTL(c.floating)),w=f||(E||!m?[P(s)]:function(t){const e=P(t);return[L(t),e,L(e)]}(s));f||"none"===h||w.push(...function(t,e,n,o){const i=R(t);let r=function(t,e,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],l=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:l;default:return[]}}(O(t),"start"===n,o);return i&&(r=r.map((t=>t+"-"+i)),e&&(r=r.concat(r.map(L)))),r}(s,m,h,v));const b=[s,...w],x=await k(e,g),S=[];let C=(null==(o=r.flip)?void 0:o.overflows)||[];if(u&&S.push(x[y]),d){const t=function(t,e,n){void 0===n&&(n=!1);const o=R(t),i=D(t),r=A(i);let l="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[r]>e.floating[r]&&(l=P(l)),[l,P(l)]}(i,l,v);S.push(x[t[0]],x[t[1]])}if(C=[...C,{placement:i,overflows:S}],!S.every((t=>t<=0))){var N,_;const t=((null==(N=r.flip)?void 0:N.index)||0)+1,e=b[t];if(e)return{data:{index:t,overflows:C},reset:{placement:e}};let n=null==(_=C.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:_.placement;if(!n)switch(p){case"bestFit":{var H;const t=null==(H=C.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:H[0];t&&(n=t);break}case"initialPlacement":n=s}if(i!==n)return{reset:{placement:n}}}return{}}}},mt=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:o,placement:i,rects:r,platform:l,elements:s,middlewareData:a}=e,{element:c,padding:u=0}=T(t,e)||{};if(null==c)return{};const d=C(u),f={x:n,y:o},p=D(i),h=A(p),m=await l.getDimensions(c),E="y"===p,v=E?"top":"left",w=E?"bottom":"right",b=E?"clientHeight":"clientWidth",x=r.reference[h]+r.reference[p]-f[p]-r.floating[h],O=f[p]-r.reference[p],S=await(null==l.getOffsetParent?void 0:l.getOffsetParent(c));let L=S?S[b]:0;L&&await(null==l.isElement?void 0:l.isElement(S))||(L=s.floating[b]||r.floating[h]);const P=x/2-O/2,N=L/2-m[h]/2-1,_=g(d[v],N),k=g(d[w],N),H=_,j=L-m[h]-k,I=L/2-m[h]/2+P,F=y(H,g(I,j));const M=!a.arrow&&null!=R(i)&&I!==F&&r.reference[h]/2-(I<H?_:k)-m[h]/2<0,V=M?I<H?I-H:I-j:0;return{[p]:f[p]+V,data:{[p]:F,centerOffset:I-F-V,...M&&{alignmentOffset:V}},reset:M}}}),gt=(t,e,n)=>{const o=new Map,i={platform:ft,...n},r={...i.platform,_c:o};return(async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:l}=n,s=r.filter(Boolean),a=await(null==l.isRTL?void 0:l.isRTL(e));let c=await l.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:d}=_(c,o,a),f=o,p={},h=0;for(let n=0;n<s.length;n++){const{name:r,fn:m}=s[n],{x:g,y,data:E,reset:v}=await m({x:u,y:d,initialPlacement:o,placement:f,strategy:i,middlewareData:p,rects:c,platform:l,elements:{reference:t,floating:e}});u=null!=g?g:u,d=null!=y?y:d,p={...p,[r]:{...p[r],...E}},v&&h<=50&&(h++,"object"==typeof v&&(v.placement&&(f=v.placement),v.rects&&(c=!0===v.rects?await l.getElementRects({reference:t,floating:e,strategy:i}):v.rects),({x:u,y:d}=_(c,f,a))),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:p}})(t,e,{...i,platform:r})},yt={hasArrow:!0,isColorInverse:!1,placement:"top",isContentHtml:!1},Et={element:"nj-tooltip",modifier:{withoutArrow:"nj-tooltip--without-arrow",inverse:"nj-tooltip--inverse",placed:t=>`nj-tooltip--${t}`}},vt={element:"nj-tooltip__arrow",modifier:{center:"nj-tooltip__arrow--center"}},wt={element:"nj-tooltip__inner"};class bt{constructor(t,e,n){var o;this._isDisplayed=!1,this.anchorElement=t,this.anchorParentElement=t.parentElement,this.createTooltipElement(),Object.defineProperty(this.anchorElement,"_njTooltip",{value:this,writable:!0});const i=null!=e?e:t.dataset.tooltipContent;this.options=Object.assign({},yt,null!=n?n:{},t.dataset?this.getOptionsFromDataset(t.dataset):{}),this.updateTooltipModifiers(this.options),this.setContent(i,this.options.isContentHtml),"string"==typeof(null===(o=t.dataset)||void 0===o?void 0:o.tooltipAlways)&&this.show()}createTooltipElement(){const t=document.createElement("div");t.className=Et.element,t.role="tooltip",t.id=m.getUID("tooltip-");const e=document.createElement("div");e.className=`${vt.element} ${vt.modifier.center}`,e.ariaHidden="true";const n=document.createElement("div");n.className=wt.element,t.appendChild(e),t.appendChild(n),this.tooltipElement=t,this.arrowElement=e,this.innerElement=n}getOptionsFromDataset(t){const e={};return"string"==typeof t.tooltipArrow&&(e.hasArrow="true"===t.tooltipArrow),"string"==typeof t.tooltipInverse&&(e.isColorInverse="true"===t.tooltipInverse),"string"==typeof t.tooltipPlacement&&(e.placement=t.tooltipPlacement),"string"==typeof t.tooltipHtml&&(e.isContentHtml="true"===t.tooltipHtml),e}updateTooltipModifiers(t){"boolean"==typeof t.hasArrow&&(t.hasArrow?this.tooltipElement.classList.remove(Et.modifier.withoutArrow):this.tooltipElement.classList.add(Et.modifier.withoutArrow)),"boolean"==typeof t.isColorInverse&&(t.isColorInverse?this.tooltipElement.classList.add(Et.modifier.inverse):this.tooltipElement.classList.remove(Et.modifier.inverse)),"string"==typeof t.placement&&(this.tooltipElement.classList.remove(Et.modifier.placed("top")),this.tooltipElement.classList.remove(Et.modifier.placed("right")),this.tooltipElement.classList.remove(Et.modifier.placed("bottom")),this.tooltipElement.classList.remove(Et.modifier.placed("left")),this.tooltipElement.classList.add(Et.modifier.placed(t.placement)))}show(){this._isDisplayed||(this.anchorParentElement.appendChild(this.tooltipElement),this.anchorElement.setAttribute("aria-describedby",this.tooltipElement.id),this._isDisplayed=!0,this.cleanupFunction=pt(this.anchorElement,this.tooltipElement,(()=>{gt(this.anchorElement,this.tooltipElement,{placement:this.options.placement,middleware:[ht(),this.options.hasArrow&&mt({element:this.arrowElement})]}).then((t=>{let{x:e,y:n,placement:o}=t;Object.assign(this.tooltipElement.style,{left:`${e}px`,top:`${n}px`}),this.updateTooltipModifiers({placement:o})}))})))}hide(){var t,e;this._isDisplayed&&(null===(t=this.cleanupFunction)||void 0===t||t.call(this),this.cleanupFunction=null,null===(e=this.anchorElement.parentElement)||void 0===e||e.removeChild(this.tooltipElement),this.anchorElement.removeAttribute("aria-describedby"),this._isDisplayed=!1)}setContent(t){"string"==typeof t?(arguments.length>1&&void 0!==arguments[1]?arguments[1]:yt.isContentHtml)?this.innerElement.innerHTML=t:this.innerElement.innerText=t:this.innerElement.appendChild(t)}updateOptions(t){this.options=Object.assign(Object.assign({},this.options),t),this.updateTooltipModifiers(this.options)}}const xt=(t,e,n)=>new bt(t,e,n);class Tt extends r{constructor(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(super(Tt,t,Tt.getOptions(t,e)),this.dataId=Number(String(Math.random()).slice(2))+Date.now(),this.currentProgress=0,this.input=this.element.querySelector(Tt.SELECTOR.input),this.element.setAttribute("data-id",this.dataId.toString()),this.refreshProgressValue(),this.setListeners(),this.options.tooltip){const t=document.createElement("div");t.className="nj-slider__tooltip-anchor",this.element.appendChild(t);const e={parentElement:this.element,setAttribute:(t,e)=>{this.input.setAttribute(t,e)},removeAttribute:t=>{this.input.removeAttribute(t)},contextElement:t,getBoundingClientRect:()=>{const{x:t,y:e,width:n,height:o,top:i,left:r,right:l,bottom:s}=this.input.getBoundingClientRect(),a=this.currentProgress*(-1*Tt.THUMB_WIDTH);return{x:n*this.currentProgress+a+t,y:e,width:Tt.THUMB_WIDTH,height:o,top:i,left:n*this.currentProgress+a+r,right:l,bottom:s}}};this.tooltip=xt(e,this.input.value,{hasArrow:!1,placement:"top"}),this.tooltip.show(),this.setTooltipListeners()}i.setData(t,Tt.DATA_KEY,this)}setListeners(){d.on(this.element,"input change keyup",(()=>{this.refreshProgressValue()}))}setTooltipListeners(){d.on(this.element,"input change keyup",(()=>{this.refreshTooltipValue()}));let t=!1;d.on(document,"resize",(()=>{t||(this.refreshTooltipValue(),t=!0,setTimeout((()=>{t=!1}),100))}))}refreshProgressValue(){const t=document.querySelector(`[data-id='${this.dataId}']`);if(t){const e=parseFloat(this.input.max)||Tt.PERCENT_CONV,n=parseFloat(this.input.min)||0,o=parseFloat(this.input.value);this.currentProgress=(o-n)/(e-n);const i=Tt.PERCENT_CONV*this.currentProgress;t.style.setProperty("--nj-slider-track-position",`${i}% 100%`),t.style.setProperty("--nj-slider-anchor-left",`calc(${i}% + ${this.currentProgress} * -20px + 10px)`)}}refreshTooltipValue(){this.tooltip.setContent(this.input.value)}static getOptions(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e=Object.assign(Object.assign(Object.assign({},Tt.DEFAULT_OPTIONS),p.getDataAttributes(t)),"object"==typeof e&&e?e:{}),m.typeCheckConfig(Tt.NAME,e,Tt.DEFAULT_TYPE),e}dispose(){var t;null===(t=this.tooltip)||void 0===t||t.hide(),d.off(this.element,"input change keyup"),d.off(document,"resize"),i.removeData(this.element,Tt.DATA_KEY),this.element=null}static getInstance(t){return i.getData(t,Tt.DATA_KEY)}static init(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,t,Tt.SELECTOR.default)}}Tt.NAME=`${l.KEY_PREFIX}-slider`,Tt.DATA_KEY=`${l.KEY_PREFIX}.slider`,Tt.CLASS_NAME=`${l.KEY_PREFIX}-slider`,Tt.SELECTOR={default:`.${Tt.CLASS_NAME}`,input:"input",label:"label"},Tt.THUMB_WIDTH=16,Tt.DEFAULT_TYPE={tooltip:"boolean"},Tt.DEFAULT_OPTIONS={tooltip:!1},Tt.PERCENT_CONV=100,Tt.PSEUDO_ELEMS=["webkit-slider-runnable","moz-range","ms"];const Ot=Tt;return e=e.default})()));
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Tag",[],t):"object"==typeof exports?exports.Tag=t():e.Tag=t()}(window,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>y});r={},function(e,t){function n(){this._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,this._iterations=1,this._duration=0,this._playbackRate=1,this._direction="normal",this._easing="linear",this._easingFunction=d}function r(){return e.isDeprecated("Invalid timing inputs","2016-03-02","TypeError exceptions will be thrown instead.",!0)}function i(t,r,i){var o=new n;return r&&(o.fill="both",o.duration="auto"),"number"!=typeof t||isNaN(t)?void 0!==t&&Object.getOwnPropertyNames(t).forEach((function(n){if("auto"!=t[n]){if(("number"==typeof o[n]||"duration"==n)&&("number"!=typeof t[n]||isNaN(t[n])))return;if("fill"==n&&-1==c.indexOf(t[n]))return;if("direction"==n&&-1==f.indexOf(t[n]))return;if("playbackRate"==n&&1!==t[n]&&e.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;o[n]=t[n]}})):o.duration=t,o}function o(e,t,n,r){return e<0||e>1||n<0||n>1?d:function(i){function o(e,t,n){return 3*e*(1-n)*(1-n)*n+3*t*(1-n)*n*n+n*n*n}if(i<=0){var a=0;return e>0?a=t/e:!t&&n>0&&(a=r/n),a*i}if(i>=1){var s=0;return n<1?s=(r-1)/(n-1):1==n&&e<1&&(s=(t-1)/(e-1)),1+s*(i-1)}for(var u=0,l=1;u<l;){var c=(u+l)/2,f=o(e,n,c);if(Math.abs(i-f)<1e-5)return o(t,r,c);f<i?u=c:l=c}return o(t,r,c)}}function a(e,t){return function(n){if(n>=1)return 1;var r=1/e;return(n+=t*r)-n%r}}function s(e){v||(v=document.createElement("div").style),v.animationTimingFunction="",v.animationTimingFunction=e;var t=v.animationTimingFunction;if(""==t&&r())throw new TypeError(e+" is not a valid value for easing");return t}function u(e){if("linear"==e)return d;var t=b.exec(e);if(t)return o.apply(this,t.slice(1).map(Number));var n=_.exec(e);if(n)return a(Number(n[1]),m);var r=T.exec(e);return r?a(Number(r[1]),{start:h,middle:p,end:m}[r[2]]):g[e]||d}function l(e,t,n){if(null==t)return x;var r=n.delay+e+n.endDelay;return t<Math.min(n.delay,r)?E:t>=Math.min(n.delay+e,r)?w:k}var c="backwards|forwards|both|none".split("|"),f="reverse|alternate|alternate-reverse".split("|"),d=function(e){return e};n.prototype={_setMember:function(t,n){this["_"+t]=n,this._effect&&(this._effect._timingInput[t]=n,this._effect._timing=e.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=e.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(e){this._setMember("delay",e)},get delay(){return this._delay},set endDelay(e){this._setMember("endDelay",e)},get endDelay(){return this._endDelay},set fill(e){this._setMember("fill",e)},get fill(){return this._fill},set iterationStart(e){if((isNaN(e)||e<0)&&r())throw new TypeError("iterationStart must be a non-negative number, received: "+e);this._setMember("iterationStart",e)},get iterationStart(){return this._iterationStart},set duration(e){if("auto"!=e&&(isNaN(e)||e<0)&&r())throw new TypeError("duration must be non-negative or auto, received: "+e);this._setMember("duration",e)},get duration(){return this._duration},set direction(e){this._setMember("direction",e)},get direction(){return this._direction},set easing(e){this._easingFunction=u(s(e)),this._setMember("easing",e)},get easing(){return this._easing},set iterations(e){if((isNaN(e)||e<0)&&r())throw new TypeError("iterations must be non-negative, received: "+e);this._setMember("iterations",e)},get iterations(){return this._iterations}};var h=1,p=.5,m=0,g={ease:o(.25,.1,.25,1),"ease-in":o(.42,0,1,1),"ease-out":o(0,0,.58,1),"ease-in-out":o(.42,0,.58,1),"step-start":a(1,h),"step-middle":a(1,p),"step-end":a(1,m)},v=null,y="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",b=new RegExp("cubic-bezier\\("+y+","+y+","+y+","+y+"\\)"),_=/steps\(\s*(\d+)\s*\)/,T=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,x=0,E=1,w=2,k=3;e.cloneTimingInput=function(e){if("number"==typeof e)return e;var t={};for(var n in e)t[n]=e[n];return t},e.makeTiming=i,e.numericTimingToObject=function(e){return"number"==typeof e&&(e=isNaN(e)?{duration:0}:{duration:e}),e},e.normalizeTimingInput=function(t,n){return i(t=e.numericTimingToObject(t),n)},e.calculateActiveDuration=function(e){return Math.abs(function(e){return 0===e.duration||0===e.iterations?0:e.duration*e.iterations}(e)/e.playbackRate)},e.calculateIterationProgress=function(e,t,n){var r=l(e,t,n),i=function(e,t,n,r,i){switch(r){case E:return"backwards"==t||"both"==t?0:null;case k:return n-i;case w:return"forwards"==t||"both"==t?e:null;case x:return null}}(e,n.fill,t,r,n.delay);if(null===i)return null;var o=function(e,t,n,r,i){var o=i;return 0===e?t!==E&&(o+=n):o+=r/e,o}(n.duration,r,n.iterations,i,n.iterationStart),a=function(e,t,n,r,i,o){var a=e===1/0?t%1:e%1;return 0!==a||n!==w||0===r||0===i&&0!==o||(a=1),a}(o,n.iterationStart,r,n.iterations,i,n.duration),s=function(e,t,n,r){return e===w&&t===1/0?1/0:1===n?Math.floor(r)-1:Math.floor(r)}(r,n.iterations,a,o),u=function(e,t,n){var r=e;if("normal"!==e&&"reverse"!==e){var i=t;"alternate-reverse"===e&&(i+=1),r="normal",i!==1/0&&i%2!=0&&(r="reverse")}return"normal"===r?n:1-n}(n.direction,s,a);return n._easingFunction(u)},e.calculatePhase=l,e.normalizeEasing=s,e.parseEasingFunction=u}(n={}),function(e,t){function n(e,t){return e in u&&u[e][t]||t}function r(e,t,r){if(!function(e){return"display"===e||0===e.lastIndexOf("animation",0)||0===e.lastIndexOf("transition",0)}(e)){var i=o[e];if(i)for(var s in a.style[e]=t,i){var u=i[s],l=a.style[u];r[u]=n(u,l)}else r[e]=n(e,t)}}function i(e){var t=[];for(var n in e)if(!(n in["easing","offset","composite"])){var r=e[n];Array.isArray(r)||(r=[r]);for(var i,o=r.length,a=0;a<o;a++)(i={}).offset="offset"in e?e.offset:1==o?1:a/(o-1),"easing"in e&&(i.easing=e.easing),"composite"in e&&(i.composite=e.composite),i[n]=r[a],t.push(i)}return t.sort((function(e,t){return e.offset-t.offset})),t}var o={background:["backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat","backgroundAttachment","backgroundOrigin","backgroundClip","backgroundColor"],border:["borderTopColor","borderTopStyle","borderTopWidth","borderRightColor","borderRightStyle","borderRightWidth","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeftColor","borderLeftStyle","borderLeftWidth"],borderBottom:["borderBottomWidth","borderBottomStyle","borderBottomColor"],borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderLeft:["borderLeftWidth","borderLeftStyle","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderRight:["borderRightWidth","borderRightStyle","borderRightColor"],borderTop:["borderTopWidth","borderTopStyle","borderTopColor"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],flex:["flexGrow","flexShrink","flexBasis"],font:["fontFamily","fontSize","fontStyle","fontVariant","fontWeight","lineHeight"],margin:["marginTop","marginRight","marginBottom","marginLeft"],outline:["outlineColor","outlineStyle","outlineWidth"],padding:["paddingTop","paddingRight","paddingBottom","paddingLeft"]},a=document.createElementNS("http://www.w3.org/1999/xhtml","div"),s={thin:"1px",medium:"3px",thick:"5px"},u={borderBottomWidth:s,borderLeftWidth:s,borderRightWidth:s,borderTopWidth:s,fontSize:{"xx-small":"60%","x-small":"75%",small:"89%",medium:"100%",large:"120%","x-large":"150%","xx-large":"200%"},fontWeight:{normal:"400",bold:"700"},outlineWidth:s,textShadow:{none:"0px 0px 0px transparent"},boxShadow:{none:"0px 0px 0px 0px transparent"}};e.convertToArrayForm=i,e.normalizeKeyframes=function(t){if(null==t)return[];window.Symbol&&Symbol.iterator&&Array.prototype.from&&t[Symbol.iterator]&&(t=Array.from(t)),Array.isArray(t)||(t=i(t));for(var n=t.map((function(t){var n={};for(var i in t){var o=t[i];if("offset"==i){if(null!=o){if(o=Number(o),!isFinite(o))throw new TypeError("Keyframe offsets must be numbers.");if(o<0||o>1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==i){if("add"==o||"accumulate"==o)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};if("replace"!=o)throw new TypeError("Invalid composite mode "+o+".")}else o="easing"==i?e.normalizeEasing(o):""+o;r(i,o,n)}return null==n.offset&&(n.offset=null),null==n.easing&&(n.easing="linear"),n})),o=!0,a=-1/0,s=0;s<n.length;s++){var u=n[s].offset;if(null!=u){if(u<a)throw new TypeError("Keyframes are not loosely sorted by offset. Sort or specify offsets.");a=u}else o=!1}return n=n.filter((function(e){return e.offset>=0&&e.offset<=1})),o||function(){var e=n.length;null==n[e-1].offset&&(n[e-1].offset=1),e>1&&null==n[0].offset&&(n[0].offset=0);for(var t=0,r=n[0].offset,i=1;i<e;i++){var o=n[i].offset;if(null!=o){for(var a=1;a<i-t;a++)n[t+a].offset=r+(o-r)*a/(i-t);t=i,r=o}}}(),n}}(n),function(e){var t={};e.isDeprecated=function(e,n,r,i){var o=i?"are":"is",a=new Date,s=new Date(n);return s.setMonth(s.getMonth()+3),!(a<s&&(e in t||console.warn("Web Animations: "+e+" "+o+" deprecated and will stop working on "+s.toDateString()+". "+r),t[e]=!0,1))},e.deprecated=function(t,n,r,i){var o=i?"are":"is";if(e.isDeprecated(t,n,r,i))throw new Error(t+" "+o+" no longer supported. "+r)}}(n),function(){if(document.documentElement.animate){var e=document.documentElement.animate([],0),t=!0;if(e&&(t=!1,"play|currentTime|pause|reverse|playbackRate|cancel|finish|startTime|playState".split("|").forEach((function(n){void 0===e[n]&&(t=!0)}))),!t)return}!function(e,t,n){t.convertEffectInput=function(n){var r=function(e){for(var t={},n=0;n<e.length;n++)for(var r in e[n])if("offset"!=r&&"easing"!=r&&"composite"!=r){var i={offset:e[n].offset,easing:e[n].easing,value:e[n][r]};t[r]=t[r]||[],t[r].push(i)}for(var o in t){var a=t[o];if(0!=a[0].offset||1!=a[a.length-1].offset)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"Partial keyframes are not supported"}}return t}(e.normalizeKeyframes(n)),i=function(n){var r=[];for(var i in n)for(var o=n[i],a=0;a<o.length-1;a++){var s=a,u=a+1,l=o[s].offset,c=o[u].offset,f=l,d=c;0==a&&(f=-1/0,0==c&&(u=s)),a==o.length-2&&(d=1/0,1==l&&(s=u)),r.push({applyFrom:f,applyTo:d,startOffset:o[s].offset,endOffset:o[u].offset,easingFunction:e.parseEasingFunction(o[s].easing),property:i,interpolation:t.propertyInterpolation(i,o[s].value,o[u].value)})}return r.sort((function(e,t){return e.startOffset-t.startOffset})),r}(r);return function(e,n){if(null!=n)i.filter((function(e){return n>=e.applyFrom&&n<e.applyTo})).forEach((function(r){var i=n-r.startOffset,o=r.endOffset-r.startOffset,a=0==o?0:r.easingFunction(i/o);t.apply(e,r.property,r.interpolation(a))}));else for(var o in r)"offset"!=o&&"easing"!=o&&"composite"!=o&&t.clear(e,o)}}}(n,r),function(e,t,n){function r(e){return e.replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}function i(e,t,n){o[n]=o[n]||[],o[n].push([e,t])}var o={};t.addPropertiesHandler=function(e,t,n){for(var o=0;o<n.length;o++)i(e,t,r(n[o]))};var a={backgroundColor:"transparent",backgroundPosition:"0% 0%",borderBottomColor:"currentColor",borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px",borderBottomWidth:"3px",borderLeftColor:"currentColor",borderLeftWidth:"3px",borderRightColor:"currentColor",borderRightWidth:"3px",borderSpacing:"2px",borderTopColor:"currentColor",borderTopLeftRadius:"0px",borderTopRightRadius:"0px",borderTopWidth:"3px",bottom:"auto",clip:"rect(0px, 0px, 0px, 0px)",color:"black",fontSize:"100%",fontWeight:"400",height:"auto",left:"auto",letterSpacing:"normal",lineHeight:"120%",marginBottom:"0px",marginLeft:"0px",marginRight:"0px",marginTop:"0px",maxHeight:"none",maxWidth:"none",minHeight:"0px",minWidth:"0px",opacity:"1.0",outlineColor:"invert",outlineOffset:"0px",outlineWidth:"3px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",paddingTop:"0px",right:"auto",strokeDasharray:"none",strokeDashoffset:"0px",textIndent:"0px",textShadow:"0px 0px 0px transparent",top:"auto",transform:"",verticalAlign:"0px",visibility:"visible",width:"auto",wordSpacing:"normal",zIndex:"auto"};t.propertyInterpolation=function(n,i,s){var u=n;/-/.test(n)&&!e.isDeprecated("Hyphenated property names","2016-03-22","Use camelCase instead.",!0)&&(u=r(n)),"initial"!=i&&"initial"!=s||("initial"==i&&(i=a[u]),"initial"==s&&(s=a[u]));for(var l=i==s?[]:o[u],c=0;l&&c<l.length;c++){var f=l[c][0](i),d=l[c][0](s);if(void 0!==f&&void 0!==d){var h=l[c][1](f,d);if(h){var p=t.Interpolation.apply(null,h);return function(e){return 0==e?i:1==e?s:p(e)}}}}return t.Interpolation(!1,!0,(function(e){return e?s:i}))}}(n,r),function(e,t,n){t.KeyframeEffect=function(n,r,i,o){var a,s=function(t){var n=e.calculateActiveDuration(t),r=function(r){return e.calculateIterationProgress(n,r,t)};return r._totalDuration=t.delay+n+t.endDelay,r}(e.normalizeTimingInput(i)),u=t.convertEffectInput(r),l=function(){u(n,a)};return l._update=function(e){return null!==(a=s(e))},l._clear=function(){u(n,null)},l._hasSameTarget=function(e){return n===e},l._target=n,l._totalDuration=s._totalDuration,l._id=o,l}}(n,r),function(e,t){function n(e,t,n){n.enumerable=!0,n.configurable=!0,Object.defineProperty(e,t,n)}function r(e){this._element=e,this._surrogateStyle=document.createElementNS("http://www.w3.org/1999/xhtml","div").style,this._style=e.style,this._length=0,this._isAnimatedProperty={},this._updateSvgTransformAttr=function(e,t){return!(!t.namespaceURI||-1==t.namespaceURI.indexOf("/svg"))&&(o in e||(e[o]=/Trident|MSIE|IEMobile|Edge|Android 4/i.test(e.navigator.userAgent)),e[o])}(window,e),this._savedTransformAttr=null;for(var t=0;t<this._style.length;t++){var n=this._style[t];this._surrogateStyle[n]=this._style[n]}this._updateIndices()}function i(e){if(!e._webAnimationsPatchedStyle){var t=new r(e);try{n(e,"style",{get:function(){return t}})}catch(t){e.style._set=function(t,n){e.style[t]=n},e.style._clear=function(t){e.style[t]=""}}e._webAnimationsPatchedStyle=e.style}}var o="_webAnimationsUpdateSvgTransformAttr",a={cssText:1,length:1,parentRule:1},s={getPropertyCSSValue:1,getPropertyPriority:1,getPropertyValue:1,item:1,removeProperty:1,setProperty:1},u={removeProperty:1,setProperty:1};for(var l in r.prototype={get cssText(){return this._surrogateStyle.cssText},set cssText(e){for(var t={},n=0;n<this._surrogateStyle.length;n++)t[this._surrogateStyle[n]]=!0;for(this._surrogateStyle.cssText=e,this._updateIndices(),n=0;n<this._surrogateStyle.length;n++)t[this._surrogateStyle[n]]=!0;for(var r in t)this._isAnimatedProperty[r]||this._style.setProperty(r,this._surrogateStyle.getPropertyValue(r))},get length(){return this._surrogateStyle.length},get parentRule(){return this._style.parentRule},_updateIndices:function(){for(;this._length<this._surrogateStyle.length;)Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,get:function(e){return function(){return this._surrogateStyle[e]}}(this._length)}),this._length++;for(;this._length>this._surrogateStyle.length;)this._length--,Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,value:void 0})},_set:function(t,n){this._style[t]=n,this._isAnimatedProperty[t]=!0,this._updateSvgTransformAttr&&"transform"==e.unprefixedPropertyName(t)&&(null==this._savedTransformAttr&&(this._savedTransformAttr=this._element.getAttribute("transform")),this._element.setAttribute("transform",e.transformToSvgMatrix(n)))},_clear:function(t){this._style[t]=this._surrogateStyle[t],this._updateSvgTransformAttr&&"transform"==e.unprefixedPropertyName(t)&&(this._savedTransformAttr?this._element.setAttribute("transform",this._savedTransformAttr):this._element.removeAttribute("transform"),this._savedTransformAttr=null),delete this._isAnimatedProperty[t]}},s)r.prototype[l]=function(e,t){return function(){var n=this._surrogateStyle[e].apply(this._surrogateStyle,arguments);return t&&(this._isAnimatedProperty[arguments[0]]||this._style[e].apply(this._style,arguments),this._updateIndices()),n}}(l,l in u);for(var c in document.documentElement.style)c in a||c in s||function(e){n(r.prototype,e,{get:function(){return this._surrogateStyle[e]},set:function(t){this._surrogateStyle[e]=t,this._updateIndices(),this._isAnimatedProperty&&!this._isAnimatedProperty[e]&&(this._style[e]=t)}})}(c);e.apply=function(t,n,r){i(t),t.style._set(e.propertyName(n),r)},e.clear=function(t,n){t._webAnimationsPatchedStyle&&t.style._clear(e.propertyName(n))}}(r),function(e){window.Element.prototype.animate=function(t,n){var r="";return n&&n.id&&(r=n.id),e.timeline._play(e.KeyframeEffect(this,t,n,r))}}(r),function(e,t){function n(e,t,r){if("number"==typeof e&&"number"==typeof t)return e*(1-r)+t*r;if("boolean"==typeof e&&"boolean"==typeof t)return r<.5?e:t;if(e.length==t.length){for(var i=[],o=0;o<e.length;o++)i.push(n(e[o],t[o],r));return i}throw"Mismatched interpolation arguments "+e+":"+t}e.Interpolation=function(e,t,r){return function(i){return r(n(e,t,i))}}}(r),function(e,t){var n=function(){function e(e,t){for(var n=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],r=0;r<4;r++)for(var i=0;i<4;i++)for(var o=0;o<4;o++)n[r][i]+=t[r][o]*e[o][i];return n}return function(t,n,r,i,o){for(var a=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],s=0;s<4;s++)a[s][3]=o[s];for(s=0;s<3;s++)for(var u=0;u<3;u++)a[3][s]+=t[u]*a[u][s];var l=i[0],c=i[1],f=i[2],d=i[3],h=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];h[0][0]=1-2*(c*c+f*f),h[0][1]=2*(l*c-f*d),h[0][2]=2*(l*f+c*d),h[1][0]=2*(l*c+f*d),h[1][1]=1-2*(l*l+f*f),h[1][2]=2*(c*f-l*d),h[2][0]=2*(l*f-c*d),h[2][1]=2*(c*f+l*d),h[2][2]=1-2*(l*l+c*c),a=e(a,h);var p=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];for(r[2]&&(p[2][1]=r[2],a=e(a,p)),r[1]&&(p[2][1]=0,p[2][0]=r[0],a=e(a,p)),r[0]&&(p[2][0]=0,p[1][0]=r[0],a=e(a,p)),s=0;s<3;s++)for(u=0;u<3;u++)a[s][u]*=n[s];return function(e){return 0==e[0][2]&&0==e[0][3]&&0==e[1][2]&&0==e[1][3]&&0==e[2][0]&&0==e[2][1]&&1==e[2][2]&&0==e[2][3]&&0==e[3][2]&&1==e[3][3]}(a)?[a[0][0],a[0][1],a[1][0],a[1][1],a[3][0],a[3][1]]:a[0].concat(a[1],a[2],a[3])}}();e.composeMatrix=n,e.quat=function(t,n,r){var i=e.dot(t,n);i=function(e,t,n){return Math.max(Math.min(e,n),t)}(i,-1,1);var o=[];if(1===i)o=t;else for(var a=Math.acos(i),s=1*Math.sin(r*a)/Math.sqrt(1-i*i),u=0;u<4;u++)o.push(t[u]*(Math.cos(r*a)-i*s)+n[u]*s);return o}}(r),function(e,t,n){e.sequenceNumber=0;var r=function(e,t,n){this.target=e,this.currentTime=t,this.timelineTime=n,this.type="finish",this.bubbles=!1,this.cancelable=!1,this.currentTarget=e,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()};t.Animation=function(t){this.id="",t&&t._id&&(this.id=t._id),this._sequenceNumber=e.sequenceNumber++,this._currentTime=0,this._startTime=null,this._paused=!1,this._playbackRate=1,this._inTimeline=!0,this._finishedFlag=!0,this.onfinish=null,this._finishHandlers=[],this._effect=t,this._inEffect=this._effect._update(0),this._idle=!0,this._currentTimePending=!1},t.Animation.prototype={_ensureAlive:function(){this.playbackRate<0&&0===this.currentTime?this._inEffect=this._effect._update(-1):this._inEffect=this._effect._update(this.currentTime),this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline=!0,t.timeline._animations.push(this))},_tickCurrentTime:function(e,t){e!=this._currentTime&&(this._currentTime=e,this._isFinished&&!t&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(e){e=+e,isNaN(e)||(t.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-e/this._playbackRate),this._currentTimePending=!1,this._currentTime!=e&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(e,!0),t.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(e){e=+e,isNaN(e)||this._paused||this._idle||(this._startTime=e,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),t.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(e){if(e!=this._playbackRate){var n=this.currentTime;this._playbackRate=e,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),t.applyDirtiedAnimation(this)),null!=n&&(this.currentTime=n)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished":"running"},_rewind:function(){if(this._playbackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to rewind negative playback rate animation with infinite duration","InvalidStateError");this._currentTime=this._totalDuration}},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),t.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0,this._startTime=null,this._paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1,t.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),t.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(e,t){"function"==typeof t&&"finish"==e&&this._finishHandlers.push(t)},removeEventListener:function(e,t){if("finish"==e){var n=this._finishHandlers.indexOf(t);n>=0&&this._finishHandlers.splice(n,1)}},_fireEvents:function(e){if(this._isFinished){if(!this._finishedFlag){var t=new r(this,this._currentTime,e),n=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout((function(){n.forEach((function(e){e.call(t.target,t)}))}),0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(e,t){this._idle||this._paused||(null==this._startTime?t&&(this.startTime=e-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((e-this._startTime)*this.playbackRate)),t&&(this._currentTimePending=!1,this._fireEvents(e))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var e=this._effect._target;return e._activeAnimations||(e._activeAnimations=[]),e._activeAnimations},_markTarget:function(){var e=this._targetAnimations();-1===e.indexOf(this)&&e.push(this)},_unmarkTarget:function(){var e=this._targetAnimations(),t=e.indexOf(this);-1!==t&&e.splice(t,1)}}}(n,r),function(e,t,n){function r(e){var t=l;l=[],e<m.currentTime&&(e=m.currentTime),m._animations.sort(i),m._animations=s(e,!0,m._animations)[0],t.forEach((function(t){t[1](e)})),a()}function i(e,t){return e._sequenceNumber-t._sequenceNumber}function o(){this._animations=[],this.currentTime=window.performance&&performance.now?performance.now():0}function a(){h.forEach((function(e){e()})),h.length=0}function s(e,n,r){p=!0,d=!1,t.timeline.currentTime=e,f=!1;var i=[],o=[],a=[],s=[];return r.forEach((function(t){t._tick(e,n),t._inEffect?(o.push(t._effect),t._markTarget()):(i.push(t._effect),t._unmarkTarget()),t._needsTick&&(f=!0);var r=t._inEffect||t._needsTick;t._inTimeline=r,r?a.push(t):s.push(t)})),h.push.apply(h,i),h.push.apply(h,o),f&&requestAnimationFrame((function(){})),p=!1,[a,s]}var u=window.requestAnimationFrame,l=[],c=0;window.requestAnimationFrame=function(e){var t=c++;return 0==l.length&&u(r),l.push([t,e]),t},window.cancelAnimationFrame=function(e){l.forEach((function(t){t[0]==e&&(t[1]=function(){})}))},o.prototype={_play:function(n){n._timing=e.normalizeTimingInput(n.timing);var r=new t.Animation(n);return r._idle=!1,r._timeline=this,this._animations.push(r),t.restart(),t.applyDirtiedAnimation(r),r}};var f=!1,d=!1;t.restart=function(){return f||(f=!0,requestAnimationFrame((function(){})),d=!0),d},t.applyDirtiedAnimation=function(e){if(!p){e._markTarget();var n=e._targetAnimations();n.sort(i),s(t.timeline.currentTime,!1,n.slice())[1].forEach((function(e){var t=m._animations.indexOf(e);-1!==t&&m._animations.splice(t,1)})),a()}};var h=[],p=!1,m=new o;t.timeline=m}(n,r),function(e,t){function n(e,t){for(var n=0,r=0;r<e.length;r++)n+=e[r]*t[r];return n}function r(e,t){return[e[0]*t[0]+e[4]*t[1]+e[8]*t[2]+e[12]*t[3],e[1]*t[0]+e[5]*t[1]+e[9]*t[2]+e[13]*t[3],e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]*t[3],e[3]*t[0]+e[7]*t[1]+e[11]*t[2]+e[15]*t[3],e[0]*t[4]+e[4]*t[5]+e[8]*t[6]+e[12]*t[7],e[1]*t[4]+e[5]*t[5]+e[9]*t[6]+e[13]*t[7],e[2]*t[4]+e[6]*t[5]+e[10]*t[6]+e[14]*t[7],e[3]*t[4]+e[7]*t[5]+e[11]*t[6]+e[15]*t[7],e[0]*t[8]+e[4]*t[9]+e[8]*t[10]+e[12]*t[11],e[1]*t[8]+e[5]*t[9]+e[9]*t[10]+e[13]*t[11],e[2]*t[8]+e[6]*t[9]+e[10]*t[10]+e[14]*t[11],e[3]*t[8]+e[7]*t[9]+e[11]*t[10]+e[15]*t[11],e[0]*t[12]+e[4]*t[13]+e[8]*t[14]+e[12]*t[15],e[1]*t[12]+e[5]*t[13]+e[9]*t[14]+e[13]*t[15],e[2]*t[12]+e[6]*t[13]+e[10]*t[14]+e[14]*t[15],e[3]*t[12]+e[7]*t[13]+e[11]*t[14]+e[15]*t[15]]}function i(e){var t=e.rad||0;return((e.deg||0)/360+(e.grad||0)/400+(e.turn||0))*(2*Math.PI)+t}function o(e){switch(e.t){case"rotatex":var t=i(e.d[0]);return[1,0,0,0,0,Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1];case"rotatey":return t=i(e.d[0]),[Math.cos(t),0,-Math.sin(t),0,0,1,0,0,Math.sin(t),0,Math.cos(t),0,0,0,0,1];case"rotate":case"rotatez":return t=i(e.d[0]),[Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1,0,0,0,0,1];case"rotate3d":var n=e.d[0],r=e.d[1],o=e.d[2],a=(t=i(e.d[3]),n*n+r*r+o*o);if(0===a)n=1,r=0,o=0;else if(1!==a){var s=Math.sqrt(a);n/=s,r/=s,o/=s}var u=Math.sin(t/2),l=u*Math.cos(t/2),c=u*u;return[1-2*(r*r+o*o)*c,2*(n*r*c+o*l),2*(n*o*c-r*l),0,2*(n*r*c-o*l),1-2*(n*n+o*o)*c,2*(r*o*c+n*l),0,2*(n*o*c+r*l),2*(r*o*c-n*l),1-2*(n*n+r*r)*c,0,0,0,0,1];case"scale":return[e.d[0],0,0,0,0,e.d[1],0,0,0,0,1,0,0,0,0,1];case"scalex":return[e.d[0],0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"scaley":return[1,0,0,0,0,e.d[0],0,0,0,0,1,0,0,0,0,1];case"scalez":return[1,0,0,0,0,1,0,0,0,0,e.d[0],0,0,0,0,1];case"scale3d":return[e.d[0],0,0,0,0,e.d[1],0,0,0,0,e.d[2],0,0,0,0,1];case"skew":var f=i(e.d[0]),d=i(e.d[1]);return[1,Math.tan(d),0,0,Math.tan(f),1,0,0,0,0,1,0,0,0,0,1];case"skewx":return t=i(e.d[0]),[1,0,0,0,Math.tan(t),1,0,0,0,0,1,0,0,0,0,1];case"skewy":return t=i(e.d[0]),[1,Math.tan(t),0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"translate":return[1,0,0,0,0,1,0,0,0,0,1,0,n=e.d[0].px||0,r=e.d[1].px||0,0,1];case"translatex":return[1,0,0,0,0,1,0,0,0,0,1,0,n=e.d[0].px||0,0,0,1];case"translatey":return[1,0,0,0,0,1,0,0,0,0,1,0,0,r=e.d[0].px||0,0,1];case"translatez":return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,o=e.d[0].px||0,1];case"translate3d":return[1,0,0,0,0,1,0,0,0,0,1,0,n=e.d[0].px||0,r=e.d[1].px||0,o=e.d[2].px||0,1];case"perspective":return[1,0,0,0,0,1,0,0,0,0,1,e.d[0].px?-1/e.d[0].px:0,0,0,0,1];case"matrix":return[e.d[0],e.d[1],0,0,e.d[2],e.d[3],0,0,0,0,1,0,e.d[4],e.d[5],0,1];case"matrix3d":return e.d}}function a(e){return 0===e.length?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:e.map(o).reduce(r)}var s=function(){function e(e){return e[0][0]*e[1][1]*e[2][2]+e[1][0]*e[2][1]*e[0][2]+e[2][0]*e[0][1]*e[1][2]-e[0][2]*e[1][1]*e[2][0]-e[1][2]*e[2][1]*e[0][0]-e[2][2]*e[0][1]*e[1][0]}function t(e){var t=r(e);return[e[0]/t,e[1]/t,e[2]/t]}function r(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2])}function i(e,t,n,r){return[n*e[0]+r*t[0],n*e[1]+r*t[1],n*e[2]+r*t[2]]}return function(o){var a=[o.slice(0,4),o.slice(4,8),o.slice(8,12),o.slice(12,16)];if(1!==a[3][3])return null;for(var s=[],u=0;u<4;u++)s.push(a[u].slice());for(u=0;u<3;u++)s[u][3]=0;if(0===e(s))return null;var l,c=[];a[0][3]||a[1][3]||a[2][3]?(c.push(a[0][3]),c.push(a[1][3]),c.push(a[2][3]),c.push(a[3][3]),l=function(e,t){for(var n=[],r=0;r<4;r++){for(var i=0,o=0;o<4;o++)i+=e[o]*t[o][r];n.push(i)}return n}(c,function(e){return[[e[0][0],e[1][0],e[2][0],e[3][0]],[e[0][1],e[1][1],e[2][1],e[3][1]],[e[0][2],e[1][2],e[2][2],e[3][2]],[e[0][3],e[1][3],e[2][3],e[3][3]]]}(function(t){for(var n=1/e(t),r=t[0][0],i=t[0][1],o=t[0][2],a=t[1][0],s=t[1][1],u=t[1][2],l=t[2][0],c=t[2][1],f=t[2][2],d=[[(s*f-u*c)*n,(o*c-i*f)*n,(i*u-o*s)*n,0],[(u*l-a*f)*n,(r*f-o*l)*n,(o*a-r*u)*n,0],[(a*c-s*l)*n,(l*i-r*c)*n,(r*s-i*a)*n,0]],h=[],p=0;p<3;p++){for(var m=0,g=0;g<3;g++)m+=t[3][g]*d[g][p];h.push(m)}return h.push(1),d.push(h),d}(s)))):l=[0,0,0,1];var f=a[3].slice(0,3),d=[];d.push(a[0].slice(0,3));var h=[];h.push(r(d[0])),d[0]=t(d[0]);var p=[];d.push(a[1].slice(0,3)),p.push(n(d[0],d[1])),d[1]=i(d[1],d[0],1,-p[0]),h.push(r(d[1])),d[1]=t(d[1]),p[0]/=h[1],d.push(a[2].slice(0,3)),p.push(n(d[0],d[2])),d[2]=i(d[2],d[0],1,-p[1]),p.push(n(d[1],d[2])),d[2]=i(d[2],d[1],1,-p[2]),h.push(r(d[2])),d[2]=t(d[2]),p[1]/=h[2],p[2]/=h[2];var m=function(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}(d[1],d[2]);if(n(d[0],m)<0)for(u=0;u<3;u++)h[u]*=-1,d[u][0]*=-1,d[u][1]*=-1,d[u][2]*=-1;var g,v,y=d[0][0]+d[1][1]+d[2][2]+1;return y>1e-4?(g=.5/Math.sqrt(y),v=[(d[2][1]-d[1][2])*g,(d[0][2]-d[2][0])*g,(d[1][0]-d[0][1])*g,.25/g]):d[0][0]>d[1][1]&&d[0][0]>d[2][2]?v=[.25*(g=2*Math.sqrt(1+d[0][0]-d[1][1]-d[2][2])),(d[0][1]+d[1][0])/g,(d[0][2]+d[2][0])/g,(d[2][1]-d[1][2])/g]:d[1][1]>d[2][2]?(g=2*Math.sqrt(1+d[1][1]-d[0][0]-d[2][2]),v=[(d[0][1]+d[1][0])/g,.25*g,(d[1][2]+d[2][1])/g,(d[0][2]-d[2][0])/g]):(g=2*Math.sqrt(1+d[2][2]-d[0][0]-d[1][1]),v=[(d[0][2]+d[2][0])/g,(d[1][2]+d[2][1])/g,.25*g,(d[1][0]-d[0][1])/g]),[f,h,p,v,l]}}();e.dot=n,e.makeMatrixDecomposition=function(e){return[s(a(e))]},e.transformListToMatrix=a}(r),function(e){function t(e,t){var n=e.exec(t);if(n)return[n=e.ignoreCase?n[0].toLowerCase():n[0],t.substr(n.length)]}function n(e,t){var n=e(t=t.replace(/^\s*/,""));if(n)return[n[0],n[1].replace(/^\s*/,"")]}function r(e,t,n,r,i){for(var o=[],a=[],s=[],u=function(e,t){for(var n=e,r=t;n&&r;)n>r?n%=r:r%=n;return e*t/(n+r)}(r.length,i.length),l=0;l<u;l++){var c=t(r[l%r.length],i[l%i.length]);if(!c)return;o.push(c[0]),a.push(c[1]),s.push(c[2])}return[o,a,function(t){var r=t.map((function(e,t){return s[t](e)})).join(n);return e?e(r):r}]}e.consumeToken=t,e.consumeTrimmed=n,e.consumeRepeated=function(e,r,i){e=n.bind(null,e);for(var o=[];;){var a=e(i);if(!a)return[o,i];if(o.push(a[0]),!(a=t(r,i=a[1]))||""==a[1])return[o,i];i=a[1]}},e.consumeParenthesised=function(e,t){for(var n=0,r=0;r<t.length&&(!/\s|,/.test(t[r])||0!=n);r++)if("("==t[r])n++;else if(")"==t[r]&&(0==--n&&r++,n<=0))break;var i=e(t.substr(0,r));return null==i?void 0:[i,t.substr(r)]},e.ignore=function(e){return function(t){var n=e(t);return n&&(n[0]=void 0),n}},e.optional=function(e,t){return function(n){return e(n)||[t,n]}},e.consumeList=function(t,n){for(var r=[],i=0;i<t.length;i++){var o=e.consumeTrimmed(t[i],n);if(!o||""==o[0])return;void 0!==o[0]&&r.push(o[0]),n=o[1]}if(""==n)return r},e.mergeNestedRepeated=r.bind(null,null),e.mergeWrappedNestedRepeated=r,e.mergeList=function(e,t,n){for(var r=[],i=[],o=[],a=0,s=0;s<n.length;s++)if("function"==typeof n[s]){var u=n[s](e[a],t[a++]);r.push(u[0]),i.push(u[1]),o.push(u[2])}else!function(e){r.push(!1),i.push(!1),o.push((function(){return n[e]}))}(s);return[r,i,function(e){for(var t="",n=0;n<e.length;n++)t+=o[n](e[n]);return t}]}}(r),function(e){function t(t){var n={inset:!1,lengths:[],color:null},r=e.consumeRepeated((function(t){var r=e.consumeToken(/^inset/i,t);return r?(n.inset=!0,r):(r=e.consumeLengthOrPercent(t))?(n.lengths.push(r[0]),r):(r=e.consumeColor(t))?(n.color=r[0],r):void 0}),/^/,t);if(r&&r[0].length)return[n,r[1]]}var n=function(t,n,r,i){function o(e){return{inset:e,color:[0,0,0,0],lengths:[{px:0},{px:0},{px:0},{px:0}]}}for(var a=[],s=[],u=0;u<r.length||u<i.length;u++){var l=r[u]||o(i[u].inset),c=i[u]||o(r[u].inset);a.push(l),s.push(c)}return e.mergeNestedRepeated(t,n,a,s)}.bind(null,(function(t,n){for(;t.lengths.length<Math.max(t.lengths.length,n.lengths.length);)t.lengths.push({px:0});for(;n.lengths.length<Math.max(t.lengths.length,n.lengths.length);)n.lengths.push({px:0});if(t.inset==n.inset&&!!t.color==!!n.color){for(var r,i=[],o=[[],0],a=[[],0],s=0;s<t.lengths.length;s++){var u=e.mergeDimensions(t.lengths[s],n.lengths[s],2==s);o[0].push(u[0]),a[0].push(u[1]),i.push(u[2])}if(t.color&&n.color){var l=e.mergeColors(t.color,n.color);o[1]=l[0],a[1]=l[1],r=l[2]}return[o,a,function(e){for(var n=t.inset?"inset ":" ",o=0;o<i.length;o++)n+=i[o](e[0][o])+" ";return r&&(n+=r(e[1])),n}]}}),", ");e.addPropertiesHandler((function(n){var r=e.consumeRepeated(t,/^,/,n);if(r&&""==r[1])return r[0]}),n,["box-shadow","text-shadow"])}(r),function(e,t){function n(e){return e.toFixed(3).replace(/0+$/,"").replace(/\.$/,"")}function r(e,t,n){return Math.min(t,Math.max(e,n))}function i(e){if(/^\s*[-+]?(\d*\.)?\d+\s*$/.test(e))return Number(e)}function o(e,t){return function(i,o){return[i,o,function(i){return n(r(e,t,i))}]}}function a(e){var t=e.trim().split(/\s*[\s,]\s*/);if(0!==t.length){for(var n=[],r=0;r<t.length;r++){var o=i(t[r]);if(void 0===o)return;n.push(o)}return n}}e.clamp=r,e.addPropertiesHandler(a,(function(e,t){if(e.length==t.length)return[e,t,function(e){return e.map(n).join(" ")}]}),["stroke-dasharray"]),e.addPropertiesHandler(i,o(0,1/0),["border-image-width","line-height"]),e.addPropertiesHandler(i,o(0,1),["opacity","shape-image-threshold"]),e.addPropertiesHandler(i,(function(e,t){if(0!=e)return o(0,1/0)(e,t)}),["flex-grow","flex-shrink"]),e.addPropertiesHandler(i,(function(e,t){return[e,t,function(e){return Math.round(r(1,1/0,e))}]}),["orphans","widows"]),e.addPropertiesHandler(i,(function(e,t){return[e,t,Math.round]}),["z-index"]),e.parseNumber=i,e.parseNumberList=a,e.mergeNumbers=function(e,t){return[e,t,n]},e.numberToString=n}(r),function(e,t){e.addPropertiesHandler(String,(function(e,t){if("visible"==e||"visible"==t)return[0,1,function(n){return n<=0?e:n>=1?t:"visible"}]}),["visibility"])}(r),function(e,t){function n(e){e=e.trim(),o.fillStyle="#000",o.fillStyle=e;var t=o.fillStyle;if(o.fillStyle="#fff",o.fillStyle=e,t==o.fillStyle){o.fillRect(0,0,1,1);var n=o.getImageData(0,0,1,1).data;o.clearRect(0,0,1,1);var r=n[3]/255;return[n[0]*r,n[1]*r,n[2]*r,r]}}function r(t,n){return[t,n,function(t){function n(e){return Math.max(0,Math.min(255,e))}if(t[3])for(var r=0;r<3;r++)t[r]=Math.round(n(t[r]/t[3]));return t[3]=e.numberToString(e.clamp(0,1,t[3])),"rgba("+t.join(",")+")"}]}var i=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");i.width=i.height=1;var o=i.getContext("2d");e.addPropertiesHandler(n,r,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","fill","flood-color","lighting-color","outline-color","stop-color","stroke","text-decoration-color"]),e.consumeColor=e.consumeParenthesised.bind(null,n),e.mergeColors=r}(r),function(e,t){function n(e){function t(){var t=a.exec(e);o=t?t[0]:void 0}function n(){if("("!==o)return function(){var e=Number(o);return t(),e}();t();var e=i();return")"!==o?NaN:(t(),e)}function r(){for(var e=n();"*"===o||"/"===o;){var r=o;t();var i=n();"*"===r?e*=i:e/=i}return e}function i(){for(var e=r();"+"===o||"-"===o;){var n=o;t();var i=r();"+"===n?e+=i:e-=i}return e}var o,a=/([\+\-\w\.]+|[\(\)\*\/])/g;return t(),i()}function r(e,t){if("0"==(t=t.trim().toLowerCase())&&"px".search(e)>=0)return{px:0};if(/^[^(]*$|^calc/.test(t)){t=t.replace(/calc\(/g,"(");var r={};t=t.replace(e,(function(e){return r[e]=null,"U"+e}));for(var i="U("+e.source+")",o=t.replace(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+i,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),a=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],s=0;s<a.length;)a[s].test(o)?(o=o.replace(a[s],"$1"),s=0):s++;if("D"==o){for(var u in r){var l=n(t.replace(new RegExp("U"+u,"g"),"").replace(new RegExp(i,"g"),"*0"));if(!isFinite(l))return;r[u]=l}return r}}}function i(e,t){return o(e,t,!0)}function o(t,n,r){var i,o=[];for(i in t)o.push(i);for(i in n)o.indexOf(i)<0&&o.push(i);return t=o.map((function(e){return t[e]||0})),n=o.map((function(e){return n[e]||0})),[t,n,function(t){var n=t.map((function(n,i){return 1==t.length&&r&&(n=Math.max(n,0)),e.numberToString(n)+o[i]})).join(" + ");return t.length>1?"calc("+n+")":n}]}var a="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",s=r.bind(null,new RegExp(a,"g")),u=r.bind(null,new RegExp(a+"|%","g")),l=r.bind(null,/deg|rad|grad|turn/g);e.parseLength=s,e.parseLengthOrPercent=u,e.consumeLengthOrPercent=e.consumeParenthesised.bind(null,u),e.parseAngle=l,e.mergeDimensions=o;var c=e.consumeParenthesised.bind(null,s),f=e.consumeRepeated.bind(void 0,c,/^/),d=e.consumeRepeated.bind(void 0,f,/^,/);e.consumeSizePairList=d;var h=e.mergeNestedRepeated.bind(void 0,i," "),p=e.mergeNestedRepeated.bind(void 0,h,",");e.mergeNonNegativeSizePair=h,e.addPropertiesHandler((function(e){var t=d(e);if(t&&""==t[1])return t[0]}),p,["background-size"]),e.addPropertiesHandler(u,i,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),e.addPropertiesHandler(u,o,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","stroke-dashoffset","text-indent","top","vertical-align","word-spacing"])}(r),function(e,t){function n(t){return e.consumeLengthOrPercent(t)||e.consumeToken(/^auto/,t)}function r(t){var r=e.consumeList([e.ignore(e.consumeToken.bind(null,/^rect/)),e.ignore(e.consumeToken.bind(null,/^\(/)),e.consumeRepeated.bind(null,n,/^,/),e.ignore(e.consumeToken.bind(null,/^\)/))],t);if(r&&4==r[0].length)return r[0]}var i=e.mergeWrappedNestedRepeated.bind(null,(function(e){return"rect("+e+")"}),(function(t,n){return"auto"==t||"auto"==n?[!0,!1,function(r){var i=r?t:n;if("auto"==i)return"auto";var o=e.mergeDimensions(i,i);return o[2](o[0])}]:e.mergeDimensions(t,n)}),", ");e.parseBox=r,e.mergeBoxes=i,e.addPropertiesHandler(r,i,["clip"])}(r),function(e,t){function n(e){return function(t){var n=0;return e.map((function(e){return e===l?t[n++]:e}))}}function r(e){return e}function i(t){if("none"==(t=t.toLowerCase().trim()))return[];for(var n,r=/\s*(\w+)\(([^)]*)\)/g,i=[],o=0;n=r.exec(t);){if(n.index!=o)return;o=n.index+n[0].length;var a=n[1],s=d[a];if(!s)return;var u=n[2].split(","),l=s[0];if(l.length<u.length)return;for(var h=[],p=0;p<l.length;p++){var m,g=u[p],v=l[p];if(void 0===(m=g?{A:function(t){return"0"==t.trim()?f:e.parseAngle(t)},N:e.parseNumber,T:e.parseLengthOrPercent,L:e.parseLength}[v.toUpperCase()](g):{a:f,n:h[0],t:c}[v]))return;h.push(m)}if(i.push({t:a,d:h}),r.lastIndex==t.length)return i}}function o(e){return e.toFixed(6).replace(".000000","")}function a(t,n){if(t.decompositionPair!==n){t.decompositionPair=n;var r=e.makeMatrixDecomposition(t)}if(n.decompositionPair!==t){n.decompositionPair=t;var i=e.makeMatrixDecomposition(n)}return null==r[0]||null==i[0]?[[!1],[!0],function(e){return e?n[0].d:t[0].d}]:(r[0].push(0),i[0].push(1),[r,i,function(t){var n=e.quat(r[0][3],i[0][3],t[5]);return e.composeMatrix(t[0],t[1],t[2],n,t[4]).map(o).join(",")}])}function s(e){return e.replace(/[xy]/,"")}function u(e){return e.replace(/(x|y|z|3d)?$/,"3d")}var l=null,c={px:0},f={deg:0},d={matrix:["NNNNNN",[l,l,0,0,l,l,0,0,0,0,1,0,l,l,0,1],r],matrix3d:["NNNNNNNNNNNNNNNN",r],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",n([l,l,1]),r],scalex:["N",n([l,1,1]),n([l,1])],scaley:["N",n([1,l,1]),n([1,l])],scalez:["N",n([1,1,l])],scale3d:["NNN",r],skew:["Aa",null,r],skewx:["A",null,n([l,f])],skewy:["A",null,n([f,l])],translate:["Tt",n([l,l,c]),r],translatex:["T",n([l,c,c]),n([l,c])],translatey:["T",n([c,l,c]),n([c,l])],translatez:["L",n([c,c,l])],translate3d:["TTL",r]};e.addPropertiesHandler(i,(function(t,n){var r=e.makeMatrixDecomposition&&!0,i=!1;if(!t.length||!n.length){t.length||(i=!0,t=n,n=[]);for(var o=0;o<t.length;o++){var l=t[o].t,c=t[o].d,f="scale"==l.substr(0,5)?1:0;n.push({t:l,d:c.map((function(e){if("number"==typeof e)return f;var t={};for(var n in e)t[n]=f;return t}))})}}var h=function(e,t){return"perspective"==e&&"perspective"==t||("matrix"==e||"matrix3d"==e)&&("matrix"==t||"matrix3d"==t)},p=[],m=[],g=[];if(t.length!=n.length){if(!r)return;p=[(E=a(t,n))[0]],m=[E[1]],g=[["matrix",[E[2]]]]}else for(o=0;o<t.length;o++){var v=t[o].t,y=n[o].t,b=t[o].d,_=n[o].d,T=d[v],x=d[y];if(h(v,y)){if(!r)return;var E=a([t[o]],[n[o]]);p.push(E[0]),m.push(E[1]),g.push(["matrix",[E[2]]])}else{if(v==y)l=v;else if(T[2]&&x[2]&&s(v)==s(y))l=s(v),b=T[2](b),_=x[2](_);else{if(!T[1]||!x[1]||u(v)!=u(y)){if(!r)return;p=[(E=a(t,n))[0]],m=[E[1]],g=[["matrix",[E[2]]]];break}l=u(v),b=T[1](b),_=x[1](_)}for(var w=[],k=[],S=[],N=0;N<b.length;N++)E=("number"==typeof b[N]?e.mergeNumbers:e.mergeDimensions)(b[N],_[N]),w[N]=E[0],k[N]=E[1],S.push(E[2]);p.push(w),m.push(k),g.push([l,S])}}if(i){var R=p;p=m,m=R}return[p,m,function(e){return e.map((function(e,t){var n=e.map((function(e,n){return g[t][1][n](e)})).join(",");return"matrix"==g[t][0]&&16==n.split(",").length&&(g[t][0]="matrix3d"),g[t][0]+"("+n+")"})).join(" ")}]}),["transform"]),e.transformToSvgMatrix=function(t){var n=e.transformListToMatrix(i(t));return"matrix("+o(n[0])+" "+o(n[1])+" "+o(n[4])+" "+o(n[5])+" "+o(n[12])+" "+o(n[13])+")"}}(r),function(e){function t(t){return t=100*Math.round(t/100),400===(t=e.clamp(100,900,t))?"normal":700===t?"bold":String(t)}e.addPropertiesHandler((function(e){var t=Number(e);if(!(isNaN(t)||t<100||t>900||t%100!=0))return t}),(function(e,n){return[e,n,t]}),["font-weight"])}(r),function(e){function t(e){var t={};for(var n in e)t[n]=-e[n];return t}function n(t){return e.consumeToken(/^(left|center|right|top|bottom)\b/i,t)||e.consumeLengthOrPercent(t)}function r(t,r){var i=e.consumeRepeated(n,/^/,r);if(i&&""==i[1]){var a=i[0];if(a[0]=a[0]||"center",a[1]=a[1]||"center",3==t&&(a[2]=a[2]||{px:0}),a.length==t){if(/top|bottom/.test(a[0])||/left|right/.test(a[1])){var s=a[0];a[0]=a[1],a[1]=s}if(/left|right|center|Object/.test(a[0])&&/top|bottom|center|Object/.test(a[1]))return a.map((function(e){return"object"==typeof e?e:o[e]}))}}}function i(r){var i=e.consumeRepeated(n,/^/,r);if(i){for(var a=i[0],s=[{"%":50},{"%":50}],u=0,l=!1,c=0;c<a.length;c++){var f=a[c];"string"==typeof f?(l=/bottom|right/.test(f),s[u={left:0,right:0,center:u,top:1,bottom:1}[f]]=o[f],"center"==f&&u++):(l&&((f=t(f))["%"]=(f["%"]||0)+100),s[u]=f,u++,l=!1)}return[s,i[1]]}}var o={left:{"%":0},center:{"%":50},right:{"%":100},top:{"%":0},bottom:{"%":100}},a=e.mergeNestedRepeated.bind(null,e.mergeDimensions," ");e.addPropertiesHandler(r.bind(null,3),a,["transform-origin"]),e.addPropertiesHandler(r.bind(null,2),a,["perspective-origin"]),e.consumePosition=i,e.mergeOffsetList=a;var s=e.mergeNestedRepeated.bind(null,a,", ");e.addPropertiesHandler((function(t){var n=e.consumeRepeated(i,/^,/,t);if(n&&""==n[1])return n[0]}),s,["background-position","object-position"])}(r),function(e){var t=e.consumeParenthesised.bind(null,e.parseLengthOrPercent),n=e.consumeRepeated.bind(void 0,t,/^/),r=e.mergeNestedRepeated.bind(void 0,e.mergeDimensions," "),i=e.mergeNestedRepeated.bind(void 0,r,",");e.addPropertiesHandler((function(r){var i=e.consumeToken(/^circle/,r);if(i&&i[0])return["circle"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),t,e.ignore(e.consumeToken.bind(void 0,/^at/)),e.consumePosition,e.ignore(e.consumeToken.bind(void 0,/^\)/))],i[1]));var o=e.consumeToken(/^ellipse/,r);if(o&&o[0])return["ellipse"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),n,e.ignore(e.consumeToken.bind(void 0,/^at/)),e.consumePosition,e.ignore(e.consumeToken.bind(void 0,/^\)/))],o[1]));var a=e.consumeToken(/^polygon/,r);return a&&a[0]?["polygon"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),e.optional(e.consumeToken.bind(void 0,/^nonzero\s*,|^evenodd\s*,/),"nonzero,"),e.consumeSizePairList,e.ignore(e.consumeToken.bind(void 0,/^\)/))],a[1])):void 0}),(function(t,n){if(t[0]===n[0])return"circle"==t[0]?e.mergeList(t.slice(1),n.slice(1),["circle(",e.mergeDimensions," at ",e.mergeOffsetList,")"]):"ellipse"==t[0]?e.mergeList(t.slice(1),n.slice(1),["ellipse(",e.mergeNonNegativeSizePair," at ",e.mergeOffsetList,")"]):"polygon"==t[0]&&t[1]==n[1]?e.mergeList(t.slice(2),n.slice(2),["polygon(",t[1],i,")"]):void 0}),["shape-outside"])}(r),function(e,t){function n(e,t){t.concat([e]).forEach((function(t){t in document.documentElement.style&&(r[e]=t),i[t]=e}))}var r={},i={};n("transform",["webkitTransform","msTransform"]),n("transformOrigin",["webkitTransformOrigin"]),n("perspective",["webkitPerspective"]),n("perspectiveOrigin",["webkitPerspectiveOrigin"]),e.propertyName=function(e){return r[e]||e},e.unprefixedPropertyName=function(e){return i[e]||e}}(r)}(),function(){if(void 0===document.createElement("div").animate([]).oncancel){if(window.performance&&performance.now)var e=function(){return performance.now()};else e=function(){return Date.now()};var t=function(e,t,n){this.target=e,this.currentTime=t,this.timelineTime=n,this.type="cancel",this.bubbles=!1,this.cancelable=!1,this.currentTarget=e,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()},n=window.Element.prototype.animate;window.Element.prototype.animate=function(r,i){var o=n.call(this,r,i);o._cancelHandlers=[],o.oncancel=null;var a=o.cancel;o.cancel=function(){a.call(this);var n=new t(this,null,e()),r=this._cancelHandlers.concat(this.oncancel?[this.oncancel]:[]);setTimeout((function(){r.forEach((function(e){e.call(n.target,n)}))}),0)};var s=o.addEventListener;o.addEventListener=function(e,t){"function"==typeof t&&"cancel"==e?this._cancelHandlers.push(t):s.call(this,e,t)};var u=o.removeEventListener;return o.removeEventListener=function(e,t){if("cancel"==e){var n=this._cancelHandlers.indexOf(t);n>=0&&this._cancelHandlers.splice(n,1)}else u.call(this,e,t)},o}}}(),function(e){var t=document.documentElement,n=null,r=!1;try{var i="0"==getComputedStyle(t).getPropertyValue("opacity")?"1":"0";(n=t.animate({opacity:[i,i]},{duration:1})).currentTime=0,r=getComputedStyle(t).getPropertyValue("opacity")==i}catch(e){}finally{n&&n.cancel()}if(!r){var o=window.Element.prototype.animate;window.Element.prototype.animate=function(t,n){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&t[Symbol.iterator]&&(t=Array.from(t)),Array.isArray(t)||null===t||(t=e.convertToArrayForm(t)),o.call(this,t,n)}}}(n);var n,r;window.NJStore=window.NJStore||[];const i=(()=>{const e=window.NJStore;return{set(t,n,r){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=r},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const r=t.key;r.key===n&&(delete e[r.id],delete t.key)}}})(),o={setData(e,t,n){i.set(e,t,n)},getData:(e,t)=>i.get(e,t),removeData(e,t){i.delete(e,t)}},a=o;class s{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r=[],i=document.querySelectorAll(n);for(let n=0;n<i.length;n++){const o=i[n];if(!o.key||o.key.key!==e.DATA_KEY){const s=new e(i[n],t);o.key||a.setData(i[n],e.DATA_KEY,s),r.push(s)}}return r}}var u,l,c,f;!function(e){e.LIBRARY_LOG_TAG="[FLUID]",e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(u||(u={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(l||(l={})),function(e){e.beforehide="beforehide",e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(c||(c={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(f||(f={}));class d{static getUidEvent(e,t){return t&&`${t}::${d.uidEvent++}`||e.uidEvent||d.uidEvent++}static getEvent(e){const t=d.getUidEvent(e);return e.uidEvent=t,d.EVENTREGISTRY[t]=d.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&d.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=r=>(d.fixEvent(r,e),n.oneOff&&d.off(e,r.type,t),t.apply(e,[r]));return n}static njDelegationHandler(e,t,n){const r=i=>{const o=e.querySelectorAll(t);for(let t=i.target;t&&t!==this;t=t.parentNode)for(let a=o.length;a>=0;a--)if(o[a]===t)return d.fixEvent(i,t),r.oneOff&&d.off(e,i.type,n),n.apply(t,[i]);return null};return r}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;const i=e[r];if(i.originalHandler===t&&i.delegationSelector===n)return e[r]}return null}static normalizeParams(e,t,n){const r="string"==typeof t,i=r?n:t;let o=e.replace(d.STRIPNAME_REGEX,"");const a=l[o];a&&(o=a);return"string"==typeof f[o]||(o=e),[r,i,o]}static addHandler(e,t,n,r,i){if("string"!=typeof t||null==e)return;n||(n=r,r=null);const o=d.getEvent(e);for(const a of t.split(" ")){const[t,s,u]=d.normalizeParams(a,n,r),l=o[u]||(o[u]={}),c=d.findHandler(l,s,t?n:null);if(c)return void(c.oneOff=c.oneOff&&i);const f=d.getUidEvent(s,a.replace(d.NAMESPACE_REGEX,"")),h=t?d.njDelegationHandler(e,n,r):d.njHandler(e,n);h.delegationSelector=t?n:null,h.originalHandler=s,h.oneOff=i,h.uidEvent=f,l[f]=h,e.addEventListener(u,h,t)}}static removeHandler(e,t,n,r,i){const o=d.findHandler(t[n],r,i);null!==o&&(e.removeEventListener(n,o,Boolean(i)),delete t[n][o.uidEvent])}static removeNamespacedHandlers(e,t,n,r){const i=t[n]||{};for(const o in i)if(Object.prototype.hasOwnProperty.call(i,o)&&o.indexOf(r)>-1){const r=i[o];d.removeHandler(e,t,n,r.originalHandler,r.delegationSelector)}}static on(e,t,n,r){d.addHandler(e,t,n,r,!1)}static one(e,t,n,r){d.addHandler(e,t,n,r,!0)}static off(e,t,n,r){if("string"!=typeof t||null==e)return;const[i,o,a]=d.normalizeParams(t,n,r),s=a!==t,u=d.getEvent(e);if(void 0!==o){if(!u||!u[a])return;return void d.removeHandler(e,u,a,o,i?n:null)}if("."===t.charAt(0))for(const n in u)Object.prototype.hasOwnProperty.call(u,n)&&d.removeNamespacedHandlers(e,u,n,t.substr(1));const l=u[a]||{};for(const n in l){if(!Object.prototype.hasOwnProperty.call(l,n))continue;const r=n.replace(d.STRIPUID_REGEX,"");if(!s||t.indexOf(r)>-1){const t=l[n];d.removeHandler(e,u,a,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const r=t.replace(d.STRIPNAME_REGEX,""),i="string"==typeof f[r];let o=null;return i?(o=document.createEvent("HTMLEvents"),o.initEvent(r,true,!0)):o=new window.CustomEvent(t,{bubbles:true,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(o,e,{get:()=>n[e]})})),e.dispatchEvent(o),o}}d.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,d.STRIPNAME_REGEX=/\..*/,d.KEYEVENT_REGEX=/^key/,d.STRIPUID_REGEX=/::\d+$/,d.EVENTREGISTRY={},d.uidEvent=1;const h=d;const p={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let n=0;n<e.attributes.length;n++){const r=e.attributes[n];if(-1!==r.nodeName.indexOf("data-")){const e=r.nodeName.substring(5).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=r.nodeValue}}return Object.keys(t).forEach((e=>{var n;t[e]="true"===(n=t[e])||"false"!==n&&("null"===n?null:n===Number(n).toString()?Number(n):""===n?null:n)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,n){for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n&&"[object Object]"===Object.prototype.toString.call(t[r])?e[r]=p.extend(e[r],t[r]):e[r]=t[r]);return e},extend(){let e={},t=!1,n=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],n++);n<arguments.length;n++)e=p.mergeExtended(e,n<0||arguments.length<=n?void 0:arguments[n],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},m=p;var g=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};class v extends s{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(v,e,m.extend(!0,{},t)),h.on(e,c.click,this.handleClick.bind(this))}closeAndDestroy(){this.element.animate(v.KEYFRAMES,{duration:200,delay:70,easing:"ease-out"}).onfinish=()=>{this.destroyElement()}}close(e){return g(this,void 0,void 0,(function*(){this.element.animate(v.KEYFRAMES,{duration:200,delay:70,easing:"ease-out"}),yield new Promise((e=>setTimeout(e,270))),e()}))}destroyElement(){this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.dispose()}dispose(){a.removeData(this.element,v.DATA_KEY),h.off(this.element,c.click,this.handleClick.bind(this)),this.element=null}handleClick(e){e.target.closest(v.SELECTOR.close)&&(e.preventDefault(),this.closeAndDestroy())}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,v.SELECTOR.default)}static getInstance(e){return a.getData(e,v.DATA_KEY)}static getRootElement(e){return e.closest(v.SELECTOR.default)}}v.NAME=`${u.KEY_PREFIX}-tag`,v.DATA_KEY=`${u.KEY_PREFIX}.tag`,v.KEYFRAMES=[{opacity:1},{opacity:0}],v.SELECTOR={default:`.${v.NAME}:not(.disabled)`,close:`.${v.NAME}__close`};const y=v;return t=t.default})()));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Tag",[],t):"object"==typeof exports?exports.Tag=t():e.Tag=t()}(window,(()=>(()=>{"use strict";var e={d:(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},t={};e.d(t,{default:()=>y});r={},function(e,t){function n(){this._delay=0,this._endDelay=0,this._fill="none",this._iterationStart=0,this._iterations=1,this._duration=0,this._playbackRate=1,this._direction="normal",this._easing="linear",this._easingFunction=d}function r(){return e.isDeprecated("Invalid timing inputs","2016-03-02","TypeError exceptions will be thrown instead.",!0)}function i(t,r,i){var o=new n;return r&&(o.fill="both",o.duration="auto"),"number"!=typeof t||isNaN(t)?void 0!==t&&Object.getOwnPropertyNames(t).forEach((function(n){if("auto"!=t[n]){if(("number"==typeof o[n]||"duration"==n)&&("number"!=typeof t[n]||isNaN(t[n])))return;if("fill"==n&&-1==c.indexOf(t[n]))return;if("direction"==n&&-1==f.indexOf(t[n]))return;if("playbackRate"==n&&1!==t[n]&&e.isDeprecated("AnimationEffectTiming.playbackRate","2014-11-28","Use Animation.playbackRate instead."))return;o[n]=t[n]}})):o.duration=t,o}function o(e,t,n,r){return e<0||e>1||n<0||n>1?d:function(i){function o(e,t,n){return 3*e*(1-n)*(1-n)*n+3*t*(1-n)*n*n+n*n*n}if(i<=0){var a=0;return e>0?a=t/e:!t&&n>0&&(a=r/n),a*i}if(i>=1){var s=0;return n<1?s=(r-1)/(n-1):1==n&&e<1&&(s=(t-1)/(e-1)),1+s*(i-1)}for(var u=0,l=1;u<l;){var c=(u+l)/2,f=o(e,n,c);if(Math.abs(i-f)<1e-5)return o(t,r,c);f<i?u=c:l=c}return o(t,r,c)}}function a(e,t){return function(n){if(n>=1)return 1;var r=1/e;return(n+=t*r)-n%r}}function s(e){v||(v=document.createElement("div").style),v.animationTimingFunction="",v.animationTimingFunction=e;var t=v.animationTimingFunction;if(""==t&&r())throw new TypeError(e+" is not a valid value for easing");return t}function u(e){if("linear"==e)return d;var t=b.exec(e);if(t)return o.apply(this,t.slice(1).map(Number));var n=_.exec(e);if(n)return a(Number(n[1]),m);var r=T.exec(e);return r?a(Number(r[1]),{start:h,middle:p,end:m}[r[2]]):g[e]||d}function l(e,t,n){if(null==t)return x;var r=n.delay+e+n.endDelay;return t<Math.min(n.delay,r)?E:t>=Math.min(n.delay+e,r)?w:k}var c="backwards|forwards|both|none".split("|"),f="reverse|alternate|alternate-reverse".split("|"),d=function(e){return e};n.prototype={_setMember:function(t,n){this["_"+t]=n,this._effect&&(this._effect._timingInput[t]=n,this._effect._timing=e.normalizeTimingInput(this._effect._timingInput),this._effect.activeDuration=e.calculateActiveDuration(this._effect._timing),this._effect._animation&&this._effect._animation._rebuildUnderlyingAnimation())},get playbackRate(){return this._playbackRate},set delay(e){this._setMember("delay",e)},get delay(){return this._delay},set endDelay(e){this._setMember("endDelay",e)},get endDelay(){return this._endDelay},set fill(e){this._setMember("fill",e)},get fill(){return this._fill},set iterationStart(e){if((isNaN(e)||e<0)&&r())throw new TypeError("iterationStart must be a non-negative number, received: "+e);this._setMember("iterationStart",e)},get iterationStart(){return this._iterationStart},set duration(e){if("auto"!=e&&(isNaN(e)||e<0)&&r())throw new TypeError("duration must be non-negative or auto, received: "+e);this._setMember("duration",e)},get duration(){return this._duration},set direction(e){this._setMember("direction",e)},get direction(){return this._direction},set easing(e){this._easingFunction=u(s(e)),this._setMember("easing",e)},get easing(){return this._easing},set iterations(e){if((isNaN(e)||e<0)&&r())throw new TypeError("iterations must be non-negative, received: "+e);this._setMember("iterations",e)},get iterations(){return this._iterations}};var h=1,p=.5,m=0,g={ease:o(.25,.1,.25,1),"ease-in":o(.42,0,1,1),"ease-out":o(0,0,.58,1),"ease-in-out":o(.42,0,.58,1),"step-start":a(1,h),"step-middle":a(1,p),"step-end":a(1,m)},v=null,y="\\s*(-?\\d+\\.?\\d*|-?\\.\\d+)\\s*",b=new RegExp("cubic-bezier\\("+y+","+y+","+y+","+y+"\\)"),_=/steps\(\s*(\d+)\s*\)/,T=/steps\(\s*(\d+)\s*,\s*(start|middle|end)\s*\)/,x=0,E=1,w=2,k=3;e.cloneTimingInput=function(e){if("number"==typeof e)return e;var t={};for(var n in e)t[n]=e[n];return t},e.makeTiming=i,e.numericTimingToObject=function(e){return"number"==typeof e&&(e=isNaN(e)?{duration:0}:{duration:e}),e},e.normalizeTimingInput=function(t,n){return i(t=e.numericTimingToObject(t),n)},e.calculateActiveDuration=function(e){return Math.abs(function(e){return 0===e.duration||0===e.iterations?0:e.duration*e.iterations}(e)/e.playbackRate)},e.calculateIterationProgress=function(e,t,n){var r=l(e,t,n),i=function(e,t,n,r,i){switch(r){case E:return"backwards"==t||"both"==t?0:null;case k:return n-i;case w:return"forwards"==t||"both"==t?e:null;case x:return null}}(e,n.fill,t,r,n.delay);if(null===i)return null;var o=function(e,t,n,r,i){var o=i;return 0===e?t!==E&&(o+=n):o+=r/e,o}(n.duration,r,n.iterations,i,n.iterationStart),a=function(e,t,n,r,i,o){var a=e===1/0?t%1:e%1;return 0!==a||n!==w||0===r||0===i&&0!==o||(a=1),a}(o,n.iterationStart,r,n.iterations,i,n.duration),s=function(e,t,n,r){return e===w&&t===1/0?1/0:1===n?Math.floor(r)-1:Math.floor(r)}(r,n.iterations,a,o),u=function(e,t,n){var r=e;if("normal"!==e&&"reverse"!==e){var i=t;"alternate-reverse"===e&&(i+=1),r="normal",i!==1/0&&i%2!=0&&(r="reverse")}return"normal"===r?n:1-n}(n.direction,s,a);return n._easingFunction(u)},e.calculatePhase=l,e.normalizeEasing=s,e.parseEasingFunction=u}(n={}),function(e,t){function n(e,t){return e in u&&u[e][t]||t}function r(e,t,r){if(!function(e){return"display"===e||0===e.lastIndexOf("animation",0)||0===e.lastIndexOf("transition",0)}(e)){var i=o[e];if(i)for(var s in a.style[e]=t,i){var u=i[s],l=a.style[u];r[u]=n(u,l)}else r[e]=n(e,t)}}function i(e){var t=[];for(var n in e)if(!(n in["easing","offset","composite"])){var r=e[n];Array.isArray(r)||(r=[r]);for(var i,o=r.length,a=0;a<o;a++)(i={}).offset="offset"in e?e.offset:1==o?1:a/(o-1),"easing"in e&&(i.easing=e.easing),"composite"in e&&(i.composite=e.composite),i[n]=r[a],t.push(i)}return t.sort((function(e,t){return e.offset-t.offset})),t}var o={background:["backgroundImage","backgroundPosition","backgroundSize","backgroundRepeat","backgroundAttachment","backgroundOrigin","backgroundClip","backgroundColor"],border:["borderTopColor","borderTopStyle","borderTopWidth","borderRightColor","borderRightStyle","borderRightWidth","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeftColor","borderLeftStyle","borderLeftWidth"],borderBottom:["borderBottomWidth","borderBottomStyle","borderBottomColor"],borderColor:["borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"],borderLeft:["borderLeftWidth","borderLeftStyle","borderLeftColor"],borderRadius:["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],borderRight:["borderRightWidth","borderRightStyle","borderRightColor"],borderTop:["borderTopWidth","borderTopStyle","borderTopColor"],borderWidth:["borderTopWidth","borderRightWidth","borderBottomWidth","borderLeftWidth"],flex:["flexGrow","flexShrink","flexBasis"],font:["fontFamily","fontSize","fontStyle","fontVariant","fontWeight","lineHeight"],margin:["marginTop","marginRight","marginBottom","marginLeft"],outline:["outlineColor","outlineStyle","outlineWidth"],padding:["paddingTop","paddingRight","paddingBottom","paddingLeft"]},a=document.createElementNS("http://www.w3.org/1999/xhtml","div"),s={thin:"1px",medium:"3px",thick:"5px"},u={borderBottomWidth:s,borderLeftWidth:s,borderRightWidth:s,borderTopWidth:s,fontSize:{"xx-small":"60%","x-small":"75%",small:"89%",medium:"100%",large:"120%","x-large":"150%","xx-large":"200%"},fontWeight:{normal:"400",bold:"700"},outlineWidth:s,textShadow:{none:"0px 0px 0px transparent"},boxShadow:{none:"0px 0px 0px 0px transparent"}};e.convertToArrayForm=i,e.normalizeKeyframes=function(t){if(null==t)return[];window.Symbol&&Symbol.iterator&&Array.prototype.from&&t[Symbol.iterator]&&(t=Array.from(t)),Array.isArray(t)||(t=i(t));for(var n=t.map((function(t){var n={};for(var i in t){var o=t[i];if("offset"==i){if(null!=o){if(o=Number(o),!isFinite(o))throw new TypeError("Keyframe offsets must be numbers.");if(o<0||o>1)throw new TypeError("Keyframe offsets must be between 0 and 1.")}}else if("composite"==i){if("add"==o||"accumulate"==o)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"add compositing is not supported"};if("replace"!=o)throw new TypeError("Invalid composite mode "+o+".")}else o="easing"==i?e.normalizeEasing(o):""+o;r(i,o,n)}return null==n.offset&&(n.offset=null),null==n.easing&&(n.easing="linear"),n})),o=!0,a=-1/0,s=0;s<n.length;s++){var u=n[s].offset;if(null!=u){if(u<a)throw new TypeError("Keyframes are not loosely sorted by offset. Sort or specify offsets.");a=u}else o=!1}return n=n.filter((function(e){return e.offset>=0&&e.offset<=1})),o||function(){var e=n.length;null==n[e-1].offset&&(n[e-1].offset=1),e>1&&null==n[0].offset&&(n[0].offset=0);for(var t=0,r=n[0].offset,i=1;i<e;i++){var o=n[i].offset;if(null!=o){for(var a=1;a<i-t;a++)n[t+a].offset=r+(o-r)*a/(i-t);t=i,r=o}}}(),n}}(n),function(e){var t={};e.isDeprecated=function(e,n,r,i){var o=i?"are":"is",a=new Date,s=new Date(n);return s.setMonth(s.getMonth()+3),!(a<s&&(e in t||console.warn("Web Animations: "+e+" "+o+" deprecated and will stop working on "+s.toDateString()+". "+r),t[e]=!0,1))},e.deprecated=function(t,n,r,i){var o=i?"are":"is";if(e.isDeprecated(t,n,r,i))throw new Error(t+" "+o+" no longer supported. "+r)}}(n),function(){if(document.documentElement.animate){var e=document.documentElement.animate([],0),t=!0;if(e&&(t=!1,"play|currentTime|pause|reverse|playbackRate|cancel|finish|startTime|playState".split("|").forEach((function(n){void 0===e[n]&&(t=!0)}))),!t)return}!function(e,t,n){t.convertEffectInput=function(n){var r=function(e){for(var t={},n=0;n<e.length;n++)for(var r in e[n])if("offset"!=r&&"easing"!=r&&"composite"!=r){var i={offset:e[n].offset,easing:e[n].easing,value:e[n][r]};t[r]=t[r]||[],t[r].push(i)}for(var o in t){var a=t[o];if(0!=a[0].offset||1!=a[a.length-1].offset)throw{type:DOMException.NOT_SUPPORTED_ERR,name:"NotSupportedError",message:"Partial keyframes are not supported"}}return t}(e.normalizeKeyframes(n)),i=function(n){var r=[];for(var i in n)for(var o=n[i],a=0;a<o.length-1;a++){var s=a,u=a+1,l=o[s].offset,c=o[u].offset,f=l,d=c;0==a&&(f=-1/0,0==c&&(u=s)),a==o.length-2&&(d=1/0,1==l&&(s=u)),r.push({applyFrom:f,applyTo:d,startOffset:o[s].offset,endOffset:o[u].offset,easingFunction:e.parseEasingFunction(o[s].easing),property:i,interpolation:t.propertyInterpolation(i,o[s].value,o[u].value)})}return r.sort((function(e,t){return e.startOffset-t.startOffset})),r}(r);return function(e,n){if(null!=n)i.filter((function(e){return n>=e.applyFrom&&n<e.applyTo})).forEach((function(r){var i=n-r.startOffset,o=r.endOffset-r.startOffset,a=0==o?0:r.easingFunction(i/o);t.apply(e,r.property,r.interpolation(a))}));else for(var o in r)"offset"!=o&&"easing"!=o&&"composite"!=o&&t.clear(e,o)}}}(n,r),function(e,t,n){function r(e){return e.replace(/-(.)/g,(function(e,t){return t.toUpperCase()}))}function i(e,t,n){o[n]=o[n]||[],o[n].push([e,t])}var o={};t.addPropertiesHandler=function(e,t,n){for(var o=0;o<n.length;o++)i(e,t,r(n[o]))};var a={backgroundColor:"transparent",backgroundPosition:"0% 0%",borderBottomColor:"currentColor",borderBottomLeftRadius:"0px",borderBottomRightRadius:"0px",borderBottomWidth:"3px",borderLeftColor:"currentColor",borderLeftWidth:"3px",borderRightColor:"currentColor",borderRightWidth:"3px",borderSpacing:"2px",borderTopColor:"currentColor",borderTopLeftRadius:"0px",borderTopRightRadius:"0px",borderTopWidth:"3px",bottom:"auto",clip:"rect(0px, 0px, 0px, 0px)",color:"black",fontSize:"100%",fontWeight:"400",height:"auto",left:"auto",letterSpacing:"normal",lineHeight:"120%",marginBottom:"0px",marginLeft:"0px",marginRight:"0px",marginTop:"0px",maxHeight:"none",maxWidth:"none",minHeight:"0px",minWidth:"0px",opacity:"1.0",outlineColor:"invert",outlineOffset:"0px",outlineWidth:"3px",paddingBottom:"0px",paddingLeft:"0px",paddingRight:"0px",paddingTop:"0px",right:"auto",strokeDasharray:"none",strokeDashoffset:"0px",textIndent:"0px",textShadow:"0px 0px 0px transparent",top:"auto",transform:"",verticalAlign:"0px",visibility:"visible",width:"auto",wordSpacing:"normal",zIndex:"auto"};t.propertyInterpolation=function(n,i,s){var u=n;/-/.test(n)&&!e.isDeprecated("Hyphenated property names","2016-03-22","Use camelCase instead.",!0)&&(u=r(n)),"initial"!=i&&"initial"!=s||("initial"==i&&(i=a[u]),"initial"==s&&(s=a[u]));for(var l=i==s?[]:o[u],c=0;l&&c<l.length;c++){var f=l[c][0](i),d=l[c][0](s);if(void 0!==f&&void 0!==d){var h=l[c][1](f,d);if(h){var p=t.Interpolation.apply(null,h);return function(e){return 0==e?i:1==e?s:p(e)}}}}return t.Interpolation(!1,!0,(function(e){return e?s:i}))}}(n,r),function(e,t,n){t.KeyframeEffect=function(n,r,i,o){var a,s=function(t){var n=e.calculateActiveDuration(t),r=function(r){return e.calculateIterationProgress(n,r,t)};return r._totalDuration=t.delay+n+t.endDelay,r}(e.normalizeTimingInput(i)),u=t.convertEffectInput(r),l=function(){u(n,a)};return l._update=function(e){return null!==(a=s(e))},l._clear=function(){u(n,null)},l._hasSameTarget=function(e){return n===e},l._target=n,l._totalDuration=s._totalDuration,l._id=o,l}}(n,r),function(e,t){function n(e,t,n){n.enumerable=!0,n.configurable=!0,Object.defineProperty(e,t,n)}function r(e){this._element=e,this._surrogateStyle=document.createElementNS("http://www.w3.org/1999/xhtml","div").style,this._style=e.style,this._length=0,this._isAnimatedProperty={},this._updateSvgTransformAttr=function(e,t){return!(!t.namespaceURI||-1==t.namespaceURI.indexOf("/svg"))&&(o in e||(e[o]=/Trident|MSIE|IEMobile|Edge|Android 4/i.test(e.navigator.userAgent)),e[o])}(window,e),this._savedTransformAttr=null;for(var t=0;t<this._style.length;t++){var n=this._style[t];this._surrogateStyle[n]=this._style[n]}this._updateIndices()}function i(e){if(!e._webAnimationsPatchedStyle){var t=new r(e);try{n(e,"style",{get:function(){return t}})}catch(t){e.style._set=function(t,n){e.style[t]=n},e.style._clear=function(t){e.style[t]=""}}e._webAnimationsPatchedStyle=e.style}}var o="_webAnimationsUpdateSvgTransformAttr",a={cssText:1,length:1,parentRule:1},s={getPropertyCSSValue:1,getPropertyPriority:1,getPropertyValue:1,item:1,removeProperty:1,setProperty:1},u={removeProperty:1,setProperty:1};for(var l in r.prototype={get cssText(){return this._surrogateStyle.cssText},set cssText(e){for(var t={},n=0;n<this._surrogateStyle.length;n++)t[this._surrogateStyle[n]]=!0;for(this._surrogateStyle.cssText=e,this._updateIndices(),n=0;n<this._surrogateStyle.length;n++)t[this._surrogateStyle[n]]=!0;for(var r in t)this._isAnimatedProperty[r]||this._style.setProperty(r,this._surrogateStyle.getPropertyValue(r))},get length(){return this._surrogateStyle.length},get parentRule(){return this._style.parentRule},_updateIndices:function(){for(;this._length<this._surrogateStyle.length;)Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,get:function(e){return function(){return this._surrogateStyle[e]}}(this._length)}),this._length++;for(;this._length>this._surrogateStyle.length;)this._length--,Object.defineProperty(this,this._length,{configurable:!0,enumerable:!1,value:void 0})},_set:function(t,n){this._style[t]=n,this._isAnimatedProperty[t]=!0,this._updateSvgTransformAttr&&"transform"==e.unprefixedPropertyName(t)&&(null==this._savedTransformAttr&&(this._savedTransformAttr=this._element.getAttribute("transform")),this._element.setAttribute("transform",e.transformToSvgMatrix(n)))},_clear:function(t){this._style[t]=this._surrogateStyle[t],this._updateSvgTransformAttr&&"transform"==e.unprefixedPropertyName(t)&&(this._savedTransformAttr?this._element.setAttribute("transform",this._savedTransformAttr):this._element.removeAttribute("transform"),this._savedTransformAttr=null),delete this._isAnimatedProperty[t]}},s)r.prototype[l]=function(e,t){return function(){var n=this._surrogateStyle[e].apply(this._surrogateStyle,arguments);return t&&(this._isAnimatedProperty[arguments[0]]||this._style[e].apply(this._style,arguments),this._updateIndices()),n}}(l,l in u);for(var c in document.documentElement.style)c in a||c in s||function(e){n(r.prototype,e,{get:function(){return this._surrogateStyle[e]},set:function(t){this._surrogateStyle[e]=t,this._updateIndices(),this._isAnimatedProperty&&!this._isAnimatedProperty[e]&&(this._style[e]=t)}})}(c);e.apply=function(t,n,r){i(t),t.style._set(e.propertyName(n),r)},e.clear=function(t,n){t._webAnimationsPatchedStyle&&t.style._clear(e.propertyName(n))}}(r),function(e){window.Element.prototype.animate=function(t,n){var r="";return n&&n.id&&(r=n.id),e.timeline._play(e.KeyframeEffect(this,t,n,r))}}(r),function(e,t){function n(e,t,r){if("number"==typeof e&&"number"==typeof t)return e*(1-r)+t*r;if("boolean"==typeof e&&"boolean"==typeof t)return r<.5?e:t;if(e.length==t.length){for(var i=[],o=0;o<e.length;o++)i.push(n(e[o],t[o],r));return i}throw"Mismatched interpolation arguments "+e+":"+t}e.Interpolation=function(e,t,r){return function(i){return r(n(e,t,i))}}}(r),function(e,t){var n=function(){function e(e,t){for(var n=[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]],r=0;r<4;r++)for(var i=0;i<4;i++)for(var o=0;o<4;o++)n[r][i]+=t[r][o]*e[o][i];return n}return function(t,n,r,i,o){for(var a=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]],s=0;s<4;s++)a[s][3]=o[s];for(s=0;s<3;s++)for(var u=0;u<3;u++)a[3][s]+=t[u]*a[u][s];var l=i[0],c=i[1],f=i[2],d=i[3],h=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];h[0][0]=1-2*(c*c+f*f),h[0][1]=2*(l*c-f*d),h[0][2]=2*(l*f+c*d),h[1][0]=2*(l*c+f*d),h[1][1]=1-2*(l*l+f*f),h[1][2]=2*(c*f-l*d),h[2][0]=2*(l*f-c*d),h[2][1]=2*(c*f+l*d),h[2][2]=1-2*(l*l+c*c),a=e(a,h);var p=[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]];for(r[2]&&(p[2][1]=r[2],a=e(a,p)),r[1]&&(p[2][1]=0,p[2][0]=r[0],a=e(a,p)),r[0]&&(p[2][0]=0,p[1][0]=r[0],a=e(a,p)),s=0;s<3;s++)for(u=0;u<3;u++)a[s][u]*=n[s];return function(e){return 0==e[0][2]&&0==e[0][3]&&0==e[1][2]&&0==e[1][3]&&0==e[2][0]&&0==e[2][1]&&1==e[2][2]&&0==e[2][3]&&0==e[3][2]&&1==e[3][3]}(a)?[a[0][0],a[0][1],a[1][0],a[1][1],a[3][0],a[3][1]]:a[0].concat(a[1],a[2],a[3])}}();e.composeMatrix=n,e.quat=function(t,n,r){var i=e.dot(t,n);i=function(e,t,n){return Math.max(Math.min(e,n),t)}(i,-1,1);var o=[];if(1===i)o=t;else for(var a=Math.acos(i),s=1*Math.sin(r*a)/Math.sqrt(1-i*i),u=0;u<4;u++)o.push(t[u]*(Math.cos(r*a)-i*s)+n[u]*s);return o}}(r),function(e,t,n){e.sequenceNumber=0;var r=function(e,t,n){this.target=e,this.currentTime=t,this.timelineTime=n,this.type="finish",this.bubbles=!1,this.cancelable=!1,this.currentTarget=e,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()};t.Animation=function(t){this.id="",t&&t._id&&(this.id=t._id),this._sequenceNumber=e.sequenceNumber++,this._currentTime=0,this._startTime=null,this._paused=!1,this._playbackRate=1,this._inTimeline=!0,this._finishedFlag=!0,this.onfinish=null,this._finishHandlers=[],this._effect=t,this._inEffect=this._effect._update(0),this._idle=!0,this._currentTimePending=!1},t.Animation.prototype={_ensureAlive:function(){this.playbackRate<0&&0===this.currentTime?this._inEffect=this._effect._update(-1):this._inEffect=this._effect._update(this.currentTime),this._inTimeline||!this._inEffect&&this._finishedFlag||(this._inTimeline=!0,t.timeline._animations.push(this))},_tickCurrentTime:function(e,t){e!=this._currentTime&&(this._currentTime=e,this._isFinished&&!t&&(this._currentTime=this._playbackRate>0?this._totalDuration:0),this._ensureAlive())},get currentTime(){return this._idle||this._currentTimePending?null:this._currentTime},set currentTime(e){e=+e,isNaN(e)||(t.restart(),this._paused||null==this._startTime||(this._startTime=this._timeline.currentTime-e/this._playbackRate),this._currentTimePending=!1,this._currentTime!=e&&(this._idle&&(this._idle=!1,this._paused=!0),this._tickCurrentTime(e,!0),t.applyDirtiedAnimation(this)))},get startTime(){return this._startTime},set startTime(e){e=+e,isNaN(e)||this._paused||this._idle||(this._startTime=e,this._tickCurrentTime((this._timeline.currentTime-this._startTime)*this.playbackRate),t.applyDirtiedAnimation(this))},get playbackRate(){return this._playbackRate},set playbackRate(e){if(e!=this._playbackRate){var n=this.currentTime;this._playbackRate=e,this._startTime=null,"paused"!=this.playState&&"idle"!=this.playState&&(this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),t.applyDirtiedAnimation(this)),null!=n&&(this.currentTime=n)}},get _isFinished(){return!this._idle&&(this._playbackRate>0&&this._currentTime>=this._totalDuration||this._playbackRate<0&&this._currentTime<=0)},get _totalDuration(){return this._effect._totalDuration},get playState(){return this._idle?"idle":null==this._startTime&&!this._paused&&0!=this.playbackRate||this._currentTimePending?"pending":this._paused?"paused":this._isFinished?"finished":"running"},_rewind:function(){if(this._playbackRate>=0)this._currentTime=0;else{if(!(this._totalDuration<1/0))throw new DOMException("Unable to rewind negative playback rate animation with infinite duration","InvalidStateError");this._currentTime=this._totalDuration}},play:function(){this._paused=!1,(this._isFinished||this._idle)&&(this._rewind(),this._startTime=null),this._finishedFlag=!1,this._idle=!1,this._ensureAlive(),t.applyDirtiedAnimation(this)},pause:function(){this._isFinished||this._paused||this._idle?this._idle&&(this._rewind(),this._idle=!1):this._currentTimePending=!0,this._startTime=null,this._paused=!0},finish:function(){this._idle||(this.currentTime=this._playbackRate>0?this._totalDuration:0,this._startTime=this._totalDuration-this.currentTime,this._currentTimePending=!1,t.applyDirtiedAnimation(this))},cancel:function(){this._inEffect&&(this._inEffect=!1,this._idle=!0,this._paused=!1,this._finishedFlag=!0,this._currentTime=0,this._startTime=null,this._effect._update(null),t.applyDirtiedAnimation(this))},reverse:function(){this.playbackRate*=-1,this.play()},addEventListener:function(e,t){"function"==typeof t&&"finish"==e&&this._finishHandlers.push(t)},removeEventListener:function(e,t){if("finish"==e){var n=this._finishHandlers.indexOf(t);n>=0&&this._finishHandlers.splice(n,1)}},_fireEvents:function(e){if(this._isFinished){if(!this._finishedFlag){var t=new r(this,this._currentTime,e),n=this._finishHandlers.concat(this.onfinish?[this.onfinish]:[]);setTimeout((function(){n.forEach((function(e){e.call(t.target,t)}))}),0),this._finishedFlag=!0}}else this._finishedFlag=!1},_tick:function(e,t){this._idle||this._paused||(null==this._startTime?t&&(this.startTime=e-this._currentTime/this.playbackRate):this._isFinished||this._tickCurrentTime((e-this._startTime)*this.playbackRate)),t&&(this._currentTimePending=!1,this._fireEvents(e))},get _needsTick(){return this.playState in{pending:1,running:1}||!this._finishedFlag},_targetAnimations:function(){var e=this._effect._target;return e._activeAnimations||(e._activeAnimations=[]),e._activeAnimations},_markTarget:function(){var e=this._targetAnimations();-1===e.indexOf(this)&&e.push(this)},_unmarkTarget:function(){var e=this._targetAnimations(),t=e.indexOf(this);-1!==t&&e.splice(t,1)}}}(n,r),function(e,t,n){function r(e){var t=l;l=[],e<m.currentTime&&(e=m.currentTime),m._animations.sort(i),m._animations=s(e,!0,m._animations)[0],t.forEach((function(t){t[1](e)})),a()}function i(e,t){return e._sequenceNumber-t._sequenceNumber}function o(){this._animations=[],this.currentTime=window.performance&&performance.now?performance.now():0}function a(){h.forEach((function(e){e()})),h.length=0}function s(e,n,r){p=!0,d=!1,t.timeline.currentTime=e,f=!1;var i=[],o=[],a=[],s=[];return r.forEach((function(t){t._tick(e,n),t._inEffect?(o.push(t._effect),t._markTarget()):(i.push(t._effect),t._unmarkTarget()),t._needsTick&&(f=!0);var r=t._inEffect||t._needsTick;t._inTimeline=r,r?a.push(t):s.push(t)})),h.push.apply(h,i),h.push.apply(h,o),f&&requestAnimationFrame((function(){})),p=!1,[a,s]}var u=window.requestAnimationFrame,l=[],c=0;window.requestAnimationFrame=function(e){var t=c++;return 0==l.length&&u(r),l.push([t,e]),t},window.cancelAnimationFrame=function(e){l.forEach((function(t){t[0]==e&&(t[1]=function(){})}))},o.prototype={_play:function(n){n._timing=e.normalizeTimingInput(n.timing);var r=new t.Animation(n);return r._idle=!1,r._timeline=this,this._animations.push(r),t.restart(),t.applyDirtiedAnimation(r),r}};var f=!1,d=!1;t.restart=function(){return f||(f=!0,requestAnimationFrame((function(){})),d=!0),d},t.applyDirtiedAnimation=function(e){if(!p){e._markTarget();var n=e._targetAnimations();n.sort(i),s(t.timeline.currentTime,!1,n.slice())[1].forEach((function(e){var t=m._animations.indexOf(e);-1!==t&&m._animations.splice(t,1)})),a()}};var h=[],p=!1,m=new o;t.timeline=m}(n,r),function(e,t){function n(e,t){for(var n=0,r=0;r<e.length;r++)n+=e[r]*t[r];return n}function r(e,t){return[e[0]*t[0]+e[4]*t[1]+e[8]*t[2]+e[12]*t[3],e[1]*t[0]+e[5]*t[1]+e[9]*t[2]+e[13]*t[3],e[2]*t[0]+e[6]*t[1]+e[10]*t[2]+e[14]*t[3],e[3]*t[0]+e[7]*t[1]+e[11]*t[2]+e[15]*t[3],e[0]*t[4]+e[4]*t[5]+e[8]*t[6]+e[12]*t[7],e[1]*t[4]+e[5]*t[5]+e[9]*t[6]+e[13]*t[7],e[2]*t[4]+e[6]*t[5]+e[10]*t[6]+e[14]*t[7],e[3]*t[4]+e[7]*t[5]+e[11]*t[6]+e[15]*t[7],e[0]*t[8]+e[4]*t[9]+e[8]*t[10]+e[12]*t[11],e[1]*t[8]+e[5]*t[9]+e[9]*t[10]+e[13]*t[11],e[2]*t[8]+e[6]*t[9]+e[10]*t[10]+e[14]*t[11],e[3]*t[8]+e[7]*t[9]+e[11]*t[10]+e[15]*t[11],e[0]*t[12]+e[4]*t[13]+e[8]*t[14]+e[12]*t[15],e[1]*t[12]+e[5]*t[13]+e[9]*t[14]+e[13]*t[15],e[2]*t[12]+e[6]*t[13]+e[10]*t[14]+e[14]*t[15],e[3]*t[12]+e[7]*t[13]+e[11]*t[14]+e[15]*t[15]]}function i(e){var t=e.rad||0;return((e.deg||0)/360+(e.grad||0)/400+(e.turn||0))*(2*Math.PI)+t}function o(e){switch(e.t){case"rotatex":var t=i(e.d[0]);return[1,0,0,0,0,Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1];case"rotatey":return t=i(e.d[0]),[Math.cos(t),0,-Math.sin(t),0,0,1,0,0,Math.sin(t),0,Math.cos(t),0,0,0,0,1];case"rotate":case"rotatez":return t=i(e.d[0]),[Math.cos(t),Math.sin(t),0,0,-Math.sin(t),Math.cos(t),0,0,0,0,1,0,0,0,0,1];case"rotate3d":var n=e.d[0],r=e.d[1],o=e.d[2],a=(t=i(e.d[3]),n*n+r*r+o*o);if(0===a)n=1,r=0,o=0;else if(1!==a){var s=Math.sqrt(a);n/=s,r/=s,o/=s}var u=Math.sin(t/2),l=u*Math.cos(t/2),c=u*u;return[1-2*(r*r+o*o)*c,2*(n*r*c+o*l),2*(n*o*c-r*l),0,2*(n*r*c-o*l),1-2*(n*n+o*o)*c,2*(r*o*c+n*l),0,2*(n*o*c+r*l),2*(r*o*c-n*l),1-2*(n*n+r*r)*c,0,0,0,0,1];case"scale":return[e.d[0],0,0,0,0,e.d[1],0,0,0,0,1,0,0,0,0,1];case"scalex":return[e.d[0],0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"scaley":return[1,0,0,0,0,e.d[0],0,0,0,0,1,0,0,0,0,1];case"scalez":return[1,0,0,0,0,1,0,0,0,0,e.d[0],0,0,0,0,1];case"scale3d":return[e.d[0],0,0,0,0,e.d[1],0,0,0,0,e.d[2],0,0,0,0,1];case"skew":var f=i(e.d[0]),d=i(e.d[1]);return[1,Math.tan(d),0,0,Math.tan(f),1,0,0,0,0,1,0,0,0,0,1];case"skewx":return t=i(e.d[0]),[1,0,0,0,Math.tan(t),1,0,0,0,0,1,0,0,0,0,1];case"skewy":return t=i(e.d[0]),[1,Math.tan(t),0,0,0,1,0,0,0,0,1,0,0,0,0,1];case"translate":return[1,0,0,0,0,1,0,0,0,0,1,0,n=e.d[0].px||0,r=e.d[1].px||0,0,1];case"translatex":return[1,0,0,0,0,1,0,0,0,0,1,0,n=e.d[0].px||0,0,0,1];case"translatey":return[1,0,0,0,0,1,0,0,0,0,1,0,0,r=e.d[0].px||0,0,1];case"translatez":return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,o=e.d[0].px||0,1];case"translate3d":return[1,0,0,0,0,1,0,0,0,0,1,0,n=e.d[0].px||0,r=e.d[1].px||0,o=e.d[2].px||0,1];case"perspective":return[1,0,0,0,0,1,0,0,0,0,1,e.d[0].px?-1/e.d[0].px:0,0,0,0,1];case"matrix":return[e.d[0],e.d[1],0,0,e.d[2],e.d[3],0,0,0,0,1,0,e.d[4],e.d[5],0,1];case"matrix3d":return e.d}}function a(e){return 0===e.length?[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]:e.map(o).reduce(r)}var s=function(){function e(e){return e[0][0]*e[1][1]*e[2][2]+e[1][0]*e[2][1]*e[0][2]+e[2][0]*e[0][1]*e[1][2]-e[0][2]*e[1][1]*e[2][0]-e[1][2]*e[2][1]*e[0][0]-e[2][2]*e[0][1]*e[1][0]}function t(e){var t=r(e);return[e[0]/t,e[1]/t,e[2]/t]}function r(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1]+e[2]*e[2])}function i(e,t,n,r){return[n*e[0]+r*t[0],n*e[1]+r*t[1],n*e[2]+r*t[2]]}return function(o){var a=[o.slice(0,4),o.slice(4,8),o.slice(8,12),o.slice(12,16)];if(1!==a[3][3])return null;for(var s=[],u=0;u<4;u++)s.push(a[u].slice());for(u=0;u<3;u++)s[u][3]=0;if(0===e(s))return null;var l,c=[];a[0][3]||a[1][3]||a[2][3]?(c.push(a[0][3]),c.push(a[1][3]),c.push(a[2][3]),c.push(a[3][3]),l=function(e,t){for(var n=[],r=0;r<4;r++){for(var i=0,o=0;o<4;o++)i+=e[o]*t[o][r];n.push(i)}return n}(c,function(e){return[[e[0][0],e[1][0],e[2][0],e[3][0]],[e[0][1],e[1][1],e[2][1],e[3][1]],[e[0][2],e[1][2],e[2][2],e[3][2]],[e[0][3],e[1][3],e[2][3],e[3][3]]]}(function(t){for(var n=1/e(t),r=t[0][0],i=t[0][1],o=t[0][2],a=t[1][0],s=t[1][1],u=t[1][2],l=t[2][0],c=t[2][1],f=t[2][2],d=[[(s*f-u*c)*n,(o*c-i*f)*n,(i*u-o*s)*n,0],[(u*l-a*f)*n,(r*f-o*l)*n,(o*a-r*u)*n,0],[(a*c-s*l)*n,(l*i-r*c)*n,(r*s-i*a)*n,0]],h=[],p=0;p<3;p++){for(var m=0,g=0;g<3;g++)m+=t[3][g]*d[g][p];h.push(m)}return h.push(1),d.push(h),d}(s)))):l=[0,0,0,1];var f=a[3].slice(0,3),d=[];d.push(a[0].slice(0,3));var h=[];h.push(r(d[0])),d[0]=t(d[0]);var p=[];d.push(a[1].slice(0,3)),p.push(n(d[0],d[1])),d[1]=i(d[1],d[0],1,-p[0]),h.push(r(d[1])),d[1]=t(d[1]),p[0]/=h[1],d.push(a[2].slice(0,3)),p.push(n(d[0],d[2])),d[2]=i(d[2],d[0],1,-p[1]),p.push(n(d[1],d[2])),d[2]=i(d[2],d[1],1,-p[2]),h.push(r(d[2])),d[2]=t(d[2]),p[1]/=h[2],p[2]/=h[2];var m=function(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}(d[1],d[2]);if(n(d[0],m)<0)for(u=0;u<3;u++)h[u]*=-1,d[u][0]*=-1,d[u][1]*=-1,d[u][2]*=-1;var g,v,y=d[0][0]+d[1][1]+d[2][2]+1;return y>1e-4?(g=.5/Math.sqrt(y),v=[(d[2][1]-d[1][2])*g,(d[0][2]-d[2][0])*g,(d[1][0]-d[0][1])*g,.25/g]):d[0][0]>d[1][1]&&d[0][0]>d[2][2]?v=[.25*(g=2*Math.sqrt(1+d[0][0]-d[1][1]-d[2][2])),(d[0][1]+d[1][0])/g,(d[0][2]+d[2][0])/g,(d[2][1]-d[1][2])/g]:d[1][1]>d[2][2]?(g=2*Math.sqrt(1+d[1][1]-d[0][0]-d[2][2]),v=[(d[0][1]+d[1][0])/g,.25*g,(d[1][2]+d[2][1])/g,(d[0][2]-d[2][0])/g]):(g=2*Math.sqrt(1+d[2][2]-d[0][0]-d[1][1]),v=[(d[0][2]+d[2][0])/g,(d[1][2]+d[2][1])/g,.25*g,(d[1][0]-d[0][1])/g]),[f,h,p,v,l]}}();e.dot=n,e.makeMatrixDecomposition=function(e){return[s(a(e))]},e.transformListToMatrix=a}(r),function(e){function t(e,t){var n=e.exec(t);if(n)return[n=e.ignoreCase?n[0].toLowerCase():n[0],t.substr(n.length)]}function n(e,t){var n=e(t=t.replace(/^\s*/,""));if(n)return[n[0],n[1].replace(/^\s*/,"")]}function r(e,t,n,r,i){for(var o=[],a=[],s=[],u=function(e,t){for(var n=e,r=t;n&&r;)n>r?n%=r:r%=n;return e*t/(n+r)}(r.length,i.length),l=0;l<u;l++){var c=t(r[l%r.length],i[l%i.length]);if(!c)return;o.push(c[0]),a.push(c[1]),s.push(c[2])}return[o,a,function(t){var r=t.map((function(e,t){return s[t](e)})).join(n);return e?e(r):r}]}e.consumeToken=t,e.consumeTrimmed=n,e.consumeRepeated=function(e,r,i){e=n.bind(null,e);for(var o=[];;){var a=e(i);if(!a)return[o,i];if(o.push(a[0]),!(a=t(r,i=a[1]))||""==a[1])return[o,i];i=a[1]}},e.consumeParenthesised=function(e,t){for(var n=0,r=0;r<t.length&&(!/\s|,/.test(t[r])||0!=n);r++)if("("==t[r])n++;else if(")"==t[r]&&(0==--n&&r++,n<=0))break;var i=e(t.substr(0,r));return null==i?void 0:[i,t.substr(r)]},e.ignore=function(e){return function(t){var n=e(t);return n&&(n[0]=void 0),n}},e.optional=function(e,t){return function(n){return e(n)||[t,n]}},e.consumeList=function(t,n){for(var r=[],i=0;i<t.length;i++){var o=e.consumeTrimmed(t[i],n);if(!o||""==o[0])return;void 0!==o[0]&&r.push(o[0]),n=o[1]}if(""==n)return r},e.mergeNestedRepeated=r.bind(null,null),e.mergeWrappedNestedRepeated=r,e.mergeList=function(e,t,n){for(var r=[],i=[],o=[],a=0,s=0;s<n.length;s++)if("function"==typeof n[s]){var u=n[s](e[a],t[a++]);r.push(u[0]),i.push(u[1]),o.push(u[2])}else!function(e){r.push(!1),i.push(!1),o.push((function(){return n[e]}))}(s);return[r,i,function(e){for(var t="",n=0;n<e.length;n++)t+=o[n](e[n]);return t}]}}(r),function(e){function t(t){var n={inset:!1,lengths:[],color:null},r=e.consumeRepeated((function(t){var r=e.consumeToken(/^inset/i,t);return r?(n.inset=!0,r):(r=e.consumeLengthOrPercent(t))?(n.lengths.push(r[0]),r):(r=e.consumeColor(t))?(n.color=r[0],r):void 0}),/^/,t);if(r&&r[0].length)return[n,r[1]]}var n=function(t,n,r,i){function o(e){return{inset:e,color:[0,0,0,0],lengths:[{px:0},{px:0},{px:0},{px:0}]}}for(var a=[],s=[],u=0;u<r.length||u<i.length;u++){var l=r[u]||o(i[u].inset),c=i[u]||o(r[u].inset);a.push(l),s.push(c)}return e.mergeNestedRepeated(t,n,a,s)}.bind(null,(function(t,n){for(;t.lengths.length<Math.max(t.lengths.length,n.lengths.length);)t.lengths.push({px:0});for(;n.lengths.length<Math.max(t.lengths.length,n.lengths.length);)n.lengths.push({px:0});if(t.inset==n.inset&&!!t.color==!!n.color){for(var r,i=[],o=[[],0],a=[[],0],s=0;s<t.lengths.length;s++){var u=e.mergeDimensions(t.lengths[s],n.lengths[s],2==s);o[0].push(u[0]),a[0].push(u[1]),i.push(u[2])}if(t.color&&n.color){var l=e.mergeColors(t.color,n.color);o[1]=l[0],a[1]=l[1],r=l[2]}return[o,a,function(e){for(var n=t.inset?"inset ":" ",o=0;o<i.length;o++)n+=i[o](e[0][o])+" ";return r&&(n+=r(e[1])),n}]}}),", ");e.addPropertiesHandler((function(n){var r=e.consumeRepeated(t,/^,/,n);if(r&&""==r[1])return r[0]}),n,["box-shadow","text-shadow"])}(r),function(e,t){function n(e){return e.toFixed(3).replace(/0+$/,"").replace(/\.$/,"")}function r(e,t,n){return Math.min(t,Math.max(e,n))}function i(e){if(/^\s*[-+]?(\d*\.)?\d+\s*$/.test(e))return Number(e)}function o(e,t){return function(i,o){return[i,o,function(i){return n(r(e,t,i))}]}}function a(e){var t=e.trim().split(/\s*[\s,]\s*/);if(0!==t.length){for(var n=[],r=0;r<t.length;r++){var o=i(t[r]);if(void 0===o)return;n.push(o)}return n}}e.clamp=r,e.addPropertiesHandler(a,(function(e,t){if(e.length==t.length)return[e,t,function(e){return e.map(n).join(" ")}]}),["stroke-dasharray"]),e.addPropertiesHandler(i,o(0,1/0),["border-image-width","line-height"]),e.addPropertiesHandler(i,o(0,1),["opacity","shape-image-threshold"]),e.addPropertiesHandler(i,(function(e,t){if(0!=e)return o(0,1/0)(e,t)}),["flex-grow","flex-shrink"]),e.addPropertiesHandler(i,(function(e,t){return[e,t,function(e){return Math.round(r(1,1/0,e))}]}),["orphans","widows"]),e.addPropertiesHandler(i,(function(e,t){return[e,t,Math.round]}),["z-index"]),e.parseNumber=i,e.parseNumberList=a,e.mergeNumbers=function(e,t){return[e,t,n]},e.numberToString=n}(r),function(e,t){e.addPropertiesHandler(String,(function(e,t){if("visible"==e||"visible"==t)return[0,1,function(n){return n<=0?e:n>=1?t:"visible"}]}),["visibility"])}(r),function(e,t){function n(e){e=e.trim(),o.fillStyle="#000",o.fillStyle=e;var t=o.fillStyle;if(o.fillStyle="#fff",o.fillStyle=e,t==o.fillStyle){o.fillRect(0,0,1,1);var n=o.getImageData(0,0,1,1).data;o.clearRect(0,0,1,1);var r=n[3]/255;return[n[0]*r,n[1]*r,n[2]*r,r]}}function r(t,n){return[t,n,function(t){function n(e){return Math.max(0,Math.min(255,e))}if(t[3])for(var r=0;r<3;r++)t[r]=Math.round(n(t[r]/t[3]));return t[3]=e.numberToString(e.clamp(0,1,t[3])),"rgba("+t.join(",")+")"}]}var i=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");i.width=i.height=1;var o=i.getContext("2d");e.addPropertiesHandler(n,r,["background-color","border-bottom-color","border-left-color","border-right-color","border-top-color","color","fill","flood-color","lighting-color","outline-color","stop-color","stroke","text-decoration-color"]),e.consumeColor=e.consumeParenthesised.bind(null,n),e.mergeColors=r}(r),function(e,t){function n(e){function t(){var t=a.exec(e);o=t?t[0]:void 0}function n(){if("("!==o)return function(){var e=Number(o);return t(),e}();t();var e=i();return")"!==o?NaN:(t(),e)}function r(){for(var e=n();"*"===o||"/"===o;){var r=o;t();var i=n();"*"===r?e*=i:e/=i}return e}function i(){for(var e=r();"+"===o||"-"===o;){var n=o;t();var i=r();"+"===n?e+=i:e-=i}return e}var o,a=/([\+\-\w\.]+|[\(\)\*\/])/g;return t(),i()}function r(e,t){if("0"==(t=t.trim().toLowerCase())&&"px".search(e)>=0)return{px:0};if(/^[^(]*$|^calc/.test(t)){t=t.replace(/calc\(/g,"(");var r={};t=t.replace(e,(function(e){return r[e]=null,"U"+e}));for(var i="U("+e.source+")",o=t.replace(/[-+]?(\d*\.)?\d+([Ee][-+]?\d+)?/g,"N").replace(new RegExp("N"+i,"g"),"D").replace(/\s[+-]\s/g,"O").replace(/\s/g,""),a=[/N\*(D)/g,/(N|D)[*\/]N/g,/(N|D)O\1/g,/\((N|D)\)/g],s=0;s<a.length;)a[s].test(o)?(o=o.replace(a[s],"$1"),s=0):s++;if("D"==o){for(var u in r){var l=n(t.replace(new RegExp("U"+u,"g"),"").replace(new RegExp(i,"g"),"*0"));if(!isFinite(l))return;r[u]=l}return r}}}function i(e,t){return o(e,t,!0)}function o(t,n,r){var i,o=[];for(i in t)o.push(i);for(i in n)o.indexOf(i)<0&&o.push(i);return t=o.map((function(e){return t[e]||0})),n=o.map((function(e){return n[e]||0})),[t,n,function(t){var n=t.map((function(n,i){return 1==t.length&&r&&(n=Math.max(n,0)),e.numberToString(n)+o[i]})).join(" + ");return t.length>1?"calc("+n+")":n}]}var a="px|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc",s=r.bind(null,new RegExp(a,"g")),u=r.bind(null,new RegExp(a+"|%","g")),l=r.bind(null,/deg|rad|grad|turn/g);e.parseLength=s,e.parseLengthOrPercent=u,e.consumeLengthOrPercent=e.consumeParenthesised.bind(null,u),e.parseAngle=l,e.mergeDimensions=o;var c=e.consumeParenthesised.bind(null,s),f=e.consumeRepeated.bind(void 0,c,/^/),d=e.consumeRepeated.bind(void 0,f,/^,/);e.consumeSizePairList=d;var h=e.mergeNestedRepeated.bind(void 0,i," "),p=e.mergeNestedRepeated.bind(void 0,h,",");e.mergeNonNegativeSizePair=h,e.addPropertiesHandler((function(e){var t=d(e);if(t&&""==t[1])return t[0]}),p,["background-size"]),e.addPropertiesHandler(u,i,["border-bottom-width","border-image-width","border-left-width","border-right-width","border-top-width","flex-basis","font-size","height","line-height","max-height","max-width","outline-width","width"]),e.addPropertiesHandler(u,o,["border-bottom-left-radius","border-bottom-right-radius","border-top-left-radius","border-top-right-radius","bottom","left","letter-spacing","margin-bottom","margin-left","margin-right","margin-top","min-height","min-width","outline-offset","padding-bottom","padding-left","padding-right","padding-top","perspective","right","shape-margin","stroke-dashoffset","text-indent","top","vertical-align","word-spacing"])}(r),function(e,t){function n(t){return e.consumeLengthOrPercent(t)||e.consumeToken(/^auto/,t)}function r(t){var r=e.consumeList([e.ignore(e.consumeToken.bind(null,/^rect/)),e.ignore(e.consumeToken.bind(null,/^\(/)),e.consumeRepeated.bind(null,n,/^,/),e.ignore(e.consumeToken.bind(null,/^\)/))],t);if(r&&4==r[0].length)return r[0]}var i=e.mergeWrappedNestedRepeated.bind(null,(function(e){return"rect("+e+")"}),(function(t,n){return"auto"==t||"auto"==n?[!0,!1,function(r){var i=r?t:n;if("auto"==i)return"auto";var o=e.mergeDimensions(i,i);return o[2](o[0])}]:e.mergeDimensions(t,n)}),", ");e.parseBox=r,e.mergeBoxes=i,e.addPropertiesHandler(r,i,["clip"])}(r),function(e,t){function n(e){return function(t){var n=0;return e.map((function(e){return e===l?t[n++]:e}))}}function r(e){return e}function i(t){if("none"==(t=t.toLowerCase().trim()))return[];for(var n,r=/\s*(\w+)\(([^)]*)\)/g,i=[],o=0;n=r.exec(t);){if(n.index!=o)return;o=n.index+n[0].length;var a=n[1],s=d[a];if(!s)return;var u=n[2].split(","),l=s[0];if(l.length<u.length)return;for(var h=[],p=0;p<l.length;p++){var m,g=u[p],v=l[p];if(void 0===(m=g?{A:function(t){return"0"==t.trim()?f:e.parseAngle(t)},N:e.parseNumber,T:e.parseLengthOrPercent,L:e.parseLength}[v.toUpperCase()](g):{a:f,n:h[0],t:c}[v]))return;h.push(m)}if(i.push({t:a,d:h}),r.lastIndex==t.length)return i}}function o(e){return e.toFixed(6).replace(".000000","")}function a(t,n){if(t.decompositionPair!==n){t.decompositionPair=n;var r=e.makeMatrixDecomposition(t)}if(n.decompositionPair!==t){n.decompositionPair=t;var i=e.makeMatrixDecomposition(n)}return null==r[0]||null==i[0]?[[!1],[!0],function(e){return e?n[0].d:t[0].d}]:(r[0].push(0),i[0].push(1),[r,i,function(t){var n=e.quat(r[0][3],i[0][3],t[5]);return e.composeMatrix(t[0],t[1],t[2],n,t[4]).map(o).join(",")}])}function s(e){return e.replace(/[xy]/,"")}function u(e){return e.replace(/(x|y|z|3d)?$/,"3d")}var l=null,c={px:0},f={deg:0},d={matrix:["NNNNNN",[l,l,0,0,l,l,0,0,0,0,1,0,l,l,0,1],r],matrix3d:["NNNNNNNNNNNNNNNN",r],rotate:["A"],rotatex:["A"],rotatey:["A"],rotatez:["A"],rotate3d:["NNNA"],perspective:["L"],scale:["Nn",n([l,l,1]),r],scalex:["N",n([l,1,1]),n([l,1])],scaley:["N",n([1,l,1]),n([1,l])],scalez:["N",n([1,1,l])],scale3d:["NNN",r],skew:["Aa",null,r],skewx:["A",null,n([l,f])],skewy:["A",null,n([f,l])],translate:["Tt",n([l,l,c]),r],translatex:["T",n([l,c,c]),n([l,c])],translatey:["T",n([c,l,c]),n([c,l])],translatez:["L",n([c,c,l])],translate3d:["TTL",r]};e.addPropertiesHandler(i,(function(t,n){var r=e.makeMatrixDecomposition&&!0,i=!1;if(!t.length||!n.length){t.length||(i=!0,t=n,n=[]);for(var o=0;o<t.length;o++){var l=t[o].t,c=t[o].d,f="scale"==l.substr(0,5)?1:0;n.push({t:l,d:c.map((function(e){if("number"==typeof e)return f;var t={};for(var n in e)t[n]=f;return t}))})}}var h=function(e,t){return"perspective"==e&&"perspective"==t||("matrix"==e||"matrix3d"==e)&&("matrix"==t||"matrix3d"==t)},p=[],m=[],g=[];if(t.length!=n.length){if(!r)return;p=[(E=a(t,n))[0]],m=[E[1]],g=[["matrix",[E[2]]]]}else for(o=0;o<t.length;o++){var v=t[o].t,y=n[o].t,b=t[o].d,_=n[o].d,T=d[v],x=d[y];if(h(v,y)){if(!r)return;var E=a([t[o]],[n[o]]);p.push(E[0]),m.push(E[1]),g.push(["matrix",[E[2]]])}else{if(v==y)l=v;else if(T[2]&&x[2]&&s(v)==s(y))l=s(v),b=T[2](b),_=x[2](_);else{if(!T[1]||!x[1]||u(v)!=u(y)){if(!r)return;p=[(E=a(t,n))[0]],m=[E[1]],g=[["matrix",[E[2]]]];break}l=u(v),b=T[1](b),_=x[1](_)}for(var w=[],k=[],S=[],N=0;N<b.length;N++)E=("number"==typeof b[N]?e.mergeNumbers:e.mergeDimensions)(b[N],_[N]),w[N]=E[0],k[N]=E[1],S.push(E[2]);p.push(w),m.push(k),g.push([l,S])}}if(i){var R=p;p=m,m=R}return[p,m,function(e){return e.map((function(e,t){var n=e.map((function(e,n){return g[t][1][n](e)})).join(",");return"matrix"==g[t][0]&&16==n.split(",").length&&(g[t][0]="matrix3d"),g[t][0]+"("+n+")"})).join(" ")}]}),["transform"]),e.transformToSvgMatrix=function(t){var n=e.transformListToMatrix(i(t));return"matrix("+o(n[0])+" "+o(n[1])+" "+o(n[4])+" "+o(n[5])+" "+o(n[12])+" "+o(n[13])+")"}}(r),function(e){function t(t){return t=100*Math.round(t/100),400===(t=e.clamp(100,900,t))?"normal":700===t?"bold":String(t)}e.addPropertiesHandler((function(e){var t=Number(e);if(!(isNaN(t)||t<100||t>900||t%100!=0))return t}),(function(e,n){return[e,n,t]}),["font-weight"])}(r),function(e){function t(e){var t={};for(var n in e)t[n]=-e[n];return t}function n(t){return e.consumeToken(/^(left|center|right|top|bottom)\b/i,t)||e.consumeLengthOrPercent(t)}function r(t,r){var i=e.consumeRepeated(n,/^/,r);if(i&&""==i[1]){var a=i[0];if(a[0]=a[0]||"center",a[1]=a[1]||"center",3==t&&(a[2]=a[2]||{px:0}),a.length==t){if(/top|bottom/.test(a[0])||/left|right/.test(a[1])){var s=a[0];a[0]=a[1],a[1]=s}if(/left|right|center|Object/.test(a[0])&&/top|bottom|center|Object/.test(a[1]))return a.map((function(e){return"object"==typeof e?e:o[e]}))}}}function i(r){var i=e.consumeRepeated(n,/^/,r);if(i){for(var a=i[0],s=[{"%":50},{"%":50}],u=0,l=!1,c=0;c<a.length;c++){var f=a[c];"string"==typeof f?(l=/bottom|right/.test(f),s[u={left:0,right:0,center:u,top:1,bottom:1}[f]]=o[f],"center"==f&&u++):(l&&((f=t(f))["%"]=(f["%"]||0)+100),s[u]=f,u++,l=!1)}return[s,i[1]]}}var o={left:{"%":0},center:{"%":50},right:{"%":100},top:{"%":0},bottom:{"%":100}},a=e.mergeNestedRepeated.bind(null,e.mergeDimensions," ");e.addPropertiesHandler(r.bind(null,3),a,["transform-origin"]),e.addPropertiesHandler(r.bind(null,2),a,["perspective-origin"]),e.consumePosition=i,e.mergeOffsetList=a;var s=e.mergeNestedRepeated.bind(null,a,", ");e.addPropertiesHandler((function(t){var n=e.consumeRepeated(i,/^,/,t);if(n&&""==n[1])return n[0]}),s,["background-position","object-position"])}(r),function(e){var t=e.consumeParenthesised.bind(null,e.parseLengthOrPercent),n=e.consumeRepeated.bind(void 0,t,/^/),r=e.mergeNestedRepeated.bind(void 0,e.mergeDimensions," "),i=e.mergeNestedRepeated.bind(void 0,r,",");e.addPropertiesHandler((function(r){var i=e.consumeToken(/^circle/,r);if(i&&i[0])return["circle"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),t,e.ignore(e.consumeToken.bind(void 0,/^at/)),e.consumePosition,e.ignore(e.consumeToken.bind(void 0,/^\)/))],i[1]));var o=e.consumeToken(/^ellipse/,r);if(o&&o[0])return["ellipse"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),n,e.ignore(e.consumeToken.bind(void 0,/^at/)),e.consumePosition,e.ignore(e.consumeToken.bind(void 0,/^\)/))],o[1]));var a=e.consumeToken(/^polygon/,r);return a&&a[0]?["polygon"].concat(e.consumeList([e.ignore(e.consumeToken.bind(void 0,/^\(/)),e.optional(e.consumeToken.bind(void 0,/^nonzero\s*,|^evenodd\s*,/),"nonzero,"),e.consumeSizePairList,e.ignore(e.consumeToken.bind(void 0,/^\)/))],a[1])):void 0}),(function(t,n){if(t[0]===n[0])return"circle"==t[0]?e.mergeList(t.slice(1),n.slice(1),["circle(",e.mergeDimensions," at ",e.mergeOffsetList,")"]):"ellipse"==t[0]?e.mergeList(t.slice(1),n.slice(1),["ellipse(",e.mergeNonNegativeSizePair," at ",e.mergeOffsetList,")"]):"polygon"==t[0]&&t[1]==n[1]?e.mergeList(t.slice(2),n.slice(2),["polygon(",t[1],i,")"]):void 0}),["shape-outside"])}(r),function(e,t){function n(e,t){t.concat([e]).forEach((function(t){t in document.documentElement.style&&(r[e]=t),i[t]=e}))}var r={},i={};n("transform",["webkitTransform","msTransform"]),n("transformOrigin",["webkitTransformOrigin"]),n("perspective",["webkitPerspective"]),n("perspectiveOrigin",["webkitPerspectiveOrigin"]),e.propertyName=function(e){return r[e]||e},e.unprefixedPropertyName=function(e){return i[e]||e}}(r)}(),function(){if(void 0===document.createElement("div").animate([]).oncancel){if(window.performance&&performance.now)var e=function(){return performance.now()};else e=function(){return Date.now()};var t=function(e,t,n){this.target=e,this.currentTime=t,this.timelineTime=n,this.type="cancel",this.bubbles=!1,this.cancelable=!1,this.currentTarget=e,this.defaultPrevented=!1,this.eventPhase=Event.AT_TARGET,this.timeStamp=Date.now()},n=window.Element.prototype.animate;window.Element.prototype.animate=function(r,i){var o=n.call(this,r,i);o._cancelHandlers=[],o.oncancel=null;var a=o.cancel;o.cancel=function(){a.call(this);var n=new t(this,null,e()),r=this._cancelHandlers.concat(this.oncancel?[this.oncancel]:[]);setTimeout((function(){r.forEach((function(e){e.call(n.target,n)}))}),0)};var s=o.addEventListener;o.addEventListener=function(e,t){"function"==typeof t&&"cancel"==e?this._cancelHandlers.push(t):s.call(this,e,t)};var u=o.removeEventListener;return o.removeEventListener=function(e,t){if("cancel"==e){var n=this._cancelHandlers.indexOf(t);n>=0&&this._cancelHandlers.splice(n,1)}else u.call(this,e,t)},o}}}(),function(e){var t=document.documentElement,n=null,r=!1;try{var i="0"==getComputedStyle(t).getPropertyValue("opacity")?"1":"0";(n=t.animate({opacity:[i,i]},{duration:1})).currentTime=0,r=getComputedStyle(t).getPropertyValue("opacity")==i}catch(e){}finally{n&&n.cancel()}if(!r){var o=window.Element.prototype.animate;window.Element.prototype.animate=function(t,n){return window.Symbol&&Symbol.iterator&&Array.prototype.from&&t[Symbol.iterator]&&(t=Array.from(t)),Array.isArray(t)||null===t||(t=e.convertToArrayForm(t)),o.call(this,t,n)}}}(n);var n,r;window.NJStore=window.NJStore||[];const i=(()=>{const e=window.NJStore;return{set(t,n,r){void 0===t.key&&(t.key={key:n,id:e.length}),e[t.key.id]=r},get:(t,n)=>(t.key&&n&&void 0===n.id&&(n=t.key),n&&void 0!==n.id?e[n.id]:null),delete(t,n){if(void 0===t.key)return;const r=t.key;r.key===n&&(delete e[r.id],delete t.key)}}})(),o={setData(e,t,n){i.set(e,t,n)},getData:(e,t)=>i.get(e,t),removeData(e,t){i.delete(e,t)}},a=o;class s{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};!t||t instanceof Element||console.error(Error(`${t} is not an HTML Element`)),this.options=n,this.element=t}static init(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;const r=[],i=document.querySelectorAll(n);for(let n=0;n<i.length;n++){const o=i[n];if(!o.key||o.key.key!==e.DATA_KEY){const s=new e(i[n],t);o.key||a.setData(i[n],e.DATA_KEY,s),r.push(s)}}return r}}var u,l,c,f;!function(e){e.LIBRARY_LOG_TAG="[FLUID]",e.KEY_PREFIX="nj",e.DATA_API_KEY=".data-api"}(u||(u={})),function(e){e.mouseenter="mouseover",e.mouseleave="mouseout"}(l||(l={})),function(e){e.beforehide="beforehide",e.click="click",e.close="close",e.closed="closed",e.hide="hide",e.hidden="hidden",e.input="input",e.keydown="keydown",e.keyup="keyup",e.onchange="onchange",e.show="show",e.shown="shown",e.inserted="inserted",e.focusin="focusin",e.focusout="focusout",e.mouseenter="mouseenter",e.mouseleave="mouseleave",e.mouseup="mouseup",e.mousedown="mousedown",e.decrement="decrement",e.increment="increment"}(c||(c={})),function(e){e.click="click",e.dblclick="dblclick",e.mouseup="mouseup",e.mousedown="mousedown",e.contextmenu="contextmenu",e.mousewheel="mousewheel",e.DOMMouseScroll="DOMMouseScroll",e.mouseover="mouseover",e.mouseout="mouseout",e.mousemove="mousemove",e.selectstart="selectstart",e.selectend="selectend",e.keydown="keydown",e.keypress="keypress",e.keyup="keyup",e.orientationchange="orientationchange",e.touchstart="touchstart",e.touchmove="touchmove",e.touchend="touchend",e.touchcancel="touchcancel",e.pointerdown="pointerdown",e.pointermove="pointermove",e.pointerup="pointerup",e.pointerleave="pointerleave",e.pointercancel="pointercancel",e.gesturestart="gesturestart",e.gesturechange="gesturechange",e.gestureend="gestureend",e.focus="focus",e.blur="blur",e.change="change",e.reset="reset",e.select="select",e.submit="submit",e.focusin="focusin",e.focusout="focusout",e.load="load",e.unload="unload",e.beforeunload="beforeunload",e.resize="resize",e.move="move",e.DOMContentLoaded="DOMContentLoaded",e.readystatechange="readystatechange",e.error="error",e.abort="abort",e.scroll="scroll"}(f||(f={}));class d{static getUidEvent(e,t){return t&&`${t}::${d.uidEvent++}`||e.uidEvent||d.uidEvent++}static getEvent(e){const t=d.getUidEvent(e);return e.uidEvent=t,d.EVENTREGISTRY[t]=d.EVENTREGISTRY[t]||{}}static fixEvent(e,t){null===e.which&&d.KEYEVENT_REGEX.test(e.type)&&(e.which=null!==e.charCode?e.charCode:e.keyCode),e.delegateTarget=t}static njHandler(e,t){const n=r=>(d.fixEvent(r,e),n.oneOff&&d.off(e,r.type,t),t.apply(e,[r]));return n}static njDelegationHandler(e,t,n){const r=i=>{const o=e.querySelectorAll(t);for(let t=i.target;t&&t!==this;t=t.parentNode)for(let a=o.length;a>=0;a--)if(o[a]===t)return d.fixEvent(i,t),r.oneOff&&d.off(e,i.type,n),n.apply(t,[i]);return null};return r}static findHandler(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;for(const r in e){if(!Object.prototype.hasOwnProperty.call(e,r))continue;const i=e[r];if(i.originalHandler===t&&i.delegationSelector===n)return e[r]}return null}static normalizeParams(e,t,n){const r="string"==typeof t,i=r?n:t;let o=e.replace(d.STRIPNAME_REGEX,"");const a=l[o];a&&(o=a);return"string"==typeof f[o]||(o=e),[r,i,o]}static addHandler(e,t,n,r,i){if("string"!=typeof t||null==e)return;n||(n=r,r=null);const o=d.getEvent(e);for(const a of t.split(" ")){const[t,s,u]=d.normalizeParams(a,n,r),l=o[u]||(o[u]={}),c=d.findHandler(l,s,t?n:null);if(c)return void(c.oneOff=c.oneOff&&i);const f=d.getUidEvent(s,a.replace(d.NAMESPACE_REGEX,"")),h=t?d.njDelegationHandler(e,n,r):d.njHandler(e,n);h.delegationSelector=t?n:null,h.originalHandler=s,h.oneOff=i,h.uidEvent=f,l[f]=h,e.addEventListener(u,h,t)}}static removeHandler(e,t,n,r,i){const o=d.findHandler(t[n],r,i);null!==o&&(e.removeEventListener(n,o,Boolean(i)),delete t[n][o.uidEvent])}static removeNamespacedHandlers(e,t,n,r){const i=t[n]||{};for(const o in i)if(Object.prototype.hasOwnProperty.call(i,o)&&o.indexOf(r)>-1){const r=i[o];d.removeHandler(e,t,n,r.originalHandler,r.delegationSelector)}}static on(e,t,n,r){d.addHandler(e,t,n,r,!1)}static one(e,t,n,r){d.addHandler(e,t,n,r,!0)}static off(e,t,n,r){if("string"!=typeof t||null==e)return;const[i,o,a]=d.normalizeParams(t,n,r),s=a!==t,u=d.getEvent(e);if(void 0!==o){if(!u||!u[a])return;return void d.removeHandler(e,u,a,o,i?n:null)}if("."===t.charAt(0))for(const n in u)Object.prototype.hasOwnProperty.call(u,n)&&d.removeNamespacedHandlers(e,u,n,t.substr(1));const l=u[a]||{};for(const n in l){if(!Object.prototype.hasOwnProperty.call(l,n))continue;const r=n.replace(d.STRIPUID_REGEX,"");if(!s||t.indexOf(r)>-1){const t=l[n];d.removeHandler(e,u,a,t.originalHandler,t.delegationSelector)}}}static trigger(e,t,n){if("string"!=typeof t||null==e)return null;const r=t.replace(d.STRIPNAME_REGEX,""),i="string"==typeof f[r],o=!0;let a=null;return i?(a=document.createEvent("HTMLEvents"),a.initEvent(r,o,!0)):a=new window.CustomEvent(t,{bubbles:o,cancelable:!0}),void 0!==n&&Object.keys(n).forEach((e=>{Object.defineProperty(a,e,{get:()=>n[e]})})),e.dispatchEvent(a),a}}d.NAMESPACE_REGEX=/[^.]*(?=\..*)\.|.*/,d.STRIPNAME_REGEX=/\..*/,d.KEYEVENT_REGEX=/^key/,d.STRIPUID_REGEX=/::\d+$/,d.EVENTREGISTRY={},d.uidEvent=1;const h=d;const p={getDataAttributes(e){if(null==e)return{};let t={};if(Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset"))t=Object.assign({},e.dataset);else for(let n=0;n<e.attributes.length;n++){const r=e.attributes[n];if(-1!==r.nodeName.indexOf("data-")){const e=r.nodeName.substring(5).replace(/-./g,(e=>e.charAt(1).toUpperCase()));t[e]=r.nodeValue}}return Object.keys(t).forEach((e=>{var n;t[e]="true"===(n=t[e])||"false"!==n&&("null"===n?null:n===Number(n).toString()?Number(n):""===n?null:n)})),t},toggleClass(e,t){null!=e&&(e.classList.contains(t)?e.classList.remove(t):e.classList.add(t))},mergeExtended(e,t,n){for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n&&"[object Object]"===Object.prototype.toString.call(t[r])?e[r]=p.extend(e[r],t[r]):e[r]=t[r]);return e},extend(){let e={},t=!1,n=0;for("[object Boolean]"===Object.prototype.toString.call(arguments.length<=0?void 0:arguments[0])&&(t=arguments.length<=0?void 0:arguments[0],n++);n<arguments.length;n++)e=p.mergeExtended(e,n<0||arguments.length<=n?void 0:arguments[n],t);return e},createHtmlNode:e=>(new DOMParser).parseFromString(e,"text/html").body.firstChild},m=p;var g=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};class v extends s{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};super(v,e,m.extend(!0,{},t)),h.on(e,c.click,this.handleClick.bind(this))}closeAndDestroy(){this.element.animate(v.KEYFRAMES,{duration:200,delay:70,easing:"ease-out"}).onfinish=()=>{this.destroyElement()}}close(e){return g(this,void 0,void 0,(function*(){this.element.animate(v.KEYFRAMES,{duration:200,delay:70,easing:"ease-out"}),yield new Promise((e=>setTimeout(e,270))),e()}))}destroyElement(){this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.dispose()}dispose(){a.removeData(this.element,v.DATA_KEY),h.off(this.element,c.click,this.handleClick.bind(this)),this.element=null}handleClick(e){e.target.closest(v.SELECTOR.close)&&(e.preventDefault(),this.closeAndDestroy())}static init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return super.init(this,e,v.SELECTOR.default)}static getInstance(e){return a.getData(e,v.DATA_KEY)}static getRootElement(e){return e.closest(v.SELECTOR.default)}}v.NAME=`${u.KEY_PREFIX}-tag`,v.DATA_KEY=`${u.KEY_PREFIX}.tag`,v.KEYFRAMES=[{opacity:1},{opacity:0}],v.SELECTOR={default:`.${v.NAME}:not(.disabled)`,close:`.${v.NAME}__close`};const y=v;return t=t.default})()));
//# sourceMappingURL=index.js.map

@@ -1,2 +0,2 @@

!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("Tooltip",[],e):"object"==typeof exports?exports.Tooltip=e():t.Tooltip=e()}(window,(()=>(()=>{"use strict";var t={d:(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},e={};t.d(e,{default:()=>dt});const n=Math.min,o=Math.max,i=Math.round,r=Math.floor,l=t=>({x:t,y:t}),s={left:"right",right:"left",bottom:"top",top:"bottom"},a={start:"end",end:"start"};function c(t,e){return"function"==typeof t?t(e):t}function f(t){return t.split("-")[0]}function u(t){return t.split("-")[1]}function d(t){return"y"===t?"height":"width"}function p(t){return["top","bottom"].includes(f(t))?"y":"x"}function m(t){return"x"===p(t)?"y":"x"}function h(t){return t.replace(/start|end/g,(t=>a[t]))}function g(t){return t.replace(/left|right|bottom|top/g,(t=>s[t]))}function y(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function w(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function v(t,e,n){let{reference:o,floating:i}=t;const r=p(e),l=m(e),s=d(l),a=f(e),c="y"===r,h=o.x+o.width/2-i.width/2,g=o.y+o.height/2-i.height/2,y=o[s]/2-i[s]/2;let w;switch(a){case"top":w={x:h,y:o.y-i.height};break;case"bottom":w={x:h,y:o.y+o.height};break;case"right":w={x:o.x+o.width,y:g};break;case"left":w={x:o.x-i.width,y:g};break;default:w={x:o.x,y:o.y}}switch(u(e)){case"start":w[l]-=y*(n&&c?-1:1);break;case"end":w[l]+=y*(n&&c?-1:1)}return w}async function E(t,e){var n;void 0===e&&(e={});const{x:o,y:i,platform:r,rects:l,elements:s,strategy:a}=t,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:m=0}=c(e,t),h=y(m),g=s[p?"floating"===d?"reference":"floating":d],v=w(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(g)))||n?g:g.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(s.floating)),boundary:f,rootBoundary:u,strategy:a})),E="floating"===d?{...l.floating,x:o,y:i}:l.reference,b=await(null==r.getOffsetParent?void 0:r.getOffsetParent(s.floating)),x=await(null==r.isElement?void 0:r.isElement(b))&&await(null==r.getScale?void 0:r.getScale(b))||{x:1,y:1},T=w(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:E,offsetParent:b,strategy:a}):E);return{top:(v.top-T.top+h.top)/x.y,bottom:(T.bottom-v.bottom+h.bottom)/x.y,left:(v.left-T.left+h.left)/x.x,right:(T.right-v.right+h.right)/x.x}}function b(t){return R(t)?(t.nodeName||"").toLowerCase():"#document"}function x(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function T(t){var e;return null==(e=(R(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function R(t){return t instanceof Node||t instanceof x(t).Node}function L(t){return t instanceof Element||t instanceof x(t).Element}function C(t){return t instanceof HTMLElement||t instanceof x(t).HTMLElement}function O(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof x(t).ShadowRoot)}function A(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=P(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function D(t){return["table","td","th"].includes(b(t))}function S(t){const e=F(),n=P(t);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function F(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function N(t){return["html","body","#document"].includes(b(t))}function P(t){return x(t).getComputedStyle(t)}function j(t){return L(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function H(t){if("html"===b(t))return t;const e=t.assignedSlot||t.parentNode||O(t)&&t.host||T(t);return O(e)?e.host:e}function I(t){const e=H(t);return N(e)?t.ownerDocument?t.ownerDocument.body:t.body:C(e)&&A(e)?e:I(e)}function _(t,e,n){var o;void 0===e&&(e=[]),void 0===n&&(n=!0);const i=I(t),r=i===(null==(o=t.ownerDocument)?void 0:o.body),l=x(i);return r?e.concat(l,l.visualViewport||[],A(i)?i:[],l.frameElement&&n?_(l.frameElement):[]):e.concat(i,_(i,[],n))}function k(t){const e=P(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=C(t),l=r?t.offsetWidth:n,s=r?t.offsetHeight:o,a=i(n)!==l||i(o)!==s;return a&&(n=l,o=s),{width:n,height:o,$:a}}function M(t){return L(t)?t:t.contextElement}function B(t){const e=M(t);if(!C(e))return l(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:s}=k(e);let a=(s?i(n.width):n.width)/o,c=(s?i(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),c&&Number.isFinite(c)||(c=1),{x:a,y:c}}const W=l(0);function $(t){const e=x(t);return F()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:W}function V(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const i=t.getBoundingClientRect(),r=M(t);let s=l(1);e&&(o?L(o)&&(s=B(o)):s=B(t));const a=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==x(t))&&e}(r,n,o)?$(r):l(0);let c=(i.left+a.x)/s.x,f=(i.top+a.y)/s.y,u=i.width/s.x,d=i.height/s.y;if(r){const t=x(r),e=o&&L(o)?x(o):o;let n=t,i=n.frameElement;for(;i&&o&&e!==n;){const t=B(i),e=i.getBoundingClientRect(),o=P(i),r=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,l=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;c*=t.x,f*=t.y,u*=t.x,d*=t.y,c+=r,f+=l,n=x(i),i=n.frameElement}}return w({width:u,height:d,x:c,y:f})}const z=[":popover-open",":modal"];function q(t){return z.some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function U(t){return V(T(t)).left+j(t).scrollLeft}function X(t,e,n){let i;if("viewport"===e)i=function(t,e){const n=x(t),o=T(t),i=n.visualViewport;let r=o.clientWidth,l=o.clientHeight,s=0,a=0;if(i){r=i.width,l=i.height;const t=F();(!t||t&&"fixed"===e)&&(s=i.offsetLeft,a=i.offsetTop)}return{width:r,height:l,x:s,y:a}}(t,n);else if("document"===e)i=function(t){const e=T(t),n=j(t),i=t.ownerDocument.body,r=o(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),l=o(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let s=-n.scrollLeft+U(t);const a=-n.scrollTop;return"rtl"===P(i).direction&&(s+=o(e.clientWidth,i.clientWidth)-r),{width:r,height:l,x:s,y:a}}(T(t));else if(L(e))i=function(t,e){const n=V(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=C(t)?B(t):l(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:i*r.x,y:o*r.y}}(e,n);else{const n=$(t);i={...e,x:e.x-n.x,y:e.y-n.y}}return w(i)}function Y(t,e){const n=H(t);return!(n===e||!L(n)||N(n))&&("fixed"===P(n).position||Y(n,e))}function G(t,e,n){const o=C(e),i=T(e),r="fixed"===n,s=V(t,!0,r,e);let a={scrollLeft:0,scrollTop:0};const c=l(0);if(o||!o&&!r)if(("body"!==b(e)||A(i))&&(a=j(e)),o){const t=V(e,!0,r,e);c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}else i&&(c.x=U(i));return{x:s.left+a.scrollLeft-c.x,y:s.top+a.scrollTop-c.y,width:s.width,height:s.height}}function J(t,e){return C(t)&&"fixed"!==P(t).position?e?e(t):t.offsetParent:null}function K(t,e){const n=x(t);if(!C(t)||q(t))return n;let o=J(t,e);for(;o&&D(o)&&"static"===P(o).position;)o=J(o,e);return o&&("html"===b(o)||"body"===b(o)&&"static"===P(o).position&&!S(o))?n:o||function(t){let e=H(t);for(;C(e)&&!N(e);){if(S(e))return e;e=H(e)}return null}(t)||n}const Q={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r="fixed"===i,s=T(o),a=!!e&&q(e.floating);if(o===s||a&&r)return n;let c={scrollLeft:0,scrollTop:0},f=l(1);const u=l(0),d=C(o);if((d||!d&&!r)&&(("body"!==b(o)||A(s))&&(c=j(o)),C(o))){const t=V(o);f=B(o),u.x=t.x+o.clientLeft,u.y=t.y+o.clientTop}return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-c.scrollLeft*f.x+u.x,y:n.y*f.y-c.scrollTop*f.y+u.y}},getDocumentElement:T,getClippingRect:function(t){let{element:e,boundary:i,rootBoundary:r,strategy:l}=t;const s=[..."clippingAncestors"===i?function(t,e){const n=e.get(t);if(n)return n;let o=_(t,[],!1).filter((t=>L(t)&&"body"!==b(t))),i=null;const r="fixed"===P(t).position;let l=r?H(t):t;for(;L(l)&&!N(l);){const e=P(l),n=S(l);n||"fixed"!==e.position||(i=null),(r?!n&&!i:!n&&"static"===e.position&&i&&["absolute","fixed"].includes(i.position)||A(l)&&!n&&Y(t,l))?o=o.filter((t=>t!==l)):i=e,l=H(l)}return e.set(t,o),o}(e,this._c):[].concat(i),r],a=s[0],c=s.reduce(((t,i)=>{const r=X(e,i,l);return t.top=o(r.top,t.top),t.right=n(r.right,t.right),t.bottom=n(r.bottom,t.bottom),t.left=o(r.left,t.left),t}),X(e,a,l));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:K,getElementRects:async function(t){const e=this.getOffsetParent||K,n=this.getDimensions;return{reference:G(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,...await n(t.floating)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=k(t);return{width:e,height:n}},getScale:B,isElement:L,isRTL:function(t){return"rtl"===P(t).direction}};function Z(t,e,i,l){void 0===l&&(l={});const{ancestorScroll:s=!0,ancestorResize:a=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:f="function"==typeof IntersectionObserver,animationFrame:u=!1}=l,d=M(t),p=s||a?[...d?_(d):[],..._(e)]:[];p.forEach((t=>{s&&t.addEventListener("scroll",i,{passive:!0}),a&&t.addEventListener("resize",i)}));const m=d&&f?function(t,e){let i,l=null;const s=T(t);function a(){var t;clearTimeout(i),null==(t=l)||t.disconnect(),l=null}return function c(f,u){void 0===f&&(f=!1),void 0===u&&(u=1),a();const{left:d,top:p,width:m,height:h}=t.getBoundingClientRect();if(f||e(),!m||!h)return;const g={rootMargin:-r(p)+"px "+-r(s.clientWidth-(d+m))+"px "+-r(s.clientHeight-(p+h))+"px "+-r(d)+"px",threshold:o(0,n(1,u))||1};let y=!0;function w(t){const e=t[0].intersectionRatio;if(e!==u){if(!y)return c();e?c(!1,e):i=setTimeout((()=>{c(!1,1e-7)}),100)}y=!1}try{l=new IntersectionObserver(w,{...g,root:s.ownerDocument})}catch(t){l=new IntersectionObserver(w,g)}l.observe(t)}(!0),a}(d,i):null;let h,g=-1,y=null;c&&(y=new ResizeObserver((t=>{let[n]=t;n&&n.target===d&&y&&(y.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame((()=>{var t;null==(t=y)||t.observe(e)}))),i()})),d&&!u&&y.observe(d),y.observe(e));let w=u?V(t):null;return u&&function e(){const n=V(t);!w||n.x===w.x&&n.y===w.y&&n.width===w.width&&n.height===w.height||i();w=n,h=requestAnimationFrame(e)}(),i(),()=>{var t;p.forEach((t=>{s&&t.removeEventListener("scroll",i),a&&t.removeEventListener("resize",i)})),null==m||m(),null==(t=y)||t.disconnect(),y=null,u&&cancelAnimationFrame(h)}}const tt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:l,initialPlacement:s,platform:a,elements:p}=e,{mainAxis:y=!0,crossAxis:w=!0,fallbackPlacements:v,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:T=!0,...R}=c(t,e);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const L=f(i),C=f(s)===s,O=await(null==a.isRTL?void 0:a.isRTL(p.floating)),A=v||(C||!T?[g(s)]:function(t){const e=g(t);return[h(t),e,h(e)]}(s));v||"none"===x||A.push(...function(t,e,n,o){const i=u(t);let r=function(t,e,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],l=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:l;default:return[]}}(f(t),"start"===n,o);return i&&(r=r.map((t=>t+"-"+i)),e&&(r=r.concat(r.map(h)))),r}(s,T,x,O));const D=[s,...A],S=await E(e,R),F=[];let N=(null==(o=r.flip)?void 0:o.overflows)||[];if(y&&F.push(S[L]),w){const t=function(t,e,n){void 0===n&&(n=!1);const o=u(t),i=m(t),r=d(i);let l="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[r]>e.floating[r]&&(l=g(l)),[l,g(l)]}(i,l,O);F.push(S[t[0]],S[t[1]])}if(N=[...N,{placement:i,overflows:F}],!F.every((t=>t<=0))){var P,j;const t=((null==(P=r.flip)?void 0:P.index)||0)+1,e=D[t];if(e)return{data:{index:t,overflows:N},reset:{placement:e}};let n=null==(j=N.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:j.placement;if(!n)switch(b){case"bestFit":{var H;const t=null==(H=N.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:H[0];t&&(n=t);break}case"initialPlacement":n=s}if(i!==n)return{reset:{placement:n}}}return{}}}},et=t=>({name:"arrow",options:t,async fn(e){const{x:i,y:r,placement:l,rects:s,platform:a,elements:f,middlewareData:p}=e,{element:h,padding:g=0}=c(t,e)||{};if(null==h)return{};const w=y(g),v={x:i,y:r},E=m(l),b=d(E),x=await a.getDimensions(h),T="y"===E,R=T?"top":"left",L=T?"bottom":"right",C=T?"clientHeight":"clientWidth",O=s.reference[b]+s.reference[E]-v[E]-s.floating[b],A=v[E]-s.reference[E],D=await(null==a.getOffsetParent?void 0:a.getOffsetParent(h));let S=D?D[C]:0;S&&await(null==a.isElement?void 0:a.isElement(D))||(S=f.floating[C]||s.floating[b]);const F=O/2-A/2,N=S/2-x[b]/2-1,P=n(w[R],N),j=n(w[L],N),H=P,I=S-x[b]-j,_=S/2-x[b]/2+F,k=o(H,n(_,I));const M=!p.arrow&&null!=u(l)&&_!==k&&s.reference[b]/2-(_<H?P:j)-x[b]/2<0,B=M?_<H?_-H:_-I:0;return{[E]:v[E]+B,data:{[E]:k,centerOffset:_-k-B,...M&&{alignmentOffset:B}},reset:M}}}),nt=(t,e,n)=>{const o=new Map,i={platform:Q,...n},r={...i.platform,_c:o};return(async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:l}=n,s=r.filter(Boolean),a=await(null==l.isRTL?void 0:l.isRTL(e));let c=await l.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:u}=v(c,o,a),d=o,p={},m=0;for(let n=0;n<s.length;n++){const{name:r,fn:h}=s[n],{x:g,y,data:w,reset:E}=await h({x:f,y:u,initialPlacement:o,placement:d,strategy:i,middlewareData:p,rects:c,platform:l,elements:{reference:t,floating:e}});f=null!=g?g:f,u=null!=y?y:u,p={...p,[r]:{...p[r],...w}},E&&m<=50&&(m++,"object"==typeof E&&(E.placement&&(d=E.placement),E.rects&&(c=!0===E.rects?await l.getElementRects({reference:t,floating:e,strategy:i}):E.rects),({x:f,y:u}=v(c,d,a))),n=-1)}return{x:f,y:u,placement:d,strategy:i,middlewareData:p}})(t,e,{...i,platform:r})};const ot={TRANSITION_END:"transitionend",getUID(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},getSelectorFromElement(t){let e=t.getAttribute("data-target");if(!e||"#"===e){const n=t.getAttribute("href");e=n&&"#"!==n?n.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement(t){if(!t)return 0;let e=window.getComputedStyle(t).transitionDuration,n=window.getComputedStyle(t).transitionDelay;const o=parseFloat(e),i=parseFloat(n);return o||i?(e=e.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(e)+parseFloat(n))):0},reflow:t=>t.offsetHeight,triggerTransitionEnd(t){const e=new CustomEvent(ot.TRANSITION_END,{});t.dispatchEvent(e)},isElement:t=>(t[0]||t).nodeType,emulateTransitionEnd(t,e){let n=!1;const o=e+5;t.addEventListener(ot.TRANSITION_END,(function e(){n=!0,t.removeEventListener(ot.TRANSITION_END,e)})),setTimeout((()=>{n||ot.triggerTransitionEnd(t)}),o)},typeCheckConfig(t,e,n){for(const i in n)if(Object.prototype.hasOwnProperty.call(n,i)){const r=n[i],l=e[i],s=l&&ot.isElement(l)?"element":(o=l,{}.toString.call(o).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(r).test(s))throw new Error(`${t.toUpperCase()}: Option "${i}" provided type "${s}" but expected type "${r}".`)}var o},makeArray:t=>null==t?[]:[].slice.call(t),findShadowRoot(t){if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?ot.findShadowRoot(t.parentElement):null},throttle(t,e,n,o,i){let r,l,s,a=null,c=0;const f=()=>{c=Date.now(),a=null,s=t.apply(l,r)};return()=>{const u=Date.now();c||n||(c=u);const d=e-(u-c);return l=i||this,r=arguments,d<=0?(clearTimeout(a),a=null,c=u,s=t.apply(l,r)):!a&&o&&(a=setTimeout(f,d)),s}},coerceBool:t=>Boolean(t)},it=ot,rt={hasArrow:!0,isColorInverse:!1,placement:"top",isContentHtml:!1},lt={element:"nj-tooltip",modifier:{withoutArrow:"nj-tooltip--without-arrow",inverse:"nj-tooltip--inverse",placed:t=>`nj-tooltip--${t}`}},st={element:"nj-tooltip__arrow",modifier:{center:"nj-tooltip__arrow--center"}},at={element:"nj-tooltip__inner"};class ct{constructor(t,e,n){var o;this._isDisplayed=!1,this.anchorElement=t,this.anchorParentElement=t.parentElement,this.createTooltipElement(),Object.defineProperty(this.anchorElement,"_njTooltip",{value:this,writable:!0});const i=null!=e?e:t.dataset.tooltipContent;this.options=Object.assign({},rt,null!=n?n:{},t.dataset?this.getOptionsFromDataset(t.dataset):{}),this.updateTooltipModifiers(this.options),this.setContent(i,this.options.isContentHtml),"string"==typeof(null===(o=t.dataset)||void 0===o?void 0:o.tooltipAlways)&&this.show()}createTooltipElement(){const t=document.createElement("div");t.className=lt.element,t.role="tooltip",t.id=it.getUID("tooltip-");const e=document.createElement("div");e.className=`${st.element} ${st.modifier.center}`,e.ariaHidden="true";const n=document.createElement("div");n.className=at.element,t.appendChild(e),t.appendChild(n),this.tooltipElement=t,this.arrowElement=e,this.innerElement=n}getOptionsFromDataset(t){const e={};return"string"==typeof t.tooltipArrow&&(e.hasArrow="true"===t.tooltipArrow),"string"==typeof t.tooltipInverse&&(e.isColorInverse="true"===t.tooltipInverse),"string"==typeof t.tooltipPlacement&&(e.placement=t.tooltipPlacement),"string"==typeof t.tooltipHtml&&(e.isContentHtml="true"===t.tooltipHtml),e}updateTooltipModifiers(t){"boolean"==typeof t.hasArrow&&(t.hasArrow?this.tooltipElement.classList.remove(lt.modifier.withoutArrow):this.tooltipElement.classList.add(lt.modifier.withoutArrow)),"boolean"==typeof t.isColorInverse&&(t.isColorInverse?this.tooltipElement.classList.add(lt.modifier.inverse):this.tooltipElement.classList.remove(lt.modifier.inverse)),"string"==typeof t.placement&&(this.tooltipElement.classList.remove(lt.modifier.placed("top")),this.tooltipElement.classList.remove(lt.modifier.placed("right")),this.tooltipElement.classList.remove(lt.modifier.placed("bottom")),this.tooltipElement.classList.remove(lt.modifier.placed("left")),this.tooltipElement.classList.add(lt.modifier.placed(t.placement)))}show(){this._isDisplayed||(this.anchorParentElement.appendChild(this.tooltipElement),this.anchorElement.setAttribute("aria-describedby",this.tooltipElement.id),this._isDisplayed=!0,this.cleanupFunction=Z(this.anchorElement,this.tooltipElement,(()=>{nt(this.anchorElement,this.tooltipElement,{placement:this.options.placement,middleware:[tt(),this.options.hasArrow&&et({element:this.arrowElement})]}).then((t=>{let{x:e,y:n,placement:o}=t;Object.assign(this.tooltipElement.style,{left:`${e}px`,top:`${n}px`}),this.updateTooltipModifiers({placement:o})}))})))}hide(){var t,e;this._isDisplayed&&(null===(t=this.cleanupFunction)||void 0===t||t.call(this),this.cleanupFunction=null,null===(e=this.anchorElement.parentElement)||void 0===e||e.removeChild(this.tooltipElement),this.anchorElement.removeAttribute("aria-describedby"),this._isDisplayed=!1)}setContent(t){"string"==typeof t?(arguments.length>1&&void 0!==arguments[1]?arguments[1]:rt.isContentHtml)?this.innerElement.innerHTML=t:this.innerElement.innerText=t:this.innerElement.appendChild(t)}updateOptions(t){this.options=Object.assign(Object.assign({},this.options),t),this.updateTooltipModifiers(this.options)}}const ft=(t,e,n)=>new ct(t,e,n),ut=(t,e)=>{const n=new AbortController,{signal:o}=n,i=null!=e?e:t.anchorElement;return i.addEventListener("focusin",(()=>{t.show()}),{signal:o}),i.addEventListener("mouseenter",(()=>{t.show()}),{signal:o}),i.addEventListener("focusout",(()=>{t.hide()}),{signal:o}),i.addEventListener("mouseleave",(()=>{t.hide()}),{signal:o}),()=>{t.hide(),n.abort()}},dt={njTooltip:ft,initAllTooltips:function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'[data-toggle="tooltip"]';const n=null!=t?t:document.body,o=[],i=[];n.querySelectorAll(e).forEach((t=>{const e=t,n=ft(e);"true"!==e.dataset.tooltipAlways&&i.push(ut(n)),o.push(n)}));return{tooltips:o,unmount:()=>{i.forEach((t=>t()))}}},Tooltip:ct,displayTooltipOnHoverAndFocus:ut};return e=e.default})()));
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("Tooltip",[],e):"object"==typeof exports?exports.Tooltip=e():t.Tooltip=e()}(window,(()=>(()=>{"use strict";var t={d:(e,n)=>{for(var o in n)t.o(n,o)&&!t.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:n[o]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e)},e={};t.d(e,{default:()=>dt});const n=Math.min,o=Math.max,i=Math.round,r=Math.floor,l=t=>({x:t,y:t}),s={left:"right",right:"left",bottom:"top",top:"bottom"},a={start:"end",end:"start"};function c(t,e){return"function"==typeof t?t(e):t}function f(t){return t.split("-")[0]}function u(t){return t.split("-")[1]}function d(t){return"y"===t?"height":"width"}function p(t){return["top","bottom"].includes(f(t))?"y":"x"}function h(t){return"x"===p(t)?"y":"x"}function m(t){return t.replace(/start|end/g,(t=>a[t]))}function g(t){return t.replace(/left|right|bottom|top/g,(t=>s[t]))}function y(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function w(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function v(t,e,n){let{reference:o,floating:i}=t;const r=p(e),l=h(e),s=d(l),a=f(e),c="y"===r,m=o.x+o.width/2-i.width/2,g=o.y+o.height/2-i.height/2,y=o[s]/2-i[s]/2;let w;switch(a){case"top":w={x:m,y:o.y-i.height};break;case"bottom":w={x:m,y:o.y+o.height};break;case"right":w={x:o.x+o.width,y:g};break;case"left":w={x:o.x-i.width,y:g};break;default:w={x:o.x,y:o.y}}switch(u(e)){case"start":w[l]-=y*(n&&c?-1:1);break;case"end":w[l]+=y*(n&&c?-1:1)}return w}async function E(t,e){var n;void 0===e&&(e={});const{x:o,y:i,platform:r,rects:l,elements:s,strategy:a}=t,{boundary:f="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=c(e,t),m=y(h),g=s[p?"floating"===d?"reference":"floating":d],v=w(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(g)))||n?g:g.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(s.floating)),boundary:f,rootBoundary:u,strategy:a})),E="floating"===d?{x:o,y:i,width:l.floating.width,height:l.floating.height}:l.reference,b=await(null==r.getOffsetParent?void 0:r.getOffsetParent(s.floating)),x=await(null==r.isElement?void 0:r.isElement(b))&&await(null==r.getScale?void 0:r.getScale(b))||{x:1,y:1},T=w(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:E,offsetParent:b,strategy:a}):E);return{top:(v.top-T.top+m.top)/x.y,bottom:(T.bottom-v.bottom+m.bottom)/x.y,left:(v.left-T.left+m.left)/x.x,right:(T.right-v.right+m.right)/x.x}}function b(t){return R(t)?(t.nodeName||"").toLowerCase():"#document"}function x(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function T(t){var e;return null==(e=(R(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function R(t){return t instanceof Node||t instanceof x(t).Node}function L(t){return t instanceof Element||t instanceof x(t).Element}function C(t){return t instanceof HTMLElement||t instanceof x(t).HTMLElement}function O(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof x(t).ShadowRoot)}function A(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=P(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function D(t){return["table","td","th"].includes(b(t))}function S(t){const e=F(),n=P(t);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function F(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function N(t){return["html","body","#document"].includes(b(t))}function P(t){return x(t).getComputedStyle(t)}function j(t){return L(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function H(t){if("html"===b(t))return t;const e=t.assignedSlot||t.parentNode||O(t)&&t.host||T(t);return O(e)?e.host:e}function I(t){const e=H(t);return N(e)?t.ownerDocument?t.ownerDocument.body:t.body:C(e)&&A(e)?e:I(e)}function _(t,e,n){var o;void 0===e&&(e=[]),void 0===n&&(n=!0);const i=I(t),r=i===(null==(o=t.ownerDocument)?void 0:o.body),l=x(i);return r?e.concat(l,l.visualViewport||[],A(i)?i:[],l.frameElement&&n?_(l.frameElement):[]):e.concat(i,_(i,[],n))}function k(t){const e=P(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=C(t),l=r?t.offsetWidth:n,s=r?t.offsetHeight:o,a=i(n)!==l||i(o)!==s;return a&&(n=l,o=s),{width:n,height:o,$:a}}function M(t){return L(t)?t:t.contextElement}function B(t){const e=M(t);if(!C(e))return l(1);const n=e.getBoundingClientRect(),{width:o,height:r,$:s}=k(e);let a=(s?i(n.width):n.width)/o,c=(s?i(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),c&&Number.isFinite(c)||(c=1),{x:a,y:c}}const W=l(0);function $(t){const e=x(t);return F()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:W}function V(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const i=t.getBoundingClientRect(),r=M(t);let s=l(1);e&&(o?L(o)&&(s=B(o)):s=B(t));const a=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==x(t))&&e}(r,n,o)?$(r):l(0);let c=(i.left+a.x)/s.x,f=(i.top+a.y)/s.y,u=i.width/s.x,d=i.height/s.y;if(r){const t=x(r),e=o&&L(o)?x(o):o;let n=t,i=n.frameElement;for(;i&&o&&e!==n;){const t=B(i),e=i.getBoundingClientRect(),o=P(i),r=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,l=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;c*=t.x,f*=t.y,u*=t.x,d*=t.y,c+=r,f+=l,n=x(i),i=n.frameElement}}return w({width:u,height:d,x:c,y:f})}const z=[":popover-open",":modal"];function q(t){return z.some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function U(t){return V(T(t)).left+j(t).scrollLeft}function X(t,e,n){let i;if("viewport"===e)i=function(t,e){const n=x(t),o=T(t),i=n.visualViewport;let r=o.clientWidth,l=o.clientHeight,s=0,a=0;if(i){r=i.width,l=i.height;const t=F();(!t||t&&"fixed"===e)&&(s=i.offsetLeft,a=i.offsetTop)}return{width:r,height:l,x:s,y:a}}(t,n);else if("document"===e)i=function(t){const e=T(t),n=j(t),i=t.ownerDocument.body,r=o(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),l=o(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let s=-n.scrollLeft+U(t);const a=-n.scrollTop;return"rtl"===P(i).direction&&(s+=o(e.clientWidth,i.clientWidth)-r),{width:r,height:l,x:s,y:a}}(T(t));else if(L(e))i=function(t,e){const n=V(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=C(t)?B(t):l(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:i*r.x,y:o*r.y}}(e,n);else{const n=$(t);i={...e,x:e.x-n.x,y:e.y-n.y}}return w(i)}function Y(t,e){const n=H(t);return!(n===e||!L(n)||N(n))&&("fixed"===P(n).position||Y(n,e))}function G(t,e,n){const o=C(e),i=T(e),r="fixed"===n,s=V(t,!0,r,e);let a={scrollLeft:0,scrollTop:0};const c=l(0);if(o||!o&&!r)if(("body"!==b(e)||A(i))&&(a=j(e)),o){const t=V(e,!0,r,e);c.x=t.x+e.clientLeft,c.y=t.y+e.clientTop}else i&&(c.x=U(i));return{x:s.left+a.scrollLeft-c.x,y:s.top+a.scrollTop-c.y,width:s.width,height:s.height}}function J(t,e){return C(t)&&"fixed"!==P(t).position?e?e(t):t.offsetParent:null}function K(t,e){const n=x(t);if(!C(t)||q(t))return n;let o=J(t,e);for(;o&&D(o)&&"static"===P(o).position;)o=J(o,e);return o&&("html"===b(o)||"body"===b(o)&&"static"===P(o).position&&!S(o))?n:o||function(t){let e=H(t);for(;C(e)&&!N(e);){if(S(e))return e;e=H(e)}return null}(t)||n}const Q={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r="fixed"===i,s=T(o),a=!!e&&q(e.floating);if(o===s||a&&r)return n;let c={scrollLeft:0,scrollTop:0},f=l(1);const u=l(0),d=C(o);if((d||!d&&!r)&&(("body"!==b(o)||A(s))&&(c=j(o)),C(o))){const t=V(o);f=B(o),u.x=t.x+o.clientLeft,u.y=t.y+o.clientTop}return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-c.scrollLeft*f.x+u.x,y:n.y*f.y-c.scrollTop*f.y+u.y}},getDocumentElement:T,getClippingRect:function(t){let{element:e,boundary:i,rootBoundary:r,strategy:l}=t;const s=[..."clippingAncestors"===i?function(t,e){const n=e.get(t);if(n)return n;let o=_(t,[],!1).filter((t=>L(t)&&"body"!==b(t))),i=null;const r="fixed"===P(t).position;let l=r?H(t):t;for(;L(l)&&!N(l);){const e=P(l),n=S(l);n||"fixed"!==e.position||(i=null),(r?!n&&!i:!n&&"static"===e.position&&i&&["absolute","fixed"].includes(i.position)||A(l)&&!n&&Y(t,l))?o=o.filter((t=>t!==l)):i=e,l=H(l)}return e.set(t,o),o}(e,this._c):[].concat(i),r],a=s[0],c=s.reduce(((t,i)=>{const r=X(e,i,l);return t.top=o(r.top,t.top),t.right=n(r.right,t.right),t.bottom=n(r.bottom,t.bottom),t.left=o(r.left,t.left),t}),X(e,a,l));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:K,getElementRects:async function(t){const e=this.getOffsetParent||K,n=this.getDimensions;return{reference:G(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,...await n(t.floating)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=k(t);return{width:e,height:n}},getScale:B,isElement:L,isRTL:function(t){return"rtl"===P(t).direction}};function Z(t,e,i,l){void 0===l&&(l={});const{ancestorScroll:s=!0,ancestorResize:a=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:f="function"==typeof IntersectionObserver,animationFrame:u=!1}=l,d=M(t),p=s||a?[...d?_(d):[],..._(e)]:[];p.forEach((t=>{s&&t.addEventListener("scroll",i,{passive:!0}),a&&t.addEventListener("resize",i)}));const h=d&&f?function(t,e){let i,l=null;const s=T(t);function a(){var t;clearTimeout(i),null==(t=l)||t.disconnect(),l=null}return function c(f,u){void 0===f&&(f=!1),void 0===u&&(u=1),a();const{left:d,top:p,width:h,height:m}=t.getBoundingClientRect();if(f||e(),!h||!m)return;const g={rootMargin:-r(p)+"px "+-r(s.clientWidth-(d+h))+"px "+-r(s.clientHeight-(p+m))+"px "+-r(d)+"px",threshold:o(0,n(1,u))||1};let y=!0;function w(t){const e=t[0].intersectionRatio;if(e!==u){if(!y)return c();e?c(!1,e):i=setTimeout((()=>{c(!1,1e-7)}),100)}y=!1}try{l=new IntersectionObserver(w,{...g,root:s.ownerDocument})}catch(t){l=new IntersectionObserver(w,g)}l.observe(t)}(!0),a}(d,i):null;let m,g=-1,y=null;c&&(y=new ResizeObserver((t=>{let[n]=t;n&&n.target===d&&y&&(y.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame((()=>{var t;null==(t=y)||t.observe(e)}))),i()})),d&&!u&&y.observe(d),y.observe(e));let w=u?V(t):null;return u&&function e(){const n=V(t);!w||n.x===w.x&&n.y===w.y&&n.width===w.width&&n.height===w.height||i();w=n,m=requestAnimationFrame(e)}(),i(),()=>{var t;p.forEach((t=>{s&&t.removeEventListener("scroll",i),a&&t.removeEventListener("resize",i)})),null==h||h(),null==(t=y)||t.disconnect(),y=null,u&&cancelAnimationFrame(m)}}const tt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:l,initialPlacement:s,platform:a,elements:p}=e,{mainAxis:y=!0,crossAxis:w=!0,fallbackPlacements:v,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:T=!0,...R}=c(t,e);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const L=f(i),C=f(s)===s,O=await(null==a.isRTL?void 0:a.isRTL(p.floating)),A=v||(C||!T?[g(s)]:function(t){const e=g(t);return[m(t),e,m(e)]}(s));v||"none"===x||A.push(...function(t,e,n,o){const i=u(t);let r=function(t,e,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],l=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:l;default:return[]}}(f(t),"start"===n,o);return i&&(r=r.map((t=>t+"-"+i)),e&&(r=r.concat(r.map(m)))),r}(s,T,x,O));const D=[s,...A],S=await E(e,R),F=[];let N=(null==(o=r.flip)?void 0:o.overflows)||[];if(y&&F.push(S[L]),w){const t=function(t,e,n){void 0===n&&(n=!1);const o=u(t),i=h(t),r=d(i);let l="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[r]>e.floating[r]&&(l=g(l)),[l,g(l)]}(i,l,O);F.push(S[t[0]],S[t[1]])}if(N=[...N,{placement:i,overflows:F}],!F.every((t=>t<=0))){var P,j;const t=((null==(P=r.flip)?void 0:P.index)||0)+1,e=D[t];if(e)return{data:{index:t,overflows:N},reset:{placement:e}};let n=null==(j=N.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:j.placement;if(!n)switch(b){case"bestFit":{var H;const t=null==(H=N.map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:H[0];t&&(n=t);break}case"initialPlacement":n=s}if(i!==n)return{reset:{placement:n}}}return{}}}},et=t=>({name:"arrow",options:t,async fn(e){const{x:i,y:r,placement:l,rects:s,platform:a,elements:f,middlewareData:p}=e,{element:m,padding:g=0}=c(t,e)||{};if(null==m)return{};const w=y(g),v={x:i,y:r},E=h(l),b=d(E),x=await a.getDimensions(m),T="y"===E,R=T?"top":"left",L=T?"bottom":"right",C=T?"clientHeight":"clientWidth",O=s.reference[b]+s.reference[E]-v[E]-s.floating[b],A=v[E]-s.reference[E],D=await(null==a.getOffsetParent?void 0:a.getOffsetParent(m));let S=D?D[C]:0;S&&await(null==a.isElement?void 0:a.isElement(D))||(S=f.floating[C]||s.floating[b]);const F=O/2-A/2,N=S/2-x[b]/2-1,P=n(w[R],N),j=n(w[L],N),H=P,I=S-x[b]-j,_=S/2-x[b]/2+F,k=o(H,n(_,I));const M=!p.arrow&&null!=u(l)&&_!==k&&s.reference[b]/2-(_<H?P:j)-x[b]/2<0,B=M?_<H?_-H:_-I:0;return{[E]:v[E]+B,data:{[E]:k,centerOffset:_-k-B,...M&&{alignmentOffset:B}},reset:M}}}),nt=(t,e,n)=>{const o=new Map,i={platform:Q,...n},r={...i.platform,_c:o};return(async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:l}=n,s=r.filter(Boolean),a=await(null==l.isRTL?void 0:l.isRTL(e));let c=await l.getElementRects({reference:t,floating:e,strategy:i}),{x:f,y:u}=v(c,o,a),d=o,p={},h=0;for(let n=0;n<s.length;n++){const{name:r,fn:m}=s[n],{x:g,y,data:w,reset:E}=await m({x:f,y:u,initialPlacement:o,placement:d,strategy:i,middlewareData:p,rects:c,platform:l,elements:{reference:t,floating:e}});f=null!=g?g:f,u=null!=y?y:u,p={...p,[r]:{...p[r],...w}},E&&h<=50&&(h++,"object"==typeof E&&(E.placement&&(d=E.placement),E.rects&&(c=!0===E.rects?await l.getElementRects({reference:t,floating:e,strategy:i}):E.rects),({x:f,y:u}=v(c,d,a))),n=-1)}return{x:f,y:u,placement:d,strategy:i,middlewareData:p}})(t,e,{...i,platform:r})};const ot={TRANSITION_END:"transitionend",getUID(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},getSelectorFromElement(t){let e=t.getAttribute("data-target");if(!e||"#"===e){const n=t.getAttribute("href");e=n&&"#"!==n?n.trim():""}try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement(t){if(!t)return 0;let e=window.getComputedStyle(t).transitionDuration,n=window.getComputedStyle(t).transitionDelay;const o=parseFloat(e),i=parseFloat(n);return o||i?(e=e.split(",")[0],n=n.split(",")[0],1e3*(parseFloat(e)+parseFloat(n))):0},reflow:t=>t.offsetHeight,triggerTransitionEnd(t){const e=new CustomEvent(ot.TRANSITION_END,{});t.dispatchEvent(e)},isElement:t=>(t[0]||t).nodeType,emulateTransitionEnd(t,e){let n=!1;const o=e+5;t.addEventListener(ot.TRANSITION_END,(function e(){n=!0,t.removeEventListener(ot.TRANSITION_END,e)})),setTimeout((()=>{n||ot.triggerTransitionEnd(t)}),o)},typeCheckConfig(t,e,n){for(const i in n)if(Object.prototype.hasOwnProperty.call(n,i)){const r=n[i],l=e[i],s=l&&ot.isElement(l)?"element":(o=l,{}.toString.call(o).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(r).test(s))throw new Error(`${t.toUpperCase()}: Option "${i}" provided type "${s}" but expected type "${r}".`)}var o},makeArray:t=>null==t?[]:[].slice.call(t),findShadowRoot(t){if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?ot.findShadowRoot(t.parentElement):null},throttle(t,e,n,o,i){let r,l,s,a=null,c=0;const f=()=>{c=Date.now(),a=null,s=t.apply(l,r)};return()=>{const u=Date.now();c||n||(c=u);const d=e-(u-c);return l=i||this,r=arguments,d<=0?(clearTimeout(a),a=null,c=u,s=t.apply(l,r)):!a&&o&&(a=setTimeout(f,d)),s}},coerceBool:t=>Boolean(t)},it=ot,rt={hasArrow:!0,isColorInverse:!1,placement:"top",isContentHtml:!1},lt={element:"nj-tooltip",modifier:{withoutArrow:"nj-tooltip--without-arrow",inverse:"nj-tooltip--inverse",placed:t=>`nj-tooltip--${t}`}},st={element:"nj-tooltip__arrow",modifier:{center:"nj-tooltip__arrow--center"}},at={element:"nj-tooltip__inner"};class ct{constructor(t,e,n){var o;this._isDisplayed=!1,this.anchorElement=t,this.anchorParentElement=t.parentElement,this.createTooltipElement(),Object.defineProperty(this.anchorElement,"_njTooltip",{value:this,writable:!0});const i=null!=e?e:t.dataset.tooltipContent;this.options=Object.assign({},rt,null!=n?n:{},t.dataset?this.getOptionsFromDataset(t.dataset):{}),this.updateTooltipModifiers(this.options),this.setContent(i,this.options.isContentHtml),"string"==typeof(null===(o=t.dataset)||void 0===o?void 0:o.tooltipAlways)&&this.show()}createTooltipElement(){const t=document.createElement("div");t.className=lt.element,t.role="tooltip",t.id=it.getUID("tooltip-");const e=document.createElement("div");e.className=`${st.element} ${st.modifier.center}`,e.ariaHidden="true";const n=document.createElement("div");n.className=at.element,t.appendChild(e),t.appendChild(n),this.tooltipElement=t,this.arrowElement=e,this.innerElement=n}getOptionsFromDataset(t){const e={};return"string"==typeof t.tooltipArrow&&(e.hasArrow="true"===t.tooltipArrow),"string"==typeof t.tooltipInverse&&(e.isColorInverse="true"===t.tooltipInverse),"string"==typeof t.tooltipPlacement&&(e.placement=t.tooltipPlacement),"string"==typeof t.tooltipHtml&&(e.isContentHtml="true"===t.tooltipHtml),e}updateTooltipModifiers(t){"boolean"==typeof t.hasArrow&&(t.hasArrow?this.tooltipElement.classList.remove(lt.modifier.withoutArrow):this.tooltipElement.classList.add(lt.modifier.withoutArrow)),"boolean"==typeof t.isColorInverse&&(t.isColorInverse?this.tooltipElement.classList.add(lt.modifier.inverse):this.tooltipElement.classList.remove(lt.modifier.inverse)),"string"==typeof t.placement&&(this.tooltipElement.classList.remove(lt.modifier.placed("top")),this.tooltipElement.classList.remove(lt.modifier.placed("right")),this.tooltipElement.classList.remove(lt.modifier.placed("bottom")),this.tooltipElement.classList.remove(lt.modifier.placed("left")),this.tooltipElement.classList.add(lt.modifier.placed(t.placement)))}show(){this._isDisplayed||(this.anchorParentElement.appendChild(this.tooltipElement),this.anchorElement.setAttribute("aria-describedby",this.tooltipElement.id),this._isDisplayed=!0,this.cleanupFunction=Z(this.anchorElement,this.tooltipElement,(()=>{nt(this.anchorElement,this.tooltipElement,{placement:this.options.placement,middleware:[tt(),this.options.hasArrow&&et({element:this.arrowElement})]}).then((t=>{let{x:e,y:n,placement:o}=t;Object.assign(this.tooltipElement.style,{left:`${e}px`,top:`${n}px`}),this.updateTooltipModifiers({placement:o})}))})))}hide(){var t,e;this._isDisplayed&&(null===(t=this.cleanupFunction)||void 0===t||t.call(this),this.cleanupFunction=null,null===(e=this.anchorElement.parentElement)||void 0===e||e.removeChild(this.tooltipElement),this.anchorElement.removeAttribute("aria-describedby"),this._isDisplayed=!1)}setContent(t){"string"==typeof t?(arguments.length>1&&void 0!==arguments[1]?arguments[1]:rt.isContentHtml)?this.innerElement.innerHTML=t:this.innerElement.innerText=t:this.innerElement.appendChild(t)}updateOptions(t){this.options=Object.assign(Object.assign({},this.options),t),this.updateTooltipModifiers(this.options)}}const ft=(t,e,n)=>new ct(t,e,n),ut=(t,e)=>{const n=new AbortController,{signal:o}=n,i=null!=e?e:t.anchorElement;return i.addEventListener("focusin",(()=>{t.show()}),{signal:o}),i.addEventListener("mouseenter",(()=>{t.show()}),{signal:o}),i.addEventListener("focusout",(()=>{t.hide()}),{signal:o}),i.addEventListener("mouseleave",(()=>{t.hide()}),{signal:o}),()=>{t.hide(),n.abort()}},dt={njTooltip:ft,initAllTooltips:function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'[data-toggle="tooltip"]';const n=null!=t?t:document.body,o=[],i=[];n.querySelectorAll(e).forEach((t=>{const e=t,n=ft(e);"true"!==e.dataset.tooltipAlways&&i.push(ut(n)),o.push(n)}));return{tooltips:o,unmount:()=>{i.forEach((t=>t()))}}},Tooltip:ct,displayTooltipOnHoverAndFocus:ut};return e=e.default})()));
//# sourceMappingURL=index.js.map
import './auto-init';
import 'element-closest-polyfill';
import 'custom-event-polyfill';
import Accordion from './components/accordion';
import Alert from './components/alert';
import Checkbox from './components/checkbox';
import Collapse from './components/collapse';

@@ -14,3 +14,2 @@ import Dropdown from './components/dropdown';

import Navbar from './components/navbar';
import Radio from './components/radio';
import Select from './components/select';

@@ -26,4 +25,4 @@ import Sidebar from './components/sidebar';

private static readonly AUTOINIT_COMPONENTS;
static readonly Accordion: typeof Accordion;
static readonly Alert: typeof Alert;
static readonly Checkbox: typeof Checkbox;
static readonly Collapse: typeof Collapse;

@@ -37,3 +36,2 @@ static readonly Dropdown: typeof Dropdown;

static readonly Navbar: typeof Navbar;
static readonly Radio: typeof Radio;
static readonly Select: typeof Select;

@@ -40,0 +38,0 @@ static readonly Sidebar: typeof Sidebar;

import './auto-init';
import Accordion from './components/accordion';
import Alert from './components/alert';
import AutocompleteInput from './components/autocomplete-input';
import Checkbox from './components/checkbox';
import Collapse from './components/collapse';

@@ -16,3 +16,2 @@ import Dropdown from './components/dropdown';

import Password from './components/password';
import Radio from './components/radio';
import Search from './components/search';

@@ -32,4 +31,4 @@ import SegmentedControl from './components/segmented-control';

private static readonly AUTOINIT_COMPONENTS;
static readonly Accordion: typeof Accordion;
static readonly Alert: typeof Alert;
static readonly Checkbox: typeof Checkbox;
static readonly Collapse: typeof Collapse;

@@ -45,3 +44,2 @@ static readonly Dropdown: typeof Dropdown;

static readonly Navbar: typeof Navbar;
static readonly Radio: typeof Radio;
static readonly Select: typeof Select;

@@ -68,3 +66,3 @@ static readonly Sidebar: typeof Sidebar;

}
export { Alert, Checkbox, Collapse, Dropdown, Fab, Form, Header, InlineMessage, InputNumber, Search, Modal, Navbar, Password, Radio, Select, Sidebar, Slider, Tab, Tag, AutocompleteInput, SelectInput, SegmentedControl, BeforeHideEventSource, njTooltip, initAllTooltips, displayTooltipOnHoverAndFocus, Tooltip, ITooltipOptions, openMenu, IMenuOptions };
export { Accordion, Alert, Collapse, Dropdown, Fab, Form, Header, InlineMessage, InputNumber, Search, Modal, Navbar, Password, Select, Sidebar, Slider, Tab, Tag, AutocompleteInput, SelectInput, SegmentedControl, BeforeHideEventSource, njTooltip, initAllTooltips, displayTooltipOnHoverAndFocus, Tooltip, ITooltipOptions, openMenu, IMenuOptions };
declare global {

@@ -71,0 +69,0 @@ interface Window {

{
"name": "@engie-group/fluid-design-system",
"version": "5.11.0",
"version": "5.12.0",
"description": "The Fluid Design System is ENGIE’s open-source library to create, build and deliver ENGIE digital services in a more efficient way.",

@@ -134,3 +134,3 @@ "keywords": [

},
"gitHead": "b09f873d0046d81009de0594512e3c25f3bdaabd"
"gitHead": "e35ca324fa1be2b3d6c50134d4326b362aeb0a59"
}

@@ -39,3 +39,4 @@ /**

'.nj-tab': 'Tab',
'.nj-tag': 'Tag'
'.nj-tag': 'Tag',
'.nj-accordion': 'Accordion'
// NEW_COMPONENT add library name here

@@ -42,0 +43,0 @@ };

@@ -59,2 +59,3 @@ /**

this.toggleClearButtonIfNeeded();
this.field.focus();
});

@@ -61,0 +62,0 @@

@@ -7,4 +7,4 @@ import './auto-init';

import Accordion from './components/accordion';
import Alert from './components/alert';
import Checkbox from './components/checkbox';
import Collapse from './components/collapse';

@@ -18,3 +18,2 @@ import Dropdown from './components/dropdown';

import Navbar from './components/navbar';
import Radio from './components/radio';
import Select from './components/select';

@@ -36,4 +35,4 @@ import Sidebar from './components/sidebar';

private static readonly AUTOINIT_COMPONENTS = [
Accordion,
Alert,
Checkbox,
Collapse,

@@ -47,3 +46,2 @@ Dropdown,

Navbar,
Radio,
Select,

@@ -58,4 +56,4 @@ Sidebar,

// Makes components API available
static readonly Accordion = Accordion;
static readonly Alert = Alert;
static readonly Checkbox = Checkbox;
static readonly Collapse = Collapse;

@@ -69,3 +67,2 @@ static readonly Dropdown = Dropdown;

static readonly Navbar = Navbar;
static readonly Radio = Radio;
static readonly Select = Select;

@@ -72,0 +69,0 @@ static readonly Sidebar = Sidebar;

import './auto-init';
import Accordion from './components/accordion';
import Alert from './components/alert';
import AutocompleteInput from './components/autocomplete-input';
import Checkbox from './components/checkbox';
import Collapse from './components/collapse';

@@ -16,3 +16,2 @@ import Dropdown from './components/dropdown';

import Password from './components/password';
import Radio from './components/radio';
import Search from './components/search';

@@ -40,4 +39,4 @@ import SegmentedControl from './components/segmented-control';

private static readonly AUTOINIT_COMPONENTS = [
Accordion,
Alert,
Checkbox,
Collapse,

@@ -53,3 +52,2 @@ Dropdown,

Navbar,
Radio,
Select,

@@ -68,4 +66,4 @@ Sidebar,

// Makes components API available
static readonly Accordion = Accordion;
static readonly Alert = Alert;
static readonly Checkbox = Checkbox;
static readonly Collapse = Collapse;

@@ -81,3 +79,2 @@ static readonly Dropdown = Dropdown;

static readonly Navbar = Navbar;
static readonly Radio = Radio;
static readonly Select = Select;

@@ -114,4 +111,4 @@ static readonly Sidebar = Sidebar;

export {
Accordion,
Alert,
Checkbox,
Collapse,

@@ -128,3 +125,2 @@ Dropdown,

Password,
Radio,
Select,

@@ -131,0 +127,0 @@ Sidebar,

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc