irie 0.0.8__py3-none-any.whl → 0.0.10__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. irie/apps/inventory/migrations/0002_alter_asset_bridge_sensors_and_more.py +24 -0
  2. irie/apps/inventory/models.py +2 -2
  3. irie/apps/static/assets/vendor/@popperjs/core/dist/cjs/popper-base.js +1069 -0
  4. irie/apps/static/assets/vendor/@popperjs/core/dist/cjs/popper-base.js.flow +3 -0
  5. irie/apps/static/assets/vendor/@popperjs/core/dist/cjs/popper-lite.js +1378 -0
  6. irie/apps/static/assets/vendor/@popperjs/core/dist/cjs/popper-lite.js.flow +3 -0
  7. irie/apps/static/assets/vendor/@popperjs/core/dist/cjs/popper.js +1927 -0
  8. irie/apps/static/assets/vendor/@popperjs/core/dist/cjs/popper.js.flow +3 -0
  9. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/createPopper.js +258 -0
  10. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/dom-utils/contains.js +23 -0
  11. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/dom-utils/getBoundingClientRect.js +28 -0
  12. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/dom-utils/getClippingRect.js +70 -0
  13. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/dom-utils/getCompositeRect.js +57 -0
  14. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/dom-utils/getComputedStyle.js +4 -0
  15. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/dom-utils/getDocumentElement.js +6 -0
  16. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/dom-utils/getDocumentRect.js +29 -0
  17. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/dom-utils/getHTMLElementScroll.js +6 -0
  18. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/dom-utils/getLayoutRect.js +25 -0
  19. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/dom-utils/getNodeName.js +3 -0
  20. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/dom-utils/getNodeScroll.js +11 -0
  21. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/dom-utils/getOffsetParent.js +64 -0
  22. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/dom-utils/getParentNode.js +19 -0
  23. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/dom-utils/getScrollParent.js +16 -0
  24. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/dom-utils/getViewportRect.js +40 -0
  25. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/dom-utils/getWindow.js +12 -0
  26. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/dom-utils/getWindowScroll.js +10 -0
  27. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/dom-utils/getWindowScrollBarX.js +13 -0
  28. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/dom-utils/instanceOf.js +23 -0
  29. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/dom-utils/isScrollParent.js +10 -0
  30. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/dom-utils/isTableElement.js +4 -0
  31. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/dom-utils/listScrollParents.js +26 -0
  32. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/enums.js +31 -0
  33. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/index.js +8 -0
  34. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/modifiers/applyStyles.js +84 -0
  35. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/modifiers/arrow.js +101 -0
  36. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/modifiers/computeStyles.js +155 -0
  37. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/modifiers/eventListeners.js +49 -0
  38. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/modifiers/flip.js +147 -0
  39. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/modifiers/hide.js +61 -0
  40. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/modifiers/index.js +9 -0
  41. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/modifiers/offset.js +53 -0
  42. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/modifiers/popperOffsets.js +25 -0
  43. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/modifiers/preventOverflow.js +123 -0
  44. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/popper-base.js +3 -0
  45. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/popper-lite.js +11 -0
  46. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/popper.js +20 -0
  47. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/types.js +0 -0
  48. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/utils/computeAutoPlacement.js +47 -0
  49. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/utils/computeOffsets.js +70 -0
  50. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/utils/debounce.js +15 -0
  51. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/utils/detectOverflow.js +64 -0
  52. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/utils/expandToHashMap.js +6 -0
  53. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/utils/format.js +9 -0
  54. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/utils/getAltAxis.js +3 -0
  55. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/utils/getAltLen.js +3 -0
  56. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/utils/getBasePlacement.js +4 -0
  57. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/utils/getFreshSideObject.js +8 -0
  58. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/utils/getMainAxisFromPlacement.js +3 -0
  59. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/utils/getOppositePlacement.js +11 -0
  60. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/utils/getOppositeVariationPlacement.js +9 -0
  61. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/utils/getVariation.js +3 -0
  62. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/utils/math.js +3 -0
  63. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/utils/mergeByName.js +14 -0
  64. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/utils/mergePaddingObject.js +4 -0
  65. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/utils/orderModifiers.js +44 -0
  66. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/utils/rectToClientRect.js +8 -0
  67. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/utils/uniqueBy.js +11 -0
  68. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/utils/validateModifiers.js +76 -0
  69. irie/apps/static/assets/vendor/@popperjs/core/dist/esm/utils/within.js +4 -0
  70. irie/apps/static/assets/vendor/@popperjs/core/dist/umd/popper-base.min.js +6 -0
  71. irie/apps/static/assets/vendor/@popperjs/core/dist/umd/popper-base.min.js.flow +3 -0
  72. irie/apps/static/assets/vendor/@popperjs/core/dist/umd/popper-lite.min.js +6 -0
  73. irie/apps/static/assets/vendor/@popperjs/core/dist/umd/popper-lite.min.js.flow +3 -0
  74. irie/apps/static/assets/vendor/@popperjs/core/dist/umd/popper.min.js +6 -0
  75. irie/apps/static/assets/vendor/@popperjs/core/dist/umd/popper.min.js.flow +3 -0
  76. irie/apps/static/assets/vendor/bootstrap/dist/css/bootstrap-grid.min.css +6 -0
  77. irie/apps/static/assets/vendor/bootstrap/dist/css/bootstrap-grid.rtl.min.css +6 -0
  78. irie/apps/static/assets/vendor/bootstrap/dist/css/bootstrap-reboot.min.css +7 -0
  79. irie/apps/static/assets/vendor/bootstrap/dist/css/bootstrap-reboot.rtl.min.css +7 -0
  80. irie/apps/static/assets/vendor/bootstrap/dist/css/bootstrap-utilities.min.css +6 -0
  81. irie/apps/static/assets/vendor/bootstrap/dist/css/bootstrap-utilities.rtl.min.css +6 -0
  82. irie/apps/static/assets/vendor/bootstrap/dist/css/bootstrap.min.css +6 -0
  83. irie/apps/static/assets/vendor/bootstrap/dist/css/bootstrap.rtl.min.css +6 -0
  84. irie/apps/static/assets/vendor/bootstrap/dist/js/bootstrap.bundle.min.js +6 -0
  85. irie/apps/static/assets/vendor/bootstrap/dist/js/bootstrap.esm.min.js +6 -0
  86. irie/apps/static/assets/vendor/bootstrap/dist/js/bootstrap.min.js +6 -0
  87. irie/apps/static/assets/vendor/chartist-plugin-tooltips/dist/chartist-plugin-tooltip.css +34 -0
  88. irie/apps/static/assets/vendor/chartist-plugin-tooltips/dist/chartist-plugin-tooltip.min.js +7 -0
  89. irie/apps/static/assets/vendor/notyf/notyf.es.js +441 -0
  90. irie/apps/static/assets/vendor/notyf/notyf.min.css +1 -0
  91. irie/apps/static/assets/vendor/notyf/notyf.min.js +1 -0
  92. irie/apps/static/assets/vendor/notyf/notyf.umd.js +449 -0
  93. irie/apps/static/assets/vendor/nouislider/distribute/nouislider.min.css +1 -0
  94. irie/apps/static/assets/vendor/nouislider/distribute/nouislider.min.js +1 -0
  95. irie/apps/static/assets/vendor/nouislider/distribute/nouislider.min.mjs +1 -0
  96. irie/apps/static/assets/vendor/nouislider/distribute/nouislider.mjs +2238 -0
  97. irie/apps/static/assets/vendor/onscreen/dist/index.js +21 -0
  98. irie/apps/static/assets/vendor/onscreen/dist/on-screen.es6.js +404 -0
  99. irie/apps/static/assets/vendor/onscreen/dist/on-screen.umd.min.js +1 -0
  100. irie/apps/static/assets/vendor/simplebar/dist/simplebar-core.esm.js +889 -0
  101. irie/apps/static/assets/vendor/simplebar/dist/simplebar.esm.js +994 -0
  102. irie/apps/static/assets/vendor/simplebar/dist/simplebar.min.css +1 -0
  103. irie/apps/static/assets/vendor/simplebar/dist/simplebar.min.js +10 -0
  104. irie/apps/static/assets/vendor/simplebar/dist/simplebar.umd.js +127 -0
  105. irie/apps/static/assets/vendor/smooth-scroll/dist/smooth-scroll.min.js +2 -0
  106. irie/apps/static/assets/vendor/smooth-scroll/dist/smooth-scroll.polyfills.min.js +2 -0
  107. irie/apps/static/assets/vendor/sweetalert2/dist/sweetalert2.all.min.js +2 -0
  108. irie/apps/static/assets/vendor/sweetalert2/dist/sweetalert2.min.css +1 -0
  109. irie/apps/static/assets/vendor/sweetalert2/dist/sweetalert2.min.js +1 -0
  110. irie/apps/static/assets/vendor/waypoints/lib/jquery.waypoints.min.js +7 -0
  111. irie/apps/static/assets/vendor/waypoints/lib/noframework.waypoints.min.js +7 -0
  112. irie/apps/static/assets/vendor/waypoints/lib/shortcuts/infinite.min.js +7 -0
  113. irie/apps/static/assets/vendor/waypoints/lib/shortcuts/inview.min.js +7 -0
  114. irie/apps/static/assets/vendor/waypoints/lib/shortcuts/sticky.min.js +7 -0
  115. irie/apps/static/assets/vendor/waypoints/lib/waypoints.debug.js +46 -0
  116. irie/apps/static/assets/vendor/waypoints/lib/zepto.waypoints.min.js +7 -0
  117. irie/apps/static/assets/vendor/waypoints/licenses.txt +23 -0
  118. irie/apps/static/assets/vendor/waypoints/testem.json +24 -0
  119. irie/core/settings.py +4 -2
  120. irie/init/hayward.zip +0 -0
  121. {irie-0.0.8.dist-info → irie-0.0.10.dist-info}/METADATA +1 -1
  122. {irie-0.0.8.dist-info → irie-0.0.10.dist-info}/RECORD +125 -7
  123. {irie-0.0.8.dist-info → irie-0.0.10.dist-info}/WHEEL +0 -0
  124. {irie-0.0.8.dist-info → irie-0.0.10.dist-info}/entry_points.txt +0 -0
  125. {irie-0.0.8.dist-info → irie-0.0.10.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,449 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
3
+ typeof define === 'function' && define.amd ? define(factory) :
4
+ (global = global || self, global.Notyf = factory());
5
+ }(this, (function () { 'use strict';
6
+
7
+ /*! *****************************************************************************
8
+ Copyright (c) Microsoft Corporation.
9
+
10
+ Permission to use, copy, modify, and/or distribute this software for any
11
+ purpose with or without fee is hereby granted.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
14
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
15
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
16
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
17
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
18
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19
+ PERFORMANCE OF THIS SOFTWARE.
20
+ ***************************************************************************** */
21
+
22
+ var __assign = function() {
23
+ __assign = Object.assign || function __assign(t) {
24
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
25
+ s = arguments[i];
26
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
27
+ }
28
+ return t;
29
+ };
30
+ return __assign.apply(this, arguments);
31
+ };
32
+
33
+ var NotyfNotification = /** @class */ (function () {
34
+ function NotyfNotification(options) {
35
+ this.options = options;
36
+ this.listeners = {};
37
+ }
38
+ NotyfNotification.prototype.on = function (eventType, cb) {
39
+ var callbacks = this.listeners[eventType] || [];
40
+ this.listeners[eventType] = callbacks.concat([cb]);
41
+ };
42
+ NotyfNotification.prototype.triggerEvent = function (eventType, event) {
43
+ var _this = this;
44
+ var callbacks = this.listeners[eventType] || [];
45
+ callbacks.forEach(function (cb) { return cb({ target: _this, event: event }); });
46
+ };
47
+ return NotyfNotification;
48
+ }());
49
+ var NotyfArrayEvent;
50
+ (function (NotyfArrayEvent) {
51
+ NotyfArrayEvent[NotyfArrayEvent["Add"] = 0] = "Add";
52
+ NotyfArrayEvent[NotyfArrayEvent["Remove"] = 1] = "Remove";
53
+ })(NotyfArrayEvent || (NotyfArrayEvent = {}));
54
+ var NotyfArray = /** @class */ (function () {
55
+ function NotyfArray() {
56
+ this.notifications = [];
57
+ }
58
+ NotyfArray.prototype.push = function (elem) {
59
+ this.notifications.push(elem);
60
+ this.updateFn(elem, NotyfArrayEvent.Add, this.notifications);
61
+ };
62
+ NotyfArray.prototype.splice = function (index, num) {
63
+ var elem = this.notifications.splice(index, num)[0];
64
+ this.updateFn(elem, NotyfArrayEvent.Remove, this.notifications);
65
+ return elem;
66
+ };
67
+ NotyfArray.prototype.indexOf = function (elem) {
68
+ return this.notifications.indexOf(elem);
69
+ };
70
+ NotyfArray.prototype.onUpdate = function (fn) {
71
+ this.updateFn = fn;
72
+ };
73
+ return NotyfArray;
74
+ }());
75
+
76
+ var NotyfEvent;
77
+ (function (NotyfEvent) {
78
+ NotyfEvent["Dismiss"] = "dismiss";
79
+ NotyfEvent["Click"] = "click";
80
+ })(NotyfEvent || (NotyfEvent = {}));
81
+ var DEFAULT_OPTIONS = {
82
+ types: [
83
+ {
84
+ type: 'success',
85
+ className: 'notyf__toast--success',
86
+ backgroundColor: '#3dc763',
87
+ icon: {
88
+ className: 'notyf__icon--success',
89
+ tagName: 'i',
90
+ },
91
+ },
92
+ {
93
+ type: 'error',
94
+ className: 'notyf__toast--error',
95
+ backgroundColor: '#ed3d3d',
96
+ icon: {
97
+ className: 'notyf__icon--error',
98
+ tagName: 'i',
99
+ },
100
+ },
101
+ ],
102
+ duration: 2000,
103
+ ripple: true,
104
+ position: {
105
+ x: 'right',
106
+ y: 'bottom',
107
+ },
108
+ dismissible: false,
109
+ };
110
+
111
+ var NotyfView = /** @class */ (function () {
112
+ function NotyfView() {
113
+ this.notifications = [];
114
+ this.events = {};
115
+ this.X_POSITION_FLEX_MAP = {
116
+ left: 'flex-start',
117
+ center: 'center',
118
+ right: 'flex-end',
119
+ };
120
+ this.Y_POSITION_FLEX_MAP = {
121
+ top: 'flex-start',
122
+ center: 'center',
123
+ bottom: 'flex-end',
124
+ };
125
+ // Creates the main notifications container
126
+ var docFrag = document.createDocumentFragment();
127
+ var notyfContainer = this._createHTMLElement({ tagName: 'div', className: 'notyf' });
128
+ docFrag.appendChild(notyfContainer);
129
+ document.body.appendChild(docFrag);
130
+ this.container = notyfContainer;
131
+ // Identifies the main animation end event
132
+ this.animationEndEventName = this._getAnimationEndEventName();
133
+ this._createA11yContainer();
134
+ }
135
+ NotyfView.prototype.on = function (event, cb) {
136
+ var _a;
137
+ this.events = __assign(__assign({}, this.events), (_a = {}, _a[event] = cb, _a));
138
+ };
139
+ NotyfView.prototype.update = function (notification, type) {
140
+ if (type === NotyfArrayEvent.Add) {
141
+ this.addNotification(notification);
142
+ }
143
+ else if (type === NotyfArrayEvent.Remove) {
144
+ this.removeNotification(notification);
145
+ }
146
+ };
147
+ NotyfView.prototype.removeNotification = function (notification) {
148
+ var _this = this;
149
+ var renderedNotification = this._popRenderedNotification(notification);
150
+ var node;
151
+ if (!renderedNotification) {
152
+ return;
153
+ }
154
+ node = renderedNotification.node;
155
+ node.classList.add('notyf__toast--disappear');
156
+ var handleEvent;
157
+ node.addEventListener(this.animationEndEventName, (handleEvent = function (event) {
158
+ if (event.target === node) {
159
+ node.removeEventListener(_this.animationEndEventName, handleEvent);
160
+ _this.container.removeChild(node);
161
+ }
162
+ }));
163
+ };
164
+ NotyfView.prototype.addNotification = function (notification) {
165
+ var node = this._renderNotification(notification);
166
+ this.notifications.push({ notification: notification, node: node });
167
+ // For a11y purposes, we still want to announce that there's a notification in the screen
168
+ // even if it comes with no message.
169
+ this._announce(notification.options.message || 'Notification');
170
+ };
171
+ NotyfView.prototype._renderNotification = function (notification) {
172
+ var _a;
173
+ var card = this._buildNotificationCard(notification);
174
+ var className = notification.options.className;
175
+ if (className) {
176
+ (_a = card.classList).add.apply(_a, className.split(' '));
177
+ }
178
+ this.container.appendChild(card);
179
+ return card;
180
+ };
181
+ NotyfView.prototype._popRenderedNotification = function (notification) {
182
+ var idx = -1;
183
+ for (var i = 0; i < this.notifications.length && idx < 0; i++) {
184
+ if (this.notifications[i].notification === notification) {
185
+ idx = i;
186
+ }
187
+ }
188
+ if (idx !== -1) {
189
+ return this.notifications.splice(idx, 1)[0];
190
+ }
191
+ return;
192
+ };
193
+ NotyfView.prototype.getXPosition = function (options) {
194
+ var _a;
195
+ return ((_a = options === null || options === void 0 ? void 0 : options.position) === null || _a === void 0 ? void 0 : _a.x) || 'right';
196
+ };
197
+ NotyfView.prototype.getYPosition = function (options) {
198
+ var _a;
199
+ return ((_a = options === null || options === void 0 ? void 0 : options.position) === null || _a === void 0 ? void 0 : _a.y) || 'bottom';
200
+ };
201
+ NotyfView.prototype.adjustContainerAlignment = function (options) {
202
+ var align = this.X_POSITION_FLEX_MAP[this.getXPosition(options)];
203
+ var justify = this.Y_POSITION_FLEX_MAP[this.getYPosition(options)];
204
+ var style = this.container.style;
205
+ style.setProperty('justify-content', justify);
206
+ style.setProperty('align-items', align);
207
+ };
208
+ NotyfView.prototype._buildNotificationCard = function (notification) {
209
+ var _this = this;
210
+ var options = notification.options;
211
+ var iconOpts = options.icon;
212
+ // Adjust container according to position (e.g. top-left, bottom-center, etc)
213
+ this.adjustContainerAlignment(options);
214
+ // Create elements
215
+ var notificationElem = this._createHTMLElement({ tagName: 'div', className: 'notyf__toast' });
216
+ var ripple = this._createHTMLElement({ tagName: 'div', className: 'notyf__ripple' });
217
+ var wrapper = this._createHTMLElement({ tagName: 'div', className: 'notyf__wrapper' });
218
+ var message = this._createHTMLElement({ tagName: 'div', className: 'notyf__message' });
219
+ message.innerHTML = options.message || '';
220
+ var mainColor = options.background || options.backgroundColor;
221
+ // Build the icon and append it to the card
222
+ if (iconOpts) {
223
+ var iconContainer = this._createHTMLElement({ tagName: 'div', className: 'notyf__icon' });
224
+ if (typeof iconOpts === 'string' || iconOpts instanceof String)
225
+ iconContainer.innerHTML = new String(iconOpts).valueOf();
226
+ if (typeof iconOpts === 'object') {
227
+ var _a = iconOpts.tagName, tagName = _a === void 0 ? 'i' : _a, className_1 = iconOpts.className, text = iconOpts.text, _b = iconOpts.color, color = _b === void 0 ? mainColor : _b;
228
+ var iconElement = this._createHTMLElement({ tagName: tagName, className: className_1, text: text });
229
+ if (color)
230
+ iconElement.style.color = color;
231
+ iconContainer.appendChild(iconElement);
232
+ }
233
+ wrapper.appendChild(iconContainer);
234
+ }
235
+ wrapper.appendChild(message);
236
+ notificationElem.appendChild(wrapper);
237
+ // Add ripple if applicable, else just paint the full toast
238
+ if (mainColor) {
239
+ if (options.ripple) {
240
+ ripple.style.background = mainColor;
241
+ notificationElem.appendChild(ripple);
242
+ }
243
+ else {
244
+ notificationElem.style.background = mainColor;
245
+ }
246
+ }
247
+ // Add dismiss button
248
+ if (options.dismissible) {
249
+ var dismissWrapper = this._createHTMLElement({ tagName: 'div', className: 'notyf__dismiss' });
250
+ var dismissButton = this._createHTMLElement({
251
+ tagName: 'button',
252
+ className: 'notyf__dismiss-btn',
253
+ });
254
+ dismissWrapper.appendChild(dismissButton);
255
+ wrapper.appendChild(dismissWrapper);
256
+ notificationElem.classList.add("notyf__toast--dismissible");
257
+ dismissButton.addEventListener('click', function (event) {
258
+ var _a, _b;
259
+ (_b = (_a = _this.events)[NotyfEvent.Dismiss]) === null || _b === void 0 ? void 0 : _b.call(_a, { target: notification, event: event });
260
+ event.stopPropagation();
261
+ });
262
+ }
263
+ notificationElem.addEventListener('click', function (event) { var _a, _b; return (_b = (_a = _this.events)[NotyfEvent.Click]) === null || _b === void 0 ? void 0 : _b.call(_a, { target: notification, event: event }); });
264
+ // Adjust margins depending on whether its an upper or lower notification
265
+ var className = this.getYPosition(options) === 'top' ? 'upper' : 'lower';
266
+ notificationElem.classList.add("notyf__toast--" + className);
267
+ return notificationElem;
268
+ };
269
+ NotyfView.prototype._createHTMLElement = function (_a) {
270
+ var tagName = _a.tagName, className = _a.className, text = _a.text;
271
+ var elem = document.createElement(tagName);
272
+ if (className) {
273
+ elem.className = className;
274
+ }
275
+ elem.textContent = text || null;
276
+ return elem;
277
+ };
278
+ /**
279
+ * Creates an invisible container which will announce the notyfs to
280
+ * screen readers
281
+ */
282
+ NotyfView.prototype._createA11yContainer = function () {
283
+ var a11yContainer = this._createHTMLElement({ tagName: 'div', className: 'notyf-announcer' });
284
+ a11yContainer.setAttribute('aria-atomic', 'true');
285
+ a11yContainer.setAttribute('aria-live', 'polite');
286
+ // Set the a11y container to be visible hidden. Can't use display: none as
287
+ // screen readers won't read it.
288
+ a11yContainer.style.border = '0';
289
+ a11yContainer.style.clip = 'rect(0 0 0 0)';
290
+ a11yContainer.style.height = '1px';
291
+ a11yContainer.style.margin = '-1px';
292
+ a11yContainer.style.overflow = 'hidden';
293
+ a11yContainer.style.padding = '0';
294
+ a11yContainer.style.position = 'absolute';
295
+ a11yContainer.style.width = '1px';
296
+ a11yContainer.style.outline = '0';
297
+ document.body.appendChild(a11yContainer);
298
+ this.a11yContainer = a11yContainer;
299
+ };
300
+ /**
301
+ * Announces a message to screenreaders.
302
+ */
303
+ NotyfView.prototype._announce = function (message) {
304
+ var _this = this;
305
+ this.a11yContainer.textContent = '';
306
+ // This 100ms timeout is necessary for some browser + screen-reader combinations:
307
+ // - Both JAWS and NVDA over IE11 will not announce anything without a non-zero timeout.
308
+ // - With Chrome and IE11 with NVDA or JAWS, a repeated (identical) message won't be read a
309
+ // second time without clearing and then using a non-zero delay.
310
+ // (using JAWS 17 at time of this writing).
311
+ // https://github.com/angular/material2/blob/master/src/cdk/a11y/live-announcer/live-announcer.ts
312
+ setTimeout(function () {
313
+ _this.a11yContainer.textContent = message;
314
+ }, 100);
315
+ };
316
+ /**
317
+ * Determine which animationend event is supported
318
+ */
319
+ NotyfView.prototype._getAnimationEndEventName = function () {
320
+ var el = document.createElement('_fake');
321
+ var transitions = {
322
+ MozTransition: 'animationend',
323
+ OTransition: 'oAnimationEnd',
324
+ WebkitTransition: 'webkitAnimationEnd',
325
+ transition: 'animationend',
326
+ };
327
+ var t;
328
+ for (t in transitions) {
329
+ if (el.style[t] !== undefined) {
330
+ return transitions[t];
331
+ }
332
+ }
333
+ // No supported animation end event. Using "animationend" as a fallback
334
+ return 'animationend';
335
+ };
336
+ return NotyfView;
337
+ }());
338
+
339
+ /**
340
+ * Main controller class. Defines the main Notyf API.
341
+ */
342
+ var Notyf = /** @class */ (function () {
343
+ function Notyf(opts) {
344
+ var _this = this;
345
+ this.dismiss = this._removeNotification;
346
+ this.notifications = new NotyfArray();
347
+ this.view = new NotyfView();
348
+ var types = this.registerTypes(opts);
349
+ this.options = __assign(__assign({}, DEFAULT_OPTIONS), opts);
350
+ this.options.types = types;
351
+ this.notifications.onUpdate(function (elem, type) { return _this.view.update(elem, type); });
352
+ this.view.on(NotyfEvent.Dismiss, function (_a) {
353
+ var target = _a.target, event = _a.event;
354
+ _this._removeNotification(target);
355
+ // tslint:disable-next-line: no-string-literal
356
+ target['triggerEvent'](NotyfEvent.Dismiss, event);
357
+ });
358
+ // tslint:disable-next-line: no-string-literal
359
+ this.view.on(NotyfEvent.Click, function (_a) {
360
+ var target = _a.target, event = _a.event;
361
+ return target['triggerEvent'](NotyfEvent.Click, event);
362
+ });
363
+ }
364
+ Notyf.prototype.error = function (payload) {
365
+ var options = this.normalizeOptions('error', payload);
366
+ return this.open(options);
367
+ };
368
+ Notyf.prototype.success = function (payload) {
369
+ var options = this.normalizeOptions('success', payload);
370
+ return this.open(options);
371
+ };
372
+ Notyf.prototype.open = function (options) {
373
+ var defaultOpts = this.options.types.find(function (_a) {
374
+ var type = _a.type;
375
+ return type === options.type;
376
+ }) || {};
377
+ var config = __assign(__assign({}, defaultOpts), options);
378
+ this.assignProps(['ripple', 'position', 'dismissible'], config);
379
+ var notification = new NotyfNotification(config);
380
+ this._pushNotification(notification);
381
+ return notification;
382
+ };
383
+ Notyf.prototype.dismissAll = function () {
384
+ while (this.notifications.splice(0, 1))
385
+ ;
386
+ };
387
+ /**
388
+ * Assigns properties to a config object based on two rules:
389
+ * 1. If the config object already sets that prop, leave it as so
390
+ * 2. Otherwise, use the default prop from the global options
391
+ *
392
+ * It's intended to build the final config object to open a notification. e.g. if
393
+ * 'dismissible' is not set, then use the value from the global config.
394
+ *
395
+ * @param props - properties to be assigned to the config object
396
+ * @param config - object whose properties need to be set
397
+ */
398
+ Notyf.prototype.assignProps = function (props, config) {
399
+ var _this = this;
400
+ props.forEach(function (prop) {
401
+ // intentional double equality to check for both null and undefined
402
+ config[prop] = config[prop] == null ? _this.options[prop] : config[prop];
403
+ });
404
+ };
405
+ Notyf.prototype._pushNotification = function (notification) {
406
+ var _this = this;
407
+ this.notifications.push(notification);
408
+ var duration = notification.options.duration !== undefined ? notification.options.duration : this.options.duration;
409
+ if (duration) {
410
+ setTimeout(function () { return _this._removeNotification(notification); }, duration);
411
+ }
412
+ };
413
+ Notyf.prototype._removeNotification = function (notification) {
414
+ var index = this.notifications.indexOf(notification);
415
+ if (index !== -1) {
416
+ this.notifications.splice(index, 1);
417
+ }
418
+ };
419
+ Notyf.prototype.normalizeOptions = function (type, payload) {
420
+ var options = { type: type };
421
+ if (typeof payload === 'string') {
422
+ options.message = payload;
423
+ }
424
+ else if (typeof payload === 'object') {
425
+ options = __assign(__assign({}, options), payload);
426
+ }
427
+ return options;
428
+ };
429
+ Notyf.prototype.registerTypes = function (opts) {
430
+ var incomingTypes = ((opts && opts.types) || []).slice();
431
+ var finalDefaultTypes = DEFAULT_OPTIONS.types.map(function (defaultType) {
432
+ // find if there's a default type within the user input's types, if so, it means the user
433
+ // wants to change some of the default settings
434
+ var userTypeIdx = -1;
435
+ incomingTypes.forEach(function (t, idx) {
436
+ if (t.type === defaultType.type)
437
+ userTypeIdx = idx;
438
+ });
439
+ var userType = userTypeIdx !== -1 ? incomingTypes.splice(userTypeIdx, 1)[0] : {};
440
+ return __assign(__assign({}, defaultType), userType);
441
+ });
442
+ return finalDefaultTypes.concat(incomingTypes);
443
+ };
444
+ return Notyf;
445
+ }());
446
+
447
+ return Notyf;
448
+
449
+ })));
@@ -0,0 +1 @@
1
+ .noUi-target,.noUi-target *{-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;-ms-touch-action:none;touch-action:none;-ms-user-select:none;-moz-user-select:none;user-select:none;-moz-box-sizing:border-box;box-sizing:border-box}.noUi-target{position:relative}.noUi-base,.noUi-connects{width:100%;height:100%;position:relative;z-index:1}.noUi-connects{overflow:hidden;z-index:0}.noUi-connect,.noUi-origin{will-change:transform;position:absolute;z-index:1;top:0;right:0;-ms-transform-origin:0 0;-webkit-transform-origin:0 0;-webkit-transform-style:preserve-3d;transform-origin:0 0;transform-style:flat}.noUi-connect{height:100%;width:100%}.noUi-origin{height:10%;width:10%}.noUi-txt-dir-rtl.noUi-horizontal .noUi-origin{left:0;right:auto}.noUi-vertical .noUi-origin{width:0}.noUi-horizontal .noUi-origin{height:0}.noUi-handle{-webkit-backface-visibility:hidden;backface-visibility:hidden;position:absolute}.noUi-touch-area{height:100%;width:100%}.noUi-state-tap .noUi-connect,.noUi-state-tap .noUi-origin{-webkit-transition:transform .3s;transition:transform .3s}.noUi-state-drag *{cursor:inherit!important}.noUi-horizontal{height:18px}.noUi-horizontal .noUi-handle{width:34px;height:28px;right:-17px;top:-6px}.noUi-vertical{width:18px}.noUi-vertical .noUi-handle{width:28px;height:34px;right:-6px;top:-17px}.noUi-txt-dir-rtl.noUi-horizontal .noUi-handle{left:-17px;right:auto}.noUi-target{background:#FAFAFA;border-radius:4px;border:1px solid #D3D3D3;box-shadow:inset 0 1px 1px #F0F0F0,0 3px 6px -5px #BBB}.noUi-connects{border-radius:3px}.noUi-connect{background:#3FB8AF}.noUi-draggable{cursor:ew-resize}.noUi-vertical .noUi-draggable{cursor:ns-resize}.noUi-handle{border:1px solid #D9D9D9;border-radius:3px;background:#FFF;cursor:default;box-shadow:inset 0 0 1px #FFF,inset 0 1px 7px #EBEBEB,0 3px 6px -3px #BBB}.noUi-active{box-shadow:inset 0 0 1px #FFF,inset 0 1px 7px #DDD,0 3px 6px -3px #BBB}.noUi-handle:after,.noUi-handle:before{content:"";display:block;position:absolute;height:14px;width:1px;background:#E8E7E6;left:14px;top:6px}.noUi-handle:after{left:17px}.noUi-vertical .noUi-handle:after,.noUi-vertical .noUi-handle:before{width:14px;height:1px;left:6px;top:14px}.noUi-vertical .noUi-handle:after{top:17px}[disabled] .noUi-connect{background:#B8B8B8}[disabled] .noUi-handle,[disabled].noUi-handle,[disabled].noUi-target{cursor:not-allowed}.noUi-pips,.noUi-pips *{-moz-box-sizing:border-box;box-sizing:border-box}.noUi-pips{position:absolute;color:#999}.noUi-value{position:absolute;white-space:nowrap;text-align:center}.noUi-value-sub{color:#ccc;font-size:10px}.noUi-marker{position:absolute;background:#CCC}.noUi-marker-sub{background:#AAA}.noUi-marker-large{background:#AAA}.noUi-pips-horizontal{padding:10px 0;height:80px;top:100%;left:0;width:100%}.noUi-value-horizontal{-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}.noUi-rtl .noUi-value-horizontal{-webkit-transform:translate(50%,50%);transform:translate(50%,50%)}.noUi-marker-horizontal.noUi-marker{margin-left:-1px;width:2px;height:5px}.noUi-marker-horizontal.noUi-marker-sub{height:10px}.noUi-marker-horizontal.noUi-marker-large{height:15px}.noUi-pips-vertical{padding:0 10px;height:100%;top:0;left:100%}.noUi-value-vertical{-webkit-transform:translate(0,-50%);transform:translate(0,-50%);padding-left:25px}.noUi-rtl .noUi-value-vertical{-webkit-transform:translate(0,50%);transform:translate(0,50%)}.noUi-marker-vertical.noUi-marker{width:5px;height:2px;margin-top:-1px}.noUi-marker-vertical.noUi-marker-sub{width:10px}.noUi-marker-vertical.noUi-marker-large{width:15px}.noUi-tooltip{display:block;position:absolute;border:1px solid #D9D9D9;border-radius:3px;background:#fff;color:#000;padding:5px;text-align:center;white-space:nowrap}.noUi-horizontal .noUi-tooltip{-webkit-transform:translate(-50%,0);transform:translate(-50%,0);left:50%;bottom:120%}.noUi-vertical .noUi-tooltip{-webkit-transform:translate(0,-50%);transform:translate(0,-50%);top:50%;right:120%}.noUi-horizontal .noUi-origin>.noUi-tooltip{-webkit-transform:translate(50%,0);transform:translate(50%,0);left:auto;bottom:10px}.noUi-vertical .noUi-origin>.noUi-tooltip{-webkit-transform:translate(0,-18px);transform:translate(0,-18px);top:auto;right:28px}
@@ -0,0 +1 @@
1
+ !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).noUiSlider={})}(this,function(st){"use strict";function n(t){return"object"==typeof t&&"function"==typeof t.to}function at(t){t.parentElement.removeChild(t)}function lt(t){return null!=t}function ut(t){t.preventDefault()}function i(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}function ct(t,e,r){0<r&&(dt(t,e),setTimeout(function(){ht(t,e)},r))}function pt(t){return Math.max(Math.min(t,100),0)}function ft(t){return Array.isArray(t)?t:[t]}function e(t){t=(t=String(t)).split(".");return 1<t.length?t[1].length:0}function dt(t,e){t.classList&&!/\s/.test(e)?t.classList.add(e):t.className+=" "+e}function ht(t,e){t.classList&&!/\s/.test(e)?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")}function mt(t){var e=void 0!==window.pageXOffset,r="CSS1Compat"===(t.compatMode||"");return{x:e?window.pageXOffset:(r?t.documentElement:t.body).scrollLeft,y:e?window.pageYOffset:(r?t.documentElement:t.body).scrollTop}}function s(t,e){return 100/(e-t)}function a(t,e,r){return 100*e/(t[r+1]-t[r])}function l(t,e){for(var r=1;t>=e[r];)r+=1;return r}function r(t,e,r){if(r>=t.slice(-1)[0])return 100;var n=l(r,t),i=t[n-1],o=t[n],t=e[n-1],n=e[n];return t+(r=r,a(o=[i,o],o[0]<0?r+Math.abs(o[0]):r-o[0],0)/s(t,n))}function o(t,e,r,n){if(100===n)return n;var i=l(n,t),o=t[i-1],s=t[i];return r?(s-o)/2<n-o?s:o:e[i-1]?t[i-1]+(t=n-t[i-1],i=e[i-1],Math.round(t/i)*i):n}st.PipsMode=void 0,(H=st.PipsMode||(st.PipsMode={})).Range="range",H.Steps="steps",H.Positions="positions",H.Count="count",H.Values="values",st.PipsType=void 0,(H=st.PipsType||(st.PipsType={}))[H.None=-1]="None",H[H.NoValue=0]="NoValue",H[H.LargeValue=1]="LargeValue",H[H.SmallValue=2]="SmallValue";var u=(t.prototype.getDistance=function(t){for(var e=[],r=0;r<this.xNumSteps.length-1;r++){var n=this.xNumSteps[r];if(n&&t/n%1!=0)throw new Error("noUiSlider: 'limit', 'margin' and 'padding' of "+this.xPct[r]+"% range must be divisible by step.");e[r]=a(this.xVal,t,r)}return e},t.prototype.getAbsoluteDistance=function(t,e,r){var n=0;if(t<this.xPct[this.xPct.length-1])for(;t>this.xPct[n+1];)n++;else t===this.xPct[this.xPct.length-1]&&(n=this.xPct.length-2);r||t!==this.xPct[n+1]||n++;for(var i,o=1,s=(e=null===e?[]:e)[n],a=0,l=0,u=0,c=r?(t-this.xPct[n])/(this.xPct[n+1]-this.xPct[n]):(this.xPct[n+1]-t)/(this.xPct[n+1]-this.xPct[n]);0<s;)i=this.xPct[n+1+u]-this.xPct[n+u],100<e[n+u]*o+100-100*c?(a=i*c,o=(s-100*c)/e[n+u],c=1):(a=e[n+u]*i/100*o,o=0),r?(l-=a,1<=this.xPct.length+u&&u--):(l+=a,1<=this.xPct.length-u&&u++),s=e[n+u]*o;return t+l},t.prototype.toStepping=function(t){return t=r(this.xVal,this.xPct,t)},t.prototype.fromStepping=function(t){return function(t,e,r){if(100<=r)return t.slice(-1)[0];var n=l(r,e),i=t[n-1],o=t[n],t=e[n-1],n=e[n];return(r-t)*s(t,n)*((o=[i,o])[1]-o[0])/100+o[0]}(this.xVal,this.xPct,t)},t.prototype.getStep=function(t){return t=o(this.xPct,this.xSteps,this.snap,t)},t.prototype.getDefaultStep=function(t,e,r){var n=l(t,this.xPct);return(100===t||e&&t===this.xPct[n-1])&&(n=Math.max(n-1,1)),(this.xVal[n]-this.xVal[n-1])/r},t.prototype.getNearbySteps=function(t){t=l(t,this.xPct);return{stepBefore:{startValue:this.xVal[t-2],step:this.xNumSteps[t-2],highestStep:this.xHighestCompleteStep[t-2]},thisStep:{startValue:this.xVal[t-1],step:this.xNumSteps[t-1],highestStep:this.xHighestCompleteStep[t-1]},stepAfter:{startValue:this.xVal[t],step:this.xNumSteps[t],highestStep:this.xHighestCompleteStep[t]}}},t.prototype.countStepDecimals=function(){var t=this.xNumSteps.map(e);return Math.max.apply(null,t)},t.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},t.prototype.convert=function(t){return this.getStep(this.toStepping(t))},t.prototype.handleEntryPoint=function(t,e){t="min"===t?0:"max"===t?100:parseFloat(t);if(!i(t)||!i(e[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(t),this.xVal.push(e[0]);e=Number(e[1]);t?this.xSteps.push(!isNaN(e)&&e):isNaN(e)||(this.xSteps[0]=e),this.xHighestCompleteStep.push(0)},t.prototype.handleStepPoint=function(t,e){e&&(this.xVal[t]!==this.xVal[t+1]?(this.xSteps[t]=a([this.xVal[t],this.xVal[t+1]],e,0)/s(this.xPct[t],this.xPct[t+1]),e=(this.xVal[t+1]-this.xVal[t])/this.xNumSteps[t],e=Math.ceil(Number(e.toFixed(3))-1),e=this.xVal[t]+this.xNumSteps[t]*e,this.xHighestCompleteStep[t]=e):this.xSteps[t]=this.xHighestCompleteStep[t]=this.xVal[t])},t);function t(e,t,r){var n;this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[r||!1],this.xNumSteps=[!1],this.snap=t;var i=[];for(Object.keys(e).forEach(function(t){i.push([ft(e[t]),t])}),i.sort(function(t,e){return t[0][0]-e[0][0]}),n=0;n<i.length;n++)this.handleEntryPoint(i[n][1],i[n][0]);for(this.xNumSteps=this.xSteps.slice(0),n=0;n<this.xNumSteps.length;n++)this.handleStepPoint(n,this.xNumSteps[n])}var c={to:function(t){return void 0===t?"":t.toFixed(2)},from:Number},p={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},gt={tooltips:".__tooltips",aria:".__aria"};function f(t,e){if(!i(e))throw new Error("noUiSlider: 'step' is not numeric.");t.singleStep=e}function d(t,e){if(!i(e))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");t.keyboardPageMultiplier=e}function h(t,e){if(!i(e))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");t.keyboardMultiplier=e}function m(t,e){if(!i(e))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");t.keyboardDefaultStep=e}function g(t,e){if("object"!=typeof e||Array.isArray(e))throw new Error("noUiSlider: 'range' is not an object.");if(void 0===e.min||void 0===e.max)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");t.spectrum=new u(e,t.snap||!1,t.singleStep)}function v(t,e){if(e=ft(e),!Array.isArray(e)||!e.length)throw new Error("noUiSlider: 'start' option is incorrect.");t.handles=e.length,t.start=e}function b(t,e){if("boolean"!=typeof e)throw new Error("noUiSlider: 'snap' option must be a boolean.");t.snap=e}function S(t,e){if("boolean"!=typeof e)throw new Error("noUiSlider: 'animate' option must be a boolean.");t.animate=e}function x(t,e){if("number"!=typeof e)throw new Error("noUiSlider: 'animationDuration' option must be a number.");t.animationDuration=e}function y(t,e){var r,n=[!1];if("lower"===e?e=[!0,!1]:"upper"===e&&(e=[!1,!0]),!0===e||!1===e){for(r=1;r<t.handles;r++)n.push(e);n.push(!1)}else{if(!Array.isArray(e)||!e.length||e.length!==t.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");n=e}t.connect=n}function w(t,e){switch(e){case"horizontal":t.ort=0;break;case"vertical":t.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function E(t,e){if(!i(e))throw new Error("noUiSlider: 'margin' option must be numeric.");0!==e&&(t.margin=t.spectrum.getDistance(e))}function P(t,e){if(!i(e))throw new Error("noUiSlider: 'limit' option must be numeric.");if(t.limit=t.spectrum.getDistance(e),!t.limit||t.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function C(t,e){var r;if(!i(e)&&!Array.isArray(e))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(e)&&2!==e.length&&!i(e[0])&&!i(e[1]))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(0!==e){for(Array.isArray(e)||(e=[e,e]),t.padding=[t.spectrum.getDistance(e[0]),t.spectrum.getDistance(e[1])],r=0;r<t.spectrum.xNumSteps.length-1;r++)if(t.padding[0][r]<0||t.padding[1][r]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var n=e[0]+e[1],e=t.spectrum.xVal[0];if(1<n/(t.spectrum.xVal[t.spectrum.xVal.length-1]-e))throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function N(t,e){switch(e){case"ltr":t.dir=0;break;case"rtl":t.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function V(t,e){if("string"!=typeof e)throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var r=0<=e.indexOf("tap"),n=0<=e.indexOf("drag"),i=0<=e.indexOf("fixed"),o=0<=e.indexOf("snap"),s=0<=e.indexOf("hover"),a=0<=e.indexOf("unconstrained"),e=0<=e.indexOf("drag-all");if(i){if(2!==t.handles)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");E(t,t.start[1]-t.start[0])}if(a&&(t.margin||t.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");t.events={tap:r||o,drag:n,dragAll:e,fixed:i,snap:o,hover:s,unconstrained:a}}function k(t,e){if(!1!==e)if(!0===e||n(e)){t.tooltips=[];for(var r=0;r<t.handles;r++)t.tooltips.push(e)}else{if((e=ft(e)).length!==t.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");e.forEach(function(t){if("boolean"!=typeof t&&!n(t))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),t.tooltips=e}}function M(t,e){if(e.length!==t.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");t.handleAttributes=e}function A(t,e){if(!n(e))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");t.ariaFormat=e}function U(t,e){if(!n(r=e)||"function"!=typeof r.from)throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");var r;t.format=e}function D(t,e){if("boolean"!=typeof e)throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");t.keyboardSupport=e}function O(t,e){t.documentElement=e}function L(t,e){if("string"!=typeof e&&!1!==e)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");t.cssPrefix=e}function T(e,r){if("object"!=typeof r)throw new Error("noUiSlider: 'cssClasses' must be an object.");"string"==typeof e.cssPrefix?(e.cssClasses={},Object.keys(r).forEach(function(t){e.cssClasses[t]=e.cssPrefix+r[t]})):e.cssClasses=r}function vt(e){var r={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:c,format:c},n={step:{r:!1,t:f},keyboardPageMultiplier:{r:!1,t:d},keyboardMultiplier:{r:!1,t:h},keyboardDefaultStep:{r:!1,t:m},start:{r:!0,t:v},connect:{r:!0,t:y},direction:{r:!0,t:N},snap:{r:!1,t:b},animate:{r:!1,t:S},animationDuration:{r:!1,t:x},range:{r:!0,t:g},orientation:{r:!1,t:w},margin:{r:!1,t:E},limit:{r:!1,t:P},padding:{r:!1,t:C},behaviour:{r:!0,t:V},ariaFormat:{r:!1,t:A},format:{r:!1,t:U},tooltips:{r:!1,t:k},keyboardSupport:{r:!0,t:D},documentElement:{r:!1,t:O},cssPrefix:{r:!0,t:L},cssClasses:{r:!0,t:T},handleAttributes:{r:!1,t:M}},i={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:p,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};e.format&&!e.ariaFormat&&(e.ariaFormat=e.format),Object.keys(n).forEach(function(t){if(lt(e[t])||void 0!==i[t])n[t].t(r,(lt(e[t])?e:i)[t]);else if(n[t].r)throw new Error("noUiSlider: '"+t+"' is required.")}),r.pips=e.pips;var t=document.createElement("div"),o=void 0!==t.style.msTransform,t=void 0!==t.style.transform;r.transformRule=t?"transform":o?"msTransform":"webkitTransform";return r.style=[["left","top"],["right","bottom"]][r.dir][r.ort],r}function j(t,f,o){var i,a,l,n,s,e,u,c=window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"},p=window.CSS&&CSS.supports&&CSS.supports("touch-action","none")&&function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(t){}return t}(),d=t,S=f.spectrum,h=[],m=[],g=[],v=0,b={},x=t.ownerDocument,y=f.documentElement||x.documentElement,w=x.body,E="rtl"===x.dir||1===f.ort?0:100;function P(t,e){var r=x.createElement("div");return e&&dt(r,e),t.appendChild(r),r}function C(t,e){var r,t=P(t,f.cssClasses.origin),n=P(t,f.cssClasses.handle);return P(n,f.cssClasses.touchArea),n.setAttribute("data-handle",String(e)),f.keyboardSupport&&(n.setAttribute("tabindex","0"),n.addEventListener("keydown",function(t){return function(t,e){if(V()||k(e))return!1;var r=["Left","Right"],n=["Down","Up"],i=["PageDown","PageUp"],o=["Home","End"];f.dir&&!f.ort?r.reverse():f.ort&&!f.dir&&(n.reverse(),i.reverse());var s=t.key.replace("Arrow",""),a=s===i[0],l=s===i[1],i=s===n[0]||s===r[0]||a,n=s===n[1]||s===r[1]||l,r=s===o[0],o=s===o[1];if(!(i||n||r||o))return!0;if(t.preventDefault(),n||i){var u=i?0:1,u=it(e)[u];if(null===u)return!1;!1===u&&(u=S.getDefaultStep(m[e],i,f.keyboardDefaultStep)),u*=l||a?f.keyboardPageMultiplier:f.keyboardMultiplier,u=Math.max(u,1e-7),u*=i?-1:1,u=h[e]+u}else u=o?f.spectrum.xVal[f.spectrum.xVal.length-1]:f.spectrum.xVal[0];return Z(e,S.toStepping(u),!0,!0),W("slide",e),W("update",e),W("change",e),W("set",e),!1}(t,e)})),void 0!==f.handleAttributes&&(r=f.handleAttributes[e],Object.keys(r).forEach(function(t){n.setAttribute(t,r[t])})),n.setAttribute("role","slider"),n.setAttribute("aria-orientation",f.ort?"vertical":"horizontal"),0===e?dt(n,f.cssClasses.handleLower):e===f.handles-1&&dt(n,f.cssClasses.handleUpper),t}function N(t,e){return!!e&&P(t,f.cssClasses.connect)}function r(t,e){return!(!f.tooltips||!f.tooltips[e])&&P(t.firstChild,f.cssClasses.tooltip)}function V(){return d.hasAttribute("disabled")}function k(t){return a[t].hasAttribute("disabled")}function M(){s&&(I("update"+gt.tooltips),s.forEach(function(t){t&&at(t)}),s=null)}function A(){M(),s=a.map(r),Y("update"+gt.tooltips,function(t,e,r){s&&f.tooltips&&!1!==s[e]&&(t=t[e],!0!==f.tooltips[e]&&(t=f.tooltips[e].to(r[e])),s[e].innerHTML=t)})}function U(t,e){return t.map(function(t){return S.fromStepping(e?S.getStep(t):t)})}function D(d){var h=function(t){if(t.mode===st.PipsMode.Range||t.mode===st.PipsMode.Steps)return S.xVal;if(t.mode!==st.PipsMode.Count)return t.mode===st.PipsMode.Positions?U(t.values,t.stepped):t.mode===st.PipsMode.Values?t.stepped?t.values.map(function(t){return S.fromStepping(S.getStep(S.toStepping(t)))}):t.values:[];if(t.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var e=t.values-1,r=100/e,n=[];e--;)n[e]=e*r;return n.push(100),U(n,t.stepped)}(d),m={},t=S.xVal[0],e=S.xVal[S.xVal.length-1],g=!1,v=!1,b=0;return(h=h.slice().sort(function(t,e){return t-e}).filter(function(t){return!this[t]&&(this[t]=!0)},{}))[0]!==t&&(h.unshift(t),g=!0),h[h.length-1]!==e&&(h.push(e),v=!0),h.forEach(function(t,e){var r,n,i,o,s,a,l,u,t=t,c=h[e+1],p=d.mode===st.PipsMode.Steps,f=(f=p?S.xNumSteps[e]:f)||c-t;for(void 0===c&&(c=t),f=Math.max(f,1e-7),r=t;r<=c;r=Number((r+f).toFixed(7))){for(a=(o=(i=S.toStepping(r))-b)/(d.density||1),u=o/(l=Math.round(a)),n=1;n<=l;n+=1)m[(s=b+n*u).toFixed(5)]=[S.fromStepping(s),0];a=-1<h.indexOf(r)?st.PipsType.LargeValue:p?st.PipsType.SmallValue:st.PipsType.NoValue,!e&&g&&r!==c&&(a=0),r===c&&v||(m[i.toFixed(5)]=[r,a]),b=i}}),m}function O(i,o,s){var t,a=x.createElement("div"),n=((t={})[st.PipsType.None]="",t[st.PipsType.NoValue]=f.cssClasses.valueNormal,t[st.PipsType.LargeValue]=f.cssClasses.valueLarge,t[st.PipsType.SmallValue]=f.cssClasses.valueSub,t),l=((t={})[st.PipsType.None]="",t[st.PipsType.NoValue]=f.cssClasses.markerNormal,t[st.PipsType.LargeValue]=f.cssClasses.markerLarge,t[st.PipsType.SmallValue]=f.cssClasses.markerSub,t),u=[f.cssClasses.valueHorizontal,f.cssClasses.valueVertical],c=[f.cssClasses.markerHorizontal,f.cssClasses.markerVertical];function p(t,e){var r=e===f.cssClasses.value;return e+" "+(r?u:c)[f.ort]+" "+(r?n:l)[t]}return dt(a,f.cssClasses.pips),dt(a,0===f.ort?f.cssClasses.pipsHorizontal:f.cssClasses.pipsVertical),Object.keys(i).forEach(function(t){var e,r,n;r=i[e=t][0],n=i[t][1],(n=o?o(r,n):n)!==st.PipsType.None&&((t=P(a,!1)).className=p(n,f.cssClasses.marker),t.style[f.style]=e+"%",n>st.PipsType.NoValue&&((t=P(a,!1)).className=p(n,f.cssClasses.value),t.setAttribute("data-value",String(r)),t.style[f.style]=e+"%",t.innerHTML=String(s.to(r))))}),a}function L(){n&&(at(n),n=null)}function T(t){L();var e=D(t),r=t.filter,t=t.format||{to:function(t){return String(Math.round(t))}};return n=d.appendChild(O(e,r,t))}function j(){var t=i.getBoundingClientRect(),e="offset"+["Width","Height"][f.ort];return 0===f.ort?t.width||i[e]:t.height||i[e]}function z(n,i,o,s){function e(t){var e,r=function(e,t,r){var n=0===e.type.indexOf("touch"),i=0===e.type.indexOf("mouse"),o=0===e.type.indexOf("pointer"),s=0,a=0;0===e.type.indexOf("MSPointer")&&(o=!0);if("mousedown"===e.type&&!e.buttons&&!e.touches)return!1;if(n){var l=function(t){t=t.target;return t===r||r.contains(t)||e.composed&&e.composedPath().shift()===r};if("touchstart"===e.type){n=Array.prototype.filter.call(e.touches,l);if(1<n.length)return!1;s=n[0].pageX,a=n[0].pageY}else{l=Array.prototype.find.call(e.changedTouches,l);if(!l)return!1;s=l.pageX,a=l.pageY}}t=t||mt(x),(i||o)&&(s=e.clientX+t.x,a=e.clientY+t.y);return e.pageOffset=t,e.points=[s,a],e.cursor=i||o,e}(t,s.pageOffset,s.target||i);return!!r&&(!(V()&&!s.doNotReject)&&(e=d,t=f.cssClasses.tap,!((e.classList?e.classList.contains(t):new RegExp("\\b"+t+"\\b").test(e.className))&&!s.doNotReject)&&(!(n===c.start&&void 0!==r.buttons&&1<r.buttons)&&((!s.hover||!r.buttons)&&(p||r.preventDefault(),r.calcPoint=r.points[f.ort],void o(r,s))))))}var r=[];return n.split(" ").forEach(function(t){i.addEventListener(t,e,!!p&&{passive:!0}),r.push([t,e])}),r}function H(t){var e,r,n=pt(n=100*(t-(n=i,e=f.ort,r=n.getBoundingClientRect(),n=(t=n.ownerDocument).documentElement,t=mt(t),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(t.x=0),e?r.top+t.y-n.clientTop:r.left+t.x-n.clientLeft))/j());return f.dir?100-n:n}function F(t,e){"mouseout"===t.type&&"HTML"===t.target.nodeName&&null===t.relatedTarget&&_(t,e)}function R(t,e){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===t.buttons&&0!==e.buttonsProperty)return _(t,e);t=(f.dir?-1:1)*(t.calcPoint-e.startCalcPoint);J(0<t,100*t/e.baseSize,e.locations,e.handleNumbers,e.connect)}function _(t,e){e.handle&&(ht(e.handle,f.cssClasses.active),--v),e.listeners.forEach(function(t){y.removeEventListener(t[0],t[1])}),0===v&&(ht(d,f.cssClasses.drag),Q(),t.cursor&&(w.style.cursor="",w.removeEventListener("selectstart",ut))),e.handleNumbers.forEach(function(t){W("change",t),W("set",t),W("end",t)})}function B(t,e){var r,n,i,o;e.handleNumbers.some(k)||(1===e.handleNumbers.length&&(o=a[e.handleNumbers[0]].children[0],v+=1,dt(o,f.cssClasses.active)),t.stopPropagation(),n=z(c.move,y,R,{target:t.target,handle:o,connect:e.connect,listeners:r=[],startCalcPoint:t.calcPoint,baseSize:j(),pageOffset:t.pageOffset,handleNumbers:e.handleNumbers,buttonsProperty:t.buttons,locations:m.slice()}),i=z(c.end,y,_,{target:t.target,handle:o,listeners:r,doNotReject:!0,handleNumbers:e.handleNumbers}),o=z("mouseout",y,F,{target:t.target,handle:o,listeners:r,doNotReject:!0,handleNumbers:e.handleNumbers}),r.push.apply(r,n.concat(i,o)),t.cursor&&(w.style.cursor=getComputedStyle(t.target).cursor,1<a.length&&dt(d,f.cssClasses.drag),w.addEventListener("selectstart",ut,!1)),e.handleNumbers.forEach(function(t){W("start",t)}))}function q(t){t.stopPropagation();var i,o,s,e=H(t.calcPoint),r=(i=e,s=!(o=100),a.forEach(function(t,e){var r,n;k(e)||(r=m[e],((n=Math.abs(r-i))<o||n<=o&&r<i||100===n&&100===o)&&(s=e,o=n))}),s);!1!==r&&(f.events.snap||ct(d,f.cssClasses.tap,f.animationDuration),Z(r,e,!0,!0),Q(),W("slide",r,!0),W("update",r,!0),f.events.snap?B(t,{handleNumbers:[r]}):(W("change",r,!0),W("set",r,!0)))}function X(t){var t=H(t.calcPoint),t=S.getStep(t),e=S.fromStepping(t);Object.keys(b).forEach(function(t){"hover"===t.split(".")[0]&&b[t].forEach(function(t){t.call(ot,e)})})}function Y(t,e){b[t]=b[t]||[],b[t].push(e),"update"===t.split(".")[0]&&a.forEach(function(t,e){W("update",e)})}function I(t){var n=t&&t.split(".")[0],i=n?t.substring(n.length):t;Object.keys(b).forEach(function(t){var e=t.split(".")[0],r=t.substring(e.length);n&&n!==e||i&&i!==r||((e=r)!==gt.aria&&e!==gt.tooltips||i===r)&&delete b[t]})}function W(r,n,i){Object.keys(b).forEach(function(t){var e=t.split(".")[0];r===e&&b[t].forEach(function(t){t.call(ot,h.map(f.format.to),n,h.slice(),i||!1,m.slice(),ot)})})}function $(t,e,r,n,i,o){var s;return 1<a.length&&!f.events.unconstrained&&(n&&0<e&&(s=S.getAbsoluteDistance(t[e-1],f.margin,!1),r=Math.max(r,s)),i&&e<a.length-1&&(s=S.getAbsoluteDistance(t[e+1],f.margin,!0),r=Math.min(r,s))),1<a.length&&f.limit&&(n&&0<e&&(s=S.getAbsoluteDistance(t[e-1],f.limit,!1),r=Math.min(r,s)),i&&e<a.length-1&&(s=S.getAbsoluteDistance(t[e+1],f.limit,!0),r=Math.max(r,s))),f.padding&&(0===e&&(s=S.getAbsoluteDistance(0,f.padding[0],!1),r=Math.max(r,s)),e===a.length-1&&(s=S.getAbsoluteDistance(100,f.padding[1],!0),r=Math.min(r,s))),!((r=pt(r=S.getStep(r)))===t[e]&&!o)&&r}function G(t,e){var r=f.ort;return(r?e:t)+", "+(r?t:e)}function J(t,r,n,e,i){var o=n.slice(),s=e[0],a=[!t,t],l=[t,!t];e=e.slice(),t&&e.reverse(),1<e.length?e.forEach(function(t,e){e=$(o,t,o[t]+r,a[e],l[e],!1);!1===e?r=0:(r=e-o[t],o[t]=e)}):a=l=[!0];var u=!1;e.forEach(function(t,e){u=Z(t,n[t]+r,a[e],l[e])||u}),u&&(e.forEach(function(t){W("update",t),W("slide",t)}),null!=i&&W("drag",s))}function K(t,e){return f.dir?100-t-e:t}function Q(){g.forEach(function(t){var e=50<m[t]?-1:1,e=3+(a.length+e*t);a[t].style.zIndex=String(e)})}function Z(t,e,r,n,i){return!1!==(e=i?e:$(m,t,e,r,n,!1))&&(e=e,m[t=t]=e,h[t]=S.fromStepping(e),e="translate("+G(10*(K(e,0)-E)+"%","0")+")",a[t].style[f.transformRule]=e,tt(t),tt(t+1),!0)}function tt(t){var e,r;l[t]&&(r=100,e="translate("+G(K(e=(e=0)!==t?m[t-1]:e,r=(r=t!==l.length-1?m[t]:r)-e)+"%","0")+")",r="scale("+G(r/100,"1")+")",l[t].style[f.transformRule]=e+" "+r)}function et(t,e){return null===t||!1===t||void 0===t?m[e]:("number"==typeof t&&(t=String(t)),!1===(t=!1!==(t=f.format.from(t))?S.toStepping(t):t)||isNaN(t)?m[e]:t)}function rt(t,e,r){var n=ft(t),t=void 0===m[0];e=void 0===e||e,f.animate&&!t&&ct(d,f.cssClasses.tap,f.animationDuration),g.forEach(function(t){Z(t,et(n[t],t),!0,!1,r)});var i,o=1===g.length?0:1;for(t&&S.hasNoSize()&&(r=!0,m[0]=0,1<g.length&&(i=100/(g.length-1),g.forEach(function(t){m[t]=t*i})));o<g.length;++o)g.forEach(function(t){Z(t,m[t],!0,!0,r)});Q(),g.forEach(function(t){W("update",t),null!==n[t]&&e&&W("set",t)})}function nt(t){if(t=void 0===t?!1:t)return 1===h.length?h[0]:h.slice(0);t=h.map(f.format.to);return 1===t.length?t[0]:t}function it(t){var e=m[t],r=S.getNearbySteps(e),n=h[t],i=r.thisStep.step,t=null;if(f.snap)return[n-r.stepBefore.startValue||null,r.stepAfter.startValue-n||null];!1!==i&&n+i>r.stepAfter.startValue&&(i=r.stepAfter.startValue-n),t=n>r.thisStep.startValue?r.thisStep.step:!1!==r.stepBefore.step&&n-r.stepBefore.highestStep,100===e?i=null:0===e&&(t=null);e=S.countStepDecimals();return null!==i&&!1!==i&&(i=Number(i.toFixed(e))),[t=null!==t&&!1!==t?Number(t.toFixed(e)):t,i]}dt(e=d,f.cssClasses.target),0===f.dir?dt(e,f.cssClasses.ltr):dt(e,f.cssClasses.rtl),0===f.ort?dt(e,f.cssClasses.horizontal):dt(e,f.cssClasses.vertical),dt(e,"rtl"===getComputedStyle(e).direction?f.cssClasses.textDirectionRtl:f.cssClasses.textDirectionLtr),i=P(e,f.cssClasses.base),function(t,e){var r=P(e,f.cssClasses.connects);a=[],(l=[]).push(N(r,t[0]));for(var n=0;n<f.handles;n++)a.push(C(e,n)),g[n]=n,l.push(N(r,t[n+1]))}(f.connect,i),(u=f.events).fixed||a.forEach(function(t,e){z(c.start,t.children[0],B,{handleNumbers:[e]})}),u.tap&&z(c.start,i,q,{}),u.hover&&z(c.move,i,X,{hover:!0}),u.drag&&l.forEach(function(e,t){var r,n,i,o,s;!1!==e&&0!==t&&t!==l.length-1&&(r=a[t-1],n=a[t],i=[e],o=[r,n],s=[t-1,t],dt(e,f.cssClasses.draggable),u.fixed&&(i.push(r.children[0]),i.push(n.children[0])),u.dragAll&&(o=a,s=g),i.forEach(function(t){z(c.start,t,B,{handles:o,handleNumbers:s,connect:e})}))}),rt(f.start),f.pips&&T(f.pips),f.tooltips&&A(),I("update"+gt.aria),Y("update"+gt.aria,function(t,e,o,r,s){g.forEach(function(t){var e=a[t],r=$(m,t,0,!0,!0,!0),n=$(m,t,100,!0,!0,!0),i=s[t],t=String(f.ariaFormat.to(o[t])),r=S.fromStepping(r).toFixed(1),n=S.fromStepping(n).toFixed(1),i=S.fromStepping(i).toFixed(1);e.children[0].setAttribute("aria-valuemin",r),e.children[0].setAttribute("aria-valuemax",n),e.children[0].setAttribute("aria-valuenow",i),e.children[0].setAttribute("aria-valuetext",t)})});var ot={destroy:function(){for(I(gt.aria),I(gt.tooltips),Object.keys(f.cssClasses).forEach(function(t){ht(d,f.cssClasses[t])});d.firstChild;)d.removeChild(d.firstChild);delete d.noUiSlider},steps:function(){return g.map(it)},on:Y,off:I,get:nt,set:rt,setHandle:function(t,e,r,n){if(!(0<=(t=Number(t))&&t<g.length))throw new Error("noUiSlider: invalid handle number, got: "+t);Z(t,et(e,t),!0,!0,n),W("update",t),r&&W("set",t)},reset:function(t){rt(f.start,t)},__moveHandles:function(t,e,r){J(t,e,m,r)},options:o,updateOptions:function(e,t){var r=nt(),n=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips"];n.forEach(function(t){void 0!==e[t]&&(o[t]=e[t])});var i=vt(o);n.forEach(function(t){void 0!==e[t]&&(f[t]=i[t])}),S=i.spectrum,f.margin=i.margin,f.limit=i.limit,f.padding=i.padding,f.pips?T(f.pips):L(),(f.tooltips?A:M)(),m=[],rt(lt(e.start)?e.start:r,t)},target:d,removePips:L,removeTooltips:M,getPositions:function(){return m.slice()},getTooltips:function(){return s},getOrigins:function(){return a},pips:T};return ot}function z(t,e){if(!t||!t.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+t);if(t.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");e=j(t,vt(e),e);return t.noUiSlider=e}var H={__spectrum:u,cssClasses:p,create:z};st.create=z,st.cssClasses=p,st.default=H,Object.defineProperty(st,"__esModule",{value:!0})});
@@ -0,0 +1 @@
1
+ "use strict";var PipsMode,PipsType;function isValidFormatter(t){return isValidPartialFormatter(t)&&"function"==typeof t.from}function isValidPartialFormatter(t){return"object"==typeof t&&"function"==typeof t.to}function removeElement(t){t.parentElement.removeChild(t)}function isSet(t){return null!=t}function preventDefault(t){t.preventDefault()}function unique(t){return t.filter(function(t){return!this[t]&&(this[t]=!0)},{})}function closest(t,e){return Math.round(t/e)*e}function offset(t,e){var r=t.getBoundingClientRect(),n=t.ownerDocument,t=n.documentElement,n=getPageOffset(n);return/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(n.x=0),e?r.top+n.y-t.clientTop:r.left+n.x-t.clientLeft}function isNumeric(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}function addClassFor(t,e,r){0<r&&(addClass(t,e),setTimeout(function(){removeClass(t,e)},r))}function limit(t){return Math.max(Math.min(t,100),0)}function asArray(t){return Array.isArray(t)?t:[t]}function countDecimals(t){t=(t=String(t)).split(".");return 1<t.length?t[1].length:0}function addClass(t,e){t.classList&&!/\s/.test(e)?t.classList.add(e):t.className+=" "+e}function removeClass(t,e){t.classList&&!/\s/.test(e)?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")}function hasClass(t,e){return t.classList?t.classList.contains(e):new RegExp("\\b"+e+"\\b").test(t.className)}function getPageOffset(t){var e=void 0!==window.pageXOffset,r="CSS1Compat"===(t.compatMode||"");return{x:e?window.pageXOffset:(r?t.documentElement:t.body).scrollLeft,y:e?window.pageYOffset:(r?t.documentElement:t.body).scrollTop}}function getActions(){return window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"}}function getSupportsPassive(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(t){}return t}function getSupportsTouchActionNone(){return window.CSS&&CSS.supports&&CSS.supports("touch-action","none")}function subRangeRatio(t,e){return 100/(e-t)}function fromPercentage(t,e,r){return 100*e/(t[r+1]-t[r])}function toPercentage(t,e){return fromPercentage(t,t[0]<0?e+Math.abs(t[0]):e-t[0],0)}function isPercentage(t,e){return e*(t[1]-t[0])/100+t[0]}function getJ(t,e){for(var r=1;t>=e[r];)r+=1;return r}function toStepping(t,e,r){if(r>=t.slice(-1)[0])return 100;var n=getJ(r,t),i=t[n-1],s=t[n],t=e[n-1],n=e[n];return t+toPercentage([i,s],r)/subRangeRatio(t,n)}function fromStepping(t,e,r){if(100<=r)return t.slice(-1)[0];var n=getJ(r,e),i=t[n-1],s=t[n],t=e[n-1];return isPercentage([i,s],(r-t)*subRangeRatio(t,e[n]))}function getStep(t,e,r,n){if(100===n)return n;var i=getJ(n,t),s=t[i-1],o=t[i];return r?(o-s)/2<n-s?o:s:e[i-1]?t[i-1]+closest(n-t[i-1],e[i-1]):n}!function(t){t.Range="range",t.Steps="steps",t.Positions="positions",t.Count="count",t.Values="values"}(PipsMode=PipsMode||{}),function(t){t[t.None=-1]="None",t[t.NoValue=0]="NoValue",t[t.LargeValue=1]="LargeValue",t[t.SmallValue=2]="SmallValue"}(PipsType=PipsType||{});var Spectrum=function(){function t(e,t,r){var n;this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[r||!1],this.xNumSteps=[!1],this.snap=t;var i=[];for(Object.keys(e).forEach(function(t){i.push([asArray(e[t]),t])}),i.sort(function(t,e){return t[0][0]-e[0][0]}),n=0;n<i.length;n++)this.handleEntryPoint(i[n][1],i[n][0]);for(this.xNumSteps=this.xSteps.slice(0),n=0;n<this.xNumSteps.length;n++)this.handleStepPoint(n,this.xNumSteps[n])}return t.prototype.getDistance=function(t){for(var e=[],r=0;r<this.xNumSteps.length-1;r++){var n=this.xNumSteps[r];if(n&&t/n%1!=0)throw new Error("noUiSlider: 'limit', 'margin' and 'padding' of "+this.xPct[r]+"% range must be divisible by step.");e[r]=fromPercentage(this.xVal,t,r)}return e},t.prototype.getAbsoluteDistance=function(t,e,r){var n=0;if(t<this.xPct[this.xPct.length-1])for(;t>this.xPct[n+1];)n++;else t===this.xPct[this.xPct.length-1]&&(n=this.xPct.length-2);r||t!==this.xPct[n+1]||n++;for(var i,s=1,o=(e=null===e?[]:e)[n],a=0,l=0,u=0,c=r?(t-this.xPct[n])/(this.xPct[n+1]-this.xPct[n]):(this.xPct[n+1]-t)/(this.xPct[n+1]-this.xPct[n]);0<o;)i=this.xPct[n+1+u]-this.xPct[n+u],100<e[n+u]*s+100-100*c?(a=i*c,s=(o-100*c)/e[n+u],c=1):(a=e[n+u]*i/100*s,s=0),r?(l-=a,1<=this.xPct.length+u&&u--):(l+=a,1<=this.xPct.length-u&&u++),o=e[n+u]*s;return t+l},t.prototype.toStepping=function(t){return t=toStepping(this.xVal,this.xPct,t)},t.prototype.fromStepping=function(t){return fromStepping(this.xVal,this.xPct,t)},t.prototype.getStep=function(t){return t=getStep(this.xPct,this.xSteps,this.snap,t)},t.prototype.getDefaultStep=function(t,e,r){var n=getJ(t,this.xPct);return(100===t||e&&t===this.xPct[n-1])&&(n=Math.max(n-1,1)),(this.xVal[n]-this.xVal[n-1])/r},t.prototype.getNearbySteps=function(t){t=getJ(t,this.xPct);return{stepBefore:{startValue:this.xVal[t-2],step:this.xNumSteps[t-2],highestStep:this.xHighestCompleteStep[t-2]},thisStep:{startValue:this.xVal[t-1],step:this.xNumSteps[t-1],highestStep:this.xHighestCompleteStep[t-1]},stepAfter:{startValue:this.xVal[t],step:this.xNumSteps[t],highestStep:this.xHighestCompleteStep[t]}}},t.prototype.countStepDecimals=function(){var t=this.xNumSteps.map(countDecimals);return Math.max.apply(null,t)},t.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},t.prototype.convert=function(t){return this.getStep(this.toStepping(t))},t.prototype.handleEntryPoint=function(t,e){t="min"===t?0:"max"===t?100:parseFloat(t);if(!isNumeric(t)||!isNumeric(e[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(t),this.xVal.push(e[0]);e=Number(e[1]);t?this.xSteps.push(!isNaN(e)&&e):isNaN(e)||(this.xSteps[0]=e),this.xHighestCompleteStep.push(0)},t.prototype.handleStepPoint=function(t,e){e&&(this.xVal[t]!==this.xVal[t+1]?(this.xSteps[t]=fromPercentage([this.xVal[t],this.xVal[t+1]],e,0)/subRangeRatio(this.xPct[t],this.xPct[t+1]),e=(this.xVal[t+1]-this.xVal[t])/this.xNumSteps[t],e=Math.ceil(Number(e.toFixed(3))-1),e=this.xVal[t]+this.xNumSteps[t]*e,this.xHighestCompleteStep[t]=e):this.xSteps[t]=this.xHighestCompleteStep[t]=this.xVal[t])},t}(),defaultFormatter={to:function(t){return void 0===t?"":t.toFixed(2)},from:Number},cssClasses={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},INTERNAL_EVENT_NS={tooltips:".__tooltips",aria:".__aria"};function testStep(t,e){if(!isNumeric(e))throw new Error("noUiSlider: 'step' is not numeric.");t.singleStep=e}function testKeyboardPageMultiplier(t,e){if(!isNumeric(e))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");t.keyboardPageMultiplier=e}function testKeyboardMultiplier(t,e){if(!isNumeric(e))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");t.keyboardMultiplier=e}function testKeyboardDefaultStep(t,e){if(!isNumeric(e))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");t.keyboardDefaultStep=e}function testRange(t,e){if("object"!=typeof e||Array.isArray(e))throw new Error("noUiSlider: 'range' is not an object.");if(void 0===e.min||void 0===e.max)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");t.spectrum=new Spectrum(e,t.snap||!1,t.singleStep)}function testStart(t,e){if(e=asArray(e),!Array.isArray(e)||!e.length)throw new Error("noUiSlider: 'start' option is incorrect.");t.handles=e.length,t.start=e}function testSnap(t,e){if("boolean"!=typeof e)throw new Error("noUiSlider: 'snap' option must be a boolean.");t.snap=e}function testAnimate(t,e){if("boolean"!=typeof e)throw new Error("noUiSlider: 'animate' option must be a boolean.");t.animate=e}function testAnimationDuration(t,e){if("number"!=typeof e)throw new Error("noUiSlider: 'animationDuration' option must be a number.");t.animationDuration=e}function testConnect(t,e){var r,n=[!1];if("lower"===e?e=[!0,!1]:"upper"===e&&(e=[!1,!0]),!0===e||!1===e){for(r=1;r<t.handles;r++)n.push(e);n.push(!1)}else{if(!Array.isArray(e)||!e.length||e.length!==t.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");n=e}t.connect=n}function testOrientation(t,e){switch(e){case"horizontal":t.ort=0;break;case"vertical":t.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function testMargin(t,e){if(!isNumeric(e))throw new Error("noUiSlider: 'margin' option must be numeric.");0!==e&&(t.margin=t.spectrum.getDistance(e))}function testLimit(t,e){if(!isNumeric(e))throw new Error("noUiSlider: 'limit' option must be numeric.");if(t.limit=t.spectrum.getDistance(e),!t.limit||t.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function testPadding(t,e){var r;if(!isNumeric(e)&&!Array.isArray(e))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(e)&&2!==e.length&&!isNumeric(e[0])&&!isNumeric(e[1]))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(0!==e){for(Array.isArray(e)||(e=[e,e]),t.padding=[t.spectrum.getDistance(e[0]),t.spectrum.getDistance(e[1])],r=0;r<t.spectrum.xNumSteps.length-1;r++)if(t.padding[0][r]<0||t.padding[1][r]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var n=e[0]+e[1],e=t.spectrum.xVal[0];if(1<n/(t.spectrum.xVal[t.spectrum.xVal.length-1]-e))throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function testDirection(t,e){switch(e){case"ltr":t.dir=0;break;case"rtl":t.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function testBehaviour(t,e){if("string"!=typeof e)throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var r=0<=e.indexOf("tap"),n=0<=e.indexOf("drag"),i=0<=e.indexOf("fixed"),s=0<=e.indexOf("snap"),o=0<=e.indexOf("hover"),a=0<=e.indexOf("unconstrained"),e=0<=e.indexOf("drag-all");if(i){if(2!==t.handles)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");testMargin(t,t.start[1]-t.start[0])}if(a&&(t.margin||t.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");t.events={tap:r||s,drag:n,dragAll:e,fixed:i,snap:s,hover:o,unconstrained:a}}function testTooltips(t,e){if(!1!==e)if(!0===e||isValidPartialFormatter(e)){t.tooltips=[];for(var r=0;r<t.handles;r++)t.tooltips.push(e)}else{if((e=asArray(e)).length!==t.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");e.forEach(function(t){if("boolean"!=typeof t&&!isValidPartialFormatter(t))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),t.tooltips=e}}function testHandleAttributes(t,e){if(e.length!==t.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");t.handleAttributes=e}function testAriaFormat(t,e){if(!isValidPartialFormatter(e))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");t.ariaFormat=e}function testFormat(t,e){if(!isValidFormatter(e))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");t.format=e}function testKeyboardSupport(t,e){if("boolean"!=typeof e)throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");t.keyboardSupport=e}function testDocumentElement(t,e){t.documentElement=e}function testCssPrefix(t,e){if("string"!=typeof e&&!1!==e)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");t.cssPrefix=e}function testCssClasses(e,r){if("object"!=typeof r)throw new Error("noUiSlider: 'cssClasses' must be an object.");"string"==typeof e.cssPrefix?(e.cssClasses={},Object.keys(r).forEach(function(t){e.cssClasses[t]=e.cssPrefix+r[t]})):e.cssClasses=r}function testOptions(e){var r={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:defaultFormatter,format:defaultFormatter},n={step:{r:!1,t:testStep},keyboardPageMultiplier:{r:!1,t:testKeyboardPageMultiplier},keyboardMultiplier:{r:!1,t:testKeyboardMultiplier},keyboardDefaultStep:{r:!1,t:testKeyboardDefaultStep},start:{r:!0,t:testStart},connect:{r:!0,t:testConnect},direction:{r:!0,t:testDirection},snap:{r:!1,t:testSnap},animate:{r:!1,t:testAnimate},animationDuration:{r:!1,t:testAnimationDuration},range:{r:!0,t:testRange},orientation:{r:!1,t:testOrientation},margin:{r:!1,t:testMargin},limit:{r:!1,t:testLimit},padding:{r:!1,t:testPadding},behaviour:{r:!0,t:testBehaviour},ariaFormat:{r:!1,t:testAriaFormat},format:{r:!1,t:testFormat},tooltips:{r:!1,t:testTooltips},keyboardSupport:{r:!0,t:testKeyboardSupport},documentElement:{r:!1,t:testDocumentElement},cssPrefix:{r:!0,t:testCssPrefix},cssClasses:{r:!0,t:testCssClasses},handleAttributes:{r:!1,t:testHandleAttributes}},i={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:cssClasses,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};e.format&&!e.ariaFormat&&(e.ariaFormat=e.format),Object.keys(n).forEach(function(t){if(isSet(e[t])||void 0!==i[t])n[t].t(r,(isSet(e[t])?e:i)[t]);else if(n[t].r)throw new Error("noUiSlider: '"+t+"' is required.")}),r.pips=e.pips;var t=document.createElement("div"),s=void 0!==t.style.msTransform,t=void 0!==t.style.transform;r.transformRule=t?"transform":s?"msTransform":"webkitTransform";return r.style=[["left","top"],["right","bottom"]][r.dir][r.ort],r}function scope(t,d,s){var r,a,l,n,i,e,u,c=getActions(),p=getSupportsTouchActionNone()&&getSupportsPassive(),f=t,b=d.spectrum,h=[],m=[],g=[],o=0,v={},S=t.ownerDocument,x=d.documentElement||S.documentElement,y=S.body,E="rtl"===S.dir||1===d.ort?0:100;function N(t,e){var r=S.createElement("div");return e&&addClass(r,e),t.appendChild(r),r}function w(t,e){var r,t=N(t,d.cssClasses.origin),n=N(t,d.cssClasses.handle);return N(n,d.cssClasses.touchArea),n.setAttribute("data-handle",String(e)),d.keyboardSupport&&(n.setAttribute("tabindex","0"),n.addEventListener("keydown",function(t){return function(t,e){if(V()||A(e))return!1;var r=["Left","Right"],n=["Down","Up"],i=["PageDown","PageUp"],s=["Home","End"];d.dir&&!d.ort?r.reverse():d.ort&&!d.dir&&(n.reverse(),i.reverse());var o=t.key.replace("Arrow",""),a=o===i[0],l=o===i[1],i=o===n[0]||o===r[0]||a,n=o===n[1]||o===r[1]||l,r=o===s[0],s=o===s[1];if(!(i||n||r||s))return!0;if(t.preventDefault(),n||i){var u=i?0:1,u=it(e)[u];if(null===u)return!1;!1===u&&(u=b.getDefaultStep(m[e],i,d.keyboardDefaultStep)),u*=l||a?d.keyboardPageMultiplier:d.keyboardMultiplier,u=Math.max(u,1e-7),u*=i?-1:1,u=h[e]+u}else u=s?d.spectrum.xVal[d.spectrum.xVal.length-1]:d.spectrum.xVal[0];return Z(e,b.toStepping(u),!0,!0),X("slide",e),X("update",e),X("change",e),X("set",e),!1}(t,e)})),void 0!==d.handleAttributes&&(r=d.handleAttributes[e],Object.keys(r).forEach(function(t){n.setAttribute(t,r[t])})),n.setAttribute("role","slider"),n.setAttribute("aria-orientation",d.ort?"vertical":"horizontal"),0===e?addClass(n,d.cssClasses.handleLower):e===d.handles-1&&addClass(n,d.cssClasses.handleUpper),t}function P(t,e){return!!e&&N(t,d.cssClasses.connect)}function C(t,e){return!(!d.tooltips||!d.tooltips[e])&&N(t.firstChild,d.cssClasses.tooltip)}function V(){return f.hasAttribute("disabled")}function A(t){return a[t].hasAttribute("disabled")}function k(){i&&(J("update"+INTERNAL_EVENT_NS.tooltips),i.forEach(function(t){t&&removeElement(t)}),i=null)}function M(){k(),i=a.map(C),q("update"+INTERNAL_EVENT_NS.tooltips,function(t,e,r){i&&d.tooltips&&!1!==i[e]&&(t=t[e],!0!==d.tooltips[e]&&(t=d.tooltips[e].to(r[e])),i[e].innerHTML=t)})}function D(t,e){return t.map(function(t){return b.fromStepping(e?b.getStep(t):t)})}function T(f){var h=function(t){if(t.mode===PipsMode.Range||t.mode===PipsMode.Steps)return b.xVal;if(t.mode!==PipsMode.Count)return t.mode===PipsMode.Positions?D(t.values,t.stepped):t.mode===PipsMode.Values?t.stepped?t.values.map(function(t){return b.fromStepping(b.getStep(b.toStepping(t)))}):t.values:[];if(t.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var e=t.values-1,r=100/e,n=[];e--;)n[e]=e*r;return n.push(100),D(n,t.stepped)}(f),m={},t=b.xVal[0],e=b.xVal[b.xVal.length-1],g=!1,v=!1,S=0;return(h=unique(h.slice().sort(function(t,e){return t-e})))[0]!==t&&(h.unshift(t),g=!0),h[h.length-1]!==e&&(h.push(e),v=!0),h.forEach(function(t,e){var r,n,i,s,o,a,l,u,t=t,c=h[e+1],p=f.mode===PipsMode.Steps,d=(d=p?b.xNumSteps[e]:d)||c-t;for(void 0===c&&(c=t),d=Math.max(d,1e-7),r=t;r<=c;r=Number((r+d).toFixed(7))){for(a=(s=(i=b.toStepping(r))-S)/(f.density||1),u=s/(l=Math.round(a)),n=1;n<=l;n+=1)m[(o=S+n*u).toFixed(5)]=[b.fromStepping(o),0];a=-1<h.indexOf(r)?PipsType.LargeValue:p?PipsType.SmallValue:PipsType.NoValue,!e&&g&&r!==c&&(a=0),r===c&&v||(m[i.toFixed(5)]=[r,a]),S=i}}),m}function U(i,s,o){var t,a=S.createElement("div"),n=((t={})[PipsType.None]="",t[PipsType.NoValue]=d.cssClasses.valueNormal,t[PipsType.LargeValue]=d.cssClasses.valueLarge,t[PipsType.SmallValue]=d.cssClasses.valueSub,t),l=((t={})[PipsType.None]="",t[PipsType.NoValue]=d.cssClasses.markerNormal,t[PipsType.LargeValue]=d.cssClasses.markerLarge,t[PipsType.SmallValue]=d.cssClasses.markerSub,t),u=[d.cssClasses.valueHorizontal,d.cssClasses.valueVertical],c=[d.cssClasses.markerHorizontal,d.cssClasses.markerVertical];function p(t,e){var r=e===d.cssClasses.value;return e+" "+(r?u:c)[d.ort]+" "+(r?n:l)[t]}return addClass(a,d.cssClasses.pips),addClass(a,0===d.ort?d.cssClasses.pipsHorizontal:d.cssClasses.pipsVertical),Object.keys(i).forEach(function(t){var e,r,n;r=i[e=t][0],n=i[t][1],(n=s?s(r,n):n)!==PipsType.None&&((t=N(a,!1)).className=p(n,d.cssClasses.marker),t.style[d.style]=e+"%",n>PipsType.NoValue&&((t=N(a,!1)).className=p(n,d.cssClasses.value),t.setAttribute("data-value",String(r)),t.style[d.style]=e+"%",t.innerHTML=String(o.to(r))))}),a}function L(){n&&(removeElement(n),n=null)}function O(t){L();var e=T(t),r=t.filter,t=t.format||{to:function(t){return String(Math.round(t))}};return n=f.appendChild(U(e,r,t))}function F(){var t=r.getBoundingClientRect(),e="offset"+["Width","Height"][d.ort];return 0===d.ort?t.width||r[e]:t.height||r[e]}function R(e,r,n,i){function s(t){return!!(t=function(e,t,r){var n=0===e.type.indexOf("touch"),i=0===e.type.indexOf("mouse"),s=0===e.type.indexOf("pointer"),o=0,a=0;0===e.type.indexOf("MSPointer")&&(s=!0);if("mousedown"===e.type&&!e.buttons&&!e.touches)return!1;if(n){var l=function(t){t=t.target;return t===r||r.contains(t)||e.composed&&e.composedPath().shift()===r};if("touchstart"===e.type){n=Array.prototype.filter.call(e.touches,l);if(1<n.length)return!1;o=n[0].pageX,a=n[0].pageY}else{l=Array.prototype.find.call(e.changedTouches,l);if(!l)return!1;o=l.pageX,a=l.pageY}}t=t||getPageOffset(S),(i||s)&&(o=e.clientX+t.x,a=e.clientY+t.y);return e.pageOffset=t,e.points=[o,a],e.cursor=i||s,e}(t,i.pageOffset,i.target||r))&&(!(V()&&!i.doNotReject)&&(!(hasClass(f,d.cssClasses.tap)&&!i.doNotReject)&&(!(e===c.start&&void 0!==t.buttons&&1<t.buttons)&&((!i.hover||!t.buttons)&&(p||t.preventDefault(),t.calcPoint=t.points[d.ort],void n(t,i))))))}var o=[];return e.split(" ").forEach(function(t){r.addEventListener(t,s,!!p&&{passive:!0}),o.push([t,s])}),o}function _(t){t=limit(t=100*(t-offset(r,d.ort))/F());return d.dir?100-t:t}function z(t,e){"mouseout"===t.type&&"HTML"===t.target.nodeName&&null===t.relatedTarget&&j(t,e)}function H(t,e){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===t.buttons&&0!==e.buttonsProperty)return j(t,e);t=(d.dir?-1:1)*(t.calcPoint-e.startCalcPoint);$(0<t,100*t/e.baseSize,e.locations,e.handleNumbers,e.connect)}function j(t,e){e.handle&&(removeClass(e.handle,d.cssClasses.active),--o),e.listeners.forEach(function(t){x.removeEventListener(t[0],t[1])}),0===o&&(removeClass(f,d.cssClasses.drag),Q(),t.cursor&&(y.style.cursor="",y.removeEventListener("selectstart",preventDefault))),e.handleNumbers.forEach(function(t){X("change",t),X("set",t),X("end",t)})}function I(t,e){var r,n,i,s;e.handleNumbers.some(A)||(1===e.handleNumbers.length&&(s=a[e.handleNumbers[0]].children[0],o+=1,addClass(s,d.cssClasses.active)),t.stopPropagation(),n=R(c.move,x,H,{target:t.target,handle:s,connect:e.connect,listeners:r=[],startCalcPoint:t.calcPoint,baseSize:F(),pageOffset:t.pageOffset,handleNumbers:e.handleNumbers,buttonsProperty:t.buttons,locations:m.slice()}),i=R(c.end,x,j,{target:t.target,handle:s,listeners:r,doNotReject:!0,handleNumbers:e.handleNumbers}),s=R("mouseout",x,z,{target:t.target,handle:s,listeners:r,doNotReject:!0,handleNumbers:e.handleNumbers}),r.push.apply(r,n.concat(i,s)),t.cursor&&(y.style.cursor=getComputedStyle(t.target).cursor,1<a.length&&addClass(f,d.cssClasses.drag),y.addEventListener("selectstart",preventDefault,!1)),e.handleNumbers.forEach(function(t){X("start",t)}))}function B(t){t.stopPropagation();var i,s,o,e=_(t.calcPoint),r=(i=e,o=!(s=100),a.forEach(function(t,e){var r,n;A(e)||(r=m[e],((n=Math.abs(r-i))<s||n<=s&&r<i||100===n&&100===s)&&(o=e,s=n))}),o);!1!==r&&(d.events.snap||addClassFor(f,d.cssClasses.tap,d.animationDuration),Z(r,e,!0,!0),Q(),X("slide",r,!0),X("update",r,!0),d.events.snap?I(t,{handleNumbers:[r]}):(X("change",r,!0),X("set",r,!0)))}function K(t){var t=_(t.calcPoint),t=b.getStep(t),e=b.fromStepping(t);Object.keys(v).forEach(function(t){"hover"===t.split(".")[0]&&v[t].forEach(function(t){t.call(st,e)})})}function q(t,e){v[t]=v[t]||[],v[t].push(e),"update"===t.split(".")[0]&&a.forEach(function(t,e){X("update",e)})}function J(t){var n=t&&t.split(".")[0],i=n?t.substring(n.length):t;Object.keys(v).forEach(function(t){var e=t.split(".")[0],r=t.substring(e.length);n&&n!==e||i&&i!==r||((e=r)!==INTERNAL_EVENT_NS.aria&&e!==INTERNAL_EVENT_NS.tooltips||i===r)&&delete v[t]})}function X(r,n,i){Object.keys(v).forEach(function(t){var e=t.split(".")[0];r===e&&v[t].forEach(function(t){t.call(st,h.map(d.format.to),n,h.slice(),i||!1,m.slice(),st)})})}function Y(t,e,r,n,i,s){var o;return 1<a.length&&!d.events.unconstrained&&(n&&0<e&&(o=b.getAbsoluteDistance(t[e-1],d.margin,!1),r=Math.max(r,o)),i&&e<a.length-1&&(o=b.getAbsoluteDistance(t[e+1],d.margin,!0),r=Math.min(r,o))),1<a.length&&d.limit&&(n&&0<e&&(o=b.getAbsoluteDistance(t[e-1],d.limit,!1),r=Math.min(r,o)),i&&e<a.length-1&&(o=b.getAbsoluteDistance(t[e+1],d.limit,!0),r=Math.max(r,o))),d.padding&&(0===e&&(o=b.getAbsoluteDistance(0,d.padding[0],!1),r=Math.max(r,o)),e===a.length-1&&(o=b.getAbsoluteDistance(100,d.padding[1],!0),r=Math.min(r,o))),!((r=limit(r=b.getStep(r)))===t[e]&&!s)&&r}function W(t,e){var r=d.ort;return(r?e:t)+", "+(r?t:e)}function $(t,r,n,e,i){var s=n.slice(),o=e[0],a=[!t,t],l=[t,!t];e=e.slice(),t&&e.reverse(),1<e.length?e.forEach(function(t,e){e=Y(s,t,s[t]+r,a[e],l[e],!1);!1===e?r=0:(r=e-s[t],s[t]=e)}):a=l=[!0];var u=!1;e.forEach(function(t,e){u=Z(t,n[t]+r,a[e],l[e])||u}),u&&(e.forEach(function(t){X("update",t),X("slide",t)}),null!=i&&X("drag",o))}function G(t,e){return d.dir?100-t-e:t}function Q(){g.forEach(function(t){var e=50<m[t]?-1:1,e=3+(a.length+e*t);a[t].style.zIndex=String(e)})}function Z(t,e,r,n,i){return!1!==(e=i?e:Y(m,t,e,r,n,!1))&&(e=e,m[t=t]=e,h[t]=b.fromStepping(e),e="translate("+W(10*(G(e,0)-E)+"%","0")+")",a[t].style[d.transformRule]=e,tt(t),tt(t+1),!0)}function tt(t){var e,r;l[t]&&(r=100,e="translate("+W(G(e=(e=0)!==t?m[t-1]:e,r=(r=t!==l.length-1?m[t]:r)-e)+"%","0")+")",r="scale("+W(r/100,"1")+")",l[t].style[d.transformRule]=e+" "+r)}function et(t,e){return null===t||!1===t||void 0===t?m[e]:("number"==typeof t&&(t=String(t)),!1===(t=!1!==(t=d.format.from(t))?b.toStepping(t):t)||isNaN(t)?m[e]:t)}function rt(t,e,r){var n=asArray(t),t=void 0===m[0];e=void 0===e||e,d.animate&&!t&&addClassFor(f,d.cssClasses.tap,d.animationDuration),g.forEach(function(t){Z(t,et(n[t],t),!0,!1,r)});var i,s=1===g.length?0:1;for(t&&b.hasNoSize()&&(r=!0,m[0]=0,1<g.length&&(i=100/(g.length-1),g.forEach(function(t){m[t]=t*i})));s<g.length;++s)g.forEach(function(t){Z(t,m[t],!0,!0,r)});Q(),g.forEach(function(t){X("update",t),null!==n[t]&&e&&X("set",t)})}function nt(t){if(t=void 0===t?!1:t)return 1===h.length?h[0]:h.slice(0);t=h.map(d.format.to);return 1===t.length?t[0]:t}function it(t){var e=m[t],r=b.getNearbySteps(e),n=h[t],i=r.thisStep.step,t=null;if(d.snap)return[n-r.stepBefore.startValue||null,r.stepAfter.startValue-n||null];!1!==i&&n+i>r.stepAfter.startValue&&(i=r.stepAfter.startValue-n),t=n>r.thisStep.startValue?r.thisStep.step:!1!==r.stepBefore.step&&n-r.stepBefore.highestStep,100===e?i=null:0===e&&(t=null);e=b.countStepDecimals();return null!==i&&!1!==i&&(i=Number(i.toFixed(e))),[t=null!==t&&!1!==t?Number(t.toFixed(e)):t,i]}addClass(e=f,d.cssClasses.target),0===d.dir?addClass(e,d.cssClasses.ltr):addClass(e,d.cssClasses.rtl),0===d.ort?addClass(e,d.cssClasses.horizontal):addClass(e,d.cssClasses.vertical),addClass(e,"rtl"===getComputedStyle(e).direction?d.cssClasses.textDirectionRtl:d.cssClasses.textDirectionLtr),r=N(e,d.cssClasses.base),function(t,e){var r=N(e,d.cssClasses.connects);a=[],(l=[]).push(P(r,t[0]));for(var n=0;n<d.handles;n++)a.push(w(e,n)),g[n]=n,l.push(P(r,t[n+1]))}(d.connect,r),(u=d.events).fixed||a.forEach(function(t,e){R(c.start,t.children[0],I,{handleNumbers:[e]})}),u.tap&&R(c.start,r,B,{}),u.hover&&R(c.move,r,K,{hover:!0}),u.drag&&l.forEach(function(e,t){var r,n,i,s,o;!1!==e&&0!==t&&t!==l.length-1&&(r=a[t-1],n=a[t],i=[e],s=[r,n],o=[t-1,t],addClass(e,d.cssClasses.draggable),u.fixed&&(i.push(r.children[0]),i.push(n.children[0])),u.dragAll&&(s=a,o=g),i.forEach(function(t){R(c.start,t,I,{handles:s,handleNumbers:o,connect:e})}))}),rt(d.start),d.pips&&O(d.pips),d.tooltips&&M(),J("update"+INTERNAL_EVENT_NS.aria),q("update"+INTERNAL_EVENT_NS.aria,function(t,e,s,r,o){g.forEach(function(t){var e=a[t],r=Y(m,t,0,!0,!0,!0),n=Y(m,t,100,!0,!0,!0),i=o[t],t=String(d.ariaFormat.to(s[t])),r=b.fromStepping(r).toFixed(1),n=b.fromStepping(n).toFixed(1),i=b.fromStepping(i).toFixed(1);e.children[0].setAttribute("aria-valuemin",r),e.children[0].setAttribute("aria-valuemax",n),e.children[0].setAttribute("aria-valuenow",i),e.children[0].setAttribute("aria-valuetext",t)})});var st={destroy:function(){for(J(INTERNAL_EVENT_NS.aria),J(INTERNAL_EVENT_NS.tooltips),Object.keys(d.cssClasses).forEach(function(t){removeClass(f,d.cssClasses[t])});f.firstChild;)f.removeChild(f.firstChild);delete f.noUiSlider},steps:function(){return g.map(it)},on:q,off:J,get:nt,set:rt,setHandle:function(t,e,r,n){if(!(0<=(t=Number(t))&&t<g.length))throw new Error("noUiSlider: invalid handle number, got: "+t);Z(t,et(e,t),!0,!0,n),X("update",t),r&&X("set",t)},reset:function(t){rt(d.start,t)},__moveHandles:function(t,e,r){$(t,e,m,r)},options:s,updateOptions:function(e,t){var r=nt(),n=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips"];n.forEach(function(t){void 0!==e[t]&&(s[t]=e[t])});var i=testOptions(s);n.forEach(function(t){void 0!==e[t]&&(d[t]=i[t])}),b=i.spectrum,d.margin=i.margin,d.limit=i.limit,d.padding=i.padding,d.pips?O(d.pips):L(),(d.tooltips?M:k)(),m=[],rt(isSet(e.start)?e.start:r,t)},target:f,removePips:L,removeTooltips:k,getPositions:function(){return m.slice()},getTooltips:function(){return i},getOrigins:function(){return a},pips:O};return st}function initialize(t,e){if(!t||!t.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+t);if(t.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");e=scope(t,testOptions(e),e);return t.noUiSlider=e}export default{__spectrum:Spectrum,cssClasses:cssClasses,create:initialize};export{PipsMode,PipsType,initialize as create,cssClasses};