@engie-group/fluid-design-system
Advanced tools
Comparing version 4.2.0 to 4.2.1
@@ -7,2 +7,7 @@ # Changelog | ||
## 📦 v4.2.1 - 2020-11-10 | ||
### 🐛 Fixed | ||
* Slider dispose function removes events | ||
* Dropdown arrow visibility | ||
## 📦 v4.2.0 - 2020.11.10 | ||
@@ -9,0 +14,0 @@ ### 🚀 Added |
@@ -58,8 +58,10 @@ /** | ||
refreshProgressValue() { | ||
const max = parseFloat(this.input.max) || Slider.PERCENT_CONV; | ||
const min = parseFloat(this.input.min) || 0; | ||
const value = parseFloat(this.input.value); | ||
const perc = Math.floor((Slider.PERCENT_CONV * (value - min)) / (max - min)); | ||
const input = document.querySelector(`[data-id='${this.dataId}']`); | ||
input.style.setProperty('--slider-track-position', `${perc}% 100%`); | ||
if (input) { | ||
const max = parseFloat(this.input.max) || Slider.PERCENT_CONV; | ||
const min = parseFloat(this.input.min) || 0; | ||
const value = parseFloat(this.input.value); | ||
const perc = Math.floor((Slider.PERCENT_CONV * (value - min)) / (max - min)); | ||
input.style.setProperty('--slider-track-position', `${perc}% 100%`); | ||
} | ||
} | ||
@@ -86,2 +88,5 @@ refreshTooltipValue() { | ||
dispose() { | ||
EventHandler.off(this.element, 'input change keyup'); | ||
EventHandler.off(this.element, 'input change keyup'); | ||
EventHandler.off(document, 'resize'); | ||
Data.removeData(this.element, Slider.DATA_KEY); | ||
@@ -88,0 +93,0 @@ this.element = null; |
/*! For license information please see index.js.LICENSE.txt */ | ||
!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,(function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=2)}([function(t,e,n){"use strict";(function(t){var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,o=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(n&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}();var i=n&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),o))}};function r(t){return t&&"[object Function]"==={}.toString.call(t)}function s(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function a(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function l(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=s(t),n=e.overflow,o=e.overflowX,i=e.overflowY;return/(auto|scroll|overlay)/.test(n+i+o)?t:l(a(t))}function c(t){return t&&t.referenceNode?t.referenceNode:t}var u=n&&!(!window.MSInputMethodContext||!document.documentMode),p=n&&/MSIE 10/.test(navigator.userAgent);function d(t){return 11===t?u:10===t?p:u||p}function f(t){if(!t)return document.documentElement;for(var e=d(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var o=n&&n.nodeName;return o&&"BODY"!==o&&"HTML"!==o?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===s(n,"position")?f(n):n:t?t.ownerDocument.documentElement:document.documentElement}function h(t){return null!==t.parentNode?h(t.parentNode):t}function m(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,o=n?t:e,i=n?e:t,r=document.createRange();r.setStart(o,0),r.setEnd(i,0);var s,a,l=r.commonAncestorContainer;if(t!==l&&e!==l||o.contains(i))return"BODY"===(a=(s=l).nodeName)||"HTML"!==a&&f(s.firstElementChild)!==s?f(l):l;var c=h(t);return c.host?m(c.host,e):m(t,h(e).host)}function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",o=t.nodeName;if("BODY"===o||"HTML"===o){var i=t.ownerDocument.documentElement,r=t.ownerDocument.scrollingElement||i;return r[n]}return t[n]}function E(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=g(e,"top"),i=g(e,"left"),r=n?-1:1;return t.top+=o*r,t.bottom+=o*r,t.left+=i*r,t.right+=i*r,t}function v(t,e){var n="x"===e?"Left":"Top",o="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"],10)+parseFloat(t["border"+o+"Width"],10)}function b(t,e,n,o){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],d(10)?parseInt(n["offset"+t])+parseInt(o["margin"+("Height"===t?"Top":"Left")])+parseInt(o["margin"+("Height"===t?"Bottom":"Right")]):0)}function T(t){var e=t.body,n=t.documentElement,o=d(10)&&getComputedStyle(n);return{height:b("Height",e,n,o),width:b("Width",e,n,o)}}var y=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},w=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),A=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},S=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t};function N(t){return S({},t,{right:t.left+t.width,bottom:t.top+t.height})}function O(t){var e={};try{if(d(10)){e=t.getBoundingClientRect();var n=g(t,"top"),o=g(t,"left");e.top+=n,e.left+=o,e.bottom+=n,e.right+=o}else e=t.getBoundingClientRect()}catch(t){}var i={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},r="HTML"===t.nodeName?T(t.ownerDocument):{},a=r.width||t.clientWidth||i.width,l=r.height||t.clientHeight||i.height,c=t.offsetWidth-a,u=t.offsetHeight-l;if(c||u){var p=s(t);c-=v(p,"x"),u-=v(p,"y"),i.width-=c,i.height-=u}return N(i)}function _(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=d(10),i="HTML"===e.nodeName,r=O(t),a=O(e),c=l(t),u=s(e),p=parseFloat(u.borderTopWidth,10),f=parseFloat(u.borderLeftWidth,10);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var h=N({top:r.top-a.top-p,left:r.left-a.left-f,width:r.width,height:r.height});if(h.marginTop=0,h.marginLeft=0,!o&&i){var m=parseFloat(u.marginTop,10),g=parseFloat(u.marginLeft,10);h.top-=p-m,h.bottom-=p-m,h.left-=f-g,h.right-=f-g,h.marginTop=m,h.marginLeft=g}return(o&&!n?e.contains(c):e===c&&"BODY"!==c.nodeName)&&(h=E(h,e)),h}function L(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,o=_(t,n),i=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),s=e?0:g(n),a=e?0:g(n,"left"),l={top:s-o.top+o.marginTop,left:a-o.left+o.marginLeft,width:i,height:r};return N(l)}function C(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===s(t,"position"))return!0;var n=a(t);return!!n&&C(n)}function D(t){if(!t||!t.parentElement||d())return document.documentElement;for(var e=t.parentElement;e&&"none"===s(e,"transform");)e=e.parentElement;return e||document.documentElement}function x(t,e,n,o){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},s=i?D(t):m(t,c(e));if("viewport"===o)r=L(s,i);else{var u=void 0;"scrollParent"===o?"BODY"===(u=l(a(e))).nodeName&&(u=t.ownerDocument.documentElement):u="window"===o?t.ownerDocument.documentElement:o;var p=_(u,s,i);if("HTML"!==u.nodeName||C(s))r=p;else{var d=T(t.ownerDocument),f=d.height,h=d.width;r.top+=p.top-p.marginTop,r.bottom=f+p.top,r.left+=p.left-p.marginLeft,r.right=h+p.left}}var g="number"==typeof(n=n||0);return r.left+=g?n:n.left||0,r.top+=g?n:n.top||0,r.right-=g?n:n.right||0,r.bottom-=g?n:n.bottom||0,r}function R(t){return t.width*t.height}function M(t,e,n,o,i){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var s=x(n,o,r,i),a={top:{width:s.width,height:e.top-s.top},right:{width:s.right-e.right,height:s.height},bottom:{width:s.width,height:s.bottom-e.bottom},left:{width:e.left-s.left,height:s.height}},l=Object.keys(a).map((function(t){return S({key:t},a[t],{area:R(a[t])})})).sort((function(t,e){return e.area-t.area})),c=l.filter((function(t){var e=t.width,o=t.height;return e>=n.clientWidth&&o>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,p=t.split("-")[1];return u+(p?"-"+p:"")}function P(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=o?D(e):m(e,c(n));return _(n,i,o)}function k(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),o=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+o,height:t.offsetHeight+n}}function I(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function H(t,e,n){n=n.split("-")[0];var o=k(t),i={width:o.width,height:o.height},r=-1!==["right","left"].indexOf(n),s=r?"top":"left",a=r?"left":"top",l=r?"height":"width",c=r?"width":"height";return i[s]=e[s]+e[l]/2-o[l]/2,i[a]=n===a?e[a]-o[c]:e[I(a)],i}function F(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function Y(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===n}));var o=F(t,(function(t){return t[e]===n}));return t.indexOf(o)}(t,"name",n))).forEach((function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&r(n)&&(e.offsets.popper=N(e.offsets.popper),e.offsets.reference=N(e.offsets.reference),e=n(e,t))})),e}function j(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=P(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=M(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=H(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=Y(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function V(t,e){return t.some((function(t){var n=t.name;return t.enabled&&n===e}))}function G(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),o=0;o<e.length;o++){var i=e[o],r=i?""+i+n:t;if(void 0!==document.body.style[r])return r}return null}function K(){return this.state.isDestroyed=!0,V(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[G("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function U(t){var e=t.ownerDocument;return e?e.defaultView:window}function W(t,e,n,o){n.updateBound=o,U(t).addEventListener("resize",n.updateBound,{passive:!0});var i=l(t);return function t(e,n,o,i){var r="BODY"===e.nodeName,s=r?e.ownerDocument.defaultView:e;s.addEventListener(n,o,{passive:!0}),r||t(l(s.parentNode),n,o,i),i.push(s)}(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function B(){this.state.eventsEnabled||(this.state=W(this.reference,this.options,this.state,this.scheduleUpdate))}function X(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,U(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.updateBound)})),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function q(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function z(t,e){Object.keys(e).forEach((function(n){var o="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&q(e[n])&&(o="px"),t.style[n]=e[n]+o}))}var J=n&&/Firefox/i.test(navigator.userAgent);function $(t,e,n){var o=F(t,(function(t){return t.name===e})),i=!!o&&t.some((function(t){return t.name===n&&t.enabled&&t.order<o.order}));if(!i){var r="`"+e+"`",s="`"+n+"`";console.warn(s+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")}return i}var Q=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Z=Q.slice(3);function tt(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Z.indexOf(t),o=Z.slice(n+1).concat(Z.slice(0,n));return e?o.reverse():o}var et="flip",nt="clockwise",ot="counterclockwise";function it(t,e,n,o){var i=[0,0],r=-1!==["right","left"].indexOf(o),s=t.split(/(\+|\-)/).map((function(t){return t.trim()})),a=s.indexOf(F(s,(function(t){return-1!==t.search(/,|\s/)})));s[a]&&-1===s[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==a?[s.slice(0,a).concat([s[a].split(l)[0]]),[s[a].split(l)[1]].concat(s.slice(a+1))]:[s];return(c=c.map((function(t,o){var i=(1===o?!r:r)?"height":"width",s=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,s=!0,t):s?(t[t.length-1]+=e,s=!1,t):t.concat(e)}),[]).map((function(t){return function(t,e,n,o){var i=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+i[1],s=i[2];if(!r)return t;if(0===s.indexOf("%")){var a=void 0;switch(s){case"%p":a=n;break;case"%":case"%r":default:a=o}return N(a)[e]/100*r}if("vh"===s||"vw"===s)return("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r;return r}(t,i,e,n)}))}))).forEach((function(t,e){t.forEach((function(n,o){q(n)&&(i[e]+=n*("-"===t[o-1]?-1:1))}))})),i}var rt={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],o=e.split("-")[1];if(o){var i=t.offsets,r=i.reference,s=i.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",c=a?"width":"height",u={start:A({},l,r[l]),end:A({},l,r[l]+r[c]-s[c])};t.offsets.popper=S({},s,u[o])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,o=t.placement,i=t.offsets,r=i.popper,s=i.reference,a=o.split("-")[0],l=void 0;return l=q(+n)?[+n,0]:it(n,r,s,a),"left"===a?(r.top+=l[0],r.left-=l[1]):"right"===a?(r.top+=l[0],r.left+=l[1]):"top"===a?(r.left+=l[0],r.top-=l[1]):"bottom"===a&&(r.left+=l[0],r.top+=l[1]),t.popper=r,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||f(t.instance.popper);t.instance.reference===n&&(n=f(n));var o=G("transform"),i=t.instance.popper.style,r=i.top,s=i.left,a=i[o];i.top="",i.left="",i[o]="";var l=x(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);i.top=r,i.left=s,i[o]=a,e.boundaries=l;var c=e.priority,u=t.offsets.popper,p={primary:function(t){var n=u[t];return u[t]<l[t]&&!e.escapeWithReference&&(n=Math.max(u[t],l[t])),A({},t,n)},secondary:function(t){var n="right"===t?"left":"top",o=u[n];return u[t]>l[t]&&!e.escapeWithReference&&(o=Math.min(u[n],l[t]-("right"===t?u.width:u.height))),A({},n,o)}};return c.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";u=S({},u,p[e](t))})),t.offsets.popper=u,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,o=e.reference,i=t.placement.split("-")[0],r=Math.floor,s=-1!==["top","bottom"].indexOf(i),a=s?"right":"bottom",l=s?"left":"top",c=s?"width":"height";return n[a]<r(o[l])&&(t.offsets.popper[l]=r(o[l])-n[c]),n[l]>r(o[a])&&(t.offsets.popper[l]=r(o[a])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!$(t.instance.modifiers,"arrow","keepTogether"))return t;var o=e.element;if("string"==typeof o){if(!(o=t.instance.popper.querySelector(o)))return t}else if(!t.instance.popper.contains(o))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var i=t.placement.split("-")[0],r=t.offsets,a=r.popper,l=r.reference,c=-1!==["left","right"].indexOf(i),u=c?"height":"width",p=c?"Top":"Left",d=p.toLowerCase(),f=c?"left":"top",h=c?"bottom":"right",m=k(o)[u];l[h]-m<a[d]&&(t.offsets.popper[d]-=a[d]-(l[h]-m)),l[d]+m>a[h]&&(t.offsets.popper[d]+=l[d]+m-a[h]),t.offsets.popper=N(t.offsets.popper);var g=l[d]+l[u]/2-m/2,E=s(t.instance.popper),v=parseFloat(E["margin"+p],10),b=parseFloat(E["border"+p+"Width"],10),T=g-t.offsets.popper[d]-v-b;return T=Math.max(Math.min(a[u]-m,T),0),t.arrowElement=o,t.offsets.arrow=(A(n={},d,Math.round(T)),A(n,f,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(V(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=x(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),o=t.placement.split("-")[0],i=I(o),r=t.placement.split("-")[1]||"",s=[];switch(e.behavior){case et:s=[o,i];break;case nt:s=tt(o);break;case ot:s=tt(o,!0);break;default:s=e.behavior}return s.forEach((function(a,l){if(o!==a||s.length===l+1)return t;o=t.placement.split("-")[0],i=I(o);var c=t.offsets.popper,u=t.offsets.reference,p=Math.floor,d="left"===o&&p(c.right)>p(u.left)||"right"===o&&p(c.left)<p(u.right)||"top"===o&&p(c.bottom)>p(u.top)||"bottom"===o&&p(c.top)<p(u.bottom),f=p(c.left)<p(n.left),h=p(c.right)>p(n.right),m=p(c.top)<p(n.top),g=p(c.bottom)>p(n.bottom),E="left"===o&&f||"right"===o&&h||"top"===o&&m||"bottom"===o&&g,v=-1!==["top","bottom"].indexOf(o),b=!!e.flipVariations&&(v&&"start"===r&&f||v&&"end"===r&&h||!v&&"start"===r&&m||!v&&"end"===r&&g),T=!!e.flipVariationsByContent&&(v&&"start"===r&&h||v&&"end"===r&&f||!v&&"start"===r&&g||!v&&"end"===r&&m),y=b||T;(d||E||y)&&(t.flipped=!0,(d||E)&&(o=s[l+1]),y&&(r=function(t){return"end"===t?"start":"start"===t?"end":t}(r)),t.placement=o+(r?"-"+r:""),t.offsets.popper=S({},t.offsets.popper,H(t.instance.popper,t.offsets.reference,t.placement)),t=Y(t.instance.modifiers,t,"flip"))})),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],o=t.offsets,i=o.popper,r=o.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return i[s?"left":"top"]=r[n]-(a?i[s?"width":"height"]:0),t.placement=I(e),t.offsets.popper=N(i),t}},hide:{order:800,enabled:!0,fn:function(t){if(!$(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=F(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var n=e.x,o=e.y,i=t.offsets.popper,r=F(t.instance.modifiers,(function(t){return"applyStyle"===t.name})).gpuAcceleration;void 0!==r&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s=void 0!==r?r:e.gpuAcceleration,a=f(t.instance.popper),l=O(a),c={position:i.position},u=function(t,e){var n=t.offsets,o=n.popper,i=n.reference,r=Math.round,s=Math.floor,a=function(t){return t},l=r(i.width),c=r(o.width),u=-1!==["left","right"].indexOf(t.placement),p=-1!==t.placement.indexOf("-"),d=e?u||p||l%2==c%2?r:s:a,f=e?r:a;return{left:d(l%2==1&&c%2==1&&!p&&e?o.left-1:o.left),top:f(o.top),bottom:f(o.bottom),right:d(o.right)}}(t,window.devicePixelRatio<2||!J),p="bottom"===n?"top":"bottom",d="right"===o?"left":"right",h=G("transform"),m=void 0,g=void 0;if(g="bottom"===p?"HTML"===a.nodeName?-a.clientHeight+u.bottom:-l.height+u.bottom:u.top,m="right"===d?"HTML"===a.nodeName?-a.clientWidth+u.right:-l.width+u.right:u.left,s&&h)c[h]="translate3d("+m+"px, "+g+"px, 0)",c[p]=0,c[d]=0,c.willChange="transform";else{var E="bottom"===p?-1:1,v="right"===d?-1:1;c[p]=g*E,c[d]=m*v,c.willChange=p+", "+d}var b={"x-placement":t.placement};return t.attributes=S({},b,t.attributes),t.styles=S({},c,t.styles),t.arrowStyles=S({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return z(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEach((function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t)})),t.arrowElement&&Object.keys(t.arrowStyles).length&&z(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,o,i){var r=P(i,e,t,n.positionFixed),s=M(n.placement,r,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",s),z(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},st=function(){function t(e,n){var o=this,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};y(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=i(this.update.bind(this)),this.options=S({},t.Defaults,s),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(S({},t.Defaults.modifiers,s.modifiers)).forEach((function(e){o.options.modifiers[e]=S({},t.Defaults.modifiers[e]||{},s.modifiers?s.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return S({name:t},o.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&r(t.onLoad)&&t.onLoad(o.reference,o.popper,o.options,t,o.state)})),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return w(t,[{key:"update",value:function(){return j.call(this)}},{key:"destroy",value:function(){return K.call(this)}},{key:"enableEventListeners",value:function(){return B.call(this)}},{key:"disableEventListeners",value:function(){return X.call(this)}}]),t}();st.Utils=("undefined"!=typeof window?window:t).PopperUtils,st.placements=Q,st.Defaults=rt,e.a=st}).call(this,n(1))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";n.r(e);const o=(()=>{const t={};let e=1;return{set(n,o,i){void 0===n.key&&(n.key={key:o,id:e},e++),t[n.key.id]=i},get(e,n){if(!e||void 0===e.key)return null;const o=e.key;return o.key===n?t[o.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)}}})();var i,r,s,a,l={setData(t,e,n){o.set(t,e,n)},getData:(t,e)=>o.get(t,e),removeData(t,e){o.delete(t,e)}};class c{constructor(t,e,n={}){!e||e instanceof Element||console.error(Error("".concat(e," is not an HTML Element"))),this.options=n,this.element=e}static init(t,e={},n){const o=[],i=document.querySelectorAll(n);for(let n=0;n<i.length;n++){const r=i[n];if(!r.key||r.key!==t.DATA_KEY){const s=new t(i[n],e);r.key||l.setData(i[n],t.DATA_KEY,s),o.push(s)}}return o}}!function(t){t.KEY_PREFIX="nj",t.DATA_API_KEY=".data-api"}(i||(i={})),function(t){t.mouseenter="mouseover",t.mouseleave="mouseout"}(r||(r={})),function(t){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"}(s||(s={})),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"}(a||(a={}));class u{static getUidEvent(t,e){return e&&"".concat(e,"::").concat(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 s=r.length;s>=0;s--)if(r[s]===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,n=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 s=t.replace(u.STRIPNAME_REGEX,"");const l=r[s];l&&(s=l);return"string"==typeof a[s]||(s=t),[o,i,s]}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 s of e.split(" ")){const[e,a,l]=u.normalizeParams(s,n,o),c=r[l]||(r[l]={}),p=u.findHandler(c,a,e?n:null);if(p)return void(p.oneOff=p.oneOff&&i);const d=u.getUidEvent(a,s.replace(u.NAMESPACE_REGEX,"")),f=e?u.njDelegationHandler(t,n,o):u.njHandler(t,n);f.delegationSelector=e?n:null,f.originalHandler=a,f.oneOff=i,f.uidEvent=d,c[d]=f,t.addEventListener(l,f,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,s]=u.normalizeParams(e,n,o),a=s!==e,l=u.getEvent(t);if(void 0!==r){if(!l||!l[s])return;return void u.removeHandler(t,l,s,r,i?n:null)}if("."===e.charAt(0))for(const n in l)Object.prototype.hasOwnProperty.call(l,n)&&u.removeNamespacedHandlers(t,l,n,e.substr(1));const c=l[s]||{};for(const n in c){if(!Object.prototype.hasOwnProperty.call(c,n))continue;const o=n.replace(u.STRIPUID_REGEX,"");if(!a||e.indexOf(o)>-1){const e=c[n];u.removeHandler(t,l,s,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 a[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 p={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("data-".length).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]=p.extend(t[o],e[o]):t[o]=e[o]);return t},extend(...t){let e={},n=!1,o=0;for("[object Boolean]"===Object.prototype.toString.call(t[0])&&(n=t[0],o++);o<t.length;o++)e=p.mergeExtended(e,t[o],n);return e},createHtmlNode:t=>(new DOMParser).parseFromString(t,"text/html").body.firstChild};var d=p,f=n(0);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],s=e[i],a=s&&h.isElement(s)?"element":(o=s,{}.toString.call(o).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(r).test(a))throw new Error("".concat(t.toUpperCase(),": ")+'Option "'.concat(i,'" provided type "').concat(a,'" ')+'but expected type "'.concat(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,s,a,l=null,c=0;const u=()=>{c=Date.now(),l=null,a=t.apply(s,r)};return()=>{const p=Date.now();c||n||(c=p);const d=e-(p-c);return s=i||this,r=arguments,d<=0?(clearTimeout(l),l=null,c=p,a=t.apply(s,r)):!l&&o&&(l=setTimeout(u,d)),a}}};var m=h;class g extends HTMLElement{constructor(...t){super(),this.components=t,this.instances=[],this.parentNodes=[]}connectedCallback(){this.setup()}disconnectedCallback(){this.instances.forEach(t=>{t.dispose()}),this.instances=null}setup(){let t=this;for(;t.parentNode;)t=t.parentNode,this.parentNodes.push(t);[this,...this.parentNodes].some(t=>t.nextSibling)||"loading"!==document.readyState?this.childrenAvailableCallback():(this.mutationObserver=new MutationObserver(()=>{([this,...this.parentNodes].some(t=>t.nextSibling)||"loading"!==document.readyState)&&(this.childrenAvailableCallback(),this.mutationObserver.disconnect())}),this.mutationObserver.observe(this,{childList:!0}))}childrenAvailableCallback(){this.components.forEach(t=>{const e=this.querySelector(t.SELECTOR.default);if(!e)throw new Error("Default selector of ".concat(t.name," not found: ").concat(t.SELECTOR.default));this.instances.push(new t(e))})}static init(t){if(!t.TAG_NAME)throw new Error("TAG_NAME property of ".concat(t.name," class doesn't exists"));customElements.define(t.TAG_NAME,t)}}class E extends c{constructor(t,e={}){super(E,t,E.getOptions(t,e)),this.isEnabled=!0,this.timeout=0,this.hoverState="",this.activeTrigger={},this.popper=null,this.tip=null,this.setListeners(),l.setData(t,E.DATA_KEY,this)}enable(){this.isEnabled=!0}disable(){this.isEnabled=!1}toggleEnabled(){this.isEnabled=!this.isEnabled}toggle(t){if(this.isEnabled)if(t){const e=E.DATA_KEY;let n=E.getInstance(t.delegateTarget);n||(n=new E(t.delegateTarget,this.getDelegateConfig()),l.setData(t.delegateTarget,e,n)),n.activeTrigger.click=!n.activeTrigger.click,n.isWithActiveTrigger()?n.enter(null,n):n.leave(null,n)}else{if(this.getTipElement().classList.contains(E.CLASS_NAME.show))return void this.leave(null,this);this.enter(null,this)}}dispose(){clearTimeout(this.timeout),l.removeData(this.element,E.DATA_KEY),u.off(this.element,E.EVENT_KEY),u.off(this.element.closest(".modal"),"hide.".concat(i.KEY_PREFIX,".modal")),this.tip&&this.tip.parentNode&&this.tip.parentNode.removeChild(this.tip),this.isEnabled=null,this.timeout=null,this.hoverState=null,this.activeTrigger=null,null!==this.popper&&this.popper.destroy(),this.popper=null,this.element=null,this.options=null,this.tip=null}show(){if("none"===this.element.style.display)throw new Error("Please use show on visible elements");if(this.isWithContent()&&this.isEnabled){const t=u.trigger(this.element,E.EVENT.show),e=m.findShadowRoot(this.element),n=null!==e?e.contains(this.element):this.element.ownerDocument.documentElement.contains(this.element);if(t.defaultPrevented||!n)return;const o=this.getTipElement(),i=m.getUID(E.NAME);o.setAttribute("id",i),this.element.setAttribute("aria-describedby",i),this.setContent(),this.options.animation&&o.classList.add(E.CLASS_NAME.fade);const r="function"==typeof this.options.placement?this.options.placement.call(this,o,this.element):this.options.placement,s=E.getAttachment(r);this.addAttachmentClass(s),this.options.arrow||this.getTipElement().classList.add(E.CLASS_NAME.withoutArrow);const a=this.getContainer();l.setData(o,E.DATA_KEY,this),this.element.ownerDocument.documentElement.contains(this.tip)||a.appendChild(o),u.trigger(this.element,E.EVENT.inserted),this.popper=new f.a(this.element,o,{placement:s,modifiers:{offset:{offset:this.options.offset},flip:{behavior:this.options.fallbackPlacement},arrow:{element:E.SELECTOR.arrow},preventOverflow:{boundariesElement:this.options.boundary}},onCreate:t=>{t.originalPlacement!==t.placement&&this.handlePopperPlacementChange(t)},onUpdate:t=>this.handlePopperPlacementChange(t)}),o.classList.add(E.CLASS_NAME.show),"ontouchstart"in document.documentElement&&m.makeArray(document.body.children).forEach(t=>{u.on(t,"mouseover")});const c=()=>{this.options.animation&&this.fixTransition();const t=this.hoverState;this.hoverState=null,u.trigger(this.element,E.EVENT.shown),t===E.HOVER_STATE.out&&this.leave(null,this)};if(this.tip.classList.contains(E.CLASS_NAME.fade)){const t=m.getTransitionDurationFromElement(this.tip);u.one(this.tip,m.TRANSITION_END,c),m.emulateTransitionEnd(this.tip,t)}else c()}}hide(t){const e=this.getTipElement(),n=()=>{this.element&&(this.hoverState!==E.HOVER_STATE.show&&e.parentNode&&e.parentNode.removeChild(e),this.cleanTipClass(),this.element.removeAttribute("aria-describedby"),u.trigger(this.element,E.EVENT.hidden),null!==this.popper&&this.popper.destroy(),t&&t())};if(!u.trigger(this.element,E.EVENT.hide).defaultPrevented){if(e.classList.remove(E.CLASS_NAME.show),"ontouchstart"in document.documentElement&&m.makeArray(document.body.children).forEach(t=>u.off(t,"mouseover")),this.activeTrigger[E.TRIGGER.click]=!1,this.activeTrigger[E.TRIGGER.focus]=!1,this.activeTrigger[E.TRIGGER.hover]=!1,this.tip.classList.contains(E.CLASS_NAME.fade)){const t=m.getTransitionDurationFromElement(e);u.one(e,m.TRANSITION_END,n),m.emulateTransitionEnd(e,t)}else n();this.hoverState=""}}update(){null!==this.popper&&this.popper.scheduleUpdate()}isWithContent(){return Boolean(this.getTitle())}addAttachmentClass(t){this.getTipElement().classList.add("".concat(E.CLASS_NAME.default,"--").concat(t))}getTipElement(){if(this.tip)return this.tip;const t=document.createElement("div");return t.innerHTML=this.options.template,this.tip=t.children[0],this.tip}setContent(){const t=this.getTipElement();this.setElementContent(t.querySelector(E.SELECTOR.inner),this.getTitle()),t.classList.remove(E.CLASS_NAME.fade),t.classList.remove(E.CLASS_NAME.show)}setElementContent(t,e){if(null===t)return;const n=this.options.html;"object"==typeof e&&e.nodeType?n?e.parentNode!==t&&(t.innerHTML="",t.appendChild(e)):t.innerText=e.textContent:t[n?"innerHTML":"innerText"]=e}getTitle(){let t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.options.title?this.options.title.call(this.element):this.options.title),t}getContainer(){return!1===this.options.container?document.body:m.isElement(this.options.container)?this.options.container:document.querySelector(this.options.container)}setListeners(){this.options.trigger.split(" ").forEach(t=>{if("click"===t)u.on(this.element,E.EVENT.click,this.options.selector,t=>this.toggle(t));else if(t!==E.TRIGGER.manual){const e=t===E.TRIGGER.hover?E.EVENT.mouseenter:E.EVENT.focusin,n=t===E.TRIGGER.hover?E.EVENT.mouseleave:E.EVENT.focusout;u.on(this.element,e,this.options.selector,t=>this.enter(t)),u.on(this.element,n,this.options.selector,t=>this.leave(t))}}),u.on(this.element.closest(".modal"),"hide.".concat(i.KEY_PREFIX,".modal"),()=>{this.element&&this.hide()}),this.options.selector?this.options=Object.assign(Object.assign({},this.options),{trigger:"manual",selector:""}):this.fixTitle()}fixTitle(){const t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))}enter(t,e){const n=E.DATA_KEY;if((e=e||l.getData(t.delegateTarget,n))||(e=new E(t.delegateTarget,this.getDelegateConfig()),l.setData(t.delegateTarget,n,e)),t){const n="focusin"===t.type?E.TRIGGER.focus:E.TRIGGER.hover;e.activeTrigger[n]=!0}e.getTipElement().classList.contains(E.CLASS_NAME.show)||e.hoverState===E.HOVER_STATE.show?e.hoverState=E.HOVER_STATE.show:(clearTimeout(e.timeout),e.hoverState=E.HOVER_STATE.show,e.options.delay&&e.options.delay.show?e.timeout=setTimeout(()=>{e._hoverState===E.HOVER_STATE.show&&e.show()},e.options.delay.show):e.show())}leave(t,e){const n=E.DATA_KEY;if((e=e||l.getData(t.delegateTarget,n))||(e=new E(t.delegateTarget,this.getDelegateConfig()),l.setData(t.delegateTarget,n,e)),t){const n="focusout"===t.type?E.TRIGGER.focus:E.TRIGGER.hover;e.activeTrigger[n]=!1}e.isWithActiveTrigger()||(clearTimeout(e.timeout),e.hoverState=E.HOVER_STATE.out,e.options.delay&&e.options.delay.hide?e.timeout=setTimeout(()=>{e.hoverState===E.HOVER_STATE.out&&e.hide()},e.options.delay.hide):e.hide())}isWithActiveTrigger(){for(const t in this.activeTrigger)if(this.activeTrigger[t])return!0;return!1}static getOptions(t,e){return"number"==typeof(e=Object.assign(Object.assign(Object.assign({},E.DEFAULT_OPTIONS),d.getDataAttributes(t)),"object"==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),m.typeCheckConfig(E.NAME,e,E.DEFAULT_TYPE),e}getDelegateConfig(){const t={};if(this.options)for(const e in this.options)E.DEFAULT_OPTIONS[e]!==this.options[e]&&(t[e]=this.options[e]);return t}cleanTipClass(){const t=this.getTipElement(),e=t.getAttribute("class").match(E.NJCLS_PREFIX_REGEX);null!==e&&e.length&&e.map(t=>t.trim()).forEach(e=>t.classList.remove(e))}handlePopperPlacementChange(t){const e=t.instance;this.tip=e.popper,this.cleanTipClass(),this.addAttachmentClass(E.getAttachment(t.placement))}fixTransition(){const t=this.getTipElement(),e=this.options.animation;null===t.getAttribute("x-placement")&&(t.classList.remove(E.CLASS_NAME.fade),this.options.animation=!1,this.hide(),this.show(),this.options.animation=e)}static getAttachment(t){return E.ATTACHMENT_MAP[t.toUpperCase()]}static getInstance(t){return l.getData(t,E.DATA_KEY)}static init(){return[]}}E.NAME="".concat(i.KEY_PREFIX,"-tooltip"),E.DATA_KEY="".concat(i.KEY_PREFIX,".tooltip"),E.EVENT_KEY=".".concat(E.DATA_KEY),E.CLASS_NAME={default:"".concat(i.KEY_PREFIX,"-tooltip"),inner:"".concat(i.KEY_PREFIX,"-tooltip__inner"),arrow:"".concat(i.KEY_PREFIX,"-tooltip__arrow"),withoutArrow:"".concat(i.KEY_PREFIX,"-tooltip--without-arrow"),fade:"fade",show:"show"},E.NJCLS_PREFIX_REGEX=new RegExp("(^|\\s)".concat(E.CLASS_NAME.default,"\\S+"),"g"),E.DEFAULT_TYPE={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",arrow:"boolean"},E.ATTACHMENT_MAP={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},E.DEFAULT_OPTIONS={animation:!0,template:'<div class="'.concat(E.CLASS_NAME.default,'" role="tooltip">')+'<div class="'.concat(E.CLASS_NAME.arrow,'"></div>')+'<div class="'.concat(E.CLASS_NAME.inner,'"></div></div>'),trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",arrow:!0},E.HOVER_STATE={show:"show",out:"out"},E.EVENT={hide:"".concat(s.hide).concat(E.EVENT_KEY),hidden:"".concat(s.hidden).concat(E.EVENT_KEY),show:"".concat(s.show).concat(E.EVENT_KEY),shown:"".concat(s.shown).concat(E.EVENT_KEY),inserted:"".concat(s.inserted).concat(E.EVENT_KEY),click:"".concat(s.click).concat(E.EVENT_KEY),focusin:"".concat(s.focusin).concat(E.EVENT_KEY),focusout:"".concat(s.focusout).concat(E.EVENT_KEY),mouseenter:"".concat(s.mouseenter).concat(E.EVENT_KEY),mouseleave:"".concat(s.mouseleave).concat(E.EVENT_KEY)},E.SELECTOR={default:'[data-toggle="tooltip"]',inner:".".concat(E.CLASS_NAME.inner),arrow:".".concat(E.CLASS_NAME.arrow)},E.TRIGGER={hover:"hover",focus:"focus",click:"click",manual:"manual"};class v extends g{constructor(){super(E)}static init(){g.init(v)}}v.TAG_NAME=E.NAME,n.d(e,"default",(function(){return b})),n.d(e,"SliderWC",(function(){return T}));class b extends c{constructor(t,e={}){super(b,t,b.getOptions(t,e)),this.dataId=Number(String(Math.random()).slice(2))+Date.now(),this.input=this.element.querySelector(b.SELECTOR.input),this.element.setAttribute("data-id",this.dataId.toString()),this.refreshProgressValue(),this.setListeners(),this.options.tooltip&&(this.addTooltip(),this.setTooltipListeners()),l.setData(t,b.DATA_KEY,this)}addTooltip(){this.tooltip=d.createHtmlNode(E.DEFAULT_OPTIONS.template),this.tooltip.classList.add("".concat(i.KEY_PREFIX,"-tooltip--top")),this.tooltip.classList.add("show"),this.element.insertBefore(this.tooltip,this.element.querySelector(b.SELECTOR.label)),this.refreshTooltipValue()}setListeners(){u.on(this.element,"input change keyup",()=>{this.refreshProgressValue()})}setTooltipListeners(){u.on(this.element,"input change keyup",()=>{this.refreshTooltipValue()});let t=!1;u.on(document,"resize",()=>{t||(this.refreshTooltipValue(),t=!0,setTimeout(()=>{t=!1},100))})}refreshProgressValue(){const t=parseFloat(this.input.max)||b.PERCENT_CONV,e=parseFloat(this.input.min)||0,n=parseFloat(this.input.value),o=Math.floor(b.PERCENT_CONV*(n-e)/(t-e));document.querySelector("[data-id='".concat(this.dataId,"']")).style.setProperty("--slider-track-position","".concat(o,"% 100%"))}refreshTooltipValue(){this.tooltip.querySelector(E.SELECTOR.inner).innerHTML=this.input.value,this.replaceTooltip()}replaceTooltip(){const t=""===this.input.min?0:parseFloat(this.input.min),e=""===this.input.max?100:parseFloat(this.input.max),n=(parseFloat(this.input.value)-t)/(e-t);this.tooltip.style.left="".concat(n*(this.input.offsetWidth-b.THUMB_WIDTH)-this.tooltip.offsetWidth/2+b.THUMB_WIDTH/2,"px")}static getOptions(t,e={}){return e=Object.assign(Object.assign(Object.assign({},b.DEFAULT_OPTIONS),d.getDataAttributes(t)),"object"==typeof e&&e?e:{}),m.typeCheckConfig(b.NAME,e,b.DEFAULT_TYPE),e}dispose(){l.removeData(this.element,b.DATA_KEY),this.element=null}static getInstance(t){return l.getData(t,b.DATA_KEY)}static init(t={}){return super.init(this,t,b.SELECTOR.default)}}b.NAME="".concat(i.KEY_PREFIX,"-slider"),b.DATA_KEY="".concat(i.KEY_PREFIX,".slider"),b.CLASS_NAME="".concat(i.KEY_PREFIX,"-slider"),b.SELECTOR={default:".".concat(b.CLASS_NAME),input:"input",label:"label"},b.THUMB_WIDTH=16,b.DEFAULT_TYPE={tooltip:"boolean"},b.DEFAULT_OPTIONS={tooltip:!1},b.PERCENT_CONV=100,b.PSEUDO_ELEMS=["webkit-slider-runnable","moz-range","ms"];class T extends g{constructor(){super(b)}static init(){g.init(T)}}T.TAG_NAME=b.NAME}]).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,(function(){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=2)}([function(t,e,n){"use strict";(function(t){var n="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,o=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(n&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}();var i=n&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),o))}};function r(t){return t&&"[object Function]"==={}.toString.call(t)}function s(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function a(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function l(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=s(t),n=e.overflow,o=e.overflowX,i=e.overflowY;return/(auto|scroll|overlay)/.test(n+i+o)?t:l(a(t))}function c(t){return t&&t.referenceNode?t.referenceNode:t}var u=n&&!(!window.MSInputMethodContext||!document.documentMode),p=n&&/MSIE 10/.test(navigator.userAgent);function d(t){return 11===t?u:10===t?p:u||p}function f(t){if(!t)return document.documentElement;for(var e=d(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var o=n&&n.nodeName;return o&&"BODY"!==o&&"HTML"!==o?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===s(n,"position")?f(n):n:t?t.ownerDocument.documentElement:document.documentElement}function h(t){return null!==t.parentNode?h(t.parentNode):t}function m(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,o=n?t:e,i=n?e:t,r=document.createRange();r.setStart(o,0),r.setEnd(i,0);var s,a,l=r.commonAncestorContainer;if(t!==l&&e!==l||o.contains(i))return"BODY"===(a=(s=l).nodeName)||"HTML"!==a&&f(s.firstElementChild)!==s?f(l):l;var c=h(t);return c.host?m(c.host,e):m(t,h(e).host)}function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",o=t.nodeName;if("BODY"===o||"HTML"===o){var i=t.ownerDocument.documentElement,r=t.ownerDocument.scrollingElement||i;return r[n]}return t[n]}function E(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=g(e,"top"),i=g(e,"left"),r=n?-1:1;return t.top+=o*r,t.bottom+=o*r,t.left+=i*r,t.right+=i*r,t}function v(t,e){var n="x"===e?"Left":"Top",o="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"],10)+parseFloat(t["border"+o+"Width"],10)}function b(t,e,n,o){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],d(10)?parseInt(n["offset"+t])+parseInt(o["margin"+("Height"===t?"Top":"Left")])+parseInt(o["margin"+("Height"===t?"Bottom":"Right")]):0)}function T(t){var e=t.body,n=t.documentElement,o=d(10)&&getComputedStyle(n);return{height:b("Height",e,n,o),width:b("Width",e,n,o)}}var y=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},w=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),A=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},S=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t};function N(t){return S({},t,{right:t.left+t.width,bottom:t.top+t.height})}function O(t){var e={};try{if(d(10)){e=t.getBoundingClientRect();var n=g(t,"top"),o=g(t,"left");e.top+=n,e.left+=o,e.bottom+=n,e.right+=o}else e=t.getBoundingClientRect()}catch(t){}var i={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},r="HTML"===t.nodeName?T(t.ownerDocument):{},a=r.width||t.clientWidth||i.width,l=r.height||t.clientHeight||i.height,c=t.offsetWidth-a,u=t.offsetHeight-l;if(c||u){var p=s(t);c-=v(p,"x"),u-=v(p,"y"),i.width-=c,i.height-=u}return N(i)}function _(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=d(10),i="HTML"===e.nodeName,r=O(t),a=O(e),c=l(t),u=s(e),p=parseFloat(u.borderTopWidth,10),f=parseFloat(u.borderLeftWidth,10);n&&i&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var h=N({top:r.top-a.top-p,left:r.left-a.left-f,width:r.width,height:r.height});if(h.marginTop=0,h.marginLeft=0,!o&&i){var m=parseFloat(u.marginTop,10),g=parseFloat(u.marginLeft,10);h.top-=p-m,h.bottom-=p-m,h.left-=f-g,h.right-=f-g,h.marginTop=m,h.marginLeft=g}return(o&&!n?e.contains(c):e===c&&"BODY"!==c.nodeName)&&(h=E(h,e)),h}function L(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,o=_(t,n),i=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),s=e?0:g(n),a=e?0:g(n,"left"),l={top:s-o.top+o.marginTop,left:a-o.left+o.marginLeft,width:i,height:r};return N(l)}function C(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===s(t,"position"))return!0;var n=a(t);return!!n&&C(n)}function D(t){if(!t||!t.parentElement||d())return document.documentElement;for(var e=t.parentElement;e&&"none"===s(e,"transform");)e=e.parentElement;return e||document.documentElement}function x(t,e,n,o){var i=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},s=i?D(t):m(t,c(e));if("viewport"===o)r=L(s,i);else{var u=void 0;"scrollParent"===o?"BODY"===(u=l(a(e))).nodeName&&(u=t.ownerDocument.documentElement):u="window"===o?t.ownerDocument.documentElement:o;var p=_(u,s,i);if("HTML"!==u.nodeName||C(s))r=p;else{var d=T(t.ownerDocument),f=d.height,h=d.width;r.top+=p.top-p.marginTop,r.bottom=f+p.top,r.left+=p.left-p.marginLeft,r.right=h+p.left}}var g="number"==typeof(n=n||0);return r.left+=g?n:n.left||0,r.top+=g?n:n.top||0,r.right-=g?n:n.right||0,r.bottom-=g?n:n.bottom||0,r}function R(t){return t.width*t.height}function M(t,e,n,o,i){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var s=x(n,o,r,i),a={top:{width:s.width,height:e.top-s.top},right:{width:s.right-e.right,height:s.height},bottom:{width:s.width,height:s.bottom-e.bottom},left:{width:e.left-s.left,height:s.height}},l=Object.keys(a).map((function(t){return S({key:t},a[t],{area:R(a[t])})})).sort((function(t,e){return e.area-t.area})),c=l.filter((function(t){var e=t.width,o=t.height;return e>=n.clientWidth&&o>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,p=t.split("-")[1];return u+(p?"-"+p:"")}function P(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=o?D(e):m(e,c(n));return _(n,i,o)}function k(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),o=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+o,height:t.offsetHeight+n}}function I(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function H(t,e,n){n=n.split("-")[0];var o=k(t),i={width:o.width,height:o.height},r=-1!==["right","left"].indexOf(n),s=r?"top":"left",a=r?"left":"top",l=r?"height":"width",c=r?"width":"height";return i[s]=e[s]+e[l]/2-o[l]/2,i[a]=n===a?e[a]-o[c]:e[I(a)],i}function F(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function Y(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===n}));var o=F(t,(function(t){return t[e]===n}));return t.indexOf(o)}(t,"name",n))).forEach((function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&r(n)&&(e.offsets.popper=N(e.offsets.popper),e.offsets.reference=N(e.offsets.reference),e=n(e,t))})),e}function j(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=P(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=M(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=H(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=Y(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function V(t,e){return t.some((function(t){var n=t.name;return t.enabled&&n===e}))}function G(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),o=0;o<e.length;o++){var i=e[o],r=i?""+i+n:t;if(void 0!==document.body.style[r])return r}return null}function K(){return this.state.isDestroyed=!0,V(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[G("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function U(t){var e=t.ownerDocument;return e?e.defaultView:window}function W(t,e,n,o){n.updateBound=o,U(t).addEventListener("resize",n.updateBound,{passive:!0});var i=l(t);return function t(e,n,o,i){var r="BODY"===e.nodeName,s=r?e.ownerDocument.defaultView:e;s.addEventListener(n,o,{passive:!0}),r||t(l(s.parentNode),n,o,i),i.push(s)}(i,"scroll",n.updateBound,n.scrollParents),n.scrollElement=i,n.eventsEnabled=!0,n}function B(){this.state.eventsEnabled||(this.state=W(this.reference,this.options,this.state,this.scheduleUpdate))}function X(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,U(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.updateBound)})),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function q(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function z(t,e){Object.keys(e).forEach((function(n){var o="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&q(e[n])&&(o="px"),t.style[n]=e[n]+o}))}var J=n&&/Firefox/i.test(navigator.userAgent);function $(t,e,n){var o=F(t,(function(t){return t.name===e})),i=!!o&&t.some((function(t){return t.name===n&&t.enabled&&t.order<o.order}));if(!i){var r="`"+e+"`",s="`"+n+"`";console.warn(s+" modifier is required by "+r+" modifier in order to work, be sure to include it before "+r+"!")}return i}var Q=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],Z=Q.slice(3);function tt(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Z.indexOf(t),o=Z.slice(n+1).concat(Z.slice(0,n));return e?o.reverse():o}var et="flip",nt="clockwise",ot="counterclockwise";function it(t,e,n,o){var i=[0,0],r=-1!==["right","left"].indexOf(o),s=t.split(/(\+|\-)/).map((function(t){return t.trim()})),a=s.indexOf(F(s,(function(t){return-1!==t.search(/,|\s/)})));s[a]&&-1===s[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==a?[s.slice(0,a).concat([s[a].split(l)[0]]),[s[a].split(l)[1]].concat(s.slice(a+1))]:[s];return(c=c.map((function(t,o){var i=(1===o?!r:r)?"height":"width",s=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,s=!0,t):s?(t[t.length-1]+=e,s=!1,t):t.concat(e)}),[]).map((function(t){return function(t,e,n,o){var i=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+i[1],s=i[2];if(!r)return t;if(0===s.indexOf("%")){var a=void 0;switch(s){case"%p":a=n;break;case"%":case"%r":default:a=o}return N(a)[e]/100*r}if("vh"===s||"vw"===s)return("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r;return r}(t,i,e,n)}))}))).forEach((function(t,e){t.forEach((function(n,o){q(n)&&(i[e]+=n*("-"===t[o-1]?-1:1))}))})),i}var rt={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],o=e.split("-")[1];if(o){var i=t.offsets,r=i.reference,s=i.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",c=a?"width":"height",u={start:A({},l,r[l]),end:A({},l,r[l]+r[c]-s[c])};t.offsets.popper=S({},s,u[o])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,o=t.placement,i=t.offsets,r=i.popper,s=i.reference,a=o.split("-")[0],l=void 0;return l=q(+n)?[+n,0]:it(n,r,s,a),"left"===a?(r.top+=l[0],r.left-=l[1]):"right"===a?(r.top+=l[0],r.left+=l[1]):"top"===a?(r.left+=l[0],r.top-=l[1]):"bottom"===a&&(r.left+=l[0],r.top+=l[1]),t.popper=r,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||f(t.instance.popper);t.instance.reference===n&&(n=f(n));var o=G("transform"),i=t.instance.popper.style,r=i.top,s=i.left,a=i[o];i.top="",i.left="",i[o]="";var l=x(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);i.top=r,i.left=s,i[o]=a,e.boundaries=l;var c=e.priority,u=t.offsets.popper,p={primary:function(t){var n=u[t];return u[t]<l[t]&&!e.escapeWithReference&&(n=Math.max(u[t],l[t])),A({},t,n)},secondary:function(t){var n="right"===t?"left":"top",o=u[n];return u[t]>l[t]&&!e.escapeWithReference&&(o=Math.min(u[n],l[t]-("right"===t?u.width:u.height))),A({},n,o)}};return c.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";u=S({},u,p[e](t))})),t.offsets.popper=u,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,o=e.reference,i=t.placement.split("-")[0],r=Math.floor,s=-1!==["top","bottom"].indexOf(i),a=s?"right":"bottom",l=s?"left":"top",c=s?"width":"height";return n[a]<r(o[l])&&(t.offsets.popper[l]=r(o[l])-n[c]),n[l]>r(o[a])&&(t.offsets.popper[l]=r(o[a])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!$(t.instance.modifiers,"arrow","keepTogether"))return t;var o=e.element;if("string"==typeof o){if(!(o=t.instance.popper.querySelector(o)))return t}else if(!t.instance.popper.contains(o))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var i=t.placement.split("-")[0],r=t.offsets,a=r.popper,l=r.reference,c=-1!==["left","right"].indexOf(i),u=c?"height":"width",p=c?"Top":"Left",d=p.toLowerCase(),f=c?"left":"top",h=c?"bottom":"right",m=k(o)[u];l[h]-m<a[d]&&(t.offsets.popper[d]-=a[d]-(l[h]-m)),l[d]+m>a[h]&&(t.offsets.popper[d]+=l[d]+m-a[h]),t.offsets.popper=N(t.offsets.popper);var g=l[d]+l[u]/2-m/2,E=s(t.instance.popper),v=parseFloat(E["margin"+p],10),b=parseFloat(E["border"+p+"Width"],10),T=g-t.offsets.popper[d]-v-b;return T=Math.max(Math.min(a[u]-m,T),0),t.arrowElement=o,t.offsets.arrow=(A(n={},d,Math.round(T)),A(n,f,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(V(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=x(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),o=t.placement.split("-")[0],i=I(o),r=t.placement.split("-")[1]||"",s=[];switch(e.behavior){case et:s=[o,i];break;case nt:s=tt(o);break;case ot:s=tt(o,!0);break;default:s=e.behavior}return s.forEach((function(a,l){if(o!==a||s.length===l+1)return t;o=t.placement.split("-")[0],i=I(o);var c=t.offsets.popper,u=t.offsets.reference,p=Math.floor,d="left"===o&&p(c.right)>p(u.left)||"right"===o&&p(c.left)<p(u.right)||"top"===o&&p(c.bottom)>p(u.top)||"bottom"===o&&p(c.top)<p(u.bottom),f=p(c.left)<p(n.left),h=p(c.right)>p(n.right),m=p(c.top)<p(n.top),g=p(c.bottom)>p(n.bottom),E="left"===o&&f||"right"===o&&h||"top"===o&&m||"bottom"===o&&g,v=-1!==["top","bottom"].indexOf(o),b=!!e.flipVariations&&(v&&"start"===r&&f||v&&"end"===r&&h||!v&&"start"===r&&m||!v&&"end"===r&&g),T=!!e.flipVariationsByContent&&(v&&"start"===r&&h||v&&"end"===r&&f||!v&&"start"===r&&g||!v&&"end"===r&&m),y=b||T;(d||E||y)&&(t.flipped=!0,(d||E)&&(o=s[l+1]),y&&(r=function(t){return"end"===t?"start":"start"===t?"end":t}(r)),t.placement=o+(r?"-"+r:""),t.offsets.popper=S({},t.offsets.popper,H(t.instance.popper,t.offsets.reference,t.placement)),t=Y(t.instance.modifiers,t,"flip"))})),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],o=t.offsets,i=o.popper,r=o.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return i[s?"left":"top"]=r[n]-(a?i[s?"width":"height"]:0),t.placement=I(e),t.offsets.popper=N(i),t}},hide:{order:800,enabled:!0,fn:function(t){if(!$(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=F(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var n=e.x,o=e.y,i=t.offsets.popper,r=F(t.instance.modifiers,(function(t){return"applyStyle"===t.name})).gpuAcceleration;void 0!==r&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s=void 0!==r?r:e.gpuAcceleration,a=f(t.instance.popper),l=O(a),c={position:i.position},u=function(t,e){var n=t.offsets,o=n.popper,i=n.reference,r=Math.round,s=Math.floor,a=function(t){return t},l=r(i.width),c=r(o.width),u=-1!==["left","right"].indexOf(t.placement),p=-1!==t.placement.indexOf("-"),d=e?u||p||l%2==c%2?r:s:a,f=e?r:a;return{left:d(l%2==1&&c%2==1&&!p&&e?o.left-1:o.left),top:f(o.top),bottom:f(o.bottom),right:d(o.right)}}(t,window.devicePixelRatio<2||!J),p="bottom"===n?"top":"bottom",d="right"===o?"left":"right",h=G("transform"),m=void 0,g=void 0;if(g="bottom"===p?"HTML"===a.nodeName?-a.clientHeight+u.bottom:-l.height+u.bottom:u.top,m="right"===d?"HTML"===a.nodeName?-a.clientWidth+u.right:-l.width+u.right:u.left,s&&h)c[h]="translate3d("+m+"px, "+g+"px, 0)",c[p]=0,c[d]=0,c.willChange="transform";else{var E="bottom"===p?-1:1,v="right"===d?-1:1;c[p]=g*E,c[d]=m*v,c.willChange=p+", "+d}var b={"x-placement":t.placement};return t.attributes=S({},b,t.attributes),t.styles=S({},c,t.styles),t.arrowStyles=S({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return z(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEach((function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t)})),t.arrowElement&&Object.keys(t.arrowStyles).length&&z(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,o,i){var r=P(i,e,t,n.positionFixed),s=M(n.placement,r,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",s),z(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},st=function(){function t(e,n){var o=this,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};y(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=i(this.update.bind(this)),this.options=S({},t.Defaults,s),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(S({},t.Defaults.modifiers,s.modifiers)).forEach((function(e){o.options.modifiers[e]=S({},t.Defaults.modifiers[e]||{},s.modifiers?s.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return S({name:t},o.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&r(t.onLoad)&&t.onLoad(o.reference,o.popper,o.options,t,o.state)})),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return w(t,[{key:"update",value:function(){return j.call(this)}},{key:"destroy",value:function(){return K.call(this)}},{key:"enableEventListeners",value:function(){return B.call(this)}},{key:"disableEventListeners",value:function(){return X.call(this)}}]),t}();st.Utils=("undefined"!=typeof window?window:t).PopperUtils,st.placements=Q,st.Defaults=rt,e.a=st}).call(this,n(1))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";n.r(e);const o=(()=>{const t={};let e=1;return{set(n,o,i){void 0===n.key&&(n.key={key:o,id:e},e++),t[n.key.id]=i},get(e,n){if(!e||void 0===e.key)return null;const o=e.key;return o.key===n?t[o.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)}}})();var i,r,s,a,l={setData(t,e,n){o.set(t,e,n)},getData:(t,e)=>o.get(t,e),removeData(t,e){o.delete(t,e)}};class c{constructor(t,e,n={}){!e||e instanceof Element||console.error(Error("".concat(e," is not an HTML Element"))),this.options=n,this.element=e}static init(t,e={},n){const o=[],i=document.querySelectorAll(n);for(let n=0;n<i.length;n++){const r=i[n];if(!r.key||r.key!==t.DATA_KEY){const s=new t(i[n],e);r.key||l.setData(i[n],t.DATA_KEY,s),o.push(s)}}return o}}!function(t){t.KEY_PREFIX="nj",t.DATA_API_KEY=".data-api"}(i||(i={})),function(t){t.mouseenter="mouseover",t.mouseleave="mouseout"}(r||(r={})),function(t){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"}(s||(s={})),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"}(a||(a={}));class u{static getUidEvent(t,e){return e&&"".concat(e,"::").concat(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 s=r.length;s>=0;s--)if(r[s]===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,n=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 s=t.replace(u.STRIPNAME_REGEX,"");const l=r[s];l&&(s=l);return"string"==typeof a[s]||(s=t),[o,i,s]}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 s of e.split(" ")){const[e,a,l]=u.normalizeParams(s,n,o),c=r[l]||(r[l]={}),p=u.findHandler(c,a,e?n:null);if(p)return void(p.oneOff=p.oneOff&&i);const d=u.getUidEvent(a,s.replace(u.NAMESPACE_REGEX,"")),f=e?u.njDelegationHandler(t,n,o):u.njHandler(t,n);f.delegationSelector=e?n:null,f.originalHandler=a,f.oneOff=i,f.uidEvent=d,c[d]=f,t.addEventListener(l,f,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,s]=u.normalizeParams(e,n,o),a=s!==e,l=u.getEvent(t);if(void 0!==r){if(!l||!l[s])return;return void u.removeHandler(t,l,s,r,i?n:null)}if("."===e.charAt(0))for(const n in l)Object.prototype.hasOwnProperty.call(l,n)&&u.removeNamespacedHandlers(t,l,n,e.substr(1));const c=l[s]||{};for(const n in c){if(!Object.prototype.hasOwnProperty.call(c,n))continue;const o=n.replace(u.STRIPUID_REGEX,"");if(!a||e.indexOf(o)>-1){const e=c[n];u.removeHandler(t,l,s,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 a[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 p={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("data-".length).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]=p.extend(t[o],e[o]):t[o]=e[o]);return t},extend(...t){let e={},n=!1,o=0;for("[object Boolean]"===Object.prototype.toString.call(t[0])&&(n=t[0],o++);o<t.length;o++)e=p.mergeExtended(e,t[o],n);return e},createHtmlNode:t=>(new DOMParser).parseFromString(t,"text/html").body.firstChild};var d=p,f=n(0);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],s=e[i],a=s&&h.isElement(s)?"element":(o=s,{}.toString.call(o).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(r).test(a))throw new Error("".concat(t.toUpperCase(),": ")+'Option "'.concat(i,'" provided type "').concat(a,'" ')+'but expected type "'.concat(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,s,a,l=null,c=0;const u=()=>{c=Date.now(),l=null,a=t.apply(s,r)};return()=>{const p=Date.now();c||n||(c=p);const d=e-(p-c);return s=i||this,r=arguments,d<=0?(clearTimeout(l),l=null,c=p,a=t.apply(s,r)):!l&&o&&(l=setTimeout(u,d)),a}}};var m=h;class g extends HTMLElement{constructor(...t){super(),this.components=t,this.instances=[],this.parentNodes=[]}connectedCallback(){this.setup()}disconnectedCallback(){this.instances.forEach(t=>{t.dispose()}),this.instances=null}setup(){let t=this;for(;t.parentNode;)t=t.parentNode,this.parentNodes.push(t);[this,...this.parentNodes].some(t=>t.nextSibling)||"loading"!==document.readyState?this.childrenAvailableCallback():(this.mutationObserver=new MutationObserver(()=>{([this,...this.parentNodes].some(t=>t.nextSibling)||"loading"!==document.readyState)&&(this.childrenAvailableCallback(),this.mutationObserver.disconnect())}),this.mutationObserver.observe(this,{childList:!0}))}childrenAvailableCallback(){this.components.forEach(t=>{const e=this.querySelector(t.SELECTOR.default);if(!e)throw new Error("Default selector of ".concat(t.name," not found: ").concat(t.SELECTOR.default));this.instances.push(new t(e))})}static init(t){if(!t.TAG_NAME)throw new Error("TAG_NAME property of ".concat(t.name," class doesn't exists"));customElements.define(t.TAG_NAME,t)}}class E extends c{constructor(t,e={}){super(E,t,E.getOptions(t,e)),this.isEnabled=!0,this.timeout=0,this.hoverState="",this.activeTrigger={},this.popper=null,this.tip=null,this.setListeners(),l.setData(t,E.DATA_KEY,this)}enable(){this.isEnabled=!0}disable(){this.isEnabled=!1}toggleEnabled(){this.isEnabled=!this.isEnabled}toggle(t){if(this.isEnabled)if(t){const e=E.DATA_KEY;let n=E.getInstance(t.delegateTarget);n||(n=new E(t.delegateTarget,this.getDelegateConfig()),l.setData(t.delegateTarget,e,n)),n.activeTrigger.click=!n.activeTrigger.click,n.isWithActiveTrigger()?n.enter(null,n):n.leave(null,n)}else{if(this.getTipElement().classList.contains(E.CLASS_NAME.show))return void this.leave(null,this);this.enter(null,this)}}dispose(){clearTimeout(this.timeout),l.removeData(this.element,E.DATA_KEY),u.off(this.element,E.EVENT_KEY),u.off(this.element.closest(".modal"),"hide.".concat(i.KEY_PREFIX,".modal")),this.tip&&this.tip.parentNode&&this.tip.parentNode.removeChild(this.tip),this.isEnabled=null,this.timeout=null,this.hoverState=null,this.activeTrigger=null,null!==this.popper&&this.popper.destroy(),this.popper=null,this.element=null,this.options=null,this.tip=null}show(){if("none"===this.element.style.display)throw new Error("Please use show on visible elements");if(this.isWithContent()&&this.isEnabled){const t=u.trigger(this.element,E.EVENT.show),e=m.findShadowRoot(this.element),n=null!==e?e.contains(this.element):this.element.ownerDocument.documentElement.contains(this.element);if(t.defaultPrevented||!n)return;const o=this.getTipElement(),i=m.getUID(E.NAME);o.setAttribute("id",i),this.element.setAttribute("aria-describedby",i),this.setContent(),this.options.animation&&o.classList.add(E.CLASS_NAME.fade);const r="function"==typeof this.options.placement?this.options.placement.call(this,o,this.element):this.options.placement,s=E.getAttachment(r);this.addAttachmentClass(s),this.options.arrow||this.getTipElement().classList.add(E.CLASS_NAME.withoutArrow);const a=this.getContainer();l.setData(o,E.DATA_KEY,this),this.element.ownerDocument.documentElement.contains(this.tip)||a.appendChild(o),u.trigger(this.element,E.EVENT.inserted),this.popper=new f.a(this.element,o,{placement:s,modifiers:{offset:{offset:this.options.offset},flip:{behavior:this.options.fallbackPlacement},arrow:{element:E.SELECTOR.arrow},preventOverflow:{boundariesElement:this.options.boundary}},onCreate:t=>{t.originalPlacement!==t.placement&&this.handlePopperPlacementChange(t)},onUpdate:t=>this.handlePopperPlacementChange(t)}),o.classList.add(E.CLASS_NAME.show),"ontouchstart"in document.documentElement&&m.makeArray(document.body.children).forEach(t=>{u.on(t,"mouseover")});const c=()=>{this.options.animation&&this.fixTransition();const t=this.hoverState;this.hoverState=null,u.trigger(this.element,E.EVENT.shown),t===E.HOVER_STATE.out&&this.leave(null,this)};if(this.tip.classList.contains(E.CLASS_NAME.fade)){const t=m.getTransitionDurationFromElement(this.tip);u.one(this.tip,m.TRANSITION_END,c),m.emulateTransitionEnd(this.tip,t)}else c()}}hide(t){const e=this.getTipElement(),n=()=>{this.element&&(this.hoverState!==E.HOVER_STATE.show&&e.parentNode&&e.parentNode.removeChild(e),this.cleanTipClass(),this.element.removeAttribute("aria-describedby"),u.trigger(this.element,E.EVENT.hidden),null!==this.popper&&this.popper.destroy(),t&&t())};if(!u.trigger(this.element,E.EVENT.hide).defaultPrevented){if(e.classList.remove(E.CLASS_NAME.show),"ontouchstart"in document.documentElement&&m.makeArray(document.body.children).forEach(t=>u.off(t,"mouseover")),this.activeTrigger[E.TRIGGER.click]=!1,this.activeTrigger[E.TRIGGER.focus]=!1,this.activeTrigger[E.TRIGGER.hover]=!1,this.tip.classList.contains(E.CLASS_NAME.fade)){const t=m.getTransitionDurationFromElement(e);u.one(e,m.TRANSITION_END,n),m.emulateTransitionEnd(e,t)}else n();this.hoverState=""}}update(){null!==this.popper&&this.popper.scheduleUpdate()}isWithContent(){return Boolean(this.getTitle())}addAttachmentClass(t){this.getTipElement().classList.add("".concat(E.CLASS_NAME.default,"--").concat(t))}getTipElement(){if(this.tip)return this.tip;const t=document.createElement("div");return t.innerHTML=this.options.template,this.tip=t.children[0],this.tip}setContent(){const t=this.getTipElement();this.setElementContent(t.querySelector(E.SELECTOR.inner),this.getTitle()),t.classList.remove(E.CLASS_NAME.fade),t.classList.remove(E.CLASS_NAME.show)}setElementContent(t,e){if(null===t)return;const n=this.options.html;"object"==typeof e&&e.nodeType?n?e.parentNode!==t&&(t.innerHTML="",t.appendChild(e)):t.innerText=e.textContent:t[n?"innerHTML":"innerText"]=e}getTitle(){let t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.options.title?this.options.title.call(this.element):this.options.title),t}getContainer(){return!1===this.options.container?document.body:m.isElement(this.options.container)?this.options.container:document.querySelector(this.options.container)}setListeners(){this.options.trigger.split(" ").forEach(t=>{if("click"===t)u.on(this.element,E.EVENT.click,this.options.selector,t=>this.toggle(t));else if(t!==E.TRIGGER.manual){const e=t===E.TRIGGER.hover?E.EVENT.mouseenter:E.EVENT.focusin,n=t===E.TRIGGER.hover?E.EVENT.mouseleave:E.EVENT.focusout;u.on(this.element,e,this.options.selector,t=>this.enter(t)),u.on(this.element,n,this.options.selector,t=>this.leave(t))}}),u.on(this.element.closest(".modal"),"hide.".concat(i.KEY_PREFIX,".modal"),()=>{this.element&&this.hide()}),this.options.selector?this.options=Object.assign(Object.assign({},this.options),{trigger:"manual",selector:""}):this.fixTitle()}fixTitle(){const t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))}enter(t,e){const n=E.DATA_KEY;if((e=e||l.getData(t.delegateTarget,n))||(e=new E(t.delegateTarget,this.getDelegateConfig()),l.setData(t.delegateTarget,n,e)),t){const n="focusin"===t.type?E.TRIGGER.focus:E.TRIGGER.hover;e.activeTrigger[n]=!0}e.getTipElement().classList.contains(E.CLASS_NAME.show)||e.hoverState===E.HOVER_STATE.show?e.hoverState=E.HOVER_STATE.show:(clearTimeout(e.timeout),e.hoverState=E.HOVER_STATE.show,e.options.delay&&e.options.delay.show?e.timeout=setTimeout(()=>{e._hoverState===E.HOVER_STATE.show&&e.show()},e.options.delay.show):e.show())}leave(t,e){const n=E.DATA_KEY;if((e=e||l.getData(t.delegateTarget,n))||(e=new E(t.delegateTarget,this.getDelegateConfig()),l.setData(t.delegateTarget,n,e)),t){const n="focusout"===t.type?E.TRIGGER.focus:E.TRIGGER.hover;e.activeTrigger[n]=!1}e.isWithActiveTrigger()||(clearTimeout(e.timeout),e.hoverState=E.HOVER_STATE.out,e.options.delay&&e.options.delay.hide?e.timeout=setTimeout(()=>{e.hoverState===E.HOVER_STATE.out&&e.hide()},e.options.delay.hide):e.hide())}isWithActiveTrigger(){for(const t in this.activeTrigger)if(this.activeTrigger[t])return!0;return!1}static getOptions(t,e){return"number"==typeof(e=Object.assign(Object.assign(Object.assign({},E.DEFAULT_OPTIONS),d.getDataAttributes(t)),"object"==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),m.typeCheckConfig(E.NAME,e,E.DEFAULT_TYPE),e}getDelegateConfig(){const t={};if(this.options)for(const e in this.options)E.DEFAULT_OPTIONS[e]!==this.options[e]&&(t[e]=this.options[e]);return t}cleanTipClass(){const t=this.getTipElement(),e=t.getAttribute("class").match(E.NJCLS_PREFIX_REGEX);null!==e&&e.length&&e.map(t=>t.trim()).forEach(e=>t.classList.remove(e))}handlePopperPlacementChange(t){const e=t.instance;this.tip=e.popper,this.cleanTipClass(),this.addAttachmentClass(E.getAttachment(t.placement))}fixTransition(){const t=this.getTipElement(),e=this.options.animation;null===t.getAttribute("x-placement")&&(t.classList.remove(E.CLASS_NAME.fade),this.options.animation=!1,this.hide(),this.show(),this.options.animation=e)}static getAttachment(t){return E.ATTACHMENT_MAP[t.toUpperCase()]}static getInstance(t){return l.getData(t,E.DATA_KEY)}static init(){return[]}}E.NAME="".concat(i.KEY_PREFIX,"-tooltip"),E.DATA_KEY="".concat(i.KEY_PREFIX,".tooltip"),E.EVENT_KEY=".".concat(E.DATA_KEY),E.CLASS_NAME={default:"".concat(i.KEY_PREFIX,"-tooltip"),inner:"".concat(i.KEY_PREFIX,"-tooltip__inner"),arrow:"".concat(i.KEY_PREFIX,"-tooltip__arrow"),withoutArrow:"".concat(i.KEY_PREFIX,"-tooltip--without-arrow"),fade:"fade",show:"show"},E.NJCLS_PREFIX_REGEX=new RegExp("(^|\\s)".concat(E.CLASS_NAME.default,"\\S+"),"g"),E.DEFAULT_TYPE={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",arrow:"boolean"},E.ATTACHMENT_MAP={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},E.DEFAULT_OPTIONS={animation:!0,template:'<div class="'.concat(E.CLASS_NAME.default,'" role="tooltip">')+'<div class="'.concat(E.CLASS_NAME.arrow,'"></div>')+'<div class="'.concat(E.CLASS_NAME.inner,'"></div></div>'),trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",arrow:!0},E.HOVER_STATE={show:"show",out:"out"},E.EVENT={hide:"".concat(s.hide).concat(E.EVENT_KEY),hidden:"".concat(s.hidden).concat(E.EVENT_KEY),show:"".concat(s.show).concat(E.EVENT_KEY),shown:"".concat(s.shown).concat(E.EVENT_KEY),inserted:"".concat(s.inserted).concat(E.EVENT_KEY),click:"".concat(s.click).concat(E.EVENT_KEY),focusin:"".concat(s.focusin).concat(E.EVENT_KEY),focusout:"".concat(s.focusout).concat(E.EVENT_KEY),mouseenter:"".concat(s.mouseenter).concat(E.EVENT_KEY),mouseleave:"".concat(s.mouseleave).concat(E.EVENT_KEY)},E.SELECTOR={default:'[data-toggle="tooltip"]',inner:".".concat(E.CLASS_NAME.inner),arrow:".".concat(E.CLASS_NAME.arrow)},E.TRIGGER={hover:"hover",focus:"focus",click:"click",manual:"manual"};class v extends g{constructor(){super(E)}static init(){g.init(v)}}v.TAG_NAME=E.NAME,n.d(e,"default",(function(){return b})),n.d(e,"SliderWC",(function(){return T}));class b extends c{constructor(t,e={}){super(b,t,b.getOptions(t,e)),this.dataId=Number(String(Math.random()).slice(2))+Date.now(),this.input=this.element.querySelector(b.SELECTOR.input),this.element.setAttribute("data-id",this.dataId.toString()),this.refreshProgressValue(),this.setListeners(),this.options.tooltip&&(this.addTooltip(),this.setTooltipListeners()),l.setData(t,b.DATA_KEY,this)}addTooltip(){this.tooltip=d.createHtmlNode(E.DEFAULT_OPTIONS.template),this.tooltip.classList.add("".concat(i.KEY_PREFIX,"-tooltip--top")),this.tooltip.classList.add("show"),this.element.insertBefore(this.tooltip,this.element.querySelector(b.SELECTOR.label)),this.refreshTooltipValue()}setListeners(){u.on(this.element,"input change keyup",()=>{this.refreshProgressValue()})}setTooltipListeners(){u.on(this.element,"input change keyup",()=>{this.refreshTooltipValue()});let t=!1;u.on(document,"resize",()=>{t||(this.refreshTooltipValue(),t=!0,setTimeout(()=>{t=!1},100))})}refreshProgressValue(){const t=document.querySelector("[data-id='".concat(this.dataId,"']"));if(t){const e=parseFloat(this.input.max)||b.PERCENT_CONV,n=parseFloat(this.input.min)||0,o=parseFloat(this.input.value),i=Math.floor(b.PERCENT_CONV*(o-n)/(e-n));t.style.setProperty("--slider-track-position","".concat(i,"% 100%"))}}refreshTooltipValue(){this.tooltip.querySelector(E.SELECTOR.inner).innerHTML=this.input.value,this.replaceTooltip()}replaceTooltip(){const t=""===this.input.min?0:parseFloat(this.input.min),e=""===this.input.max?100:parseFloat(this.input.max),n=(parseFloat(this.input.value)-t)/(e-t);this.tooltip.style.left="".concat(n*(this.input.offsetWidth-b.THUMB_WIDTH)-this.tooltip.offsetWidth/2+b.THUMB_WIDTH/2,"px")}static getOptions(t,e={}){return e=Object.assign(Object.assign(Object.assign({},b.DEFAULT_OPTIONS),d.getDataAttributes(t)),"object"==typeof e&&e?e:{}),m.typeCheckConfig(b.NAME,e,b.DEFAULT_TYPE),e}dispose(){u.off(this.element,"input change keyup"),u.off(this.element,"input change keyup"),u.off(document,"resize"),l.removeData(this.element,b.DATA_KEY),this.element=null}static getInstance(t){return l.getData(t,b.DATA_KEY)}static init(t={}){return super.init(this,t,b.SELECTOR.default)}}b.NAME="".concat(i.KEY_PREFIX,"-slider"),b.DATA_KEY="".concat(i.KEY_PREFIX,".slider"),b.CLASS_NAME="".concat(i.KEY_PREFIX,"-slider"),b.SELECTOR={default:".".concat(b.CLASS_NAME),input:"input",label:"label"},b.THUMB_WIDTH=16,b.DEFAULT_TYPE={tooltip:"boolean"},b.DEFAULT_OPTIONS={tooltip:!1},b.PERCENT_CONV=100,b.PSEUDO_ELEMS=["webkit-slider-runnable","moz-range","ms"];class T extends g{constructor(){super(b)}static init(){g.init(T)}}T.TAG_NAME=b.NAME}]).default})); |
{ | ||
"name": "@engie-group/fluid-design-system", | ||
"version": "4.2.0", | ||
"version": "4.2.1", | ||
"description": "The Fluid Design System is ENGIE’s open-source library to create, build and deliver ENGIE digital services in a more efficient way.", | ||
@@ -66,3 +66,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@engie-group/fluid-design-tokens": "^1.0.0" | ||
"@engie-group/fluid-design-tokens": "^1.0.1" | ||
}, | ||
@@ -120,3 +120,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "8ca6946961c8acdf393a4084b9d8525f66177d1a" | ||
"gitHead": "2eb536cb8b3886df3149ab135eb55c1bd9c9d1fb" | ||
} |
@@ -97,10 +97,10 @@ /** | ||
private refreshProgressValue(): void { | ||
const max = parseFloat(this.input.max) || Slider.PERCENT_CONV; | ||
const min = parseFloat(this.input.min) || 0; | ||
const value = parseFloat(this.input.value); | ||
const perc = Math.floor((Slider.PERCENT_CONV * (value - min)) / (max - min)); | ||
const input: HTMLElement = document.querySelector(`[data-id='${this.dataId}']`); | ||
input.style.setProperty('--slider-track-position', `${perc}% 100%`); | ||
if (input) { | ||
const max = parseFloat(this.input.max) || Slider.PERCENT_CONV; | ||
const min = parseFloat(this.input.min) || 0; | ||
const value = parseFloat(this.input.value); | ||
const perc = Math.floor((Slider.PERCENT_CONV * (value - min)) / (max - min)); | ||
input.style.setProperty('--slider-track-position', `${perc}% 100%`); | ||
} | ||
} | ||
@@ -139,2 +139,5 @@ | ||
dispose(): void { | ||
EventHandler.off(this.element, 'input change keyup'); | ||
EventHandler.off(this.element, 'input change keyup'); | ||
EventHandler.off(document, 'resize'); | ||
Data.removeData(this.element, Slider.DATA_KEY); | ||
@@ -141,0 +144,0 @@ this.element = null; |
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 too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
3803954
15141